﻿:root {
    --blue: #0268c2;
    --blue-dark: #07509c;
    --blue-hover: #1a5fd680;
    --blue-soft: #e8f3ff;
    --teal: #21e0dd;
    --card-shadow: rgba(2, 104, 194, 0.12);

    /* Semantic surface tokens (flipped by the dark theme) */
    --site-bg: #f4f8fd;
    --site-bg-top: #eaf3fc;
    --surface: #ffffff;
    --surface-2: #f6fbff;
    --surface-soft: #f0f7ff;
    --border: #dcebf7;
    --text: #33495f;
    --text-muted: #7a8fa2;
    --text-strong: #1f2b38;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(180deg, var(--site-bg-top) 0, var(--site-bg) 260px) var(--site-bg);
    font-family: "DM Serif Display", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    font-size: 1rem;
    color: var(--text);
    overflow-x: hidden;
}

/* ==============================
   LOGO HEADER
============================== */

.s0 {
    width: 100%;
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 100%;
    padding: 22px 0 10px;
}

.logo-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-group .logo {
    display: block;
    width: auto;
    max-width: 250px;
    max-height: 170px;
    object-fit: contain;
}

.logo-group .logo-text {
    margin: 0;
    font-family: "DM Serif Display", serif;
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1;
    color: var(--blue);
}

/* Brand text */

.brand-logo {
    max-width: 600px;
    margin: 0;
    font-family: "DM Serif Display", serif;
    font-size: 25px;
    font-weight: 200;
    line-height: 1;
    color: var(--blue-dark);
    text-align: center;
}

.brand-logo [lang="ar"] {
    display: block;
    margin-top: 8px;
    font-family: "Katibeh", serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.2;
}

/* CNAS / CASNOS / CNMSS */

.cnas-logo,
.casnos-logo,
.cnmss-logo {
    width: auto;
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
}

/* ==============================
   NAVBAR
============================== */

.navbar {
    width: 100%;
    margin: 24px 0 0;
    padding: 8px 0;
    background-color: var(--surface);
    border-top: 3px solid var(--blue);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(2, 104, 194, 0.10);
}

.navbar .container {
    gap: 16px;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: var(--blue);
    text-decoration: none;
    padding-right: 18px;
    margin-right: 4px;
    border-right: 1px solid #cfe0f2;
    transition: color 0.2s ease;
}

.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus {
    color: var(--blue-hover);
}

.navbar .navbar-collapse {
    justify-content: center;
}

.navbar .navbar-nav {
    gap: 6px;
}

.navbar .nav-link {
    color: #1d5f9e;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--blue);
    background-color: #e8f3ff;
}

.navbar .navbar-toggler {
    border: 2px solid var(--blue);
    border-radius: 10px;
    color: var(--blue);
}

.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(2, 104, 194, 0.25);
}

.navbar .dropdown-menu {
    border: 0;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 24px rgba(2, 104, 194, 0.18);
    min-width: 15rem;
    background-color: var(--surface);
}

.navbar .dropdown-item {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--blue);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: var(--blue);
    color: #ffffff;
}

.navbar .dropdown-item i {
    margin-right: 8px;
}

/* Language switcher */

.group-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e6eef7;
}

.group-lang .lang {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 2px solid var(--blue);
    border-radius: 50%;
    background-color: var(--surface);
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.group-lang .lang:hover,
.group-lang .lang:focus {
    background-color: var(--blue);
    color: #ffffff;
}

/* ==============================
   SLIDER
============================== */

.s1 {
    width: 100%;
    flex: 1 0 auto;
}

.slider {
    position: relative;
    width: 100%;
    margin: 19px 0 0;
    overflow: hidden;
}

.slider .slider-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit:contain;
    object-position: center;
}

.slider .slider-arrow {
    position: absolute;
    bottom: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid var(--blue);
    opacity: 40%;
    border-radius: 50%;
    background-color: var(--surface);
    color: var(--blue);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 104, 194, 0.25);
    z-index: 2;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.slider .slider-arrow.prev {
    left: 18px;
}

