/*
Theme Name: My Neocities Theme
Author: Your Name
Description: Converted from Neocities
Version: 1.1
*/

:root {
    /* Existing Theme Palette */
    --navy: #0b3040;
    --navy2: #154b5d;
    --sand: #f5ede3;
    --sand2: #e8d8c7;
    --terra: #c96e50;
    --terra2: #a85038;
    --ink: #17313b;
    --muted: #61747b;
    --white: #fff;
    --line: #d9e1e0;
    --green: #2f7662;
    --shadow: 0 18px 55px rgba(11,48,64,.12);
    --radius: 22px;

    /* Integrated Design Extensions */
    --teal: #3399a8;
    --teal-dark: #267986;
    --teal-light: #e8f4f5;
    --cream: #f7f4ee;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Manrope, Cairo, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background: #fff;
}

html[dir=rtl] body {
    font-family: Cairo, Manrope, Arial, sans-serif;
}

.container {
    width: min(1180px, calc(100% - 36px));
    margin: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* TOPBAR & HEADER */
.topbar {
    background: var(--navy);
    color: #fff;
    font-size: 12px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(11,48,64,.08);
}

/* Container Centering */
.gateway-features-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 0; /* Adjust padding as needed */
}

/* Image Crispness & Scaling */
.gateway-features-bar img {
    max-width: 100%;
    max-height: 80px;      /* Adjust height to fit your bar design */
    width: auto;
    height: auto;
    object-fit: contain;   /* Prevents distortion */
    display: block;
    margin: 0 auto;
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: max-content;
}

.brandmark {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    font-weight: 900;
}

.brand strong, .brand small {
    display: block;
}

.brand small {
    font-size: 10px;
    color: var(--muted);
}

.links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.links a {
    font-size: 14px;
    font-weight: 750;
}

.links a:hover, .links a.active {
    color: var(--terra);
}

.actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.lang, .menu {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    font-weight: 800;
    cursor: pointer;
}

.menu {
    display: none;
}

.mobile {
    display: none;
    padding: 0 18px 18px;
}

.mobile.open {
    display: grid;
}

.mobile a {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

/* BUTTONS & EXTENSIONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 13px 19px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--terra);
    color: #fff;
}

.btn-dark {
    background: var(--navy);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
}

.btn-navy {
    background: var(--navy);
    color: #fff;
}

.btn-teal {
    background: var(--teal);
    color: #fff;
}

.btn-pill-navy {
    background: var(--navy);
    color: #fff;
    border-radius: 99px;
    padding: 10px 22px;
    font-size: 13px;
}

.btn-pill-light {
    background: #fff;
    color: var(--navy);
    border-radius: 99px;
    padding: 10px 22px;
    font-size: 13px;
}

.btn-teal-pill {
    background: var(--teal);
    color: #fff;
    border-radius: 99px;
    padding: 12px 26px;
    font-size: 13px;
}

/* TYPOGRAPHY & HEADINGS */
.eyebrow, .kicker, .section-kicker {
    letter-spacing: .12em;
    font-size: 11px;
    font-weight: 900;
    color: var(--terra);
}

h1, h2, h3, h4 {
    line-height: 1.18;
    color: var(--navy);
    margin-top: 0;
}

h1 {
    font-size: clamp(34px, 4.2vw, 56px);
    letter-spacing: -.03em;
    margin: 16px 0 22px;
    font-weight: 850;
}

h2 {
    font-size: clamp(30px, 3.2vw, 50px);
    letter-spacing: -.02em;
}

h3 {
    font-size: 22px;
}

.lead {
    font-size: 18px;
    color: #52686f;
    max-width: 760px;
}

/* HERO SECTION INTEGRATION */
.hero-section {
    background: 
        radial-gradient(circle at 15% 30%, #f3e6d8 0%, rgba(243, 230, 216, 0) 65%),
        linear-gradient(135deg, #f9f6f0 0%, #e5eceb 100%);
    padding: 60px 0 110px; /* Extra bottom padding to create room for overlap */
}



.hero-grid, .split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
}

.hero-subtext {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: .05em;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-card {
    background: #fff;
    padding: 12px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
}

.slider-card img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
}

.slider-dots {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cfd8dc;
    cursor: pointer;
}

.dot.active {
    background: var(--navy);
}
/* ==========================================
   WIKIPEDIA STYLE THUMBNAIL BOX
   ========================================== */

.wiki-thumb {
    float: right;
    clear: right;
    margin: 0 0 10px 20px;
    width: 360px;
    background-color: #f8f9fa;
    border: 1px solid #c8ccd1;
    border-radius: 4px;
    padding: 6px;
    box-sizing: border-box;
}

.wiki-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #eaecf0;
    border-radius: 2px;
}

.wiki-thumb .thumbcaption {
    font-size: 12px;
    line-height: 1.4;
    color: #54595d;
    margin: 0;
}

/* RTL Support for Arabic Language Layouts */
html[dir="rtl"] .wiki-thumb {
    float: left;
    clear: left;
    margin: 0 20px 15px 0;
}

/* Mobile Alignment Adjustment */
@media (max-width: 600px) {
    .wiki-thumb {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
}


/* PORTALS & GATEWAY SECTION */
.portals-section {
    margin-top: -90px; /* Pulls the section up so background cuts off in the middle of the cards */
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}


.portal-card {
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(11,48,64,.06);
}

.teal-card {
    background: var(--teal);
    color: #fff;
}

.teal-card h3, .teal-card p {
    color: #fff;
}

.navy-card {
    background: var(--navy);
    color: #fff;
}

.navy-card h3, .navy-card p {
    color: #fff;
}

.portal-text {
    max-width: 60%;
}

.portal-text h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.portal-text p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: .9;
}

.portal-media img {
    width: 160px;
    height: 130px;
    object-fit: cover;
    border-radius: 14px;
}

/* DOCTOR PROFILE SECTION */
.doctor-section {
    padding: 70px 0;
}

.doctor-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 50px;
    align-items: center;
}

