/* Basic CSS reset */

@import url('https://fonts.googleapis.com/css?family=Arvo');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

.bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 80%;
    max-width: 600px;
    margin: auto;
    border: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    z-index: 999;
}
#closeDialog {
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    #closeDialog:hover {
        background-color: #c0392b;
        transform: scale(1.05);
    }
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    background-color: #e1dede;
    font-weight: 300;
    font-style: normal;

}

body.dark-mode {
    background: #1c1c1c;
    color: #eee;
}

body.dark-mode header,
body.dark-mode footer {
    background: #111;
}

body.dark-mode .card {
    background: #2b2b2b;
    color: #fff;
}

.dark-mode-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #222;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 21px;
    z-index: 2000;
}

.navbar {
    direction: ltr;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #ffffff22;
}

body.dark-mode .navbar {
    color: rgba(255, 25, 25, 0.95);
    background-color: rgba(33, 107, 208, 0.95);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    top: 3px;
}

.navbar-logo img {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.navbar-logo img:hover {
    background-color: rgba(167, 164, 162, 0.445);
    transform: scale(1.05) rotate(10deg);
}

.brand-name {
    font-size: 22px;
    font-weight: 500;
    color: #000000;
    font-family: "Lalezar", "Cairo", sans-serif;
}


body.dark-mode .brand-name {
    font-size: 22px;
    font-weight: 500;
    color: #FFFFFF;
    font-family: "Lalezar", "Cairo", sans-serif;
}

.navbar-links {
    display: flex;
    gap: 20px;
}

.navbar-links a {
    color: #000000;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .navbar-links a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-links a:hover {
    background: #25d366;
    color: #fff;
}


body.dark-mode .burger {

    background: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 24px;
    border: none;
    cursor: pointer;
}

.burger {
    display: none;
    background: none;
    color: rgba(0, 0, 0, 0.95);
    font-size: 24px;
    border: none;
    cursor: pointer;
    position: relative;
    left: 14px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #FFF4F4;
    position: fixed;
    top: 70px;
    right: 10px;
    direction: ltr;
    border-radius: 10px;
    overflow: hidden;
    z-index: 999;
}

body.dark-mode .mobile-menu {
    background-color: rgba(33, 107, 208, 0.95);
}

.mobile-menu a {
    direction: rtl;
    color: #000000;
    padding: 12px;
    display: flex;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid #444;
}

body.dark-mode .mobile-menu a {
    color: #FFEBEB;
    padding: 12px;
    display: flex;
    text-decoration: none;
    border-bottom: 1px solid #444;
}

.mobile-menu a:hover {
    background: #25d366;
}

.custom-btn {
    width: 130px;
    height: 40px;
    color: black;
    font-weight: bold;
    border-radius: 5px;
    font-size: 16px;
    padding: 10px 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    background: #ff2c2c00;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    outline: none;

}

.btn-15 {
    background: #fff;
    border: none;
    direction: initial;
    text-align: center;
    z-index: 1;
    height: fit-content;
    font-size: 21px;
    width: fit-content;
    font-weight: 800;
    padding: 2px;
    font-style: normal;
    text-decoration: none;
}

.btn-15:after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    z-index: -1;
    border-radius: 5px;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    transition: all 0.3s ease;

}

.btn-15:hover {
    color: black;
}

.btn-15:hover:after {
    left: 0;
    width: 100%;
}

.btn-15:active {
    top: 2px;
}

.circle a {
    width: 60px;
    height: 60px;
    display: inline-block;

    background-color: #eeecec83;

    padding: 5px;

    border-radius: 12px;

    box-shadow: 0 2px 8px rgb(48, 44, 44);

    transition: all 1.3s ease;

}

.circle a:hover {

    background-color: rgba(167, 164, 162, 0.445);

    transform: scale(1.05) rotate(360deg);

}

.circle img {

    height: 60px;

    display: block;

    border-radius: 12px;

}

.sidebar-toggle {
    position: absolute;
    top: 7rem;
    right: 20px;
    background: #1BBC2F;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
    border-radius: 4px;
}

