/* Reset and Base Styles */
:root {
    --primary-orange: #ff6000;
    --primary-orange-hover: #e55300;
    --royal-blue: #0b52ce;
    --dark-blue: #0b2a6b;
    --dark-blue-hover: #071c47;
    --primary-gold: #ffb800;
    --text-color: #2b3445;
    --text-light: #5a6a85;
    --bg-light: #f4f7fc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;

    /* Legacy compatibility alias */
    --primary-red: var(--primary-orange);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-red, .text-orange { color: var(--primary-orange); }
.text-blue { color: var(--royal-blue); }
.text-dark-blue { color: var(--dark-blue); }
.text-gold { color: var(--primary-gold); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff7a00 0%, #ff5000 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(255, 96, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e66e00 0%, #e04800 100%);
    box-shadow: 0 6px 18px rgba(255, 96, 0, 0.4);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--dark-blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(11, 42, 107, 0.25);
}

.btn-dark:hover {
    background-color: var(--dark-blue-hover);
    box-shadow: 0 6px 18px rgba(11, 42, 107, 0.35);
    transform: translateY(-2px);
}

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

.btn-dark-outline:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-orange);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: #fff5ee;
    color: var(--primary-orange-hover);
    transform: translateY(-2px);
}

/* Typography */
h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

h2 {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}

/* Header */
.header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-blue);
    transition: var(--transition);
    font-size: 15px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 60px 0 100px;
    position: relative;
    background: linear-gradient(180deg, #f4f7fc 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 96, 0, 0.1);
    color: var(--primary-orange);
    border: 1px solid rgba(255, 96, 0, 0.25);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

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

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 96, 0, 0.1);
    color: var(--primary-orange);
    border: 1px solid rgba(255, 96, 0, 0.2);
}