.slider .slider-arrow.next {
    right: 18px;
}

.slider .slider-arrow:hover {
    background-color: var(--blue);
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

/* Slider dots */

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    /* display: flex; */
    gap: 8px;
    z-index: 2;
    display: none; /* Hide the dots by default */
}

.slider-dot {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #0a7ebd;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.slider-dot:hover {
    transform: scale(1.25);
}

.slider-dot.active {
    background-color: var(--blue);
    border-color: #ffffff;
}

/* ==============================
   CARD
============================== */

.s1 .card {
    margin: 42px 0;
    border: 0;
    border-radius: 16px;
    background-color: var(--surface);
    box-shadow: 0 6px 24px var(--card-shadow);
    overflow: hidden;
}

.s1 .card-img-top {
    width: 100%;
    max-height: 300px;
    padding: 28px;
    object-fit: contain;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

@media screen and (min-width: 481px) and (max-width: 767px) {
    .slider .slider-image {
        height: auto;
    }
}

.s1 .card-body {
    padding: 30px;
}

.s1 .card-title {
    font-family: "DM Serif Display", serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--blue);
    margin-bottom: 10px;
}

.s1 .card-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a5c6e;
}

/* ==============================
   AJAX LOADING STATE
============================== */

#content {
    position: relative;
    min-height: 200px;
}

#content.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(2, 104, 194, 0.06), transparent 60%),
        rgba(244, 248, 253, 0.55);
}

#content.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 4px solid rgba(2, 104, 194, 0.2);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: pbl-spin 0.8s linear infinite;
    z-index: 2;
}

@keyframes pbl-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==============================
   ERROR PAGES (404 / 500 / 403)
============================== */

.error-card {
    margin: 60px 0;
    padding: 40px 20px;
    border: 0;
    border-radius: 16px;
    background-color: var(--surface);
    box-shadow: 0 6px 24px var(--card-shadow);
}

.error-card .error-code {
    font-family: "DM Serif Display", serif;
    font-size: 6rem;
    font-weight: 600;
    line-height: 1;
    color: var(--blue);
    text-shadow: 2px 2px 0 rgba(2, 104, 194, 0.15);
    margin-bottom: 8px;
}

.error-card .card-title {
    font-family: "DM Serif Display", serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--blue-dark);
    margin-bottom: 12px;
}

.error-card .card-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a5c6e;
    max-width: 420px;
    margin: 0 auto 24px;
}

