/********** Template CSS — Polished UI **********/

:root {
    --primary:       #4F46E5; /* Indigo */
    --primary-hover: #4338CA;
    --accent:        #06B6D4; /* Cyber Cyan */
    --accent-hover:  #0891B2;
    --accent-light:  #ECFEFF;
    --dark:          #0F172A;
    --dark-soft:     #1E293B;
    --gray:          #64748B;
    --light:         #F8FAFC;
    --border:        #E2E8F0;
    --white:         #FFFFFF;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
    --shadow-md:     0 4px 12px rgba(0,0,0,.10);
    --shadow-lg:     0 8px 24px rgba(0,0,0,.12);
    --radius:        12px;
    --radius-lg:     20px;
    --transition:    .3s ease;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
    color: #334155;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* prevent horizontal scroll from floating elements */
}

a { text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }

.fw-medium   { font-weight: 600 !important; }
.fw-semi-bold{ font-weight: 700 !important; }

/* ── Back to top ── */
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: background var(--transition);
}
.back-to-top:hover { background: var(--primary-hover); }

/* ── Spinner ── */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility 0s linear .4s;
    z-index: 99999;
}
#spinner.show {
    transition: opacity .4s ease, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* ── Buttons ── */
.btn {
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    letter-spacing: .3px;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(26,79,58,.25);
}
.btn-secondary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.btn-secondary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    font-weight: 600;
}
.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(253,12,5,.3);
}
.btn-light {
    background: var(--white);
    border-color: var(--border);
    color: var(--dark);
}
.btn-light:hover { background: var(--light); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }

.btn-square    { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }
.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: var(--radius);
}

/* ── Navbar (legacy / admin — scoped to NOT override #mainNav) ── */
.navbar:not(#mainNav) {
    background: var(--white) !important;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 16px rgba(26,79,58,.10);
}
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 6px;
}
/* These rules are overridden by the higher-specificity #mainNav rules
   with !important further down in this file */