/* #endregion */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 50px;
    background-color: #2C3E50;
    color: white;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.sidebar.open {
    position: absolute;
    transform: translateX(0);
    width: 50%;
    border-radius: 15px;
}

.sidebar .logo img {
    width: 100%;
    max-width: 150px;
    height: 100px;
    margin-bottom: 0px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* الهيدر والناف بار */
header {
    background: #333;
    color: #fff;
}

.brand {
    font-size: 1.5rem;
    text-decoration: none;
    color: #fff;
}

p {
    font-style: normal;
    font-weight: bold;
}

/* بانر */
.hero {
    background: url('/Media/bck4.png') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 200px 0;
    border-bottom-left-radius: 20px;    
    border-bottom-right-radius: 20px; 
}

body.dark-mode .hero {
    background: url('/Media/bck5.png') center/cover no-repeat;

}

.hero .container {
    position: relative;
    z-index: 2;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #48FF47;
    color: #000000;
    background-color: #FFFFFF;
    font-weight: bold;
    text-decoration: none;
    margin-top: 51px;
    font-size: 22px;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #21FF40;
    color: #FFFFFF;
}

/* الأقسام */
.section {
    padding: 60px 0;
}

.bg-light {
    background: #f9f9f9;
}

button.btn-primary {
    border: none;
    cursor: pointer;
}

/* الفوتر */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: .9rem;
}

footer a {
    color: #e67e22;
    text-decoration: none;
}

h1 {
    color: white;
    font-weight: bold;
    font-size: 30px;
    text-align: center;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    bottom: 14px;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.sidebar.open {
    transform: translateX(0);
    width: 10%;
    border-radius: 15px;
}

.sidebar .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 20px;
}

.sidebar-toggle {
    position: fixed;
    top: 100px;
    display: none;
    right: 20px;
    background: #24C63B;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
    border-radius: 4px;
}

.sidebar .sidebar-links {
    list-style: none;
    display: flex;
    gap: 18px;
    padding: 17px;
    flex-direction: column;
}

.sidebar .sidebar-links li {
    margin-bottom: 15px;
}

.sidebar .sidebar-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.sidebar .sidebar-links a:hover {
    transform: translateY(-3px) scale(1.05);
    /* يتحرك لفوق ويكبر شوية */
    color: #ffd700;
    /* يغير لونه كمان */
}

.sidebar .logo img {
    width: 100%;
    max-width: 150px;
    margin-bottom: 0px;
}

.logo a {

    display: inline-block;

    background-color: #eeecec83;

    padding: 5px;

    border-radius: 12px;

    box-shadow: 0 2px 8px rgb(48, 44, 44);

    transition: all 1.3s ease;

}

.logo a:hover {

    background-color: rgba(167, 164, 162, 0.445);

    transform: scale(1.05) rotate(360deg);

}

.logo img {

    height: 85px;

    display: block;

    border-radius: 12px;

}

.caprasimo-regular {

    font-family: "Caprasimo", serif;

    font-weight: 400;

    font-style: normal;

}

.whatsapp-container {
    text-align: center;
    position: fixed;
    /* لو الزر عائم */
    bottom: 20px;
    right: 20px;
}

.whatsapp-label {
    font-size: 14px;
    display: none;
    margin-bottom: 5px;
    color: #25D366;
    /* لون واتساب */
}

.whatsapp-float {
    font-size: 40px;
    color: white;
    background-color: #25D366;
    padding: 10px;
    border-radius: 50%;
    display: none;
    line-height: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: background-color 0.3s ease;
    width: 40px;
    height: 40px;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
}

i.fab.fa-whatsapp {
    bottom: 10px;
    color: #40BD37;
    font-size: 30px;
    z-index: 9999;
}

i.fab.fa-whatsapp:hover {
    color: #FFFFFF;
}


#pagination {
    text-align: center;
    margin-top: 20px;
}

#pagination button {
    margin: 0 5px;
    padding: 5px 10px;
    cursor: pointer;
}

