﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" / >
* {
    margin: -1px;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif !important;
}

body {
    direction: rtl;
    text-align: right;
    position: relative;
    background: #ffffff; /* ممكن ترجعيه إذا بدك */
    overflow-x: hidden;
}

    /* body::after {
  content: "";
  position: fixed;

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://nafezly-production.fra1.cdn.digitaloceanspaces.com/uploads/portfolios/12337_60745b885c97b-1618238344.jpg");
  background-repeat: repeat;
  background-size: 50px;
  background-attachment: fixed;
  opacity: 0.09; 
  z-index: -1;
  pointer-events: none; 
} */
    body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='140'><text x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' font-family='Arial' font-size='24' font-weight='700' fill='rgba(0,0,0,0.2)' transform='rotate(-30 150 70)'>سمارت سكانر</text></svg>");
        background-repeat: repeat;
        background-position: 0 0;
        background-size: 120px 60px;
        background-attachment: fixed;
    }

/* ==== Peek Slider (Swiper) Styles ==== */
.peek-slider-section {
    width: 100%; /* بدون فراغ يمين/يسار */
    margin: 8px 0 10px 0; /* تقليل الفراغ وإلغاء أوتو */
    position: sticky; /* تثبيت السلايدر */
    top: 8px; /* مسافة من أعلى الصفحة */
    z-index: 900; /* فوق المحتوى */
    background: transparent; /* make section transparent so swiper fills visual card */
    padding: 0; /* remove vertical padding so no white gap above/below */
}

.peek-swiper {
    overflow: hidden; /* لا يظهر أي جزء من الشرائح المجاورة */
    height: 180px;
    background: transparent;
}

/* Apply full-height behavior only on desktop (>=769px) so mobile is not stretched */
@media (min-width: 769px) {
    /* Make sure the inner Swiper container and slides occupy the full height of the peek-swiper */
    .peek-swiper .swiper,
    .peek-swiper .swiper-wrapper,
    .peek-swiper .swiper-slide {
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .peek-swiper .swiper-wrapper {
        align-items: stretch;
    }

    .peek-swiper .swiper-slide {
        width: 100%; /* عرض كامل بدون peek */
        /* slide itself fills area; rounding handled on inner swiper element */
        box-shadow: 0 6px 18px rgba(0,0,0,0.18);
        display: flex;
    }

    /* ensure the main swiper wrapper has the rounded card and clips overflow */
    .peek-swiper .swiper {
        height: 100% !important;
        border-radius: 15px;
        overflow: hidden;
    }

    /* Ensure images cover entire slide area without leaving top/bottom gaps on large screens */
    .peek-swiper .swiper-slide img,
    .peek-swiper img.ad-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }

    /* remove any default line-height/gap behaviour */
    .peek-swiper img {
        line-height: 0;
    }
}

/* Keep previous mobile behavior for <=768px (no desktop full-height forcing) */
@media (max-width: 768px) {
    .peek-swiper {
        height: 150px;
    }
        /* on tablet/mobile allow slides to size naturally within the smaller height */
        .peek-swiper .swiper-slide {
            width: 100%;
            height: auto;
        }

            .peek-swiper .swiper-slide img,
            .peek-swiper img.ad-image {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }
}

@media (max-width: 480px) {
    .peek-swiper {
        height: 120px;
    }

        .peek-swiper .swiper-slide {
            width: 80%;
            height: auto;
        }

            .peek-swiper .swiper-slide img,
            .peek-swiper img.ad-image {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }
}

.navbar {
    background: #493D9E;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .navbar-logo img {
        height: 40px;
        width: auto;
        transition: opacity 0.3s ease;
    }

        .navbar-logo img:hover {
            opacity: 0.8;
        }

.navbar-brand {
    color: white;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 16px;
    }
}

.carousel-container {
    width: 95%;
    height: 400px;
    overflow: hidden;
    margin: 1% auto; /* مركز ومتناظر */
    border-radius: 12px;
    position: sticky;
    top: 10px;
    z-index: 900;
}

.carousel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex: 0 0 100%; /* ثبّت عرض الشريحة وتجنب الانكماش */
}

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