.navbar-light .navbar-nav .nav-link {
    margin-right: 4px;
    padding: 22px 14px;
    color: var(--dark-soft);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    border-bottom: 3px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    letter-spacing: .2px;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 4px;
        border-bottom: none;
        border-left: 3px solid transparent;
        padding-left: 12px;
    }
    .navbar-light .navbar-nav .nav-link.active,
    .navbar-light .navbar-nav .nav-link:hover { border-left-color: var(--primary); }
    .navbar-light:not(#mainNav) .navbar-nav { border-top: 1px solid var(--border); }
}
.navbar-light:not(#mainNav) .navbar-brand,
.navbar-light:not(#mainNav) a.btn { height: 70px; }
.navbar-light:not(#mainNav) .navbar-brand h2 {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -.5px;
    font-size: 20px;
    line-height: 1;
}
.navbar-light:not(#mainNav) .navbar-brand h2 .site-name {
    display: none;
}
@media (min-width: 992px) {
    .navbar-light:not(#mainNav) .navbar-brand h2 .site-name {
        display: inline;
        margin-left: 8px;
        font-size: 19px;
    }
}
.navbar-light:not(#mainNav) .navbar-brand img {
    border-radius: 8px;
    border: 2px solid var(--primary);
}
.navbar-light:not(#mainNav).sticky-top { top: -100px; transition: .4s; }

@media (min-width: 992px) {
    .navbar:not(#mainNav) .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
    }
    .navbar:not(#mainNav) .dropdown-menu.fade-down {
        top: 100%;
        transform: translateY(-8px);
    }
    .navbar:not(#mainNav) .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }
}

/* ── Page Header ── */
.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 110px 0 80px; /* top matches floating navbar height */
    overflow: hidden;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.60);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.page-header::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0.6;
}
.page-header > * { position: relative; }
.page-header .display-3 {
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
/* Breadcrumb pill glass chip */
.page-header .breadcrumb {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 20px;
    display: inline-flex;
}
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.breadcrumb-item a { opacity: .85; color: #fff; transition: opacity var(--transition); }
.breadcrumb-item a:hover { opacity: 1; }

/* ── Section Title ── */
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    font-size: .80rem;
    letter-spacing: 2.5px;
    background: var(--accent-light);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(253,12,5,.15);
}
.section-title::before {
    display: none;
}
.section-title::after {
    display: none;
}
.section-title.text-start::after { display: none; }
/* Legacy support — sections using the old bg-white trick */
.section-title.bg-white {
    background: var(--accent-light) !important;
}

/* ── Service Cards ── */
.service-item {
    background: rgba(255, 255, 255, 0.45); /* Transparent glassmorphism */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-item:hover {
    transform: translateY(-8px);
    background: var(--primary);
    box-shadow: 0 20px 40px rgba(26,79,58,0.2);
}
.service-item * { transition: color 0.3s; }
.service-item:hover * { color: var(--white) !important; }
.service-item img {
    border-radius: 50%;
    padding: 10px;
    background: rgba(26,79,58,.06);
    transition: background 0.3s;
}
.service-item:hover img {
    background: rgba(255,255,255,.15);
}

/* ── Category & Courses ── */
/* ── Category & Partner Cards ── */
.category {
    background: transparent;
}
.category img, .course-item img { transition: transform var(--transition); }
.category a:hover img, .course-item:hover img { transform: scale(1.06); }
.category a {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.category a:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.category a .bg-white {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin: 15px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.category a .bg-white h5 {
    color: var(--primary) !important;
    font-weight: 700;
}
.category a .bg-white small {
    color: var(--accent) !important;
    margin: 0 1px;
}

/* ── Course Items ── */
.course-item {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.course-item:hover { 
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

/* ── Team Items ── */
.team-item {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-item:hover { 
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.team-item img { transition: transform var(--transition); }
.team-item:hover img { transform: scale(1.06); }
.team-item .team-social {
    background: var(--white);
    border-radius: var(--radius);
    padding: 4px 8px;
    box-shadow: var(--shadow-sm);
}

/* ── Testimonial ── */
.testimonial-item {
    transition: transform var(--transition);
}
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * { transition: .3s; }
.testimonial-carousel .owl-item.center .testimonial-text {
    background: rgba(79, 70, 229, 0.08) !important;
    border: 1.5px solid rgba(79, 70, 229, 0.22) !important;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
}
.testimonial-carousel .owl-item.center .testimonial-item { transform: scale(1.04); }
.testimonial-carousel .owl-item.center .testimonial-text * { color: var(--dark) !important; }
.testimonial-text {
    background: rgba(255, 255, 255, 0.45) !important; /* Glassmorphism background */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}
.testimonial-text::before {
    content: '\201C';
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    position: absolute;
    top: -12px; left: 16px;
    font-family: Georgia, serif;
    opacity: .3;
    transition: color .3s;
}
.testimonial-carousel .owl-item.center .testimonial-text::before {
    color: var(--primary) !important;
    opacity: .25;
}
.testimonial-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.45) transparent;
    display: block;
    width: 0;
    backdrop-filter: blur(14px);
}
.testimonial-carousel .owl-item.center .testimonial-text::after {
    border-color: rgba(79, 70, 229, 0.1) transparent !important;
}
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
}
.testimonial-carousel .owl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--border);
    border-radius: 50%;
    transition: background var(--transition), width var(--transition);
}
.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

/* ── Bootstrap Card override ── */
.card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover { 
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.card-header {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    font-weight: 600;
}

/* ── Table ── */
.table th {
    background: var(--light);
    color: var(--gray);
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: #F0FDF4; }

/* ── Form controls ── */
.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .94rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,79,58,.12);
}

/* ── Alerts ── */
.alert { border: none; border-radius: var(--radius); font-weight: 500; }
.alert-primary { background: #E8F5E9; color: #1B5E20; }
.alert-success  { background: #D1FAE5; color: #065F46; }
.alert-warning  { background: #FEF3C7; color: #92400E; }
.alert-danger   { background: #FEE2E2; color: #991B1B; }

/* ── Carousel nav ── */
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item { position: relative; min-height: 500px; }
    .header-carousel .owl-carousel-item img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
}
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}
.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: var(--radius);
    font-size: 20px;
    transition: all var(--transition);
}
.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ── Footer ── */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #172554 100%) !important;
    border: none !important;
    border-radius: 28px;
    margin: 40px auto 20px auto;
    max-width: calc(100% - 40px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
    color: #cbd5e1;
}
@media (max-width: 991.98px) {
    .footer {
        margin: 30px auto 12px auto;
        border-radius: 22px;
        max-width: calc(100% - 24px);
    }
}
.site-footer {
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 34%),
                radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.18), transparent 38%);
    pointer-events: none;
}
.site-footer > .container {
    position: relative;
    z-index: 1;
}
.footer-top-row {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.2);
}
.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.footer-brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}
.footer-brand-name,
.footer-title {
    color: #fff;
}
.footer-brand-name {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.footer-brand-text,
.footer-credit-text,
.footer-stat-label {
    color: #cbd5e1;
}
.footer-brand-text {
    max-width: 320px;
    font-size: 0.96rem;
    line-height: 1.7;
}
.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.footer-links-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 18px;
    min-height: 56px;
}
.footer-links-row a,
.footer-credit-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
    font-weight: 600;
}
.footer-links-row a {
    position: relative;
}
.footer-links-row a:not(:last-child)::after {
    content: '|';
    color: rgba(203, 213, 225, 0.7);
    margin-left: 12px;
}
.footer-links-row a:hover,
.footer-credit-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