#pagination .active {
    background-color: #333;
    color: white;
}

.filter-buttons {
    margin: 20px;
    text-align: center;
}

.filter-btn {
    padding: 5px 8px;
    margin: 5px;
    background-color: #FFFFFF;
    color: #000000;
    max-width: fit-content;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.filter-btn:hover {
    background-color: #2ae570;
}

body.dark-mode .filter-btn:hover {
    background-color: #2ae570;
}

body.dark-mode .filter-btn {
    background-color: rgb(255 255 255);
    color: #000000;

}

/* ====== الجاليري ====== */
.swipe-hint {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    z-index: 10;
    animation: pulseSwipe 2s infinite;
}

@keyframes pulseSwipe {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
}

.carousel-container {
    width: 100%;
    height: 584px;
    position: relative;
    perspective: 1000px;
    overflow: hidden;
}

.carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.card {
    position: absolute;
    width: 280px;
    height: 380px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.8s ease;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center {
    z-index: 10;
    transform: scale(1.1);
}

.left-1 {
    z-index: 5;
    transform: translateX(-200px) scale(0.9);
    opacity: 0.9;
}

.left-2 {
    z-index: 1;
    transform: translateX(-400px) scale(0.8);
    opacity: 0.7;
}

.right-1 {
    z-index: 5;
    transform: translateX(200px) scale(0.9);
    opacity: 0.9;
}

.right-2 {
    z-index: 1;
    transform: translateX(400px) scale(0.8);
    opacity: 0.7;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.hidden-filter {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: 0.4s ease;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.nav-arrow.left {
    left: 15px;
    width: 36px;
    height: 33px;
}



.fa-solid {
    font-weight: 900;
    align-items: center;
    text-align: center;
    left: 0;
    bottom: 0px;
    font-size: 25px;
    position: relative;
}

.nav-arrow.right {
    right: 15px;
    width: 36px;
    height: 33px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    margin: 20px;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: #4790fd;
    color: white;
    border-radius: 5px;
    transition: 0.3s ease;
}

.filter-btn:hover {
    background: #39cb52;
}

.popup {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 32px;
    color: white;
    cursor: pointer;
}

/* ====== Popup ====== */
/* زرار الإغلاق */

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;

}

/* زوم الصورة */
.popup img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.popup img.zoomed {
    transform: scale(1.5);
    /* حجم أكبر */
    cursor: zoom-out;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.popup.active {
    display: flex;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .dark-mode-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #222;
        color: #fff;
        border: none;
        width: 50px;
        height: 50px;
        padding: 10px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 21px;
        z-index: 2000;
    }

    .card.hidden-filter {
        opacity: 0;
        transform: scale(0.7);
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .card.left-2,
    .card.right-2 {
        display: none;
    }

    .carousel-container,
    .carousel-track {
        max-width: 100%;
        overflow: hidden;
        height: 320px;

    }

    .carousel-track {
        width: 100%;

        height: 100%;

        display: flex;

        justify-content: center;

        align-items: center;

        position: relative;

        transform-style: preserve-3d;

        transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    }

    .section {
        font-size: 17px;
        position: relative;
        padding-top: 55px;
        bottom: 50px;

    }

    .card {
        position: absolute;
        width: 150px;
        height: 240px;
        background: white;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        cursor: pointer;
    }

    .card img {

        width: 100%;

        height: 100%;

        object-fit: cover;

        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    }

    .card.center {

        z-index: 10;

        transform: scale(0.9) translateZ(0);

    }

    .card.center img {

        filter: none;

    }

    .card.left-2 {

        z-index: 2;

        transform: translateX(-100px) scale(0.6) translateZ(-10px);

        opacity: 0.3;

    }

    .card.left-2 img {

        filter: grayscale(100%);

    }

    .card.left-1 {

        z-index: 2;

        transform: translateX(-100px) scale(0.5) translateZ(-60px);

        opacity: 0.7;

    }

    .card.left-1 img {

        filter: grayscale(100%);

    }

    .card.right-1 {

        z-index: 2;

        transform: translateX(100px) scale(0.5) translateZ(-60px);

        opacity: 0.7;

    }

    .card.right-1 img {

        filter: grayscale(100%);

    }

    .card.right-2 {

        z-index: 2;

        transform: translateX(120px) scale(0.3) translateZ(-140px);

        opacity: 0.7;

    }

    .card.right-2 img {

        filter: grayscale(100%);

    }

    .card.hidden {

        opacity: 0;

        pointer-events: none;

    }

    .whatsapp-container {
        text-align: center;
        position: fixed;
        /* لو الزر عائم */
        bottom: 130px;
        right: 25px;
        z-index: 9999;
        font-weight: bold;
    }

    .whatsapp-label {
        font-size: 14px;
        margin-bottom: 5px;
        color: #25D366;
        z-index: 9999;
        /* لون واتساب */
    }


    .whatsapp-float {
        position: fixed;
        bottom: 86px;
        right: 20px;
        background-color: #25D366;
        color: white;
        font-size: 26px;
        width: 50px;
        height: 50px;
        text-align: center;
        line-height: 60px;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 9999;
        transition: background-color 0.3s ease;
    }

    i.fab.fa-whatsapp {
        font-size: 35px;
        position: relative;
        top: 0px;
        color: #FFFFFF;
        z-index: 9999;
    }

    .hero {
        background: url('/Media/Bg1234.png') center/cover no-repeat;
        color: #fff;
        text-align: center;
        padding: 120px 0;
        position: relative;
        border-bottom-left-radius: 20px;    
    border-bottom-right-radius: 20px; 
    }


    .gallery img {
        height: 180px;
    }

    .navbar-links {
        display: none;
    }

    .burger {
        display: block;
    }

    #pagination {
        text-align: center;
        margin-top: 20px;
    }

    .btn-primary {
        display: none;
        padding: 12px 24px;
        background: #25d366;
        color: #fff;
        font-weight: bold;
        text-decoration: none;
        margin-top: 10px;
        font-size: 22px;
        border-radius: 4px;
        position: relative;
        top: 90px;
    }

    #pagination button {
        margin: 0 5px;
        padding: 5px 10px;
        cursor: pointer;
    }

    #pagination .active {
        background-color: #333;
        color: white;
    }

    body {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'tajwal' sans-serif;
    }

    .center-align {
        display: none;
    }

    footer {
        background: #333;
        color: #fff;
        text-align: center;
        padding: 20px 0;
        font-size: .9rem;
    }

    footer a {
        color: #e67e22;
        text-decoration: none;
    }

    .container {
        width: 90%;
        max-width: 1200px;
        margin: auto;
    }

    .sidebar-toggle {
        display: block;
        display: none;
        position: absolute;
        top: 2rem;
        right: 20px;
        background: #4DBC1B;
        color: white;
        border: none;
        padding: 10px 15px;
        font-size: 30px;
        cursor: pointer;
        z-index: 10000;
        border-radius: 4px;
    }

    /* #endregion */

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        display: none;
        height: 68%;
        width: 50px;
        background-color: #2C3E50;
        color: white;
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 9999;
    }

    .sidebar.open {
        position: absolute;
        align-items: center;
        justify-content: center;
        transform: translateX(0);
        width: 40%;
        height: 68%;
        right: 0px;
        border-radius: 15px;
    }

    .sidebar .logo img {
        width: 100%;
        max-width: 150px;
        height: 100px;
        margin-bottom: 0px;
    }

    .nav-arrow.left {
        left: 20px;
        width: 0px;
        height: 38px;
    }



    .fa-solid {
        font-weight: 900;
        align-items: center;
        text-align: center;
        left: 12px;
        bottom: 3px;
        font-size: 25px;
        position: relative;
    }

    .nav-arrow.right {
        right: 20px;
        width: 0px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .nav-arrow.left {
        left: 20px;
        width: 0px;
        height: 38px;
    }

    .dark-mode-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #222;
        color: #fff;
        border: none;
        width: 50px;
        height: 50px;
        padding: 10px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 21px;
        z-index: 2000;
    }

    .fa-solid {
        font-weight: 900;
        align-items: center;
        text-align: center;
        left: 12px;
        bottom: 3px;
        font-size: 25px;
        position: relative;
    }

    .nav-arrow.right {
        right: 20px;
        width: 0px;
        height: 38px;
    }

    .whatsapp-container {
        text-align: center;
        position: fixed;
        /* لو الزر عائم */
        bottom: 20px;
        right: 20px;
        z-index: 999;
    }

    .whatsapp-label {
        font-size: 14px;
        margin-bottom: 5px;
        color: #25D366;
        /* لون واتساب */
    }

    .whatsapp-float {
        font-size: 40px;
        color: white;
        background-color: #25D366;
        padding: 10px;
        border-radius: 50%;
        display: inline-block;
        line-height: 40px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
        transition: background-color 0.3s ease;
        width: 40px;
        height: 40px;
        text-decoration: none;
    }

    .whatsapp-float:hover {
        background-color: #1ebe57;
    }



    .hero {
        background: url('/Media/Bg1234.png') center/cover no-repeat;
        color: #fff;
        text-align: center;
        padding: 120px 0;
        position: relative;
        border-bottom-left-radius: 20px;    
    border-bottom-right-radius: 20px; 
    }


    h1 {
        font-size: 22px;
    }

    .gallery img {
        height: 150px;
    }

    body {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'tajwal' sans-serif;
    }

    .center-align {
        display: none;
    }

    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        box-shadow: -0px -7px 50px #3A4CFF;
        position: fixed;
        left: 0;
        right: 0;
        top: 53.3rem;
        padding: 10px 6px;
    }

    body {

        padding: 0px;
        margin: 0px;

    }

    .sidebar-toggle {
        position: absolute;
        display: none;
        top: 2rem;
        right: 20px;
        background: #19B924;
        color: white;
        border: none;
        padding: 10px 15px;
        font-size: 30px;
        cursor: pointer;
        z-index: 10000;
        border-radius: 4px;
    }

    /* #endregion */

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 50px;
        background-color: #2C3E50;
        color: white;
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 9999;
    }

    .sidebar.open {
        position: absolute;
        transform: translateX(0);
        width: 50%;
        height: 68%;
        right: -12px;
        border-radius: 15px;
    }

    .sidebar .logo img {
        width: 100%;
        max-width: 150px;
        height: 100px;
        margin-bottom: 0px;
    }

    .category-buttons a {

        padding: 10px 16px;

        font-size: 14px;

    }



    .info {

        font-size: 14px;

    }



    .logo img {

        height: 40px;
        width: auto;
    }

}