.error-card .btn-error {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border: 2px solid var(--blue);
    border-radius: 12px;
    background-color: var(--blue);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.error-card .btn-error:hover,
.error-card .btn-error:focus {
    background-color: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

@media screen and (max-width: 480px) {
    .error-card .error-code {
        font-size: 4.5rem;
    }

    .error-card .card-title {
        font-size: 1.6rem;
    }
}

/* ==============================
   FOOTER
============================== */

footer {
    width: 100%;
    margin-top: auto;
    padding: 50px 0 0;
    background: linear-gradient(120deg, var(--blue-dark), var(--blue));
    color: #eaf4ff;
}

footer p {
    margin-bottom: 8px;
}

.s2 {
    padding-bottom: 36px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.s2 a {
    color: #cfe6ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.s2 a:hover,
.s2 a:focus {
    color: #ffffff;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.social-pair {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    min-height: 42px;
}

.social-links a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 42px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-links a i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 1.15rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-links a span {
    font-size: 0.72rem;
    font-weight: 500;
    color: #cfe6ff;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus {
    transform: translateY(-2px);
}

.social-links a:hover i,
.social-links a:focus i {
    background-color: var(--teal);
    color: #004e8c;
}

.social-links a:hover span,
.social-links a:focus span {
    color: #ffffff;
}

@media screen and (max-width: 1000px) {
    .social-links a {
        flex-direction: column;
        gap: 4px;
        min-height: auto;
    }

    .social-pair {
        gap: 20px;
        min-height: 62px;
    }
}

/* Developed-by strip */

.s3 {
    padding: 14px 16px;
    background: var(--blue-dark);
    color: #cfe6ff;
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.s3 p {
    margin: 0;
}

.s3 a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.s3 a:hover,
.s3 a:focus {
    color: #ffffff;
    text-decoration: underline;
}

@media screen and (min-width: 768px) {
    footer .social-links {
        margin-top: 0;
    }

    footer .row > [class*="col-"] + [class*="col-"] {
        border-left: 1px solid rgba(255, 255, 255, 0.22);
        padding-left: 24px;
    }
}

/* ==============================
   ABOUT PAGE
============================== */

.about-logo {
    display: block;
    width: auto;
    max-width: 260px;
    max-height: 180px;
    margin: 0 auto 28px;
    object-fit: contain;
}

/* ==============================
   CONTACT PAGE
============================== */

.contact-map {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--card-shadow);
}

.contact-map-wrap {
    width: 100%;
    margin-top: 20px;
}

.contact-map-wrap iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 380px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--card-shadow);
}

.contact-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 20px;
}

.contact-info-row a,
.contact-info-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid var(--blue);
    border-radius: 12px;
    background-color: var(--surface);
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-info-row a:hover,
.contact-info-row a:focus {
    background-color: var(--blue);
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-info-row a.whatsapp:hover {
    background-color: #25d366;
    border-color: #25d366;
}

.contact-info-row a.facebook:hover {
    background-color: #1877f2;
    border-color: #1877f2;
}

@media screen and (max-width: 480px) {
    .about-logo {
        max-width: 180px;
        max-height: 130px;
    }

    .contact-map {
        height: 260px;
    }

    .contact-map-wrap iframe {
        height: 260px;
    }

    .contact-info-row a,
    .contact-info-row span {
        font-size: 0.88rem;
        padding: 8px 14px;
    }
}

/* ==============================
   TABLET
============================== */

@media screen and (max-width: 991px) {
    .navbar {
        padding: 8px 0;
    }

    .navbar .container {
        gap: 8px;
    }

    .navbar .navbar-collapse {
        width: 100%;
        padding-top: 10px;
        text-align: center;
    }

    .navbar .navbar-nav {
        width: 100%;
        gap: 4px;
    }

    .navbar .nav-item {
        width: 100%;
        text-align: center;
    }

    .navbar .dropdown-menu {
        position: static;
        width: 100%;
        max-width: 340px;
        margin: 6px auto 0;
        text-align: center;
    }
}

/* ==============================
   MOBILE LOGO LAYOUT
============================== */

@media screen and (max-width: 835px) {
    .logo-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "main main main"
            "brand brand brand"
            "cnas casnos cnmss";
        align-items: center;
        justify-items: center;
        gap: 12px;
        width: 100%;
        padding: 14px 10px;
    }

    .logo-group {
        grid-area: main;
        gap: 8px;
    }

    .logo-group .logo {
        width: auto;
        max-height: 100px;
    }

    .logo-group .logo-text {
        font-size: 1.5rem;
    }

    .brand-logo {
        grid-area: brand;
        width: 100%;
        max-width: 520px;
        margin: 4px 0 10px;
        font-size: 25px;
        line-height: 1.35;
    }

    .brand-logo [lang="ar"] {
        font-size: 25px;
    }

    .cnas-logo {
        grid-area: cnas;
    }

    .casnos-logo {
        grid-area: casnos;
    }

    .cnmss-logo {
        grid-area: cnmss;
    }

    .cnas-logo,
    .casnos-logo,
    .cnmss-logo {
        width: auto;
        max-height: 90px;
        object-fit: contain;
    }

    /* Slider */

    .slider {
        margin: 20px 0 0;
    }

    .slider .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .slider .slider-arrow.prev {
        left: 10px;
    }

    .slider .slider-arrow.next {
        right: 10px;
    }
}

/* ==============================
   SMALL MOBILE
============================== */

@media screen and (max-width: 480px) {
    .logo-container {
        gap: 10px;
        padding: 10px 5px;
    }

    .logo-group .logo {
        width: auto;
        max-height: 100px;
    }

    .logo-group .logo-text {
        font-size: 1.5rem;
    }

    .brand-logo {
        max-width: 95%;
        font-size: 20px;
        line-height: 1.3;
    }

    .brand-logo [lang="ar"] {
        font-size: 20px;
    }

    .cnas-logo,
    .casnos-logo,
    .cnmss-logo {
        width: auto;
        max-height: 85px;
    }

    .navbar {
        margin: 16px 0 0;
        padding: 6px 0;
    }

    .navbar .navbar-brand {
        font-size: 1.75rem;
        padding-right: 14px;
        margin-right: 2px;
    }

    .group-lang {
        gap: 6px;
    }

    .s1 .card-body {
        padding: 20px;
    }

    .s1 .card-img-top {
        padding: 12px;
        max-height: 190px;
    }

    .s1 .card-title {
        font-size: 1.6rem;
    }

    .slider .slider-image {
        height: auto;
    }

    .slider .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .slider .slider-arrow.prev {
        left: 8px;
    }

    .slider .slider-arrow.next {
        right: 8px;
    }

    .social-links {
        gap: 14px;
    }

    .social-links a i {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ==============================
   BENEFIT PAGE â€” POST LAYOUT
============================== */

.benefit-post {
    margin: 42px 0;
    border-radius: 16px;
    background-color: var(--surface);
    box-shadow: 0 6px 24px var(--card-shadow);
    overflow: hidden;
}

.benefit-post-image {
    width: 100%;
    padding: 36px 28px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-post-image img {
    max-width: 220px;
    max-height: 160px;
    object-fit: contain;
}

.benefit-post-body {
    padding: 36px 40px 44px;
}

.benefit-title {
    font-family: "DM Serif Display", serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--blue);
    margin-bottom: 8px;
    line-height: 1.2;
}

.benefit-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6a7d92;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e4edf5;
}

/* Steps */

.benefit-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eef4fa;
}

.benefit-step:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.benefit-step-number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #ffffff;
    font-family: "DM Serif Display", serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(2, 104, 194, 0.25);
}

