@font-face {
    font-family: 'devix';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/woff/YekanBakhFaNum-Regular.woff') format('woff'),url('../fonts/woff2/YekanBakhFaNum-Regular.woff2') format('woff2')
}

@font-face {
    font-family: 'devix';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/woff/YekanBakhFaNum-SemiBold.woff') format('woff'),url('../fonts/woff2/YekanBakhFaNum-SemiBold.woff2') format('woff2')
}

@font-face {
    font-family: 'devix';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/woff/YekanBakhFaNum-Bold.woff') format('woff'),url('../fonts/woff2/YekanBakhFaNum-Bold.woff2') format('woff2')
}

:root {
    --primary: #0a5e6c;
    --primary-dark: #064350;
    --primary-light: #0d7a8c;
    --secondary: #1a8a9a;
    --accent: #c89b3c;
    --accent-light: #d4af5e;
    --surface: #f5f7fa;
    --surface-alt: #eef2f5;
    --text: #1a2e35;
    --text-light: #5a6d75;
    --white: #ffffff;
    --border: #dde4e8;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow-sm: 0 2px 8px rgba(10, 94, 108, 0.06);
    --shadow: 0 4px 16px rgba(10, 94, 108, 0.08);
    --shadow-lg: 0 8px 32px rgba(10, 94, 108, 0.12);
    --shadow-xl: 0 16px 48px rgba(10, 94, 108, 0.15);
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
    --transition: 0.25s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'devix';
    background: var(--surface);
    color: var(--text);
    line-height: 1.8;
    margin: 0;
}

a { text-decoration: none; color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ── Top Bar ── */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--accent); }
.top-bar-icon { width: 16px; height: 16px; opacity: 0.7; }
.top-bar .separator { width: 1px; height: 14px; background: rgba(255,255,255,0.2); margin: 0 0.75rem; display: inline-block; vertical-align: middle; }

/* ── Main Header ── */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 3px solid var(--primary);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.site-brand img {
    height: 52px;
    width: auto;
}
.site-brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.4;
}
.site-brand-text small {
    font-size: 0.72rem;
    color: var(--text-light);
    display: block;
    letter-spacing: 0.5px;
}

/* ── Navigation ── */
.main-nav {
    background: var(--primary);
    position: relative;
    z-index: 1040;
}
.main-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.85rem 1.1rem;
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
    border-bottom-color: var(--accent);
}
.main-nav .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 200px;
    margin-top: 0;
}
.main-nav .dropdown-item {
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
    transition: all var(--transition);
}
.main-nav .dropdown-item:hover {
    background: var(--surface);
    color: var(--primary);
    padding-inline-start: 1.5rem;
}
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 0.4rem 0.7rem;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    left: auto;
    margin-top: -0.5rem;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu {
    display: block;
}

.dropdown-submenu > .dropdown-toggle::after {
    margin-right: 0.5rem;
    transform: rotate(90deg);
}

@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin: 0;
        padding-right: 1rem;
        border: 0;
        box-shadow: none;
    }
}

/* ── Language Switcher ── */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.lang-switch .lang-btn {
    padding: 0.3rem 0.65rem;
    border-radius: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}
.lang-switch .lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-switch .lang-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ── Hero Slider ── */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--secondary) 100%);
    min-height: 420px;
}
.hero-slide {
    min-height: 420px;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,67,80,0.92) 0%, rgba(10,94,108,0.75) 50%, rgba(26,138,154,0.55) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 3.5rem 0;
}
.hero-badge {
    display: inline-block;
    background: rgba(200,155,60,0.25);
    color: var(--accent-light);
    border: 1px solid rgba(200,155,60,0.35);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 2;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-slide[style*="background-image"] .hero-pattern { display: none; }
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    margin: 0 4px;
    opacity: 0.6;
}
.carousel-indicators .active {
    background: var(--accent);
    border-color: var(--accent);
    opacity: 1;
}

