:root {
    --royal-blue: #0a192f;
    --accent-gold: #c5a059;
    --cream-text: #feebad;
    --off-white: #f8f9fa;
    --white: #ffffff;
    --danger: #e74c3c;
    --success: #2ecc71;
}

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

/* Global Settings */
html, body { 
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--off-white); 
    color: var(--royal-blue); 
    font-family: 'Inter', sans-serif;
    line-height: 1.6; 
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; transition: 0.3s ease; }
p { opacity: 0.9; overflow-wrap: break-word; word-wrap: break-word; }

/* --- HEADER --- */
/* FIXED HEADER - Solid at the very top */
header { 
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(245, 235, 209, 1); /* 100% Solid initially */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    transition: all 0.4s ease;
    padding: 10px 0;
}

/* TRANSLUCENT WHEN SCROLLING */
header.scrolled {
    background: rgba(245, 235, 209, 0.5); /* 50% See-through */
    backdrop-filter: blur(15px); /* Strong blur for readability */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

/* HERO ADJUSTMENT - Ensures video goes behind the header */
.hero-upgrade {
    margin-top: 0 !important; 
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

.logo-img { 
    height: 90px; 
    width: auto; 
    object-fit: contain; 
    transition: all 0.3s ease;
}

.nav-links { display: flex; gap: 40px; }
.nav-links a { 
    color: #0A192F; font-weight: 600; font-size: 0.9rem; 
    text-transform: uppercase; letter-spacing: 1px; position: relative; padding-bottom: 5px;
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: var(--accent-gold); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-gold); }

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}
.hamburger span {
    display: block; width: 30px; height: 3px; background: var(--royal-blue); border-radius: 3px; transition: 0.3s;
}

.btn { padding: 14px 32px; border-radius: 50px; font-weight: 600; cursor: pointer; border: none; font-size: 0.9rem; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; font-family: 'Inter', sans-serif;}

.btn-gold { 
    background: linear-gradient(135deg, var(--accent-gold), #b89146); 
    color: var(--royal-blue); 
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    position: relative; overflow: hidden; z-index: 1;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(197, 160, 89, 0.5); }
.btn-outline {
    border: 2px solid var(--royal-blue);
    background: transparent;
    color: var(--royal-blue);
}
.btn-outline:hover {
    background: var(--royal-blue);
    color: white;
}

/* --- HERO --- */
.hero { 
    position: relative; 
    height: 90vh; 
    display: flex; 
    align-items: center; 
    overflow: hidden;
    background: var(--royal-blue)
}
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(2, 17, 39, 0.95) 0%, rgba(10, 25, 47, 0.6) 100%); z-index: -1; }
.hero-content { position: relative; z-index: 1; color: var(--white); max-width: 900px; width: 100%; padding-left: 15%; }
.hero h1 { font-size: 4.5rem; margin-bottom: 25px; line-height: 1.1; font-weight: 700; animation: fadeUp 1s ease forwards 0.5s; opacity: 0; }
.hero h1 span { color: var(--accent-gold); font-style: italic; }
.hero p { font-size: 1.25rem; margin-bottom: 40px; color: var(--cream-text); max-width: 600px; animation: fadeUp 1s ease forwards 0.8s; opacity: 0;}
.hero-btn-wrapper { animation: fadeUp 1s ease forwards 1.1s; opacity: 0; display: flex; gap: 15px; justify-content: center;}

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

/* --- STATS STRIP --- */
.stats-strip {
    background: #0b1c36;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 5;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.stat-item {
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.stat-item p {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* --- SECTIONS --- */
.section { padding: 80px 0; overflow: hidden; }

.bg-white { background: var(--white); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.8rem; color: var(--royal-blue); margin-bottom: 15px; }
.section-header .line { width: 80px; height: 3px; background: var(--accent-gold); margin: 0 auto; }

.vision-text { 
    text-align: center; max-width: 800px; margin: 0 auto; 
    font-size: 1.3rem; line-height: 2; color: var(--royal-blue);
}
.vision-highlight { color: var(--accent-gold); font-weight: 900; font-family: 'Playfair Display', serif; font-size: 1.9rem; }

/* --- STRATEGIC EXPERTISE --- */
.services-section { background-color: var(--royal-blue); color: var(--white); }
.services-section .section-header h2 { color: #feebad; } 

.service-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    width: 100%;
}

.service-card { 
    background: rgba(255,255,255,0.03); 
    padding: 30px; 
    border-radius: 16px; 
    border: 1px solid rgba(255,255,255,0.05); 
    transition: 0.3s; 
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-wrap: break-word;
    word-break: break-word;
    cursor: pointer;
    position: relative;
}
.service-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent-gold); 
    background: rgba(255,255,255,0.06); 
}
.service-card:active {
    transform: translateY(-2px);
}