.doctor-image-wrapper {
    position: relative;
    max-width: 380px;
}

.frame-backdrop {
    position: absolute;
    inset: -10px 10px 10px -10px;
    background: var(--teal-light);
    border-radius: 28px;
    z-index: 1;
}

.doctor-portrait {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 24px;
    display: block;
    object-fit: cover;
}

.doctor-info h2 {
    font-size: clamp(24px, 2.8vw, 36px);
    margin: 12px 0;
    color: var(--navy);
}

.doctor-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}

.doctor-bio h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: var(--navy);
}

.doctor-bio p {
    margin: 4px 0 20px;
    font-size: 13px;
    color: var(--muted);
}

.stats-row {
    display: flex;
    gap: 36px;
    margin: 24px 0 28px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    font-size: 28px;
}

.stat-number {
    font-size: 32px;
    font-weight: 850;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--teal);
    letter-spacing: .08em;
    display: block;
    margin-top: 4px;
}

/* VISION & MISSION SECTION */
.vision-mission-section {
    background: linear-gradient(135deg, #F4EBE1 0%, #E6EDEB 100%);
    padding: 70px 0;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: start;
}

/* Flexbox puts icon side-by-side with text content */
.vm-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Prevents the icon from shrinking */
.vm-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px; /* Aligns visually with the top of the heading */
}

.vm-content h3 {
    color: var(--navy);
    font-size: 22px;
    font-weight: 850;
    letter-spacing: 0.03em;
    margin: 0 0 10px 0;
}

.vm-content p {
    color: var(--ink);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive design for tablets and mobile */
@media (max-width: 860px) {
    .vm-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }
}

/* VIDEO SECTION */
.video-section {
    padding: 80px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.video-info h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 16px;
}

.video-info p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.video-container {
    width: 100%;
}

.video-wrapper {
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 20px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 0;
    background: var(--navy);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    transition: transform .2s;
}

.play-btn:hover {
    transform: scale(1.08);
}

/* EXISTING CARDS & SECTION LAYOUTS */
.section {
    padding: 86px 0;
}

.section.alt {
    background: #f8f6f2;
}

.heading {
    max-width: 800px;
    margin-bottom: 38px;
}

.heading.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
    background: #fff;
    border: 1px solid #e6ebea;
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 8px 25px rgba(11,48,64,.05);
}

.card p {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 99px;
    background: #e7f2ef;
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
}

/* CTA & FOOTER */
.cta {
    padding: 50px 0;
    background: var(--navy);
    color: #fff;
}

.cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.cta h2 {
    color: #fff;
    margin: 0;
    max-width: 720px;
}

.footer {
    background: #071f29;
    color: #cfdbde;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

.footer h3 {
    color: #fff;
}

.footer a {
    display: block;
    margin: 7px 0;
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 34px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: 11px;
}

/* 1. Put the icons in a row */
.footer-socials {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* 2. Style the anchor link wrapper */
.footer-socials .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff; /* Ensures the icon stroke color isn't blending into the background */
}

/* 3. Force the SVG to stay exactly 24x24 pixels */
.footer-socials .social-icon svg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0; /* This is the magic rule that stops Flexbox from crushing the icon to 0px */
    display: block;
}

.whatsapp {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #20b66b;
    color: #fff;
    font-weight: 900;
    box-shadow: var(--shadow);
    z-index: 90;
}

/* MODAL & DIALOGS */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(5,24,32,.7);
    display: none;
    place-items: center;
    padding: 18px;
    z-index: 1000;
}

.modal.open {
    display: grid;
}

.modal-card {
    width: min(600px,100%);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    position: relative;
}

.close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    border: 0;
    background: #edf1f0;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