/* ── Optometrist Search Box ── */
.optometrist-search-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
}
.optometrist-search-box .search-input {
    padding-inline-start: 2.5rem;
}
.optometrist-search-box .search-box-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 0.75rem;
    pointer-events: none;
}

/* ── Nav Date ── */
.nav-date {
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.5rem 0;
    white-space: nowrap;
}
.nav-date-sep {
    margin: 0 0.4rem;
    opacity: 0.4;
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}
.section-header h2 {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.section-header p {
    color: var(--text-light);
    font-size: 0.92rem;
    max-width: 550px;
    margin: 1rem auto 0;
}
.section-title {
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--text);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    display: inline-block;
}

/* ── Service Cards ── */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: transform var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-icon-membership { background: rgba(10,94,108,0.1); color: var(--primary); }
.service-icon-events { background: rgba(200,155,60,0.12); color: var(--accent); }
.service-icon-papers { background: rgba(40,167,69,0.1); color: var(--success); }
.service-icon-library { background: rgba(23,162,184,0.1); color: var(--info); }
.service-icon-directory { background: rgba(111,66,193,0.1); color: #6f42c1; }
.service-icon-gallery { background: rgba(220,53,69,0.1); color: var(--danger); }
.service-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}
.service-card p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.8;
}

/* ── News Cards ── */
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.news-card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
    overflow: hidden;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card-meta {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.news-card-meta .badge {
    font-weight: 500;
    font-size: 0.72rem;
}
.news-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.news-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    flex: 1;
    line-height: 1.9;
}
.news-card .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Event Cards ── */
.event-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    position: relative;
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.event-date-badge {
    width: 60px;
    text-align: center;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.event-date-badge .month {
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem;
    text-transform: uppercase;
}
.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    padding: 0.25rem;
    line-height: 1.2;
}
.event-type-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(10,94,108,0.08);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ── Quick Links ── */
.quick-link {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
    border: 1px solid var(--border);
    height: 100%;
}
.quick-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.quick-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    background: rgba(10,94,108,0.08);
    color: var(--primary);
}
.quick-link h6 { font-weight: 700; margin-bottom: 0.15rem; font-size: 0.9rem; }
.quick-link p { color: var(--text-light); font-size: 0.78rem; margin: 0; }

/* ── Call to Action ── */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 50px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    inset-inline-end: -80px;
    top: -80px;
}
.cta-section h3 { font-weight: 800; font-size: 1.6rem; margin-bottom: 0.75rem; }
.cta-section p { opacity: 0.85; font-size: 1rem; max-width: 500px; margin: 0 auto 1.5rem; }

/* ── Buttons ── */
.btn { border-radius: var(--radius); font-weight: 600; padding: 0.6rem 1.5rem; transition: all var(--transition); font-size: 0.9rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--primary); border-color: var(--primary); color: var(--white); transform: translateY(-1px); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-outline-primary { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }
.btn-warning { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-warning:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--white); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }

/* ── Cards (General) ── */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    margin-top: 24px;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ── Footer ── */
.footer {
    background: linear-gradient(180deg, #04303a 0%, #022228 100%);
    color: #c5dce0;
    margin-top: 3rem;
    padding: 0;
}
.footer-main { padding: 3rem 0 2rem; }
.footer h5 {
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    start: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
[dir="rtl"] .footer h5::after { right: 0; left: auto; }
[dir="ltr"] .footer h5::after { left: 0; right: auto; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: #90b5bb;
    font-size: 0.88rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-links a:hover { color: var(--accent); padding-inline-start: 0.3rem; }
.footer-links a::before { content: ''; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; opacity: 0; transition: opacity var(--transition); }
.footer-links a:hover::before { opacity: 1; }
.footer-contact { font-size: 0.88rem; }
.footer-contact p { margin-bottom: 0.6rem; display: flex; align-items: flex-start; gap: 0.5rem; color: #90b5bb; }
.footer-contact .icon { color: var(--accent); flex-shrink: 0; margin-top: 0.2rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #6a9aa3;
}
.footer-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: #90b5bb;
    transition: all var(--transition);
    font-size: 0.9rem;
}
.footer-social a:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }

/* ── Forms ── */
.form-control, .form-select {
    border-radius: var(--radius);
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    font-family: 'devix';
    transition: all var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,94,108,0.1);
}
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.errorlist { color: var(--danger); margin: 0.35rem 0; padding: 0; list-style: none; font-size: 0.85rem; }
form input:not([type=checkbox]):not([type=radio]), form select, form textarea {
    display: block;
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-family: 'devix';
    transition: all var(--transition);
}
form input:not([type=checkbox]):not([type=radio]):focus, form select:focus, form textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,94,108,0.1); outline: none;
}
form input[type=checkbox], form input[type=radio] { margin-inline-end: 0.45rem; }
form ul { list-style: none; padding: 0; }
.ck-editor__editable { min-height: 260px; }