.icon-box { font-size: 30px; margin-bottom: 15px; color: var(--accent-gold); }
.service-card h3 { margin-bottom: 12px; color: var(--cream-text); font-size: 1.25rem; }
.service-card p { color: #d1d5db; font-weight: 300; font-size: 0.95rem; line-height: 1.5; }

/* --- CONTACT --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); margin: 50px 0; }
.contact-info { background: var(--royal-blue); padding: 80px 60px; color: var(--white); }
.contact-form-box { padding: 80px 60px; background: #fff; }

.contact-form-box label { 
    font-weight: 700; display: block; margin-bottom: 8px; 
    color: var(--royal-blue);
    font-size: 0.85rem; letter-spacing: 0.5px;
}

.form-input { width: 100%; padding: 18px; margin-bottom: 25px; background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 1rem; color: var(--royal-blue); }
.form-input:focus { border-color: var(--accent-gold); outline: none; background: #fff; }

footer { background: #050d1a; color: #9ca3af; padding: 80px 0; text-align: center; font-size: 0.9rem; }

/* --- CHATBOT --- */
.chat-toggle {
    position: fixed; bottom: 30px; right: 30px;
    width: 65px; height: 65px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; cursor: pointer; z-index: 2000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: 0.3s;
    color: var(--royal-blue);
}
.chat-toggle:hover { transform: scale(1.1); }

.chat-window {
    position: fixed; bottom: 110px; right: 30px;
    width: 350px; height: 500px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    z-index: 2001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
    animation: slideIn 0.3s ease;
}

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

.chat-header {
    background: var(--royal-blue);
    padding: 20px; color: white;
    display: flex; justify-content: space-between; align-items: center;
}
.chat-header h4 { font-family: 'Playfair Display', serif; margin: 0; }
.close-chat { cursor: pointer; font-size: 20px; opacity: 0.7; }

.chat-messages {
    flex: 1; padding: 20px; overflow-y: auto; background: #f8f9fa;
    display: flex; flex-direction: column; gap: 15px;
}

.message { max-width: 80%; padding: 10px 15px; border-radius: 15px; font-size: 0.9rem; line-height: 1.4; }
.message.bot { background: #e9ecef; color: var(--royal-blue); border-bottom-left-radius: 2px; align-self: flex-start; }
.message.user { background: var(--accent-gold); color: var(--royal-blue); border-bottom-right-radius: 2px; align-self: flex-end; font-weight: 600; }
.typing { font-style: italic; font-size: 0.8rem; color: #888; display: none; margin-left: 20px; margin-bottom: 10px; }

.chat-input-area {
    padding: 15px; background: white; border-top: 1px solid #eee;
    display: flex; gap: 10px;
}
.chat-input {
    flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 20px;
    outline: none; font-family: 'Inter', sans-serif;
}
.send-btn {
    background: var(--royal-blue); color: var(--accent-gold);
    border: none; width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* --- PAGE VISIBILITY --- */
/* --- PAGE VISIBILITY LOGIC (REQUIRED) --- */

/* 1. Hide all pages by default */
.page { 
    display: none; 
}

/* 2. Only show the page that has the "active" class */
.page.active { 
    display: block; 
    animation: fadeIn 0.5s ease; /* Animation only plays when page appears */
}

/* 3. The Fade In Animation */
@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

/* --- DETAIL PAGE STYLES --- */
.detail-hero {
    background: linear-gradient(135deg, var(--royal-blue), #1a3a52);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.detail-hero h1 { font-size: 3rem; margin-bottom: 20px; color: var(--cream-text); }

.detail-content { padding: 60px 0; }
.detail-section { margin-bottom: 80px; }
.detail-section h2 { font-size: 2.2rem; color: var(--royal-blue); margin-bottom: 30px; }

.benefits-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.benefit-item {
    background: white; padding: 25px; border-radius: 12px;
    border-left: 4px solid var(--accent-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.benefit-item h3 { color: var(--royal-blue); margin-bottom: 10px; }
.benefit-item p { color: #666; font-size: 0.95rem; }

.back-btn { margin-bottom: 30px; display: inline-flex; align-items: center; gap: 10px; color: var(--royal-blue); font-weight: 600; cursor: pointer; transition: 0.3s; }
.back-btn:hover { color: var(--accent-gold); }

/* ========================================= */
/* === IELTS TEST PORTAL STYLES (NEW) === */
/* ========================================= */

#ielts-portal {
    display: none; /* Hidden by default */
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #f4f7f6;
    z-index: 3000;
    overflow-y: auto;
}

.ielts-login-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.9);
    z-index: 3001;
    display: flex; align-items: center; justify-content: center;
}

.login-box {
    background: white; padding: 40px; border-radius: 20px; width: 400px;
    text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.test-header {
    background: var(--royal-blue); color: white; padding: 15px 30px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timer-badge {
    background: var(--accent-gold); color: var(--royal-blue);
    padding: 8px 15px; border-radius: 50px; font-weight: 700;
    font-family: 'Inter', sans-serif; font-size: 1.1rem;
}

.test-body {
    max-width: 1400px; margin: 30px auto; padding: 0 20px;
    height: calc(100vh - 150px);
    display: flex; gap: 20px;
}

.test-body.has-paywall {
    height: auto;
    min-height: calc(100vh - 150px);
    display: block;
}

.test-panel {
    background: white; border-radius: 8px; border: 1px solid #ddd;
    overflow-y: auto; padding: 30px;
    height: 100%;
}

.split-view {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: 100%; width: 100%;
}

.question-group { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.question-group label { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.question-group input[type="radio"] { margin-top: 5px; }

.module-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: white; border-top: 1px solid #ddd; padding: 15px;
    display: flex; justify-content: flex-end; gap: 20px;
    z-index: 2900;
}

/* Writing Specifics */
.word-count { font-size: 0.8rem; color: #666; text-align: right; margin-top: 5px; }
textarea.ielts-input {
    width: 100%; min-height: 200px; padding: 15px;
    border: 1px solid #ccc; border-radius: 8px; font-family: 'Inter', sans-serif;
    resize: vertical;
}

/* ========================================= */
/* === PAYWALL/PAYMENT SECTION STYLES === */
/* ========================================= */

.paywall-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    visibility: visible;
    opacity: 1;
}

.paywall-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
    border: 1px solid rgba(197, 160, 89, 0.2);
    position: relative;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.paywall-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--royal-blue));
}

.paywall-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.paywall-title {
    font-size: 2.5rem;
    color: var(--royal-blue);
    margin-bottom: 10px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.paywall-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: 400;
}

.paywall-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.2);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature-text strong {
    color: var(--royal-blue);
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.feature-text span {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.paywall-pricing {
    margin-bottom: 30px;
}

.pricing-card {
    background: linear-gradient(135deg, var(--royal-blue), #1a3a52);
    color: white;
    padding: 30px;
    border-radius: 16px;
    position: relative;
    margin: 0 auto;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-gold);
    color: var(--royal-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--accent-gold);
    margin: 10px 0;
}

.pricing-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.paywall-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 18px 40px;
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.paywall-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.4);
}

.paywall-button small {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.paywall-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.note-text {
    flex: 1;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

.note-text strong {
    color: #856404;
    font-weight: 700;
}

.paywall-security {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 0.85rem;
    color: #666;
}

.paywall-security span {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* Mobile Responsive for Paywall */
@media(max-width: 900px) {
    .paywall-container {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .paywall-content {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .paywall-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .paywall-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .paywall-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .paywall-features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .feature-item {
        padding: 20px;
        flex-direction: row;
        align-items: center;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .feature-text strong {
        font-size: 0.95rem;
    }
    
    .feature-text span {
        font-size: 0.85rem;
    }
    
    .pricing-card {
        max-width: 100%;
        padding: 25px 20px;
    }
    
    .pricing-amount {
        font-size: 2.5rem;
    }
    
    .pricing-badge {
        right: 15px;
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .paywall-button {
        width: 100%;
        max-width: 100%;
        padding: 16px 30px;
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .paywall-note {
        padding: 15px;
        margin-bottom: 20px;
        flex-direction: row;
    }
    
    .note-icon {
        font-size: 1.2rem;
    }
    
    .note-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .paywall-security {
        flex-direction: column;
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .paywall-security span {
        justify-content: center;
    }
}

@media(max-width: 480px) {
    .paywall-title {
        font-size: 1.5rem;
    }
    
    .paywall-subtitle {
        font-size: 0.95rem;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .pricing-amount {
        font-size: 2rem;
    }
}

/* Speaking Specifics */
.recorder-box {
    text-align: center; padding: 50px; background: #f8f9fa; border-radius: 15px;
    border: 2px dashed #ccc; margin-top: 20px;
}
.mic-icon {
    font-size: 50px; color: #ccc; margin-bottom: 15px; transition: 0.3s;
}
.recording .mic-icon { color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* --- MOBILE FIXES --- */
@media(max-width: 1300px) {
    .container { width: 92%; }
    .hamburger { display: flex; }
    
    /* Responsive Logo - FIXED SIZE LOGIC */
    .logo-img { 
        height: auto !important; 
        max-height: 60px; /* Controls height but maintains aspect ratio */
        width: auto !important; 
        max-width: 200px; /* Allows width to expand naturally */
        object-fit: contain;
    }
    
    header {
        min-height: 80px;
        height: auto;
        padding: 8px 0;
    }
    
    .logo-container {
        flex-shrink: 0;
    }
    
    .header-social {
        gap: 8px;
    }
    
    .header-social a {
        font-size: 1rem !important;
    }
    
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(245, 235, 209, 0.98);
        flex-direction: column; padding: 20px 0; gap: 20px;
        text-align: center; box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        display: none;
        z-index: 999;
    }
    .nav-links.active { display: flex; }

    /* HERO FIXES FOR BUTTON VISIBILITY */
    .hero { 
        height: auto; /* Remove fixed height */
        min-height: 85vh; /* Ensure it covers most of screen */
        padding-top: 120px; /* Push content down so header doesn't cover it */
        padding-bottom: 80px; /* Increased space at bottom */
    }
    .hero h1 { font-size: 2.2rem; padding-left: 0; margin-top: 20px; }
    .hero-content { padding-left: 0; text-align: center;padding-left: 20px; padding-right: 20px; }

    /* Fix for 99% success text overlapping buttons - makes it distinct */
    .hero p {
        font-size: 1.15rem;
        margin-bottom: 60px !important; /* Force large gap between text and buttons */
        padding: 0 20px;
        line-height: 1.7;
    }

    .hero-btn-wrapper { 
        flex-direction: column; 
        gap: 20px;
        justify-content: center;
        margin-bottom: 20px;
        width: 100%;
        align-items: center;
        display: flex;
    }

    /* Make buttons wider and centered on mobile for better visibility */
    .hero-btn-wrapper .btn {
        width: 85%;
        max-width: 350px;
        display: flex;
        justify-content: center;
        text-align: center;
    }
    
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { padding: 40px 30px !important; }
    .contact-form-box { padding: 40px 30px !important; }
    .service-grid { display: flex !important; flex-direction: column !important; gap: 20px !important; }
    .service-card { width: 100% !important; }
    .benefits-list { grid-template-columns: 1fr; }
    .header-social { gap: 10px; }
    .header-social a { font-size: 1.1rem !important; }
    
    /* Test Portal Mobile */
    #ielts-portal { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; overflow-y: auto; }
    .split-view { 
        grid-template-columns: 1fr !important; 
        display: block !important; 
        gap: 15px;
    }
    .test-panel { 
        margin-bottom: 20px; 
        height: auto !important; 
        max-height: none !important;
        padding: 20px !important;
        overflow-y: visible !important;
    }
    .test-body { 
        display: block !important; 
        height: auto !important; 
        padding-bottom: 100px !important;
        padding: 15px !important;
    }
    .login-box { 
        width: 90% !important; 
        max-width: 400px;
        padding: 30px 20px !important;
    }
    .test-header {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        text-align: center;
    }
    .test-header > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    #module-title {
        margin-left: 0 !important;
        font-size: 0.9rem;
    }
    .timer-badge {
        font-size: 1rem;
        padding: 6px 12px;
    }
    .module-nav {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    .module-nav button {
        width: 100%;
    }
    .question-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 15px 0 !important;
    }
    .question-group input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        font-size: 0.9rem !important;
    }
    .question-group label {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .question-group span {
        font-size: 0.9rem;
        word-break: break-word;
    }
    .test-panel h3 {
        font-size: 1.2rem !important;
    }
    .test-panel p {
        font-size: 0.95rem !important;
    }
    textarea.ielts-input {
        font-size: 0.9rem !important;
        padding: 12px !important;
    }
    
    /* Chatbot Mobile */
    .chat-window {
        width: calc(100% - 20px) !important;
        height: calc(100vh - 120px) !important;
        bottom: 110px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    .chat-toggle {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

/* Tablet sizes */
@media(min-width: 901px) and (max-width: 1200px) {
    .logo-img {
        height: 90px;
        width: auto;
    }
    header {
        height: 90px;
    }
}

/* Mobile devices - Logo sizing for legibility */
@media(max-width: 768px) {
    .logo-img {
        height: auto !important;
        max-height: 55px; /* Slightly smaller but proportional */
        width: auto !important;
        min-width: unset; /* Removed fixed min-width to avoid stretching */
        max-width: 250px;
        object-fit: contain;
    }
    header {
        min-height: 70px;
        height: auto;
        padding: 10px 0;
        align-items: center;
    }
    .logo-container {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
}

/* Small mobile devices */
@media(max-width: 480px) {
    .logo-img {
        height: auto !important;
        max-height: 45px; /* Appropriately small for tiny screens */
        width: auto !important;
        min-width: unset;
    }
    header {
        min-height: 70px;
        padding: 8px 0;
    }
    .header-social {
        gap: 6px;
    }
    .header-social a {
        font-size: 0.9rem !important;
    }
}

/* Floating Button */
.chat-toggle {
    position: fixed; bottom: 30px; right: 30px;
    width: 65px; height: 65px;
    background: #c5a059; /* Gold */
    color: #0a192f; /* Royal Blue */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; cursor: pointer; z-index: 2000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.chat-toggle:hover { transform: scale(1.1); }

/* Chat Window */
.chat-window {
    position: fixed; bottom: 110px; right: 30px;
    width: 350px; height: 500px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    z-index: 2001;
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
    animation: slideIn 0.3s ease;
}

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

/* Header & Messages */
.chat-header {
    background: #0a192f;
    padding: 20px; color: white;
    display: flex; justify-content: space-between; align-items: center;
}
.close-chat { cursor: pointer; font-size: 20px; opacity: 0.8; }

.chat-messages {
    flex: 1; padding: 20px; overflow-y: auto; background: #f8f9fa;
    display: flex; flex-direction: column; gap: 15px;
}

/* Chat Bubbles */
.message { max-width: 80%; padding: 10px 15px; border-radius: 15px; font-size: 0.9rem; line-height: 1.4; }
.message.bot { background: #e9ecef; color: #0a192f; border-bottom-left-radius: 2px; align-self: flex-start; }
.message.user { background: #c5a059; color: #0a192f; border-bottom-right-radius: 2px; align-self: flex-end; font-weight: 600; }

/* Input Area */
.typing { font-style: italic; font-size: 0.8rem; color: #888; display: none; margin-left: 20px; margin-bottom: 10px; }
.chat-input-area {
    padding: 15px; background: white; border-top: 1px solid #eee;
    display: flex; gap: 10px;
}
.chat-input {
    flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 20px; outline: none;
}
.send-btn {
    background: #0a192f; color: #c5a059;
    border: none; width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Grid Layout */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Card Style */
.service-card {
    background: rgba(255,255,255,0.03);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: #c5a059;
}


/* Detail Page Hero */
.detail-hero {
    background: #0a192f;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}
.back-btn {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Mobile - Additional fixes */
@media(max-width: 900px) {
    .service-grid { grid-template-columns: 1fr; }
    .stats-strip { padding: 30px 0 !important; }
    .stats-container { flex-direction: column; gap: 15px !important; }
    .stat-item h3 { font-size: 2rem; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 2rem; }
    .detail-hero h1 { font-size: 2rem; }
    .detail-section h2 { font-size: 1.8rem; }
    footer { padding: 50px 0; }
    footer .container { padding: 0 20px; }
}
/* Social Media Hover Effects */
.header-social a:hover {
    transform: scale(1.2);
    color: var(--accent-gold) !important;
}

footer a:hover {
    transform: scale(1.15);
    color: var(--accent-gold) !important;
}



/* MOBILE ONLY: FADE VIDEO */
@media (max-width: 768px) {
    .video-bg-upgrade {
        opacity: 0.2; /* Makes video 20% visible, 80% transparent */
    }
    
    .hero-upgrade {
        background-color: #0b1c36; /* The dark blue shows through the transparent video */
    }
}

/* --- MOBILE OPTIMIZATIONS --- */

.mobile-text { display: none; } /* Hidden by default on PC */

@media (max-width: 768px) {
    /* 1. Force Vertical Column Layout */
    #vision .container, 
    #who-we-are .container {
        display: flex !important;
        flex-direction: column !important; /* Stacks items vertically */
        align-items: center !important;    /* Centers items horizontally */
        gap: 20px !important;              /* Adds space between Header and Text */
    }

    /* 2. Center Text Alignment */
    #vision .section-header, 
    #vision .vision-content,
    #who-we-are .section-header, 
    #who-we-are .vision-content {
        text-align: center !important;
        width: 100% !important; /* Ensures text uses full width */
    }

    /* Center the Gold Line */
    .line { margin: 15px auto !important; }

    /* 3. Text Switcher Logic */
    .desktop-text { display: none !important; }
    .mobile-text { display: block !important; }
}