.feature-item:nth-child(1) .feature-icon { color: var(--primary-orange); background: rgba(255, 96, 0, 0.1); }
.feature-item:nth-child(2) .feature-icon { color: var(--royal-blue); background: rgba(11, 82, 206, 0.1); border-color: rgba(11, 82, 206, 0.2); }
.feature-item:nth-child(3) .feature-icon { color: #10b981; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.feature-item:nth-child(4) .feature-icon { color: var(--primary-gold); background: rgba(255, 184, 0, 0.15); border-color: rgba(255, 184, 0, 0.3); }

.feature-item span {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

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

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(11, 42, 107, 0.15);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.hero-image-badge {
    position: absolute;
    bottom: -18px;
    left: -18px;
    background: var(--white);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-blue);
}

.hero-image-badge i {
    color: var(--primary-gold);
    font-size: 18px;
}

.hero-shape {
    position: absolute;
    bottom: -150px;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(90deg, #ffb800 0%, #ff6000 45%, #0b52ce 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.5);
    z-index: 1;
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* What is Abacus Section */
.what-is-abacus {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.what-is-abacus-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.what-is-abacus-content {
    flex: 1;
}

.what-is-abacus-content p {
    margin-bottom: 18px;
    color: var(--text-light);
}

.what-is-abacus-content .features-list {
    margin-top: 25px;
}

.what-is-abacus-content .features-list li {
    color: var(--text-color);
}

.what-is-abacus-content .features-list i {
    color: var(--primary-orange);
    background: rgba(255, 96, 0, 0.1);
}

.what-is-abacus-image {
    flex: 1;
}

.what-is-abacus-image img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* What Children Receive Section */
.receive {
    padding: 80px 0;
    background-color: var(--white);
}

.receive-subtext {
    color: var(--text-light);
    margin-top: -10px;
}

.receive-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.receive-card {
    background: var(--bg-light);
    padding: 30px 15px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.receive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(11, 42, 107, 0.12);
    border-color: transparent;
}

.receive-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 96, 0, 0.1);
    color: var(--primary-orange);
}

.receive-card h3 {
    font-size: 1rem;
    color: var(--dark-blue);
    margin-bottom: 0;
}

/* Courses Section */
.courses {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.dot {
    color: var(--primary-orange);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.course-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(11, 42, 107, 0.12);
}

.card-red, .card-orange { border-top-color: var(--primary-orange); }
.card-red .course-icon, .card-orange .course-icon { background: rgba(255, 96, 0, 0.1); }
.card-blue { border-top-color: var(--royal-blue); }
.card-blue .course-icon { background: rgba(11, 82, 206, 0.1); }
.card-green { border-top-color: #10b981; }
.card-green .course-icon { background: rgba(16, 185, 129, 0.1); }
.card-gold { border-top-color: var(--primary-gold); }
.card-gold .course-icon { background: rgba(255, 184, 0, 0.15); }

.course-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon i {
    font-size: 30px;
}

.card-orange .course-icon i { color: var(--primary-orange); }
.card-blue .course-icon i { color: var(--royal-blue); }
.card-green .course-icon i { color: #10b981; }
.card-gold .course-icon i { color: #d99400; }

.course-card h3 {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.course-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Why Us Section */
.why-us {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #071c47 0%, #0b2a6b 100%);
    color: var(--white);
}

.why-us-content-wrap {
    flex: 1;
    padding: 80px 0;
    display: flex;
    justify-content: flex-end;
}

.why-us-container {
    margin: 0;
    padding-right: 60px;
    width: 100%;
    max-width: 600px;
}

.why-us-content h2 {
    color: var(--white);
}

.why-us-intro {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.features-list {
    margin-bottom: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.features-list i {
    color: var(--primary-gold);
    font-size: 1.2rem;
    background: rgba(255, 184, 0, 0.2);
    padding: 2px;
    border-radius: 50%;
}

.why-us-image {
    flex: 1;
}

.why-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Showcase Section */
.video-showcase {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 45px;
}

.video-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 42, 107, 0.1);
    background: #000;
}

.video-card video {
    width: 100%;
    display: block;
    max-height: 420px;
    background: #000;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #ff6000 0%, #e55300 100%);
    padding: 35px 0;
    box-shadow: 0 10px 25px rgba(255, 96, 0, 0.25);
}

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

.cta-text {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
}

.cta-icon {
    font-size: 42px;
    color: var(--primary-gold);
}

.cta-text h2 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.cta-text p {
    margin: 0;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0b2a6b 0%, #071c47 100%);
    color: var(--white);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo img {
    height: 85px;
    width: auto;
    object-fit: contain;
}

.brand-col p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, #ff6000, #ffb800);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.contact-col ul li {
    display: flex;
    gap: 15px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    align-items: flex-start;
}

.contact-col ul li i {
    margin-top: 4px;
    color: var(--primary-gold);
}

.footer-bottom {
    background-color: #041230;
    padding: 18px 0;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.heart {
    color: var(--primary-red);
}

/* Free Demo Modal */
.demo-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 28, 71, 0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.demo-modal-overlay.active {
    display: flex;
}

.demo-modal {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.demo-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.demo-modal-close:hover {
    background: var(--primary-orange);
    color: var(--white);
}

.demo-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.demo-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: rgba(255, 96, 0, 0.1);
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.demo-modal-header h3 {
    color: var(--dark-blue);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.demo-modal-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text-color);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 96, 0, 0.1);
}

.demo-form-submit {
    width: 100%;
    margin-top: 5px;
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
}

/* Branches Section */
.branches {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-top: 45px;
}

.branch-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 42, 107, 0.08);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(11, 42, 107, 0.15);
}

.branch-image {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: #000;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.branch-card:hover .branch-image img {
    transform: scale(1.05);
}

.branch-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff7a00 0%, #ff5000 100%);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.branch-badge-nashik {
    background: linear-gradient(135deg, #0b52ce 0%, #0b2a6b 100%);
}

.branch-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.branch-info h3 {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.branch-head {
    color: var(--dark-blue);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-head i {
    color: var(--primary-orange);
}

.branch-address {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.branch-address i, .branch-contact i {
    color: var(--primary-orange);
    margin-top: 4px;
}

.branch-contact {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-contact a {
    color: var(--dark-blue);
    transition: var(--transition);
}

.branch-contact a:hover {
    color: var(--primary-orange);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
    width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    
    .hero-container, .about-container, .why-us, .what-is-abacus-container {
        flex-direction: column;
    }

    .receive-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-content-wrap {
        padding: 40px 20px;
        justify-content: flex-start;
    }
    
    .why-us-container {
        padding-right: 0;
    }
    
    .courses-grid, .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .gallery-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .nav-links, .header-action .btn {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .logo img {
        height: 60px;
    }
    
    .hero-features {
        flex-wrap: wrap;
    }
    
    .feature-item {
        width: 45%;
    }
    
    .courses-grid, .branches-grid, .footer-container {
        grid-template-columns: 1fr;
    }

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

    .demo-modal {
        padding: 25px;
    }

    .gallery-item {
        flex: 0 0 100%;
    }

    .bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* =========================================================================
   Multi-page additions: top bar, nav submenu, page heroes, branch chooser,
   50:50 founders, levels, comparison, contact, gallery grid, lightbox.
   ========================================================================= */

/* Top bar */
.topbar {
    background: linear-gradient(90deg, #0b2a6b 0%, #0b52ce 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
}

.topbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    flex-wrap: wrap;
}

.topbar-tagline {
    font-weight: 500;
    letter-spacing: 0.4px;
}

.topbar-tagline i { color: var(--primary-gold); }

.topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar-links a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.topbar-links a:hover { color: var(--primary-gold); }

.topbar-links i { margin-right: 5px; opacity: 0.85; }

.topbar-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
}

.topbar-panel {
    background: rgba(255, 255, 255, 0.14);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.topbar-panel:hover {
    background: var(--primary-orange);
    color: var(--white) !important;
}

/* Header layout / student panel button */
.header { position: relative; }

.header-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-panel {
    background: var(--white);
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}

.btn-panel:hover {
    background: var(--dark-blue);
    color: var(--white);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
}

.nav-links { align-items: center; }

.nav-only-mobile { display: none; }

/* Nav submenu */
.has-sub { position: relative; }

.has-sub > a i {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
}

.sub-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: -16px;
    min-width: 300px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(11, 42, 107, 0.16);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 60;
}

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

.sub-menu li { margin: 0; }

.sub-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.sub-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-orange);
}

.sub-menu a i {
    color: var(--primary-orange);
    font-size: 12px;
    width: 14px;
}

/* Chosen-branch bar */
.branch-bar {
    background: #fff5ea;
    border-top: 1px solid rgba(255, 96, 0, 0.18);
    border-bottom: 1px solid rgba(255, 96, 0, 0.18);
    font-size: 0.85rem;
}

.branch-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 9px;
    padding-bottom: 9px;
    flex-wrap: wrap;
}

.branch-bar i { color: var(--primary-orange); }

.branch-bar strong { color: var(--dark-blue); }

.branch-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.branch-bar-link {
    color: var(--royal-blue);
    font-weight: 600;
}

.branch-bar-link:hover { color: var(--primary-orange); }

.branch-bar-clear {
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: var(--text-light);
    text-decoration: underline;
    cursor: pointer;
}

.branch-bar-clear:hover { color: var(--primary-orange); }

/* Page hero (inner pages) */
.page-hero {
    background: linear-gradient(135deg, #f4f7fc 0%, #fff5ea 100%);
    padding: 60px 0 55px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 14px;
}

.page-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.05rem;
}

.crumbs {
    margin-top: 22px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.crumbs a {
    color: var(--royal-blue);
    font-weight: 500;
}

.crumbs a:hover { color: var(--primary-orange); }

.crumbs i {
    margin: 0 8px;
    font-size: 10px;
    opacity: 0.6;
}

/* Shared section bits */
.section-intro {
    max-width: 760px;
    margin: 14px auto 0;
    color: var(--text-light);
}

.section-foot {
    text-align: center;
    margin-top: 40px;
}

/* Branch chooser */
.choose {
    padding: 80px 0;
    background: var(--white);
}

.choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 45px;
}

.choose-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
    position: relative;
}

.choose-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 42, 107, 0.12);
}

.choose-card.accent-orange:hover { border-color: rgba(255, 96, 0, 0.5); }
.choose-card.accent-blue:hover { border-color: rgba(11, 82, 206, 0.5); }

.choose-card.is-chosen {
    border-color: var(--primary-orange);
    box-shadow: 0 14px 34px rgba(255, 96, 0, 0.16);
}

.choose-card.is-chosen::after {
    content: "Your branch";
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-orange);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 20px;
}

.choose-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.choose-head img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--bg-light);
}

.choose-head h3 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 2px;
}