/* DASHBOARD, ADMIN, & BOOKING ENHANCEMENTS */
.dashboard-shell {
    background: #f4f7f6;
    padding: 48px 0 82px;
    min-height: 72vh;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 250px minmax(0,1fr);
    gap: 25px;
}

.dash-side {
    background: var(--navy);
    color: #fff;
    border-radius: 21px;
    padding: 22px;
    position: sticky;
    top: 105px;
    align-self: start;
}

.dash-side h3 { color: #fff; margin-bottom: 3px; }
.dash-side p { color: #b9ccd1; font-size: 12px; }

.dash-nav {
    display: grid;
    gap: 6px;
    margin-top: 21px;
}

.dash-nav a {
    color: #dce7e9;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 750;
}

.dash-nav a.active, .dash-nav a:hover {
    background: rgba(255,255,255,.12);
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    align-items: start;
}

/* RESPONSIVE MEDIA QUERIES */
@media(max-width: 980px) {
    .links { display: none; }
    .menu { display: block; }
    
    .hero-grid, .split, .portal-grid, .doctor-grid, .vm-grid, .video-grid {
        grid-template-columns: 1fr;
    }

    .portal-text {
        max-width: 100%;
    }

    .doctor-image-wrapper {
        margin: 0 auto;
    }

    .grid4 { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
}

.management-portal-card {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

@media (max-width: 980px) {
    .management-portal-card {
        flex-direction: column;
        height: auto !important;
        padding: 30px 20px !important;
    }
    
    .management-portal-card .portal-text,
    .management-portal-card .portal-media {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .management-portal-card img {
        width: 100% !important;
        height: auto !important;
    }
}

@media(max-width: 700px) {
    .topbar { display: none; }
    .actions .btn { display: none; }
    
    .hero-section, .section, .doctor-section, .video-section {
        padding: 40px 0;
    }

    .grid2, .grid3, .grid4, .form-grid {
        grid-template-columns: 1fr;
    }

    .portal-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-media img {
        width: 100%;
        height: 160px;
    }

    .stats-row {
        flex-direction: column;
        gap: 20px;
    }

    .cta .container {
        display: grid;
    }

    .footer-grid, .footer-bottom {
        grid-template-columns: 1fr;
    }

    /* 1. TOPBAR TEAL */
.topbar-teal {
    background: #399ca9;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 0;
}
.topbar-teal-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo-img {
    height: 1000px !important;
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
}
.brand-logo-link {
    display: inline-block;
    width: auto;
    max-width: none;
}

.main-logo-img {
    width: 250px !important; /* Scale by explicit width instead of height */
    height: auto !important;
    max-width: none !important;
}
.main-logo-img {
    flex-shrink: 0;
}



/* 2. HEADER MIDDLE (WHITE) */
.header-middle {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-middle-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo img {
    max-height: 62px;
    width: auto;
    display: block;
}
.brand-text-fallback {
    display: flex;
    align-items: center;
    gap: 12px;
}
.arabic-logo-title {
    font-family: Cairo, sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #0b3040;
    display: block;
}
.english-logo-title {
    font-size: 14px;
    color: #399ca9;
    letter-spacing: 0.05em;
    display: block;
}
.logo-subtext {
    font-size: 9px;
    color: #399ca9;
    font-weight: 700;
}

/* HEADER ACTIONS & SOCIAL ICONS */
.header-middle-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}
.social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #0b3040;
    color: #0b3040;
    display: grid;
    place-items: center;
    transition: 0.2s;
}
.social-icon:hover {
    background: #0b3040;
    color: #fff;
}
.auth-pill-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-pill-grey {
    background: #ececec;
    color: #111;
    border: 0;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}
.btn-pill-grey:hover {
    background: #e0e0e0;
}

/* 3. NAVIGATION BAR (NAVY) */
.header-nav-bar {
    background: #072b3a;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 52px;
}
.main-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-link {
    color: #e0ecef;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 0;
    transition: 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
    font-weight: 800;
}
.btn-subscription {
    background: #399ca9;
    color: #fff;
    border-radius: 20px;
    padding: 8px 26px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    display: inline-block;
    transition: 0.2s;
}
.btn-subscription:hover {
    background: #2f8793;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 980px) {
    .main-nav-links, .social-icons {
        display: none;
    }
    .header-middle-content {
        gap: 15px;
    }
}

}

/* Contact Card Component */
aside.contact-card {
    background-color: #0b3040   ;
    color: #ffffff   ;
    padding: 32px   ;
    border-radius: 22px   ;
    position: relative   ;
    overflow: hidden   ;
    box-shadow: 0 10px 30px rgba(11, 48, 64, 0.06)   ;
    width: 100%   ;
    box-sizing: border-box   ;
}

.contact-card-ring {
    position: absolute   ;
    bottom: -80px   ;
    right: -80px   ;
    width: 300px   ;
    height: 300px   ;
    border: 40px solid rgba(255, 255, 255, 0.03)   ;
    border-radius: 50%   ;
    pointer-events: none   ;
    z-index: 1   ;
}

.contact-card-content {
    position: relative   ;
    z-index: 2   ;
}

.contact-card-title {
    color: #ffffff   ;
    font-size: 22px   ;
    font-weight: 800   ;
    margin: 0 0 10px 0   ;
    line-height: 1.2   ;
}

.contact-card-description {
    font-size: 13px   ;
    color: #b9ccd1   ;
    margin: 0 0 25px 0   ;
    line-height: 1.5   ;
}

.contact-list {
    display: flex   ;
    flex-direction: column   ;
    gap: 20px   ;
    margin-bottom: 30px   ;
}

.contact-item {
    display: flex   ;
    align-items: center   ;
    gap: 16px   ;
}

.contact-icon {
    width: 48px   ;
    height: 48px   ;
    min-width: 48px   ;
    border-radius: 12px   ;
    background: rgba(255, 255, 255, 0.08)   ;
    display: flex   ;
    align-items: center   ;
    justify-content: center   ;
    flex-shrink: 0   ;
    color: #ffffff   ;
}

.contact-label {
    font-size: 12px   ;
    color: #8ba5af   ;
    margin-bottom: 2px   ;
    font-weight: 600   ;
}

.contact-value {
    font-size: 14px   ;
    font-weight: 700   ;
    color: #ffffff   ;
    line-height: 1.4   ;
}

.contact-actions {
    display: flex   ;
    flex-wrap: wrap   ;
    gap: 10px   ;
    margin-top: 25px   ;
}

.contact-actions a {
    background-color: #ffffff   ;
    color: #0b3040   ;
    border-radius: 99px   ;
    padding: 10px 18px   ;
    font-size: 12px   ;
    font-weight: 800   ;
    text-decoration: none   ;
    display: inline-flex   ;
    align-items: center   ;
    justify-content: center   ;
    border: 0   ;
}

/* ==========================================================================
   ABOUT DOCTOR PAGE STYLES
   ========================================================================== */

/* 1. Page Header Banner */
.page-header-banner {
    background: linear-gradient(135deg, #F4EBE1 0%, #E6EDEB 100%);
    padding: 45px 0;
    border-bottom: 1px solid var(--line, #e0e0e0);
}

.page-header-banner h1 {
    font-size: 32px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.breadcrumb-nav {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #61747b);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-nav a {
    color: var(--navy, #0b3040);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: var(--terra, #c96e50);
}

.breadcrumb-nav .sep {
    color: var(--muted, #61747b);
}

/* 2. Doctor Detail Section Grid */
.doctor-detail-section {
    padding: 70px 0 100px;
    background: #ffffff;
}

.doctor-detail-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 60px;
    align-items: start;
}

/* 3. Portrait & Decorative Elements */
.doctor-portrait-container {
    position: relative;
    padding-bottom: 60px; /* Room for overlapping dot grid */
}

.teal-backdrop-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 82%;
    background-color: var(--teal, #3399a8);
    border-radius: 20px;
    z-index: 1;
}

.doctor-portrait-img {
    position: relative;
    z-index: 2;
    width: 92%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

/* Dot Matrix Decorative Background */
.dot-matrix-pattern {
    position: absolute;
    bottom: 0;
    right: 10px;
    width: 170px;
    height: 170px;
    z-index: 3;
    background-image: radial-gradient(var(--teal, #3399a8) 2px, transparent 2px);
    background-size: 14px 14px;
    opacity: 0.8;
}

/* 4. Content & Typography Details */
.doctor-detail-content {
    color: var(--ink, #17313b);
}

.doc-title {
    font-size: 32px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.doc-licenses {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--navy, #0b3040);
    margin-bottom: 28px;
}

.doc-degrees h3 {
    font-size: 18px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.doc-degrees p,
.doc-block p {
    font-size: 13.5px;
    line-height: 1.65;
    color: #4a5c63;
    margin: 0 0 24px 0;
}

.doc-block h3 {
    font-size: 15px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    margin: 0 0 10px 0;
    letter-spacing: 0.02em;
}

/* 5. Responsive Behavior */
@media (max-width: 980px) {
    .doctor-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .doctor-portrait-container {
        max-width: 380px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   PATIENT & FAMILY GATEWAY STYLES
   ========================================================================== */

.gateway-section {
    padding: 60px 0 30px;
    background: #ffffff;
}

.gateway-main-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 850;
    color: var(--navy, #0b3040);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.center-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 14px;
    color: var(--muted, #61747b);
    max-width: 680px;
    margin-bottom: 45px;
}

/* Base Gateway Card */
.gateway-card {
    border-radius: var(--radius, 22px);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(11, 48, 64, 0.06);
}

.gateway-card-main {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    padding: 28px;
    align-items: center;
}

/* 1. Light Card Theme */
.gateway-card.light-card {
    background: #f1f3f3;
}

.gateway-card.light-card .gateway-info h3 {
    color: var(--navy, #0b3040);
    font-size: 22px;
    font-weight: 850;
    margin-bottom: 12px;
}

.gateway-card.light-card .gateway-info p {
    color: var(--muted, #61747b);
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* 2. Dark Card Theme */
.gateway-card.dark-card {
    background: var(--navy, #0b3040);
    color: #ffffff;
}

.gateway-card.dark-card .gateway-card-main {
    grid-template-columns: 0.85fr 1.15fr;
}

.gateway-card.dark-card .gateway-info h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 850;
    margin-bottom: 12px;
}

.gateway-card.dark-card .gateway-info p {
    color: #b9ccd1;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Media/Image Styling inside Cards */
.gateway-media img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.gateway-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* Bottom Feature Bars */
.gateway-features-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 18px 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 16px;
}

.gateway-card.light-card .gateway-features-bar {
    background: rgba(255, 255, 255, 0.6);
}

.gateway-card.dark-card .gateway-features-bar {
    background: rgba(255, 255, 255, 0.04);
    border-top-color: rgba(255, 255, 255, 0.08);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    font-size: 18px;
}

.feature-text {
    font-size: 11.5px;
    font-weight: 750;
}

.gateway-card.light-card .feature-text {
    color: var(--navy, #0b3040);
}

.gateway-card.dark-card .feature-text {
    color: #dce7e9;
}

/* Specialized Buttons */
.btn-teal-pill {
    background: #399ca9;
    color: #ffffff;
    border-radius: 99px;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 800;
}

.btn-navy-pill-arrow {
    background: var(--navy, #0b3040);
    color: #ffffff;
    border-radius: 99px;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 800;
}

.btn-white-pill {
    background: #ffffff;
    color: var(--navy, #0b3040);
    border-radius: 99px;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 800;
}

.btn-sand-pill-arrow {
    background: #e8d8c7;
    color: var(--navy, #0b3040);
    border-radius: 99px;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 800;
}

.btn-navy-pill-sm {
    background: var(--navy, #0b3040);
    color: #ffffff;
    border-radius: 99px;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 800;
}

/* 3. Family Resources Section (Sand Background Bottom Block) */
.family-resources-section {
    background: #3399a8;
    padding: 60px 0 80px;
}

.resource-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 8px 20px rgba(11, 48, 64, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 200px;
}

.resource-card h3 {
    font-size: 20px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    margin-bottom: 10px;
}

.resource-card p {
    font-size: 13px;
    color: var(--muted, #61747b);
    line-height: 1.55;
    margin-bottom: 24px;
}

/* Responsive Rules */
@media (max-width: 980px) {
    .gateway-card-main,
    .gateway-card.dark-card .gateway-card-main {
        grid-template-columns: 1fr;
    }

    .gateway-media img {
        height: 240px;
    }

    .gateway-features-bar {
        justify-content: flex-start;
        gap: 12px 24px;
    }
}

/* ==========================================================================
   CONDITIONS TABBED SECTION
   ========================================================================== */

.conditions-section {
    padding: 60px 0 80px;
    background: #ffffff;
}

/* Header Grid */
.conditions-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 24px;
}

.conditions-header h2 {
    font-size: 32px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    margin: 0;
    letter-spacing: -0.01em;
}

.conditions-header p {
    font-size: 13px;
    color: var(--muted, #61747b);
    max-width: 520px;
    margin: 0;
    line-height: 1.5;
}

/* Main Layout Grid */
.conditions-tab-container {
    display: grid;
    grid-template-columns: 310px 1fr;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 48, 64, 0.08);
}

/* Sidebar Navigation */
.conditions-sidebar {
    background: var(#ffffff, #ffffff);
    display: flex;
    flex-direction: column;
}

.tab-btn {
    background: transparent;
    color: #071f29;
    border: 0;
    text-align: left;
    padding: 16px 24px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.tab-btn:hover {
    color: #4e4e4e;
    background: rgba(255, 255, 255, 0.05);
}

/* Active State Button */
.tab-btn.active {
    background: var(--teal, #3399a8);
    color: #0b3040;
    border-left-color: #ffffff;
}

/* Content Area */
.conditions-content-wrapper {
    background: #ffffff;
    position: relative;
}

.tab-panel {
    display: none; /* Hidden by default */
}

.tab-panel.active {
    display: block; /* Visible when active */
    animation: fadeIn 0.25s ease-in-out;
}

/* Right content panel alignment */
.conditions-content-wrapper .tab-panel {
    text-align: left;
}

/* Container for teal buttons inside the right panel */
.conditions-content-wrapper .panel-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Positions the button cluster to the left */
    gap: 10px;
}

/* Force RTL alignment on sidebar condition buttons when Arabic/RTL is active */
body.lang-ar .conditions-sidebar .tab-btn,
[dir="rtl"] .conditions-sidebar .tab-btn {
    text-align: right;
    direction: rtl;
}

/* Flip active indicator border from left side to right side for Arabic */
body.lang-ar .conditions-sidebar .tab-btn.active,
[dir="rtl"] .conditions-sidebar .tab-btn.active {
    border-left: none;
    border-right: 4px solid #000000; /* Match active border color */
}

/* Enable Right-to-Left Direction and Alignment */
[dir="rtl"] .conditions-section,
body.lang-ar .conditions-section {
    direction: rtl;
    text-align: right;
}

/* Sidebar Tab Buttons Text Alignment */
[dir="rtl"] .conditions-sidebar .tab-btn,
body.lang-ar .conditions-sidebar .tab-btn {
    text-align: right;
    direction: rtl;
}

/* Flip the Active Tab Indicator Line from Left to Right */
[dir="rtl"] .tab-btn.active,
body.lang-ar .tab-btn.active {
    border-left: none;
    border-right: 4px solid var(--navy, #0b3040);
}

/* Align Panel Header, Icons, and Buttons to the Right */
[dir="rtl"] .conditions-content-wrapper .tab-panel,
[dir="rtl"] .panel-actions {
    text-align: right;
    justify-content: flex-start;
}

/* Float Image Thumbnail to the Left in RTL */
[dir="rtl"] .wiki-thumb,
body.lang-ar .wiki-thumb {
    float: left;
    clear: left;
    margin: 0 20px 15px 0;
}



/* Top Banner Inside Panel */
.panel-banner {
    background: #f5ede3; /* Theme sand background */
    padding: 24px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-banner h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    letter-spacing: 0.02em;
}

.panel-icon {
    display: flex;
    align-items: center;
}

/* Panel Body */
.panel-body {
    padding: 36px;
}

.panel-intro {
    font-size: 14.5px;
    color: var(--ink, #17313b);
    line-height: 1.6;
    margin-bottom: 28px;
    font-weight: 600;
}

.panel-body h4 {
    font-size: 14px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    margin: 0 0 16px 0;
    letter-spacing: 0.04em;
}

/* Bullet Points List */
.support-list {
    padding-left: 0;
    padding-right: 0;
    padding-inline-start: 25px; /* Left in LTR, Right in RTL */
}

.support-list li {
    position: relative;
}

.support-list li::before {
    position: absolute;
    inset-inline-start: 0; /* Automatically places icon at left:0 (EN) or right:0 (AR) */
}



/* Action Buttons Inside Panel */
.panel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-teal-pill-sm {
    background: var(--teal, #3399a8);
    color: #ffffff;
    border-radius: 99px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 800;
}

.btn-outline-pill-sm {
    background: transparent;
    color: var(--navy, #0b3040);
    border: 1px solid #dcdcdc;
    border-radius: 99px;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 750;
}

.btn-outline-pill-sm:hover {
    border-color: var(--navy, #0b3040);
}

/* Simple Fade Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Behavior */
@media (max-width: 860px) {
    .conditions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .conditions-tab-container {
        grid-template-columns: 1fr;
    }

    .conditions-sidebar {
        flex-direction: row;
        overflow-x: auto;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 14px 18px;
        border-left: 0;
        border-bottom: 3px solid transparent;
    }

    .tab-btn.active {
        border-left-color: transparent;
        border-bottom-color: #ffffff;
    }

    .panel-body {
        padding: 24px;
    }
}

/* ==========================================================================
   PATIENT DASHBOARD SPECIFIC STYLES
   ========================================================================== */

/* Header Bar */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.dash-header h1 {
    font-size: 28px;
    margin: 4px 0 0 0;
}

/* Stats Metrics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.dash-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 4px 15px rgba(11, 48, 64, 0.03);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 850;
    color: var(--ink);
    line-height: 1;
}

.stat-value.text-navy {
    color: var(--navy);
}

/* Dashboard Grid Layouts & Cards */
.dash-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.dash-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 6px 20px rgba(11, 48, 64, 0.04);
    border: 1px solid #eaf0f0;
    display: flex;
    flex-direction: column;
}

.dash-card h2 {
    font-size: 24px;
    font-weight: 850;
    color: var(--navy);
    margin-bottom: 16px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-flex h2 {
    margin-bottom: 0;
}

.card-link {
    font-size: 12px;
    font-weight: 750;
    color: var(--navy);
}

.card-subtext {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    margin-bottom: 20px;
}

/* Details Table & Rows */
.details-table {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f4;
    font-size: 12.5px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--muted);
}

.detail-val {
    font-weight: 750;
    color: var(--ink);
}

.card-footer-action {
    margin-top: auto;
    padding-top: 10px;
}

/* Next Appointment Specifics */
.next-app-body .app-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin: 12px 0 4px 0;
}

.next-app-body .app-time {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0 0 4px 0;
}

.next-app-body .app-location {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0 0 20px 0;
}

.app-actions {
    display: flex;
    gap: 10px;
}

/* Custom Badges */
.badge-green {
    background: #e8f5f1;
    color: #2f7662;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    display: inline-block;
    width: fit-content;
}

/* Schedules List */
.schedule-list {
    margin-top: 10px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.date-badge {
    background: #f5ede3;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.date-badge .day {
    font-size: 14px;
    font-weight: 850;
    color: var(--navy);
}

.date-badge .month {
    font-size: 10px;
    color: var(--muted);
}

.schedule-details {
    display: flex;
    flex-direction: column;
}

.schedule-details strong {
    font-size: 13px;
    color: var(--navy);
}

.schedule-timestamp {
    font-size: 11px;
    color: var(--muted);
}

.schedule-action {
    margin-left: auto;
    font-size: 12px;
    font-weight: 750;
    color: var(--navy);
}

/* Documents List */
.document-list {
    margin-bottom: 20px;
}

.document-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f4;
    font-size: 12.5px;
}

.doc-name {
    color: var(--ink);
}

.doc-link {
    color: var(--muted);
    font-weight: 750;
}

/* Small Buttons */
.btn-dark-sm {
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 750;
    border: none;
    cursor: pointer;
}

.btn-outline-sm {
    background: transparent;
    color: var(--navy);
    border: 1px solid #c8d5d8;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.btn-outline-sm:hover {
    border-color: var(--navy);
}

/* Helpers */
.margin-top-10 { margin-top: 10px; }
.margin-top-25 { margin-top: 25px; }

/* Responsive adjustments */
@media (max-width: 980px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .dash-header {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   COURSES GRID & REGIONAL PRICING BANNER
   ========================================================================== */

.courses-section {
    padding: 40px 0 80px;
    background: #ffffff;
}

/* Filter Bar at Top Right */
.course-filter-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}

/* Geo-IP Pricing Notice Banner */
.pricing-notice-banner {
    background: var(--navy, #0b3040);
    border-radius: 12px;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    margin-bottom: 32px;
}

.banner-text h3 {
    font-size: 18px;
    font-weight: 850;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.banner-text p {
    font-size: 13px;
    color: #a8c1c7;
    margin: 0;
}

.badge-wc {
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy, #0b3040);
    font-size: 10px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 99px;
    white-space: nowrap;
}

/* Courses Grid Layout */
.courses-grid {
    gap: 28px;
}

/* Individual Course Card */
.course-card {
    background: #f8fafb;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #ebf0f2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(11, 48, 64, 0.08);
}

.course-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #eef3f4;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--muted, #61747b);
    margin-bottom: 8px;
}

.course-category {
    text-transform: capitalize;
}

.course-lang {
    font-weight: 750;
}

.course-title {
    font-size: 19px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.course-desc {
    font-size: 13px;
    color: var(--muted, #61747b);
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.course-price {
    font-size: 20px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    margin-bottom: 16px;
}

/* Card Button */
.btn-navy-card {
    background: var(--navy, #0b3040);
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    width: fit-content;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-navy-card:hover {
    background: var(--teal, #3399a8);
}

/* Responsive Adjustments */
@media (max-width: 860px) {
    .pricing-notice-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    
    .course-filter-bar {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   YOUTUBE/FREE VIDEOS GRID EXTENSIONS
   ========================================================================== */

/* Top Notice Banner */
.api-notice-banner {
    background: #fdf3e7;
    color: var(--muted);
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 12px;
    margin-bottom: 28px;
}

/* Card Structure Adjustments */
.card.video-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f0f4f5;
    overflow: hidden;
}

.video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-badge {
    align-self: flex-start;
    margin-bottom: 12px;
}

.video-card-title {
    font-size: 18px;
    font-weight: 850;
    color: var(--navy);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.video-card-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 20px 0;
    line-height: 1.5;
    flex-grow: 1;
}

.video-card-link {
    font-size: 13px;
    font-weight: 850;
    color: var(--terra);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.video-card-link:hover {
    transform: translateX(4px);
}

/* ==========================================================================
   RESOURCE DATA TABLE STYLES
   ========================================================================== */

.resource-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
}

.resource-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

/* Header Row */
.resource-table thead tr {
    background: #f8fafb;
}

.resource-table th {
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    border-bottom: 1px solid var(--line, #d9e1e0);
}

/* Table Body Rows */
.resource-table tbody td {
    padding: 18px 20px;
    color: var(--muted, #61747b);
    border-bottom: 1px solid #edf2f3;
    vertical-align: middle;
}

.resource-table tbody tr:last-child td {
    border-bottom: none;
}

/* Column Specifics */
.resource-name {
    font-weight: 750;
    color: var(--navy, #0b3040);
}

.text-right {
    text-align: right;
}

/* Badge Tweaks for Soft Green Pill in Table */
.resource-table .badge-green {
    background: #e7f2ef;
    color: var(--green, #2f7662);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 99px;
    display: inline-block;
}

/* ==========================================================================
   PRICING CARDS GRID
   ========================================================================== */

.pricing-grid {
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #ebf0f2;
    border-radius: var(--radius, 22px);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(11, 48, 64, 0.03);
    position: relative;
}

/* Middle Card Terracotta Border */
.pricing-card.featured-card {
    border: 1.5px solid var(--terra, #c96e50);
}

.plan-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.plan-title {
    font-size: 20px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    margin: 0 0 12px 0;
}

.plan-price {
    font-size: 28px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-features li {
    font-size: 13.5px;
    color: var(--muted, #61747b);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features .check {
    font-size: 11px;
    font-weight: bold;
    color: var(--muted, #61747b);
}

.plan-desc {
    font-size: 13px;
    color: var(--muted, #61747b);
    line-height: 1.55;
    margin: 0 0 28px 0;
}

.plan-action {
    margin-top: auto;
}

.plan-action .btn {
    padding: 10px 22px;
    font-size: 13px;
    border-radius: 10px;
}

/* ==========================================================================
   ECONSULT CONSULTATION SECTION
   ========================================================================== */

.econsult-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
}

/* Left Column Styling */
.econsult-title {
    font-size: 40px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    line-height: 1.15;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.econsult-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.econsult-features li {
    font-size: 15px;
    color: var(--muted, #61747b);
    display: flex;
    align-items: center;
    gap: 12px;
}

.econsult-features .check {
    font-size: 13px;
    font-weight: bold;
    color: var(--muted, #61747b);
}

/* Right Column Card Styling */
.econsult-card {
    background: #ffffff;
    border: 1px solid #ebf0f2;
    border-radius: var(--radius, 22px);
    padding: 36px 32px;
    box-shadow: 0 8px 30px rgba(11, 48, 64, 0.04);
}

.econsult-card-title {
    font-size: 20px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    margin: 0 0 24px 0;
}

/* Form Controls */
.econsult-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 12px;
    font-weight: 750;
    color: var(--navy, #0b3040);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--navy, #0b3040);
    background: #ffffff;
    border: 1px solid #d9e1e0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

/* Filled / Focused states matching the reference */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--navy, #0b3040);
}

/* Styled work email field background tone matching image */
.form-group input[type="email"] {
    background-color: #eaf1f5;
    border-color: #d2dee4;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%200b3040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 32px;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-action {
    margin-top: 8px;
}

.form-action .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
}

/* Responsive Breakdown */
@media (max-width: 900px) {
    .econsult-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .econsult-title {
        font-size: 32px;
    }
}

@media (max-width: 540px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* MANAGE EXISTING APPOINTMENTS - EXACT MATCH */

.manage-appointments-card {
    background: #ffffff;
    border: 1px solid var(--line, #d9e1e0);
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(11, 48, 64, 0.03);
}

.manage-appointments-card h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--navy, #0b3040);
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

/* Filter Pills Group */
.appt-filter-group {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.filter-pill {
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--line, #d9e1e0);
    background: #ffffff;
    color: var(--navy, #0b3040);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill.active {
    background: var(--navy, #0b3040);
    color: #ffffff;
    border-color: var(--navy, #0b3040);
}

/* Row List & Separator */
.appointment-list-wrapper {
    display: flex;
    flex-direction: column;
}

.appointment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--line, #d9e1e0);
}

.appointment-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Left Content & Sand Date Badge */
.appt-info-side {
    display: flex;
    align-items: center;
    gap: 20px;
}

.appt-sand-badge {
    background: var(--sand, #f5ede3);
    width: 58px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.appt-sand-badge .day {
    font-size: 22px;
    font-weight: 850;
    color: var(--navy, #0b3040);
    line-height: 1;
}

.appt-sand-badge .month {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted, #61747b);
    margin-top: 4px;
    line-height: 1;
}

.appt-text-details h3 {
    font-size: 18px;
    font-weight: 750;
    color: var(--navy, #0b3040);
    margin: 0 0 6px 0;
}

.appt-text-details p {
    font-size: 14px;
    color: var(--muted, #61747b);
    margin: 0;
    font-weight: 600;
}

/* Right Action Buttons */
.appt-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-row-outline {
    background: #ffffff;
    color: var(--navy, #0b3040);
    border: 1px solid var(--navy, #0b3040);
    border-radius: 12px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-row-outline:hover {
    background: rgba(11, 48, 64, 0.04);
}

.btn-row-terra {
    background: var(--terra, #c96e50);
    color: #ffffff;
    border: 1px solid var(--terra, #c96e50);
    border-radius: 12px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-row-terra:hover {
    background: var(--terra2, #a85038);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .appointment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .appt-btn-group {
        width: 100%;
        justify-content: flex-end;
    }
}

.hero-visual {
    position: relative;
    width: 100%;
}

.slider-card {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-card .slide {
    width: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-card .slide.active {
    display: block;
    opacity: 1;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot.active {
    background-color: #0284c7;
    transform: scale(1.15);
}