.footer-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0 8px;
}
.footer-meta-left,
.footer-meta-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 0.95rem;
}
.footer-meta-left i {
    color: #60a5fa;
}
.footer-meta-left strong {
    color: #fff;
    font-size: 1.05rem;
}
.footer-meta-right a {
    color: #93c5fd;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-meta-right a:hover {
    color: #dbeafe;
}
.footer-copy-row {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 0.86rem;
}
@media (max-width: 767.98px) {
    .footer-brand {
        align-items: center;
    }
    .footer-top-row {
        text-align: center;
    }
    .footer-brand {
        justify-content: center;
    }
    .footer-brand-text {
        max-width: none;
    }
    .footer-links-row {
        justify-content: center;
        min-height: auto;
        flex-wrap: nowrap;
        gap: 8px 10px;
    }
    .footer-links-row a {
        font-size: 0.74rem;
    }
    .footer-meta-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .footer-meta-left,
    .footer-meta-right {
        justify-content: center;
    }
}

/* ── Article Home Cards ── */
.article-home-card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-home-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08) !important;
}
.article-home-img {
    transition: transform 0.4s ease;
}
.article-home-card:hover .article-home-img {
    transform: scale(1.05);
}
.article-ticker-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 44px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    background: rgba(15, 23, 42, 0.76) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(148, 163, 184, 0.28) !important;
    box-shadow: 0 -10px 28px rgba(2, 6, 23, 0.35) !important;
}
.article-ticker-wrapper::before {
    content: 'NEWS';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    z-index: 2;
}
.article-ticker-container { overflow: hidden; padding: 0 0 0 60px; height: 100%; display: flex; align-items: center; }
@media (max-width: 575.98px) {
    .article-ticker-wrapper::before { display: none !important; }
    .article-ticker-container { padding: 0 !important; }
}
.ticker-item {
    color: #e2e8f0;
    font-size: .88rem;
    font-weight: 500;
    padding: 0 24px;
    transition: color var(--transition);
    border-right: 1px solid rgba(148, 163, 184, 0.35);
}
.ticker-item:hover { color: #67e8f9; }
.ticker-item i { color: #93c5fd; }



/* ── WhatsApp FAB ── */
.whatsapp-btn {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 52px; height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
    z-index: 99;
    transition: background var(--transition), transform var(--transition);
}
.whatsapp-btn:hover { background: #20B558; transform: scale(1.08); color: var(--white); }

/* ── Progress bar ── */
.progress { height: 8px; border-radius: 4px; background: #E2E8F0; }
.progress-bar { background: var(--primary); border-radius: 4px; }

/* ── Pagination ── */
.page-link {
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    margin: 0 2px;
    transition: all var(--transition);
}
.page-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ── Tag pill ── */
.tag-pill {
    display: inline-block;
    padding: 3px 10px;
    background: #F0FDF4;
    color: var(--primary);
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid #BBF7D0;
}

/* ── Section divider ── */
.section-divider {
    height: 3px;
    width: 48px;
    background: var(--primary);
    border-radius: 2px;
    margin: 8px auto 20px;
}
.section-divider.start { margin: 8px 0 20px; }

/* ── Auth / profile card ── */
.auth-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* ── Utility overrides ── */
.text-primary   { color: var(--primary)  !important; }
.text-accent    { color: var(--accent)   !important; }
.bg-primary     { background: var(--primary)  !important; }
.bg-accent      { background: var(--accent)   !important; }
.bg-dark        { background: var(--dark)     !important; }
.bg-light       { background: var(--light)    !important; }
.border-primary { border-color: var(--primary) !important; }
.border-accent  { border-color: var(--accent)  !important; }
h1, h2, h3, h4, h5, h6 { color: var(--dark); }
hr { border-color: var(--border); opacity: 1; }

/* ── Auth card ── */
.auth-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.auth-panel-header {
    background: var(--primary);
    padding: 32px 32px 24px;
    color: var(--white);
}
.auth-panel-body { padding: 32px; }
.auth-tab-btn {
    cursor: pointer;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: .9rem;
    border: 2px solid rgba(255,255,255,.4);
    color: rgba(255,255,255,.75);
    background: transparent;
    transition: all var(--transition);
}
.auth-tab-btn.active {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
}

/* ── RTL ── */
[dir="rtl"] .footer .btn.btn-link { text-align: center; }
[dir="rtl"] .footer .btn.btn-link::before { display: none; }
[dir="rtl"] .section-title::before { left: auto; right: calc(100% + 10px); }
[dir="rtl"] .section-title::after  { right: auto; left: calc(100% + 10px); }

/* ── Mobile responsive ── */
@media (max-width: 575.98px) {
    .container-xxl, .container { padding-left: 15px; padding-right: 15px; }
    .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    h1, .h1 { font-size: 1.75rem !important; }
    h2, .h2 { font-size: 1.5rem !important; }
    .display-3 { font-size: 2rem !important; }
    .display-6 { font-size: 1.4rem !important; }
    .fs-5 { font-size: .95rem !important; }
    .section-title { font-size: .72rem; }
    .back-to-top { right: 15px; bottom: 70px; width: 40px !important; height: 40px !important; }
    .whatsapp-btn { bottom: 120px !important; right: 15px !important; width: 48px !important; height: 48px !important; }
    .mb-5 { margin-bottom: 2rem !important; }
    .mt-5 { margin-top: 2rem !important; }
    .service-item .p-4 { padding: 1.25rem !important; }
    .service-item img { height: 70px !important; width: 70px !important; }
    .article-ticker-container { padding: 10px 0; }
    .ticker-item { font-size: .8rem; padding: 0 14px; }
    .testimonial-text.p-4 { padding: 1rem !important; }
    .testimonial-text p { font-size: .9rem; }
    .article-home-img { height: 160px !important; }
    .article-home-card .card-body { padding: 1rem !important; }
    .article-home-card .card-footer { padding: .75rem 1rem !important; }
    [dir="rtl"] .header-carousel .carousel-btn-group { align-items: flex-end; }
}
@media (max-width: 768px) {
    .about-img-wrapper { min-height: 250px !important; }
    .about-img-wrapper img { position: static !important; width: 100% !important; height: 250px !important; object-fit: cover !important; }
}
@media (max-width: 575.98px) {
    .header-carousel .owl-carousel-item { min-height: 320px; height: 60vh !important; }
    .header-carousel .owl-carousel-item img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
    .header-carousel .owl-carousel-item h1.display-3 { font-size: 1.6rem !important; margin-bottom: .75rem !important; }
    .header-carousel .owl-carousel-item h5 { font-size: .85rem !important; }
    .header-carousel .owl-carousel-item p.fs-5 {
        font-size: .85rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .header-carousel .carousel-btn-group {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: .5rem;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
        padding-right: 110px;
    }
    .header-carousel .carousel-btn-group a { white-space: nowrap; padding: .55rem 1rem !important; font-size: .8rem; }
    [dir="rtl"] .header-carousel .carousel-btn-group {
        justify-content: flex-end;
        padding-right: 0;
        padding-left: 110px;
    }
    .header-carousel .owl-nav {
        right: auto;
        left: 4%;
        top: auto;
        bottom: 78px;
        transform: none;
        flex-direction: row;
        gap: 10px;
        z-index: 10;
        padding: 0;
    }
    [dir="rtl"] .header-carousel .owl-nav {
        left: auto;
        right: 4%;
    }
    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next { margin: 0; width: 42px; height: 42px; font-size: 16px; background: rgba(255,255,255,0.2) !important; border: 1px solid rgba(255,255,255,0.4) !important; display: flex !important; }
    .header-carousel .owl-nav { display: none !important; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
    .header-carousel .owl-carousel-item { min-height: 380px; height: 65vh !important; }
    .header-carousel .owl-carousel-item h1.display-3 { font-size: 2rem !important; }
    .header-carousel .carousel-btn-group {
        width: 100%;
        justify-content: flex-start;
        padding-right: 120px;
    }
    [dir="rtl"] .header-carousel .carousel-btn-group {
        justify-content: flex-end;
        padding-right: 0;
        padding-left: 120px;
    }
    .header-carousel .owl-nav {
        right: auto;
        left: 4%;
        top: auto;
        bottom: 92px;
        transform: none;
        flex-direction: row;
        gap: 10px;
        padding: 0;
    }
    .header-carousel .owl-nav { display: none !important; }
    [dir="rtl"] .header-carousel .owl-nav {
        left: auto;
        right: 4%;
    }
}

/* ══════════════════════════════════════════
   Modern Floating Glassmorphism Navbar (Redesigned)
   ══════════════════════════════════════════ */

/* Push page content below fixed navbar on non-hero pages */
body { padding-top: 110px; }

#mainNav,
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0.65rem 1.5rem;
    background: rgba(15, 23, 42, 0.68); /* Footer-like navy with transparency before scroll */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#mainNav.scrolled,
.site-header.scrolled {
    top: 0;
    left: 0;
    right: 0;
    background: rgba(23, 37, 84, 0.72); /* Footer-like navy with transparency after scroll */
    border: none;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
    padding: 0.45rem 1.5rem;
}
.site-header-inner {
    align-items: center;
}
#mainNav .site-header-brand,
.site-header .site-header-brand {
    gap: 12px;
}
#mainNav .site-header-name,
.site-header .site-header-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}
#mainNav .site-header-nav,
.site-header .site-header-nav {
    align-items: center;
    gap: 2px;
}
#mainNav .site-header-collapse,
.site-header .site-header-collapse {
    align-items: center;
}
#mainNav.scrolled .navbar-brand .site-name,
#mainNav.scrolled .nav-link {
    color: #f8fafc !important;
}

/* Brand */
#mainNav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
#mainNav .navbar-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%; /* Rounded profile style */
    transition: transform 0.3s;
}
#mainNav .navbar-brand:hover img {
    transform: rotate(360deg);
}
#mainNav .navbar-brand .site-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

@media (max-width: 767.98px) {
    #mainNav .navbar-brand {
        gap: 8px;
        max-width: calc(100% - 56px);
    }

    #mainNav .navbar-brand img {
        width: 28px;
        height: 28px;
    }

    #mainNav .navbar-brand .site-name {
        display: inline-block;
        font-size: 0.85rem;
        line-height: 1.1;
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #mainNav .navbar-toggler {
        margin-left: 6px;
    }

    [dir="rtl"] #mainNav .navbar-toggler {
        margin-left: 0;
        margin-right: 6px;
    }
}