.choose-head p {
    font-size: 0.88rem;
    color: var(--text-light);
}

.choose-centres {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.choose-centres li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.choose-centres li::before {
    content: "\f3c5";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--primary-orange);
    font-size: 12px;
}

.choose-modes {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--royal-blue);
}

.choose-modes i { margin-right: 7px; }

.choose-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.choose-more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.choose-more:hover { color: var(--primary-orange); }

.choose-note {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.choose-note i { color: var(--royal-blue); margin-right: 6px; }

.choose-note a {
    color: var(--royal-blue);
    font-weight: 600;
    text-decoration: underline;
}

/* 50:50 founders */
.founders {
    padding: 80px 0;
    background: var(--bg-light);
}

.jv-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 32px 0 6px;
}

.jv-half {
    flex: 0 0 180px;
    max-width: 180px;
    text-align: center;
    padding: 9px 0;
    border-radius: 10px;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.jv-half-orange { background: linear-gradient(135deg, #ff7a00, #ff5000); }
.jv-half-blue { background: linear-gradient(135deg, #0b52ce, #0b2a6b); }

.jv-amp {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(11, 42, 107, 0.14);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 34px;
    align-items: stretch;
}

.founder-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(11, 42, 107, 0.07);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border-top: 5px solid var(--border-color);
}

.founder-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 42, 107, 0.14);
}

.founder-card.accent-orange { border-top-color: var(--primary-orange); }
.founder-card.accent-blue { border-top-color: var(--royal-blue); }

.founder-photo {
    position: relative;
    height: 320px;
    background: #f0f3f8;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.founder-share {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(7, 28, 71, 0.88);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
}

.accent-orange .founder-share { background: linear-gradient(135deg, #ff7a00, #ff5000); }
.accent-blue .founder-share { background: linear-gradient(135deg, #0b52ce, #0b2a6b); }

.founder-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.founder-role {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary-orange);
}

.accent-blue .founder-role { color: var(--royal-blue); }

.founder-name {
    font-size: 1.4rem;
    color: var(--dark-blue);
    line-height: 1.3;
}

.founder-city {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.founder-city i { color: var(--primary-orange); margin-right: 6px; }

.founder-role-line {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-orange);
    margin-bottom: 14px;
}

.founder-bio {
    font-size: 0.93rem;
    color: var(--text-light);
}

.founder-centres,
.founder-contact,
.branch-centres {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.founder-centres li,
.founder-contact li,
.branch-centres li {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    align-items: flex-start;
}

.founder-centres li i,
.founder-contact li i,
.branch-centres li i {
    color: var(--primary-orange);
    margin-top: 4px;
    width: 14px;
    flex: 0 0 14px;
}

.founder-contact li a {
    color: var(--dark-blue);
    font-weight: 500;
}

.founder-contact li a:hover { color: var(--primary-orange); }

.founder-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
}

.founder-actions .btn-sm { width: auto; }

/* Joint-venture explainer cards */
.jv-explain {
    padding: 80px 0;
    background: var(--white);
}

.jv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 45px;
}

.jv-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 28px 24px;
    transition: var(--transition);
}

.jv-card:hover {
    transform: translateY(-6px);
    background: var(--white);
    box-shadow: 0 16px 36px rgba(11, 42, 107, 0.1);
}

.jv-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 96, 0, 0.1);
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.jv-card:nth-child(even) .jv-icon {
    background: rgba(11, 82, 206, 0.1);
    color: var(--royal-blue);
}

.jv-card h3 {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

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

.jv-card a {
    color: var(--royal-blue);
    font-weight: 600;
    text-decoration: underline;
}

/* Abacus illustration */
.what-is-abacus-image {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.what-is-abacus-image img {
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(11, 42, 107, 0.14);
    width: 100%;
    height: auto;
}

.abacus-caption {
    font-size: 0.82rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* Levels */
.levels {
    padding: 80px 0;
    background: var(--bg-light);
}

.level-table {
    margin-top: 45px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 42, 107, 0.07);
}

.level-row {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 2.4fr;
    gap: 20px;
    padding: 18px 26px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    font-size: 0.93rem;
}

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

.level-head {
    background: linear-gradient(90deg, #0b2a6b, #0b52ce);
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.level-name {
    font-weight: 600;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-orange);
    flex: 0 0 9px;
}

.level-age {
    color: var(--royal-blue);
    font-weight: 600;
}

.level-desc { color: var(--text-light); }

/* Class format */
.format {
    padding: 80px 0;
    background: var(--white);
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 45px;
}

.format-card {
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
}

.format-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(11, 42, 107, 0.1);
}

.format-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a00, #ff5000);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 18px;
}

.format-card h3 {
    font-size: 1.08rem;
    color: var(--dark-blue);
    margin-bottom: 9px;
}

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

/* Branch comparison */
.compare {
    padding: 80px 0;
    background: var(--bg-light);
}

.cmp-table {
    margin-top: 45px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 42, 107, 0.07);
}

.cmp-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1.4fr;
    gap: 20px;
    padding: 16px 26px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
    align-items: start;
}

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

.cmp-head {
    background: linear-gradient(90deg, #0b2a6b, #0b52ce);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
}

.cmp-head i { color: var(--primary-gold); margin-right: 7px; }

.cmp-label {
    font-weight: 600;
    color: var(--dark-blue);
}

.cmp-val { color: var(--text-light); }

.cmp-val a { color: var(--royal-blue); font-weight: 500; }

.cmp-val a:hover { color: var(--primary-orange); }

.cmp-row:nth-child(even) { background: #fafbfe; }

.cmp-foot { background: var(--white) !important; }

.cmp-foot .btn-sm { width: auto; }

/* Branch detail page */
.branch-detail { padding: 70px 0; background: var(--white); }

.branch-detail-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 45px;
    align-items: start;
}

.branch-detail-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(11, 42, 107, 0.16);
    border-top: 6px solid var(--primary-orange);
}

.branch-detail-photo.accent-blue { border-top-color: var(--royal-blue); }

.branch-detail-photo img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: top center;
}