/* ── Stepper ── */
.stepper { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.stepper span { padding: 0.55rem 0.8rem; border-radius: 999px; background: var(--surface-alt); font-size: 0.85rem; font-weight: 500; }
.stepper .active { background: var(--primary); color: var(--white); }

/* ── Dashboard ── */
.dashboard-sidebar {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #04303a 100%);
    min-height: calc(100vh - 72px);
    color: var(--white);
    margin-top: 24px;
}
.dashboard-sidebar a {
    display: block; color: #c5dce0; padding: 0.75rem 1rem;
    border-radius: var(--radius); transition: all var(--transition); font-size: 0.9rem;
}
.dashboard-sidebar a:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ── Metric Card ── */
.metric {
    border-inline-start: 4px solid var(--primary);
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.status-badge { font-size: 0.75rem; }

/* ── Prose Content ── */
.prose { line-height: 2.2; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose h2, .prose h3 { color: var(--primary-dark); margin-top: 1.5rem; }

/* ── Tables ── */
.table-responsive { border-radius: var(--radius-lg); overflow: hidden; }
.table { margin-bottom: 0; }
.table th { background: var(--surface-alt); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.table td { font-size: 0.88rem; vertical-align: middle; }

/* ── Membership Card ── */
.membership-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    color: white; border-radius: var(--radius-lg); position: relative; overflow: hidden;
    padding: 2rem;
}
.membership-card::after {
    content: ''; position: absolute; width: 200px; height: 200px;
    border: 40px solid rgba(255,255,255,0.06); border-radius: 50%;
    inset-inline-end: -60px; top: -60px;
}

/* ── Alerts ── */
.alert { border-radius: var(--radius); border: none; font-size: 0.9rem; }

/* ── Badges ── */
.badge { font-weight: 600; padding: 0.4rem 0.7rem; border-radius: 0.5rem; }

/* ── Pagination ── */
.pagination .page-link {
    border-radius: var(--radius);
    margin: 0 0.15rem;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.88rem;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .hero-content h2 { font-size: 1.6rem; }
    .hero-slide { min-height: 350px; }
    .hero-section { min-height: 350px; }
    .main-nav .navbar-collapse {
        background: var(--primary-dark);
        border-radius: 0 0 var(--radius) var(--radius);
        padding: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
    }
    .main-nav .nav-link {
        padding: 0.7rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-left: none;
        border-right: none;
        white-space: normal;
    }
    .main-nav .nav-link:last-child { border-bottom: none; }
    .service-card { padding: 1.5rem 1rem; }
    .header-inner { flex-wrap: wrap; gap: 0.5rem; }
    .site-brand-text h1 { font-size: 1rem; }
    .site-brand-text small { font-size: 0.65rem; }
}
@media (max-width: 768px) {
    .hero-slide { min-height: 280px; }
    .hero-section { min-height: 280px; }
    .hero-content { padding: 1.5rem 0; }
    .hero-content h2 { font-size: 1.25rem; line-height: 1.6; }
    .hero-content p { font-size: 0.9rem; }
    .hero-badge { font-size: 0.75rem; padding: 0.25rem 0.75rem; }
    .dashboard-sidebar { min-height: auto; }
    .footer-main { padding: 2rem 0; }
    .section-header h2 { font-size: 1.3rem; }
    .section-title { font-size: 1.15rem; }
    .cta-section { padding: 2rem 1.5rem; }
    .cta-section h3 { font-size: 1.3rem; }
    .quick-link { padding: 0.9rem; gap: 0.7rem; }
    .quick-link-icon { width: 40px; height: 40px; }
    .btn-lg { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
}
@media (max-width: 576px) {
    .header-inner {
        padding: 0.4rem 0;
    }
    .site-brand {
        gap: 0.5rem;
    }
    .site-brand img {
        height: 38px;
    }
    .site-brand-text h1 {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    .site-brand-text small {
        font-size: 0.6rem;
        display: none;
    }
    .header-inner .btn {
        font-size: 0.72rem;
        padding: 0.3rem 0.6rem;
    }
    .hero-slide { min-height: 240px; }
    .hero-section { min-height: 240px; }
    .hero-content h2 { font-size: 1.1rem; }
    .hero-content p { font-size: 0.82rem; line-height: 1.7; }
    .hero-content .btn-lg { font-size: 0.82rem; padding: 0.5rem 1rem; }
    .service-card { padding: 1.2rem 0.8rem; }
    .service-card h5 { font-size: 0.92rem; }
    .service-card p { font-size: 0.82rem; }
    .service-icon { width: 52px; height: 52px; }
    .news-card-img { height: 140px; }
    .event-card { padding: 1rem; }
    .footer h5 { font-size: 0.95rem; }
    .footer-links a { font-size: 0.82rem; }
    .page-header { padding: 1.5rem 0; }
    .page-header h1 { font-size: 1.25rem; }
    .navbar-toggler {
        padding: 0.5rem 0.8rem;
        min-height: 44px;
        min-width: 44px;
    }
    .lang-switch .lang-btn {
        min-width: 32px;
        min-height: 32px;
        font-size: 0.72rem;
        padding: 0.25rem 0.4rem;
    }
    .carousel-indicators { bottom: 0.5rem; }
    .carousel-indicators [data-bs-target] { width: 8px; height: 8px; }
}

/* ── Scroll to Top ── */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    inset-inline-end: 2rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: none;
    font-size: 1.1rem;
}
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.scroll-top.visible { display: flex; }

/* ── Page Header ── */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}
.page-header h1 { font-weight: 800; font-size: 1.6rem; margin-bottom: 0.25rem; }
.page-header .breadcrumb { margin: 0; font-size: 0.85rem; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item.active { color: var(--accent); }

/* ── Loading spinner ── */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.h1, h1{
    margin: 24px 0 !important;
}
.btn{
    margin-left: 5px;
}
.devix a{
    color: #fff;
}
/* Navy and gray visual system */
:root {
    --primary: #1e3a5f;
    --primary-dark: #102a43;
    --primary-light: #365f8d;
    --secondary: #64748b;
    --accent: #94a3b8;
    --accent-light: #cbd5e1;
    --surface: #f4f6f8;
    --surface-alt: #e9edf2;
    --text: #1f2937;
    --text-light: #64748b;
    --border: #d6dce4;
    --shadow-sm: 0 2px 8px rgba(15, 42, 67, 0.06);
    --shadow: 0 4px 16px rgba(15, 42, 67, 0.09);
    --shadow-lg: 0 8px 32px rgba(15, 42, 67, 0.13);
    --shadow-xl: 0 16px 48px rgba(15, 42, 67, 0.16);
}

.home-image-slider { background: var(--primary-dark); }
.home-image-slider .carousel-inner { width: 100%; }
.home-slider-image {
    width: 100%;
    height: clamp(240px, 37vw, 620px);
    object-fit: cover;
    object-position: center;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show{
    color: #fff;
}