@media (max-width: 600px) {
    .card.hidden-filter {
        opacity: 0;
        transform: scale(0.7);
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .dark-mode-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #222;
        color: #fff;
        border: none;
        width: 50px;
        height: 50px;
        padding: 10px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 21px;
        z-index: 2000;
    }

    .card.left-2,
    .card.right-2 {
        display: none;
    }

    .carousel-container,
    .carousel-track {
        max-width: 100%;
        overflow: hidden;
        height: 320px;

    }

    .carousel-track {
        width: 100%;

        height: 100%;

        display: flex;

        justify-content: center;

        align-items: center;

        position: relative;

        transform-style: preserve-3d;

        transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    }

    .section {
        font-size: 17px;
        position: relative;
        padding-top: 55px;
        bottom: 50px;

    }

    .card {
        position: absolute;
        width: 150px;
        height: 240px;
        background: white;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        cursor: pointer;
    }

    .card img {

        width: 100%;

        height: 100%;

        object-fit: cover;

        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    }

    .card.center {

        z-index: 10;

        transform: scale(0.9) translateZ(0);

    }

    .card.center img {

        filter: none;

    }

    .card.left-2 {

        z-index: 2;

        transform: translateX(-100px) scale(0.6) translateZ(-10px);

        opacity: 0.3;

    }

    .card.left-2 img {

        filter: grayscale(100%);

    }

    .card.left-1 {

        z-index: 2;

        transform: translateX(-100px) scale(0.5) translateZ(-60px);

        opacity: 0.7;

    }

    .card.left-1 img {

        filter: grayscale(100%);

    }

    .card.right-1 {

        z-index: 2;

        transform: translateX(100px) scale(0.5) translateZ(-60px);

        opacity: 0.7;

    }

    .card.right-1 img {

        filter: grayscale(100%);

    }

    .card.right-2 {

        z-index: 2;

        transform: translateX(120px) scale(0.3) translateZ(-140px);

        opacity: 0.7;

    }

    .card.right-2 img {

        filter: grayscale(100%);

    }

    .card.hidden {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }



    .whatsapp-container {
        text-align: center;
        position: fixed;
        /* لو الزر عائم */
        bottom: 130px;
        right: 25px;
        z-index: 9999;
        font-weight: bold;
    }

    .whatsapp-label {
        font-size: 14px;
        margin-bottom: 5px;
        color: #25D366;
        z-index: 9999;
        /* لون واتساب */
    }


    .whatsapp-float {
        position: fixed;
        bottom: 86px;
        right: 20px;
        background-color: #25D366;
        color: white;
        font-size: 26px;
        width: 50px;
        height: 50px;
        text-align: center;
        line-height: 60px;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 9999;
        transition: background-color 0.3s ease;
    }

    i.fab.fa-whatsapp {
        font-size: 35px;
        position: relative;
        top: 0px;
        color: #FFFFFF;
        z-index: 9999;
    }

    .hero {
        background: url('/Media/Bg1234.png') center/cover no-repeat;
        color: #fff;
        text-align: center;
        padding: 120px 0;
        position: relative;
        border-bottom-left-radius: 20px;    
    border-bottom-right-radius: 20px; 
    }



    #pagination {
        text-align: center;
        margin-top: 20px;
    }

    .btn-primary {
        display: none;
        padding: 12px 24px;
        background: #25d366;
        color: #fff;
        font-weight: bold;
        text-decoration: none;
        margin-top: 10px;
        font-size: 22px;
        border-radius: 4px;
        position: relative;
        top: 90px;
    }


    #pagination button {
        margin: 0 5px;
        padding: 5px 10px;
        cursor: pointer;
    }

    #pagination .active {
        background-color: #333;
        color: white;
    }

    body {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'tajwal' sans-serif;
    }

    .center-align {
        display: none;
    }

    .container {
        width: 90%;
        max-width: 1200px;
        margin: auto;
    }

    footer {
        background: #333;
        color: #fff;
        text-align: center;
        padding: 10px 0;
        font-size: .9rem;
    }

    footer a {
        color: #e67e22;
        text-decoration: none;
    }

    /* #endregion */



    /* #region nav */
    .sidebar-toggle {
        display: none;
        position: absolute;
        top: 2rem;
        right: 20px;
        background: #1AAE46;
        color: white;
        border: none;
        padding: 10px 15px;
        font-size: 30px;
        cursor: pointer;
        z-index: 10000;
        border-radius: 4px;
    }

    /* #endregion */

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        height: 68%;
        width: 50px;
        background-color: #2C3E50;
        color: white;
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 9999;
    }

    .sidebar.open {
        position: absolute;
        align-items: center;
        justify-content: center;
        transform: translateX(0);

        width: 40%;
        height: 68%;
        right: 0px;
        border-radius: 15px;
    }

    .sidebar .logo img {
        width: 100%;
        max-width: 150px;
        height: 100px;
        margin-bottom: 0px;
    }



    input,
    select,
    textarea {
        display: block;
        width: 100%;
        margin: 10px 0;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    textarea {
        height: 100px;
        resize: vertical;
    }

    #closeDialog {
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    #closeDialog:hover {
        background-color: #c0392b;
        transform: scale(1.05);
    }

    button {
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    button:hover {
        background-color: #0056b3;
    }



    /* #endregion */



    /* #region icons */

    .whatsapp-container {
        text-align: center;
        position: fixed;
        /* لو الزر عائم */
        bottom: 130px;
        right: 25px;
        font-weight: bold;
    }

    .whatsapp-label {
        font-size: 14px;
        margin-bottom: 5px;
        color: #25D366;
        /* لون واتساب */
    }


    .whatsapp-float {
        position: fixed;
        bottom: 86px;
        right: 20px;
        background-color: #25D366;
        color: white;
        font-size: 26px;
        width: 30px;
        height: 30px;
        text-align: center;
        line-height: 60px;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
        transition: background-color 0.3s ease;
    }

    i.fab.fa-whatsapp {
        font-size: 35px;
        position: relative;
        top: -10px;
    }

    /* #region logo and nav links*/
    .logo img {
        height: 40px;
        padding: 0px 0px;
    }

    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        box-shadow: -0px -7px 50px #3A4CFF;
        position: fixed;
        left: 0;
        right: 0;
        top: 90.2%;
    }

    .nav-links {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li a {
        font-size: 11px;
        position: relative;
        font-weight: bold;
        box-shadow: 0px 0px 15px #FFFFFF;
    }

    .nav-links li a:hover {
        background-color: #25D366;

    }

    .nav-arrow.left {
        left: 20px;
        width: 0px;
        height: 38px;
    }



    .fa-solid {
        font-weight: 900;
        align-items: center;
        text-align: center;
        left: 12px;
        bottom: 3px;
        font-size: 25px;
        position: relative;
    }

    .nav-arrow.right {
        right: 20px;
        width: 0px;
        height: 38px;
    }

    /* #endregion */
}