.branch-detail-body h2 {
    font-size: 2rem;
    margin-bottom: 6px;
}

.branch-detail-body > p { color: var(--text-light); }

.branch-sub {
    font-size: 1.05rem;
    color: var(--dark-blue);
    margin: 26px 0 12px;
}

.branch-map { padding: 0 0 80px; background: var(--white); }

.map-frame {
    margin-top: 40px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 34px rgba(11, 42, 107, 0.1);
    line-height: 0;
}

.map-frame iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

.map-frame-sm { margin-top: 20px; }

.map-frame-sm iframe { height: 210px; }

/* Other branch cross-link */
.other-branch { padding: 0 0 80px; background: var(--white); }

.other-branch-card {
    display: flex;
    align-items: center;
    gap: 34px;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 34px;
    border-left: 6px solid var(--royal-blue);
}

.other-branch-card.accent-orange { border-left-color: var(--primary-orange); }

.other-branch-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex: 0 0 150px;
    border: 4px solid var(--white);
    box-shadow: 0 8px 22px rgba(11, 42, 107, 0.14);
}

.other-branch-card h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.other-branch-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 620px;
}

/* Gallery grid + lightbox */
.gallery {
    padding: 80px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 45px;
}

.gallery-tile {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(11, 42, 107, 0.1);
    background: #eef2f8;
}