/* Nav links */
#mainNav .nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}
#mainNav .nav-link::after {
    display: none;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.08) !important;
}
#mainNav.scrolled .nav-link {
    color: #f8fafc !important;
}
#mainNav.scrolled .nav-link:hover,
#mainNav.scrolled .nav-link.active {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.08) !important;
}

/* Toggler */
#mainNav .navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none;
    padding: 8px;
    border-radius: 12px;
}
/* White hamburger icon before scroll */
#mainNav .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(248,250,252,0.95)' stroke-width='2.5' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    transition: background-image 0.3s;
}
/* Dark hamburger icon after scroll */
#mainNav.scrolled .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(248,250,252,0.95)' stroke-width='2.5' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* CTA buttons */
#mainNav .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 1.35rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}
#mainNav .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
#mainNav .nav-cta-primary {
    background: var(--primary);
    color: #fff !important;
}
#mainNav .nav-cta-accent {
    background: var(--accent);
    color: #fff !important;
}

/* Mobile collapse panel */
@media (max-width: 991.98px) {
    #mainNav,
    .site-header {
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        border: none;
        background: rgba(15, 23, 42, 0.78) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }
    #mainNav.scrolled,
    .site-header.scrolled {
        background: rgba(23, 37, 84, 0.82) !important;
    }
    #navbarCollapse {
        padding: 1.25rem 0 0.5rem;
    }
    #mainNav .nav-link {
        padding: 0.75rem 1.25rem !important;
        margin-bottom: 4px;
    }
    #mainNav .nav-link:hover,
    #mainNav .nav-link.active {
        background: rgba(79, 70, 229, 0.08) !important;
    }
    #mainNav.scrolled .nav-link:hover,
    #mainNav.scrolled .nav-link.active {
        background: rgba(79, 70, 229, 0.08) !important;
    }
    .nav-cta-mobile-wrap {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }
    #mainNav.scrolled .nav-cta-mobile-wrap {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    .nav-cta-mobile-wrap .nav-cta {
        width: 100%;
        justify-content: center;
    }
}
@media (min-width: 992px) {
    .nav-cta-mobile-wrap { display: none !important; }
    .nav-desktop-cta { display: flex !important; align-items: center; gap: 10px; }
}
.nav-desktop-cta { display: none; }