[dir="rtl"] .carousel-track {
    direction: rtl;
}

.carousel-container {
    touch-action: pan-y;
    user-select: none;
}

    .carousel-container.dragging {
        cursor: grabbing;
    }

        .carousel-container.dragging .carousel-track {
            transition: none;
        }

@media (max-width: 768px) {
    .carousel-container {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        overflow: hidden;
        height: 130px;
        width: 100%; /* بدون عرض ثابت لتجنب الانزياح */
        max-width: 100%;
    }
}

.scanner-section {
    width: 95%;
    margin: 2% auto;
    padding: 20px;
}

.scanner-container h2 {
    text-align: center;
    margin-bottom: 5px;
    color: #333;
    font-size: 20px;
}

.scanner-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

#scanner {
    width: 100%;
    height: 300px;
    background-image: linear-gradient( rgba(255,255,255,0.9), rgba(255,255,255,0.9) ), url('barcode\ \(1\).png');
    background-position: center;
    background-repeat: repeat;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-frame {
    width: 380px;
    height: 200px;
    border: 3px solid #493D9E;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #493D9E, transparent);
    animation: scanLine 2s linear infinite;
    opacity: 0;
}

@keyframes scanLine {
    0% {
        top: 0;
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: calc(100% - 2px);
        opacity: 1;
    }
}

.scanner-frame.scanning .scanner-line {
    opacity: 1;
}


.scanner-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
/* الأزرار الأساسية */
.btn-primary, .btn-secondary {
    position: relative;
    padding: 13px 16px;
    border: none;
    border-radius: 80px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    background-color: #3498db;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* النص فوق الـ SVG */
.btn-label {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* اللون الثانوي */
.btn-secondary {
    background-color: #e74c3c;
}

/* الـ SVG يحيط بالزر */
.dash-svg {
    position: absolute;
    top: -10px; /* يبعد الإطار 1 سم تقريبا عن الأعلى */
    left: -10px; /* نفس الشي من اليسار */
    width: calc(100% + 20px); /* يزيد العرض ليغطي البعد */
    height: calc(100% + 20px); /* يزيد الارتفاع */
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

/* المستطيل المتقطع */
.dash-rect {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 8 8;
    stroke-dashoffset: 0;
    stroke: currentColor;
    vector-effect: non-scaling-stroke;
    animation: dash-move 1.6s linear infinite;
}

/* ألوان مخصصة */
.btn-primary .dash-rect {
    color: #666;
}

.btn-secondary .dash-rect {
    color: #666;
}

/* حركة الالتفاف */
@keyframes dash-move {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -64;
    }
}

/* Hover */
.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary:hover {
    background-color: #c0392b;
}




.btn-primary {
    background: linear-gradient(135deg, #3c7d3f 0%, #5d8f54 100%);
    color: white;
    /* font-weight: 700; */
}

.btn-secondary {
    background: #c10819;
    color: #fff;
}

.btn-close {
    background: #28a745;
    color: white;
}

    .btn-close:hover {
        background: #1e7e34;
    }

.btn-primary1, .btn-secondary2 {
    width: 100%;
    max-width: 95px;
    max-height: 85px;
}

.btn-primary1 {
    background: #493d9e;
    color: white;
}

.btn-secondary2 {
    background: rgb(214, 214, 214);
    color: black;
}

.scanner-status {
    text-align: center;
}

    .scanner-status.success {
        color: #155724;
    }

    .scanner-status.error {
        color: #721c24;
    }

    .scanner-status.info {
        color: #493D9E;
    }



.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

    .modal-content h3 {
        margin-bottom: 15px;
        color: #333;
        font-size: 20px;
    }

    .modal-content p {
        margin-bottom: 25px;
        color: #666;
        line-height: 1.5;
    }

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
}

    .modal-buttons button {
        min-width: 120px;
    }


@media (max-width: 768px) {
    .scanner-wrapper {
        max-width: 100%;
    }

    #scanner {
        height: 250px;
    }

    .scanner-frame {
        width: 300px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .scanner-section {
        padding: 15px;
    }

    #scanner {
        height: 200px;
    }

    .scanner-frame {
        width: 240px;
        height: 120px;
    }

    .scanner-controls {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary {
        width: 100%;
        max-width: 115px;
        max-height: 85px;
    }
    .btn-secondary {
        max-height: 85px;
    }
    .modal-content {
        padding: 20px;
    }
    /* حافظ على الأزرار بجانب بعض */
    .modal-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
    }

        .modal-buttons button {
            width: auto;
            min-width: 110px;
        }
}

.offers-section {
    width: 95%;
    margin: 2% auto;
    padding: 20px;
}

.offers-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    justify-items: center;
}