.gallery-tile img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.5s ease;
}

.gallery-tile:hover img { transform: scale(1.06); }

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 18, 48, 0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover { background: var(--primary-orange); }

/* FAQs */
.faq {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 840px;
    margin: 45px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 22px;
    font-weight: 600;
    color: var(--dark-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    list-style: none;
    font-size: 0.98rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary i {
    color: var(--primary-orange);
    font-size: 13px;
    transition: var(--transition);
    flex: 0 0 auto;
}

.faq-item[open] summary i { transform: rotate(45deg); }

.faq-item[open] summary { border-bottom: 1px solid var(--border-color); }

.faq-item p {
    padding: 16px 22px 20px;
    color: var(--text-light);
    font-size: 0.93rem;
}

/* Contact page */
.contact-section { padding: 70px 0 0; background: var(--white); }

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

.contact-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--primary-orange);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(11, 42, 107, 0.07);
}

.contact-card.accent-blue { border-top-color: var(--royal-blue); }

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

.contact-card-head img {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--bg-light);
}

.contact-card-head h3 {
    font-size: 1.25rem;
    color: var(--dark-blue);
}

.contact-card-head p {
    font-size: 0.87rem;
    color: var(--text-light);
}

.contact-form-section { padding: 80px 0; background: var(--white); }