/* ── Article Cards (pages/article.php) ── */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}
.article-card:hover .card-img-top { transform: scale(1.05); }
.article-card .card-img-top { transition: transform 0.4s ease; }
.stretched-link-title:hover { color: var(--primary) !important; }
@media (max-width: 768px) {
    .article-card:hover { transform: none; }
}

/* ── Icon Box ── */
.icon-box {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(79,70,229,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--transition);
}
.icon-box:hover { background: rgba(79,70,229,0.16); }
.icon-box i { color: var(--primary); }

/* ── Team Social Overlay ── */
.team-social-wrap {
    position: relative;
    margin-top: -24px;
    display: flex;
    justify-content: center;
    z-index: 2;
}
.team-social-wrap .social-inner {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 6px 12px;
    display: flex;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ── Glass Section ── */
.glass-section {
    background: rgba(239, 246, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ── About image ── */
.about-img-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.10);
    border: none;
}

/* ── Attachment / Contact card footer ── */
.card-footer {
    background: rgba(255,255,255,0.25) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(0,0,0,0.05) !important;
}

/* ── 404 page ── */
.error-404-icon {
    font-size: 6rem;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

/* Carousel hero: bleed under navbar */
.carousel-hero-wrap {
    margin-top: -110px;
}
.carousel-hero-wrap .owl-carousel-item {
    height: 100vh !important;
    min-height: 500px;
}
/* ──── About Section Redesign ──── */
.about-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    right: -100px;
    pointer-events: none;
}

.about-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

/* About Image */
.about-image-wrapper {
    position: relative;
    z-index: 1;
}

.about-image-container {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-container:hover {
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.3);
    border-color: rgba(79, 70, 229, 0.5);
    transform: translateY(-3px);
}

.about-image-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-image-container:hover .about-image-main {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(79, 70, 229, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image-container:hover .about-image-overlay {
    opacity: 1;
}

/* About Content */
.about-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.about-title {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.about-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.about-text {
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

/* About Features */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f0f6ff;
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e0eeff;
    transform: translateX(8px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-text {
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
}

/* About Button */
.about-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: #ffffff;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.about-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.about-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.3);
}

.about-btn:hover::before {
    left: 0;
}

/* ──── About Section Mobile ──── */
@media (max-width: 768px) {
    .about-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .about-image-container {
        height: 250px;
        margin-bottom: 2rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-title {
        margin-bottom: 1rem;
    }

    .about-text {
        font-size: 0.95rem;
    }

    .feature-item {
        padding: 0.75rem 1rem;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .feature-text {
        font-size: 0.9rem;
    }

    .about-btn {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .about-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .about-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .about-divider {
        width: 50px;
    }

    .about-text {
        text-align: left;
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .about-features {
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .feature-item {
        padding: 0.6rem 0.8rem;
        border-left-width: 2px;
    }

    .feature-item:hover {
        transform: translateX(4px);
    }
}

/* RTL Support */
[dir="rtl"] .about-image-wrapper {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .about-divider {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .feature-item {
    border-left: none;
    border-right: 3px solid var(--primary);
}

[dir="rtl"] .feature-item:hover {
    transform: translateX(-8px);
}

@media (max-width: 575.98px) {
    [dir="rtl"] .feature-item:hover {
        transform: translateX(-4px);
    }
}