.offer-item {
    text-align: center;
    transition: transform 0.3s ease;
}

    .offer-item:hover {
        transform: translateY(-5px);
    }

.offer-image {
    width: 160px;
    height: 120px;
    border-radius: 10%;
    overflow: hidden;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.offer-item:hover .offer-image {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-item-title {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }

    .offer-image {
        width: 130px;
        height: 100px;
    }

    .offer-item-title {
        font-size: 14px;
    }

    .offers-container h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .offers-section {
        padding: 15px;
    }

    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .offer-image {
        width: 110px;
        height: 80px;
    }

    .offer-item-title {
        font-size: 12px;
    }

    .offers-container h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

.footer {
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

    .footer p {
        margin: 0;
        font-size: 14px;
        color: #666;
        font-weight: 400;
    }

    .footer a {
        color: #493D9E;
    }

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
    }

    .navbar-logo img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1px 0;
    }

    .navbar-container {
        padding: 0 10px;
    }

    .navbar-logo img {
        height: 45px;
    }
}


/* ستايل البوب اب */
.offer-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 1px 15px 0;
    margin-bottom: 15px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

    .btn-close:hover {
        background-color: #f5f5f5;
        color: #333;
    }

.offer-modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.offer-modal-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: -81px;
}

    .offer-modal-image img {
        width: 100%;
        height: 70%;
        object-fit: cover;
    }

#offerModalTitle {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.5rem;
}

#offerModalDescription {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.whatsapp-banner {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #3c7d3f 0%, #5d8f54 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

    .whatsapp-banner::before {
        content: '';
        position: absolute;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        top: -50px;
        right: -50px;
    }

    .whatsapp-banner::after {
        content: '';
        position: absolute;
        width: 150px;
        height: 150px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        bottom: -30px;
        left: -30px;
    }

.whatsapp-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    padding: 0 20px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    background: linear-gradient(135deg, #075f27 0%, #128C7E 100%);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

    .btn-whatsapp::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }

    .btn-whatsapp:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(17, 204, 85, 0.6);
    }

        .btn-whatsapp:hover::before {
            left: 100%;
        }

.whatsapp-icon {
    width: 28px;
    height: 28px;
}

.whatsapp-content p {
    font-size: 20px;
    color: #fff;
    margin: 0;
    max-width: 450px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.whatsapp-content h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.offer-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1e3c72;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .whatsapp-banner {
        height: 150px;
    }

    .whatsapp-content h2 {
        font-size: 24px;
    }

    .whatsapp-content p {
        font-size: 18px;
    }

    .btn-whatsapp {
        font-size: 15px;
        padding: 5px 15px;
        margin-top: 3px;
    }
}

@media (max-width: 480px) {
    .whatsapp-banner {
        height: 120px;
    }

    .whatsapp-content h2 {
        font-size: 22px;
    }

    .whatsapp-content p {
        font-size: 16px;
    }

    .btn-whatsapp {
        font-size: 16px;
        padding: 12px 25px;
    }

    .offer-badge {
        font-size: 14px;
        padding: 6px 15px;
    }
}


.footer {
    color: #fff;
    text-align: center;
    padding: 0px;
}

    .footer a {
        text-decoration: none;
    }

.footer-icons {
    margin-bottom: 10px;
}

.social-icon {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    transition: transform 0.3s, filter 0.3s;
}

    .social-icon:hover {
        transform: scale(1.2);
        filter: brightness(1.3);
    }