.benefit-step-content {
    flex: 1;
    min-width: 0;
}

.benefit-step-title {
    font-family: "DM Serif Display", serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--blue-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.benefit-step-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #4a5c6e;
}

.benefit-related {
    margin-top: 10px;
    font-size: 0.92rem;
    color: #6a7d92;
}

.benefit-related i {
    color: var(--blue);
    margin-right: 4px;
}

/* Documents list */

.benefit-documents {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.benefit-documents li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #4a5c6e;
}

.benefit-documents li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--blue);
}

/* Convention logos */

.benefit-conventions {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.benefit-convention-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid var(--blue);
    border-radius: 10px;
    background-color: var(--surface-2);
}

.benefit-convention-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.benefit-convention-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--blue-dark);
}

/* Contact bar */

.benefit-contact {
    margin-top: 36px;
    padding: 24px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--surface-soft), var(--surface-2));
    border: 1px solid var(--border);
    text-align: center;
}

.benefit-contact p {
    margin-bottom: 14px;
    font-size: 1.02rem;
    color: #4a5c6e;
}

.benefit-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.benefit-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid var(--blue);
    border-radius: 10px;
    background-color: var(--surface);
    color: var(--blue);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.benefit-contact-links a:hover,
.benefit-contact-links a:focus {
    background-color: var(--blue);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Benefit responsive */

@media screen and (max-width: 767px) {
    .benefit-post-body {
        padding: 24px 20px 32px;
    }

    .benefit-title {
        font-size: 1.7rem;
    }

    .benefit-subtitle {
        font-size: 0.98rem;
        margin-bottom: 28px;
        padding-bottom: 22px;
    }

    .benefit-step {
        gap: 14px;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .benefit-step-number {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .benefit-step-title {
        font-size: 1.15rem;
    }

    .benefit-step-text {
        font-size: 0.95rem;
    }

    .benefit-conventions {
        gap: 10px;
    }

    .benefit-convention-item {
        padding: 6px 12px;
    }

    .benefit-convention-item img {
        width: 30px;
        height: 30px;
    }

    .benefit-contact {
        padding: 18px 16px;
    }

    .benefit-contact-links {
        flex-direction: column;
        align-items: center;
    }
}

/* ==============================
   PRODUCTS PAGE
============================== */

.products-header {
    text-align: center;
    margin-bottom: 36px;
    padding: 42px 20px 0;
}

.products-title {
    font-family: "DM Serif Display", serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--blue);
    margin-bottom: 8px;
}

.products-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6a7d92;
    max-width: 520px;
    margin: 0 auto;
}

/* Catalog grid */

.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 42px;
}

