/* ==========================================================================
   SynchroServe — International Education (Test Prep & Study Abroad) Styles
   Extends styles.css using existing design tokens, typography, and components
   ========================================================================== */

/* Subpage layout adjustments: prevent full-viewport snap/forcing on content sections */
body.subpage,
body.subpage main {
    scroll-snap-type: none;
}

section.subpage-hero,
section.subpage-section,
section.promo-carousel-section {
    min-height: auto;
    scroll-snap-align: none;
    scroll-margin-top: 90px;
}

section.subpage-hero::after,
section.subpage-section::after,
section.promo-carousel-section::after {
    display: none;
}

/* Header accommodation for multi-page navigation & Test Prep dropdown */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.navbar-container {
    max-width: 1320px;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    margin-left: 0;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.main-logo {
    width: 175px;
    max-width: 175px;
    height: auto;
}

.nav-menu {
    gap: 0.95rem;
}

.nav-link {
    font-size: 0.88rem;
    white-space: nowrap;
}

.nav-actions {
    flex-shrink: 0;
}

.nav-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 1.15rem;
    font-size: 0.88rem;
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 12px);
    left: 0;
    min-width: 225px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition-smooth);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* ==========================================================================
   Homepage Compact Promotional Carousel
   ========================================================================== */
.promo-carousel-section {
    padding: 48px 0 56px 0;
    background-color: var(--bg-secondary);
}

.promo-carousel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.promo-carousel-header .section-tag {
    margin-bottom: 0.5rem;
}

.promo-carousel-kicker {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.promo-carousel-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.promo-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.promo-arrow-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

.promo-carousel-shell {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.promo-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.promo-carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.promo-slide {
    flex: 0 0 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.25rem 2.75rem;
}

.promo-slide-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.promo-slide-badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
}

.promo-slide-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.promo-slide-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.promo-slide-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.promo-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: none;
}

.promo-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 2.75rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.promo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.promo-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9999px;
    padding: 0.35rem 0.95rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.promo-tab-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.promo-tab-btn.active {
    background: var(--primary);
    color: var(--text-white);
}

.promo-slide-counter {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ==========================================================================
   Subpage Hero & Breadcrumbs
   ========================================================================== */
.subpage-hero {
    padding: 150px 0 80px 0;
    background: radial-gradient(circle at 80% 20%, var(--primary-light) 0%, #ffffff 65%);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.breadcrumb-nav a {
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-current {
    color: var(--primary);
    font-weight: 600;
}

.subpage-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.subpage-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.subpage-hero-lead {
    font-size: 1.12rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    max-width: 600px;
}

.ecosystem-ribbon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding: 0.85rem 1.15rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.ecosystem-arrow {
    color: var(--primary);
    font-weight: 700;
}

.subpage-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.subpage-hero-media {
    border-radius: var(--radius-xl);
    padding: 0.65rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.subpage-hero-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-lg);
    animation: none;
}

/* ==========================================================================
   Content Sections, Cards, Comparison Tables & Roadmaps
   ========================================================================== */
.subpage-section {
    padding: 84px 0;
}

.subpage-section.bg-alt {
    background-color: var(--bg-secondary);
}

.subpage-section.bg-white {
    background-color: var(--bg-primary);
}

.subpage-section .section-header {
    margin-bottom: 3rem;
}

.subpage-section .section-subtitle {
    margin-bottom: 0;
}

.positioning-banner {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
}

.positioning-banner h2 {
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
}

.positioning-banner p {
    color: var(--text-muted);
    margin: 0;
}

/* Two-column and Three-column info grids */
.info-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.subpage-section.bg-white .info-card {
    background: var(--bg-secondary);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.25);
}

.info-card-label {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    margin-bottom: 0.9rem;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin-bottom: 1rem;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.clean-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.clean-list li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.clean-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--primary);
}

/* Comparison & Structure Tables */
.table-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.ss-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 680px;
}