/* تنسيقات السلايدر */
.peek-slider-section {
    position: relative;
    padding: 20px 0;
    background: #f8f9fa;
    margin-bottom: 30px;
}

.swiper {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.ad-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 10;
}

.ad-location {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.ad-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.no-image-placeholder {
    background: #e9ecef;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.1rem;
}

/* الترقيم */
.swiper-pagination {
    position: absolute;
    bottom: 15px !important;
    z-index: 20;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    background: #007bff;
    opacity: 1;
    transform: scale(1.2);
}

/* أسهم التنقل */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 20px;
        font-weight: bold;
    }

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: rgba(0,0,0,0.7);
    }

/* حالة عدم وجود إعلانات */
.no-ads {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .no-ads div:first-child {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .no-ads h4 {
        color: #333;
        margin-bottom: 10px;
    }

    .no-ads p {
        color: #6c757d;
    }

/* تنسيقات المودال */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 5px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

    .btn-close:hover {
        color: #333;
    }

/* تنسيقات النموذج */
.form-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

.btn-primary1 {
    background: linear-gradient(135deg, #007bff, #0056b3);
    transition: all 0.3s ease;
}

    .btn-primary1:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,123,255,0.3);
    }

.btn-secondary2 {
    background: linear-gradient(135deg, #6c757d, #545b62);
    transition: all 0.3s ease;
}

    .btn-secondary2:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(108,117,125,0.3);
    }

/* رسالة النجاح */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
}

/* تخصيص SweetAlert */
.swal2-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 15px;
}

.swal2-title {
    font-size: 1.5rem;
    color: #333;
}

.swal2-confirm {
    border-radius: 8px;
    padding: 10px 24px;
}

.swal2-success {
    border-color: #28a745;
}

.swal2-error {
    border-color: #dc3545;
}

@media (max-width: 480px) {

    .peek-slider-section {
        width: 100%;
        margin: 0px 0 0px 0 !important;
    }

    .peek-slider-section {
        position: relative;
        padding: 0px 0 !important;
        background: #f8f9fa;
        margin-bottom: 30px;
    }
}

/* Ensure consistent slider heights to avoid large white gaps */
/* Desktop / laptop */
@media (min-width:992px) {
 .peek-swiper {
 height:320px !important; /* fixed reasonable banner height */
 }

 .peek-swiper .swiper,
 .peek-swiper .swiper-wrapper,
 .peek-swiper .swiper-slide {
 height:100% !important;
 }

 .peek-swiper .swiper-slide img,
 .peek-swiper img.ad-image {
 width:100% !important;
 height:100% !important;
 object-fit: contain !important; /* keep whole image visible */
 display: block;
 }
}

/* Tablet */
@media (min-width:768px) and (max-width:991px) {
 .peek-swiper {
 height:240px !important;
 }

 .peek-swiper .swiper-slide img {
 width:100% !important;
 height:100% !important;
 object-fit: cover !important;
 }
}

/* Mobile */
@media (max-width:767px) {
 .peek-swiper {
 height:150px !important;
 }

 .peek-swiper .swiper-slide img {
 width:100% !important;
 height:100% !important;
 object-fit: cover !important;
 }
}

/* Collapse hidden banner footprint (already present but ensure precedence) */
.whatsapp-banner[style*="display: none"], .whatsapp-banner.hidden {
 height:0 !important;
 padding:0 !important;
 margin:0 !important;
 overflow: hidden !important;
}

/* Support html.lead-submitted as well as body.lead-submitted to allow early hiding via head script */
html.lead-submitted .container.my-5,
body.lead-submitted .container.my-5 {
 margin-top:8px !important;
}

html.lead-submitted .peek-slider-section,
body.lead-submitted .peek-slider-section {
 margin-bottom:6px !important;
 padding-top:6px !important;
}

/* collapse whatsapp banner when lead-submitted applied to html or body */
html.lead-submitted .whatsapp-banner,
body.lead-submitted .whatsapp-banner {
 display:none !important;
 height:0 !important;
 padding:0 !important;
 margin:0 !important;
 overflow:hidden !important;
}