/* Products filter toolbar */

.products-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 30px;
}

.products-search-box {
    position: relative;
    flex: 1 1 260px;
    min-width: 220px;
}

.products-search-box .bi {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aaabd;
    pointer-events: none;
}

.products-search-box .form-control {
    padding-left: 40px;
    height: 48px;
    border-radius: 12px;
}

.products-filter-select .form-select {
    height: 48px;
    min-width: 200px;
    border-radius: 12px;
}

.catalog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px 26px;
    border-radius: 16px;
    background-color: var(--surface);
    border: 2px solid var(--border);
    box-shadow: 0 4px 16px rgba(2, 104, 194, 0.06);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.catalog-card:hover,
.catalog-card:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 8px 28px rgba(2, 104, 194, 0.14);
    transform: translateY(-4px);
    outline: none;
}

.catalog-emoji {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 14px;
}

.catalog-emoji .catalog-ico-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: inline-block;
}

.catalog-name {
    font-family: "DM Serif Display", serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--blue-dark);
    margin-bottom: 6px;
}

.catalog-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #7a8fa2;
    margin-bottom: 14px;
}

.catalog-count {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background-color: var(--surface-soft);
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Products view */

.products-view {
    padding-bottom: 42px;
}

.products-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid var(--blue);
    border-radius: 10px;
    background-color: var(--surface);
    color: var(--blue);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-bottom: 24px;
}

.products-back:hover,
.products-back:focus-visible {
    background-color: var(--blue);
    color: #ffffff;
}

.products-catalog-title {
    font-family: "DM Serif Display", serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--blue);
    margin-bottom: 28px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(2, 104, 194, 0.06);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 8px 28px rgba(2, 104, 194, 0.14);
    transform: translateY(-3px);
}

.product-img-wrap {
    width: 100%;
    flex: 1 1 50%;
    min-height: 180px;
    padding: 24px 20px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrap img {
    width: auto;
    max-width: 75%;
    max-height: 150px;
    object-fit: contain;
}

.product-body {
    padding: 0 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 20px;
    background-color: #f0f7ff;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-name {
    font-family: "DM Serif Display", serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--blue-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #5a6d7f;
    flex: 1;

    /* اختصار النص */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    cursor: pointer;
    transition: all 0.3s ease;
}

.products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #7a8fa2;
}

.products-empty i {
    font-size: 3rem;
    margin-bottom: 14px;
    display: block;
    color: #c0cede;
}

.products-empty p {
    font-size: 1.05rem;
}

/* Products responsive â€” tablet */

@media screen and (max-width: 991px) {
    .catalogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Products responsive â€” mobile */

@media screen and (max-width: 576px) {
    .products-header {
        padding: 32px 10px 0;
    }

    .products-title {
        font-size: 1.7rem;
    }

    .products-subtitle {
        font-size: 0.98rem;
    }

    .catalogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .catalog-card {
        padding: 24px 14px 20px;
    }

    .catalog-emoji {
        font-size: 2.2rem;
    }

    .catalog-emoji .catalog-ico-img {
        width: 80px;
        height: 80px;
    }

    .catalog-name {
        font-size: 1rem;
    }

    .catalog-desc {
        font-size: 0.82rem;
        display: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .products-catalog-title {
        font-size: 1.4rem;
    }
}

/* ==============================
   PRODUCT MODAL WINDOW
============================== */

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 34, 58, 0.55);
    backdrop-filter: blur(2px);
    animation: pbl-fade-in 0.2s ease;
}

