/* =======================================================
   Baikal Language Center (BLC) - Modern Static Stylesheet
   Preserving brand identity, section themes, responsive layout
   ======================================================= */

:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
    
    /* Default Blue Theme (blc-edu) */
    --primary: #1976d2;
    --primary-dark: #0d47a1;
    --primary-light: #e3f2fd;
    --primary-border: #bbdefb;
    --accent: #f57c00;
    --accent-hover: #e65100;
    
    --text-dark: #2c3e50;
    --text-body: #4a5568;
    --text-muted: #718096;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --container-max: 1200px;
}

/* Theme Variances */
body.theme-blc-about {
    --primary: #d35400;
    --primary-dark: #a04000;
    --primary-light: #fbeee6;
    --primary-border: #f5cba7;
}

body.theme-blc-camp {
    --primary: #e67e22;
    --primary-dark: #b95d0e;
    --primary-light: #fef5e7;
    --primary-border: #fad7a0;
}

body.theme-blc-translate {
    --primary: #00897b;
    --primary-dark: #004d40;
    --primary-light: #e0f2f1;
    --primary-border: #b2dfdb;
}

body.theme-blc-shop {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #e8f5e9;
    --primary-border: #c8e6c9;
}

body.theme-blc-contact {
    --primary: #7b1fa2;
    --primary-dark: #4a148c;
    --primary-light: #f3e5f5;
    --primary-border: #e1bee7;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-light);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= Top Bar ================= */
.topbar {
    background: #1a252f;
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-slogan {
    font-weight: 500;
    color: #f1f5f9;
}

.topbar-contacts {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-phone {
    color: #e2e8f0;
    font-weight: 600;
}

.topbar-phone:hover {
    color: #38bdf8;
}

.topbar-social img {
    width: 18px;
    height: 18px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.topbar-social:hover img {
    opacity: 1;
}

.topbar-branch {
    color: #94a3b8;
    font-size: 0.8rem;
    border-left: 1px solid #475569;
    padding-left: 12px;
}

/* ================= Header & Branding ================= */
.header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.header-container {
    padding-top: 15px;
    padding-bottom: 15px;
}

.header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left-visual, .header-right-visual {
    flex: 0 0 280px;
}

.header-sub-img, .header-sub-img-right {
    height: 110px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.header-right-visual {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-fast-contacts {
    text-align: right;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--text-muted);
}

.header-fast-contacts .phone {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.header-center-branding {
    text-align: center;
    flex: 1;
}

.brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.brand-eng {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-transform: uppercase;
}

.brand-rus {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.3px;
    margin: 0;
}

.brand-motto {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ================= Main Navigation ================= */
.main-nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2px;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-bottom-color: var(--accent);
}

.nav-cta {
    margin-left: 10px;
}

.btn-primary-nav {
    background: var(--accent);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: inline-block;
}

.btn-primary-nav:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ================= Hero Section ================= */
.hero-section {
    background: linear-gradient(180deg, var(--primary-light) 0%, rgba(255,255,255,0) 100%);
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.hero-camp {
    background: linear-gradient(180deg, #fef5e7 0%, rgba(255,255,255,0) 100%);
}

.hero-about {
    background: linear-gradient(180deg, #fbeee6 0%, rgba(255,255,255,0) 100%);
}

.hero-text {
    max-width: 800px;
    margin-bottom: 30px;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-border);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.3rem;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-features-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.feature-item {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 1.8rem;
}

.feature-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.feature-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================= Layout: Main & Sidebar ================= */
.layout-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.site-main {
    min-width: 0;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Content Sections */
.content-section {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

/* Article Body typography from Drupal */
.article-body {
    font-size: 1rem;
    color: #334155;
    line-height: 1.7;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul, .article-body ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92rem;
}

.article-body table th, .article-body table td {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
}

.article-body table th {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
}

/* ================= Filter Pills ================= */
.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* ================= Courses Grid ================= */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.course-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.course-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.course-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.course-snippet {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 18px;
    line-height: 1.55;
}

.course-card-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Course detailed list */
.course-full-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px;
    margin-bottom: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.course-heading {
    font-size: 1.35rem;
    margin-top: 6px;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.course-lang-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
}

.course-cta-box {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.course-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 24px;
}

.tag-pill {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 14px;
    font-weight: 500;
}

.tag-pill:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ================= Camp Page Components ================= */
.camp-highlight-box {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 24px;
}

.abroad-program-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    background: #ffffff;
}

.abroad-program-card h3 {
    margin-bottom: 14px;
    color: var(--primary-dark);
}

/* ================= Accordions (FAQ / Rules) ================= */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
}

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    text-align: left;
    background: #ffffff;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background: var(--primary-light);
}

.accordion-icon {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    display: none;
    padding: 18px 20px;
    border-top: 1px solid var(--border-color);
    background: #fafbfc;
    font-size: 0.95rem;
    line-height: 1.65;
}

.accordion-item.open .accordion-content {
    display: block;
}

/* ================= Reviews ================= */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.review-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    position: relative;
}

.review-quote {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.3;
}

.review-text {
    font-size: 0.92rem;
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 12px;
}

.review-author {
    font-size: 0.88rem;
    color: var(--text-dark);
    text-align: right;
}

.review-full-card {
    display: flex;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.review-avatar {
    font-size: 1.8rem;
    flex: 0 0 40px;
}

.review-name {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.review-full-text {
    font-size: 0.95rem;
    color: var(--text-body);
}

/* ================= News Grid ================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 14px;
    flex: 1;
}

.news-link {
    font-size: 0.88rem;
    font-weight: 600;
}

.news-full-item {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
}

.news-item-header {
    margin-bottom: 14px;
}

.news-item-date {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.news-item-title {
    font-size: 1.3rem;
    margin-top: 4px;
    color: var(--text-dark);
}

/* ================= Photo Gallery ================= */
.gallery-album-block {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.album-title {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.photo-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.album-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.gallery-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.gallery-thumb-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb-item:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= Products / Bookstore ================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
}

.product-category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 14px;
}

.catalog-search-box {
    flex: 0 0 260px;
}

/* ================= Contacts & Branches ================= */
.contact-branch-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    background: #ffffff;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.branch-header h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.branch-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.branch-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    align-items: start;
}

.branch-info-col p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.branch-info-col .btn {
    margin-top: 14px;
}

.branch-map-col {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.map-preview {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.map-preview:hover {
    opacity: 0.92;
}

.map-hint {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 6px;
    background: #f8fafc;
}

/* ================= Interactive Quiz / Test ================= */
.quiz-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.btn-level-select {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-level-select:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.lvl-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.lvl-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quiz-active-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-top: 25px;
    box-shadow: var(--shadow-sm);
}

.quiz-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.quiz-progress-wrap {
    flex: 0 0 260px;
}

.progress-bar-bg {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}

.progress-bar-fill {
    height: 100%;
    width: 10%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.quiz-question-card {
    margin-bottom: 25px;
}

.quiz-q-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option-btn {
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: var(--radius-sm);
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-option-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.quiz-option-btn.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}

.quiz-nav-btns {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.quiz-results-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 35px;
    margin-top: 25px;
    text-align: center;
}

.score-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.score-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.results-explanation {
    max-width: 600px;
    margin: 20px auto 30px;
    text-align: left;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

/* ================= Sidebar Components ================= */
.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.award-card {
    border-top: 4px solid #f59e0b;
}

.award-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.award-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.award-header h4 {
    font-size: 1.05rem;
    color: #b45309;
}

.award-card p {
    font-size: 0.88rem;
    color: var(--text-body);
}

.test-banner-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    position: relative;
    overflow: hidden;
}

.test-banner-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.test-banner-card p {
    font-size: 0.88rem;
    color: #dbeafe;
    margin-bottom: 16px;
}

.banner-badge {
    display: inline-block;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.camp-banner-card {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #ffffff;
    border: none;
}

.camp-banner-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.camp-banner-card p {
    font-size: 0.88rem;
    color: #fef3c7;
    margin-bottom: 16px;
}

.ladder-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.small-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.callback-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.callback-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ================= Buttons & Forms ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-warning {
    background: #f59e0b;
    color: #ffffff;
}

.btn-warning:hover {
    background: #d97706;
    color: #ffffff;
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: var(--primary-dark);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-dark);
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-notice {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

/* ================= Footer ================= */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 50px 0 25px;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 35px;
    margin-bottom: 35px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-logo h3 {
    color: #ffffff;
    font-size: 1.15rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 6px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-contacts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contacts-list strong {
    color: #e2e8f0;
}

.footer-contacts-list a {
    color: #38bdf8;
}

.footer-copy {
    margin-top: 18px;
    font-size: 0.82rem;
    color: #64748b;
}

/* ================= Modals & Lightbox ================= */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 520px;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #94a3b8;
}

.modal-close:hover {
    color: #0f172a;
}

.modal-header h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: #ffffff;
    margin-top: 12px;
    font-size: 1rem;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: none;
    font-size: 2rem;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ================= Responsive Queries ================= */
@media (max-width: 1024px) {
    .layout-container {
        grid-template-columns: 1fr;
    }
    
    .site-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

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

    .header-banner {
        flex-direction: column;
        text-align: center;
    }

    .header-left-visual, .header-right-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .topbar-content {
        justify-content: center;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-list {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .nav-list.open {
        display: flex;
    }

    .nav-wrapper {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .nav-cta {
        display: none;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .branch-details-grid {
        grid-template-columns: 1fr;
    }

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

/* =======================================================
   Modern Remote Learning & Messenger Contact Styles
   ======================================================= */

/* Topbar Messengers & Badges */
.topbar-sep {
    margin: 0 6px;
    opacity: 0.5;
}

.topbar-city {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
}

.topbar-msg-btn, .topbar-msg-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topbar-tg {
    background: rgba(34, 158, 217, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}
.topbar-tg:hover {
    background: #229ed9;
    color: #ffffff;
    transform: translateY(-1px);
}

.topbar-wa {
    background: rgba(37, 211, 102, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}
.topbar-wa:hover {
    background: #25d366;
    color: #ffffff;
    transform: translateY(-1px);
}

.topbar-max {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.4);
    cursor: default;
}

/* Header Fast Contacts */
.contact-line-city {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.contact-line-phone a {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-line-phone a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-line-messengers {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.header-msg-link, .header-msg-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-tg {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}
.header-tg:hover {
    background: #0284c7;
    color: #ffffff;
}

.header-wa {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.header-wa:hover {
    background: #16a34a;
    color: #ffffff;
}

.header-max {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.contact-line-format {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #a7f3d0;
}

/* Footer Remote Learning */
.footer-remote-badge {
    background: rgba(56, 189, 248, 0.15);
    border-left: 3px solid #38bdf8;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.footer-remote-badge strong {
    color: #f1f5f9;
    font-size: 0.95rem;
}
.footer-remote-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #94a3b8;
}
.footer-max {
    color: #c084fc;
}

/* Remote Official Notices for Documents & Rules (about.html) */
.remote-doc-notice {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin-bottom: 20px;
}
.remote-doc-notice.rules-theme {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-left-color: #2563eb;
}

.remote-doc-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #16a34a;
    background: #dcfce7;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.rules-theme .remote-doc-badge {
    color: #1d4ed8;
    background: #dbeafe;
}

.remote-doc-notice h4 {
    color: #1e293b;
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.remote-doc-notice p {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Course Alert Banner (courses.html) */
.remote-course-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 25px;
}
.rc-alert-icon {
    font-size: 2rem;
}
.rc-alert-text strong {
    display: block;
    color: #0369a1;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.rc-alert-text p {
    margin: 0;
    color: #334155;
    font-size: 0.92rem;
}

/* Contacts Page (contacts.html) */
.remote-hero-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.remote-badge-label {
    display: inline-block;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.remote-hero-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.remote-hero-card p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 800px;
    margin: 0;
}

.contacts-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}
.contact-m-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-m-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}
.contact-m-card.messengers-highlight {
    border-color: #38bdf8;
    background: #f8fafc;
}
.m-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.contact-m-card h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.m-card-city {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.m-card-phone a {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
}
.m-card-phone a:hover {
    text-decoration: underline;
}
.m-card-hours {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0 16px;
}
.m-card-email a {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
}
.m-card-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.m-card-msg-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}
.msg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.msg-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}
.msg-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tg-pill {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}
.tg-pill:hover {
    background: #0284c7;
    color: #ffffff;
}
.wa-pill {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.wa-pill:hover {
    background: #16a34a;
    color: #ffffff;
}
.max-pill {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

/* Online Features Box */
.online-features-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-sm);
}
.box-heading {
    font-size: 1.25rem;
    margin-bottom: 22px;
    color: var(--text-dark);
}
.online-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.of-item {
    text-align: center;
    padding: 10px;
}
.of-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.of-item h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.of-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Contacts CTA Banner */
.contacts-cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.contacts-cta-banner h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.contacts-cta-banner p {
    color: #e2e8f0;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* Media Queries for Contacts Grid */
@media (max-width: 900px) {
    .contacts-modern-grid {
        grid-template-columns: 1fr;
    }
    .online-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .online-features-grid {
        grid-template-columns: 1fr;
    }
}