.contact-form-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.contact-form-copy h2 { margin-bottom: 16px; }

.contact-form-copy > p {
    color: var(--text-light);
    margin-bottom: 22px;
}

.contact-panel-note {
    margin-top: 22px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-panel-note i { color: var(--royal-blue); margin-right: 7px; }

.contact-panel-note a {
    color: var(--royal-blue);
    font-weight: 600;
    text-decoration: underline;
}

.contact-form-wrap {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
}

.contact-or {
    margin: 22px 0 18px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.contact-direct li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
}

.contact-direct i {
    color: var(--primary-orange);
    width: 18px;
}

.contact-direct a {
    color: var(--dark-blue);
    font-weight: 500;
}

.contact-direct a:hover { color: var(--primary-orange); }

/* Demo form hint */
.form-hint {
    font-size: 0.8rem;
    color: var(--royal-blue);
    min-height: 16px;
}

/* Footer additions */
.footer-jv {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.07);
    border-left: 3px solid var(--primary-gold);
    padding: 10px 14px;
    border-radius: 8px;
}

.footer-jv i { color: var(--primary-gold); margin-right: 7px; }

.footer-jv strong { color: var(--white); }

.contact-col ul li a { color: var(--primary-gold); }

.contact-col ul li a:hover { color: var(--white); }

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 1150px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 0.86rem; }
    .btn-panel { display: none; }
}