.ss-table thead th {
    background: var(--bg-secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main);
    padding: 1.1rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.ss-table tbody td {
    padding: 1.1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

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

.ss-table tbody tr:hover td {
    background: rgba(239, 246, 255, 0.45);
}

.table-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.table-note {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    color: var(--text-main);
}

/* Key Facts Summary Grid (Exam Pages) */
.facts-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.fact-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.fact-box-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.fact-box-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.fact-box-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Preparation Roadmap / Study Journey Steps */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.roadmap-step {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition-smooth);
}

.roadmap-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.25);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.roadmap-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.roadmap-step p {
    font-size: 0.94rem;
    color: var(--text-muted);
}

/* Study Abroad Destination Cards */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.destination-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.destination-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.25);
}

.destination-img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.destination-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    animation: none;
}

.destination-card:hover .destination-img-wrap img {
    transform: scale(1.04);
}

.destination-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.destination-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.65rem;
}

.destination-body p {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.destination-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.destination-highlights li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-left: 1.15rem;
    position: relative;
}

.destination-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.destination-portal {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.destination-portal:hover {
    text-decoration: underline;
}

/* Official Resources & Counselling CTA Box */
.resource-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.resource-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.65rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.resource-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.resource-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.resource-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.cta-panel {
    background: radial-gradient(circle at 85% 20%, var(--primary-light) 0%, #ffffff 70%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.cta-panel-text h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-panel-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
}

.cta-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex-shrink: 0;
}

/* Ensure course-card images on subpages stay crisp without glitch animation */
body.subpage .course-card-img {
    animation: none;
}

/* ==========================================================================
   Expandable Syllabus Modules & Score Visuals (IELTS & SAT)
   ========================================================================== */
.syllabus-accordion-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.syllabus-accordion-container .faq-content {
    padding-top: 1.25rem;
}

.syllabus-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.syllabus-subblock h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.65rem;
}

.band-scale-badge {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: var(--primary-light);
    color: var(--primary);
}

.score-visual-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.score-bars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.score-bar-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem;
}

.score-bar-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.score-bar-range {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.score-meter-track {
    width: 100%;
    height: 10px;
    border-radius: 9999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.score-meter-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.score-bar-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1180px) {
    .nav-menu {
        gap: 0.65rem;
    }

    .nav-link {
        font-size: 0.82rem;
    }

    .main-logo {
        width: 150px;
        max-width: 150px;
    }

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

@media (max-width: 1024px) {
    .subpage-hero-grid,
    .promo-slide {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .subpage-hero-content,
    .subpage-hero-media,
    .promo-slide-content,
    .promo-slide-media {
        min-width: 0;
        max-width: 100%;
    }

    .subpage-hero-title {
        font-size: 2.4rem;
    }

    .info-grid-3,
    .roadmap-grid,
    .destinations-grid,
    .resource-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .main-header {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .navbar-container {
        width: 100%;
        max-width: 100%;
        padding: 0 1.25rem;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .logo {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .main-logo {
        width: 155px;
        max-width: 155px;
        height: auto;
    }

    .hero-title {
        font-size: 2.15rem !important;
        overflow-wrap: break-word;
    }

    .nav-dropdown {
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-secondary);
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .promo-carousel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-slide {
        padding: 1.5rem;
    }

    .promo-slide-title {
        font-size: 1.45rem;
    }

    .promo-carousel-footer {
        padding: 0.85rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .subpage-hero {
        padding: 112px 0 60px 0;
    }

    .subpage-hero-title {
        font-size: 1.85rem;
        overflow-wrap: break-word;
    }

    .ecosystem-ribbon {
        max-width: 100%;
        font-size: 0.8rem;
    }

    .subpage-section {
        padding: 64px 0;
    }

    .info-grid-2,
    .info-grid-3,
    .facts-strip,
    .roadmap-grid,
    .destinations-grid,
    .resource-cards-grid,
    .syllabus-columns,
    .score-bars-grid {
        grid-template-columns: 1fr;
    }

    .cta-panel {
        padding: 2rem 1.5rem;
    }
}