@media (max-width: 575.98px) {
    .carousel-container {
        height: 400px;
    }

    .dark-mode-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #222;
        color: #fff;
        border: none;
        width: 50px;
        height: 50px;
        padding: 10px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 21px;
        z-index: 2000;
    }

    .card {
        width: 220px;
        height: 300px;
    }

    .filter-buttons {
        flex-wrap: wrap;
        gap: 5px;
        margin: 10px;
    }

    .filter-btn {
        font-size: 14px;
        padding: 8px 14px;
    }

    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .popup-img {
        max-width: 95%;
        max-height: 80%;
    }

    .close {
        top: 20px;
        right: 20px;
        font-size: 26px;
    }

    .nav-arrow.left {
        left: 20px;
        width: 0px;
        height: 38px;
    }



    .fa-solid {
        font-weight: 900;
        align-items: center;
        text-align: center;
        left: 12px;
        bottom: 3px;
        font-size: 25px;
        position: relative;
    }

    .nav-arrow.right {
        right: 20px;
        width: 0px;
        height: 38px;
    }
}

/* موبايلات وتابلت متوسط - عرض أقل من 768px */
@media (max-width: 767.98px) {
    .dark-mode-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #222;
        color: #fff;
        border: none;
        width: 50px;
        height: 50px;
        padding: 10px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 21px;
        z-index: 2000;
    }

    .carousel-container {
        height: 460px;
    }

    .dark-mode-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #222;
        color: #fff;
        border: none;
        width: 50px;
        height: 50px;
        padding: 10px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 21px;
        z-index: 2000;
    }

    .card {
        width: 240px;
        height: 320px;
    }

    .nav-arrow.left {
        left: 20px;
        width: 0px;
        height: 38px;
    }



    .fa-solid {
        font-weight: 900;
        align-items: center;
        text-align: center;
        left: 12px;
        bottom: 3px;
        font-size: 25px;
        position: relative;
    }

    .nav-arrow.right {
        right: 20px;
        width: 0px;
        height: 38px;
    }

    .popup-img {
        max-width: 90%;
        max-height: 85%;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 15px;
    }
}

/* تابلت وأجهزة عرض متوسط - عرض أقل من 992px */