@media (max-width: 992px) {
    .page-hero h1 { font-size: 2.1rem; }

    .choose-grid,
    .founders-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

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

    .branch-detail-grid,
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .branch-detail-photo img { height: 380px; }

    .other-branch-card {
        flex-direction: column;
        text-align: center;
    }

    .other-branch-card p { margin-left: auto; margin-right: auto; }

    .level-row,
    .cmp-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 16px 20px;
    }

    .level-head,
    .cmp-head {
        display: none;
    }

    .cmp-label {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: var(--primary-orange);
    }

    /* The column headings are gone, so each value names its own branch. */
    .cmp-val[data-city]::before {
        content: attr(data-city) ": ";
        font-weight: 600;
        color: var(--dark-blue);
    }

    .cmp-foot .cmp-val[data-city]::before { content: none; }

    /* On narrow screens the nav becomes a drop-down panel. */
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 16px 30px rgba(11, 42, 107, 0.12);
        display: none;
        z-index: 50;
    }

    .navbar.open { display: block; }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 20px;
    }

    .nav-links > li { border-bottom: 1px solid var(--border-color); }

    .nav-links > li:last-child { border-bottom: none; }

    .nav-links a {
        display: block;
        padding: 14px 0;
    }

    .nav-only-mobile { display: block; }

    .nav-only-mobile a {
        color: var(--royal-blue);
        font-weight: 600;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border-color);
        border-radius: 0;
        min-width: 0;
        margin: 0 0 10px 10px;
        padding: 0 0 0 8px;
        display: none;
    }

    .has-sub.open .sub-menu { display: block; }

    .sub-menu a {
        white-space: normal;
        padding: 10px 8px;
    }

    .menu-toggle { display: block; }

    .header-action .btn-primary { display: none; }
}

@media (max-width: 768px) {
    .topbar-container { justify-content: center; }
    .topbar-tagline { display: none; }
    .topbar-links { gap: 12px; justify-content: center; font-size: 0.76rem; }
    .topbar-sep { display: none; }

    .page-hero { padding: 40px 0 36px; }
    .page-hero h1 { font-size: 1.8rem; }
    .page-hero p { font-size: 0.95rem; }

    .jv-half { flex-basis: 110px; max-width: 110px; font-size: 0.85rem; }

    .jv-grid,
    .format-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .founder-photo { height: 280px; }

    .branch-detail-photo img { height: 320px; }

    .contact-form-wrap { padding: 26px 20px; }

    .other-branch-card { padding: 26px 20px; }

    .branch-bar-inner { justify-content: center; text-align: center; }

    .gallery-tile img { height: 230px; }

    .map-frame iframe { height: 300px; }
}

/* Legal / help pages */
.legal { padding: 60px 0; background: var(--white); }
.legal-container { max-width: 860px; }
.legal-updated { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.legal-updated i { color: var(--primary-orange); margin-right: 6px; }
.legal-toc { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 12px; padding: 18px 22px; margin-bottom: 36px; }
.legal-toc strong { color: var(--dark-blue); }
.legal-toc ol { margin: 10px 0 0 20px; columns: 2; column-gap: 30px; list-style: decimal; }
.legal-toc li { margin: 4px 0; font-size: 0.93rem; }
.legal-toc a, .legal-body a { color: var(--royal-blue); }
.legal-body section { margin-bottom: 32px; scroll-margin-top: 110px; }
.legal-body h2 { color: var(--dark-blue); font-size: 1.35rem; margin-bottom: 12px; }
.legal-body p, .legal-body li { color: var(--text-color); font-size: 0.97rem; line-height: 1.75; }
.legal-body p { margin-bottom: 12px; }
.legal-body ul, .legal-body ol { margin: 0 0 14px 22px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
#delete-account { background: var(--bg-light); scroll-margin-top: 90px; }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 40px auto 0; }
.help-card { border: 1px solid var(--border-color); border-radius: 14px; padding: 24px; background: var(--white); }
.help-card h3 { color: var(--dark-blue); margin-bottom: 8px; }
.help-card h3 i, .help-card p i { color: var(--primary-orange); margin-right: 6px; }
.help-card p { margin-bottom: 6px; color: var(--text-light); }
.help-card .btn { margin-top: 10px; }
.footer-legal a { color: inherit; text-decoration: underline; }
@media (max-width: 768px) {
    .legal-toc ol { columns: 1; }
    .help-grid { grid-template-columns: 1fr; }
}