@keyframes pbl-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    background-color: var(--surface);
    box-shadow: 0 24px 60px rgba(2, 20, 45, 0.35);
    animation: pbl-modal-pop 0.25s ease;
}

@keyframes pbl-modal-pop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.product-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background-color: var(--surface);
    color: var(--blue);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-modal-close:hover,
.product-modal-close:focus-visible {
    background-color: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
    outline: none;
}

.product-modal-image {
    width: 100%;
    padding: 40px 28px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border-bottom: 1px solid var(--border);
}

.product-modal-image img {
    max-width: 400px;
    max-height: 340px;
    object-fit: contain;
}

.product-modal-body {
    padding: 28px 32px 36px;
    text-align: center;
}

.product-modal-title {
    font-family: "DM Serif Display", serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--blue-dark);
    margin-bottom: 10px;
}

.product-modal-catalog {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    background-color: var(--surface-soft);
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-modal-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5c6e;
}

/* Product modal responsive */

@media screen and (max-width: 576px) {
    .product-modal {
        padding: 12px;
    }

    .product-modal-dialog {
        max-height: 95vh;
    }

    .product-modal-image {
        padding: 28px 16px 16px;
    }

    .product-modal-image img {
        max-width: 320px;
        max-height: 280px;
    }

    .product-modal-body {
        padding: 20px 20px 28px;
    }

    .product-modal-title {
        font-size: 1.35rem;
    }
}

/* ==============================
   Standalone product page (/product/{id})
============================== */

.standalone-product {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 26px 64px -20px var(--card-shadow);
}

/* teal accent bar at the very top of the card */
.standalone-product::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--teal), var(--blue), var(--teal));
}

.standalone-product .card-body {
    padding: 34px 40px 44px;
}

.standalone-product-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 360px;
    padding: 56px 40px 32px;
    background:
        radial-gradient(120% 100% at 50% 0%, #ffffff 0%, var(--blue-soft) 46%, rgba(214, 236, 252, 0.45) 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* decorative dashed ring behind the product image */
.standalone-product-img::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px dashed rgba(2, 104, 194, 0.28);
}

.standalone-product-img img {
    position: relative;
    max-width: 420px;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 20px 26px rgba(7, 80, 156, 0.22));
}

.standalone-product-title {
    font-family: "DM Serif Display", serif;
    font-size: 2.1rem;
    font-weight: 400;
    color: var(--blue-dark);
    margin: 8px 0 6px;
}

.standalone-product-catalog {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.standalone-product-catalog .catalog-ico-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
}

.standalone-product-desc {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* bottom brand band */
.standalone-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface-soft), var(--surface-2));
}

.standalone-brand-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "DM Serif Display", serif;
    font-size: 1.02rem;
    color: var(--blue-dark);
}

.standalone-brand-name img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

.standalone-brand-cta {
    border-radius: 999px;
    padding: 9px 24px;
    font-weight: 600;
}

.standalone-back {
    margin-top: 26px;
}

/* product-not-found state */
.standalone-404 {
    margin-top: 12px;
}

.standalone-404 .standalone-product-catalog {
    background: var(--surface-soft);
}

/* small screens */
@media (max-width: 575.98px) {
    .standalone-product .card-body {
        padding: 26px 20px 32px;
    }

    .standalone-product-img {
        min-height: 250px;
        padding: 40px 20px 24px;
    }

    .standalone-product-img::before {
        width: 230px;
        height: 230px;
    }

    .standalone-product-img img {
        max-width: 300px;
        max-height: 220px;
    }

    .standalone-product-title {
        font-size: 1.55rem;
    }

    .standalone-brand {
        padding: 14px 18px;
    }
}
/* ==============================
