:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --glow-red: #ff3333;
    --glow-red-dark: #cc0000;
    --card-bg: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Premium Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px var(--glow-red);
    }
    100% {
        box-shadow: 0 0 20px var(--glow-red), 0 0 30px var(--glow-red-dark);
    }
}

/* Header & Navigation */
header {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 51, 51, 0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #ff3333);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--glow-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--glow-red);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #ff6666);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Glowing Red Buttons */
.btn-glow {
    background: transparent;
    color: var(--glow-red);
    border: 2px solid var(--glow-red);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.btn-glow:hover {
    background: var(--glow-red);
    color: white;
    animation: glowPulse 0.5s ease infinite;
    transform: scale(1.05);
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #ff3333, #cc0000);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    position: fixed;
    top: 70px;
    width: 100%;
    z-index: 999;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.3);
    border-color: var(--glow-red);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Grid Layouts */
.grid-3, .grid-4 {
    display: grid;
    gap: 2rem;
    padding: 2rem 5%;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Admin Panel Styles */
.admin-container {
    background: var(--bg-darker);
    min-height: 100vh;
    padding: 2rem;
}

.admin-table {
    width: 100%;
    background: var(--card-bg);
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px;
    border: 1px solid #333;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}
/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Hero Particles Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 3rem;
    color: rgba(255, 51, 51, 0.3);
    animation: float 3s ease-in-out infinite;
}

.floating-element2 {
    position: absolute;
    bottom: 20%;
    right: 10%;
    font-size: 4rem;
    color: rgba(255, 51, 51, 0.3);
    animation: float 4s ease-in-out infinite reverse;
}

.floating-element3 {
    position: absolute;
    top: 50%;
    right: 20%;
    font-size: 2.5rem;
    color: rgba(255, 51, 51, 0.2);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 51, 51, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 51, 51, 0.5);
}

/* Typing Text Effect */
.typing-text {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #ff6666);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #ff3333;
    animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #ff3333; }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.2rem;
    margin: 1rem 0;
    opacity: 0.9;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: white;
    color: #ff3333;
    transform: scale(1.05);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ff3333;
}

.hero-stat span:last-child {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Section Badge */
.section-badge {
    display: inline-block;
    background: rgba(255, 51, 51, 0.15);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #ff3333;
    margin-bottom: 1rem;
}

/* Gradient Line */
.gradient-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff3333, #ff6666, #ff3333);
    margin: 1rem auto;
    border-radius: 3px;
}

/* Feature Cards */
.feature-card {
    background: #111;
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #ff3333;
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.3);
}

.feature-icon {
    font-size: 3rem;
    color: #ff3333;
    margin-bottom: 1rem;
}

.feature-hover {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff3333, transparent);
    transition: 0.3s;
}

.feature-card:hover .feature-hover {
    bottom: 0;
}

/* University Cards */
.university-card {
    position: relative;
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    transition: transform 0.5s;
}

.university-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(255,51,51,0.4));
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.university-card:hover .card-overlay {
    opacity: 1;
}

.rank-badge {
    background: #ff3333;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
}

/* Testimonial Cards */
.testimonial-card {
    background: #111;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 51, 51, 0.2);
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: #ff3333;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: rgba(255, 51, 51, 0.2);
}

.student-image-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.student-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff3333;
}

.testimonial-score {
    background: rgba(255, 51, 51, 0.2);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    margin: 1rem 0;
}

.rating {
    color: gold;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Grid 4 */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .typing-text {
        font-size: 1.8rem;
        white-space: normal;
        border-right: none;
        animation: none;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large, .btn-outline {
        padding: 12px 25px;
    }
    
    .hero-stat .stat-number {
        font-size: 1.5rem;
    }
    
    .floating-element, .floating-element2, .floating-element3 {
        display: none;
    }
}
/* Floating Social Sidebar */
.social-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0 20px 20px 0;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-left: none;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
}

.social-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #111;
    color: #ff3333;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.social-sidebar a:hover {
    transform: translateX(5px);
    background: #ff3333;
    color: white;
    border-color: #ff3333;
}

.social-sidebar .whatsapp {
    color: #25d366;
}

.social-sidebar .whatsapp:hover {
    background: #25d366;
    color: white;
}

/* For mobile devices - hide or make smaller */
@media (max-width: 768px) {
    .social-sidebar {
        padding: 10px 8px;
        gap: 10px;
    }
    .social-sidebar a {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}
/* Social Sidebar Styles - Ensure visibility */
        .social-sidebar {
            position: fixed;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            z-index: 9999;
            background: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 0 20px 20px 0;
            padding: 15px 10px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            border: 1px solid rgba(255, 51, 51, 0.3);
            border-left: none;
            box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
        }
        
        .social-sidebar a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            border-radius: 12px;
            background: #111;
            color: #ff3333;
            font-size: 1.5rem;
            transition: all 0.3s ease;
            text-decoration: none;
            border: 1px solid rgba(255, 51, 51, 0.2);
        }
        
        .social-sidebar a:hover {
            transform: translateX(5px);
            background: #ff3333;
            color: white;
            border-color: #ff3333;
        }
        
        .social-sidebar .whatsapp {
            color: #25d366;
        }
        
        .social-sidebar .whatsapp:hover {
            background: #25d366;
            color: white;
        }
        
        @media (max-width: 768px) {
            .social-sidebar {
                padding: 10px 8px;
                gap: 10px;
            }
            .social-sidebar a {
                width: 35px;
                height: 35px;
                font-size: 1.2rem;
            }
            body {
                padding-top: 70px;
            }
            .hero {
                margin-top: -70px;
                padding-top: 150px;
            }
        }
        /* ============================================
   LIGHT MODE OVERRIDES
   ============================================ */

/* Hero Section Light Mode */
body[data-theme="light"] .hero {
    background: var(--hero-gradient), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3');
    background-size: cover;
    background-position: center;
}

body[data-theme="light"] .hero h1 {
    background: linear-gradient(135deg, #1a1a1a, #e63946);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body[data-theme="light"] .hero-badge {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.3);
    color: #e63946;
}

/* Card Styles Light Mode */
body[data-theme="light"] .card,
body[data-theme="light"] .service-card,
body[data-theme="light"] .country-card-modern,
body[data-theme="light"] .testimonial-card,
body[data-theme="light"] .feature-card,
body[data-theme="light"] .announcement-card,
body[data-theme="light"] .success-card,
body[data-theme="light"] .mv-card,
body[data-theme="light"] .value-card,
body[data-theme="light"] .team-card,
body[data-theme="light"] .contact-card,
body[data-theme="light"] .contact-form-wrapper,
body[data-theme="light"] .map-wrapper,
body[data-theme="light"] .faq-item,
body[data-theme="light"] .story-card {
    background: #ffffff;
    border-color: rgba(230, 57, 70, 0.15);
}

body[data-theme="light"] .card:hover,
body[data-theme="light"] .service-card:hover,
body[data-theme="light"] .country-card-modern:hover,
body[data-theme="light"] .feature-card:hover {
    border-color: #e63946;
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.15);
}

/* Text Colors Light Mode */
body[data-theme="light"] p,
body[data-theme="light"] .country-description,
body[data-theme="light"] .service-content p,
body[data-theme="light"] .testimonial-text,
body[data-theme="light"] .story-text {
    color: #555555;
}

body[data-theme="light"] .mv-card p,
body[data-theme="light"] .value-card p,
body[data-theme="light"] .team-bio {
    color: #666666;
}

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] h4,
body[data-theme="light"] .country-name,
body[data-theme="light"] .student-name {
    color: #1a1a1a;
}

/* Section Backgrounds Light Mode */
body[data-theme="light"] .mission-vision,
body[data-theme="light"] .story-section,
body[data-theme="light"] .team-section,
body[data-theme="light"] .values-section,
body[data-theme="light"] .contact-info-section,
body[data-theme="light"] .contact-main,
body[data-theme="light"] .faq-section,
body[data-theme="light"] .services-grid,
body[data-theme="light"] .process-section,
body[data-theme="light"] .test-cards-section,
body[data-theme="light"] .features-section,
body[data-theme="light"] .stories-section,
body[data-theme="light"] .benefits-section,
body[data-theme="light"] .success-stories-section {
    background: #f5f5f5;
}

body[data-theme="light"] .ceo-section {
    background: linear-gradient(135deg, #f0f0f0, #fafafa);
}

body[data-theme="light"] .ceo-content {
    background: #ffffff;
}

/* Input Fields Light Mode */
body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea,
body[data-theme="light"] .search-input {
    background: #ffffff;
    border-color: #e0e0e0;
    color: #1a1a1a;
}

body[data-theme="light"] input:focus,
body[data-theme="light"] select:focus,
body[data-theme="light"] textarea:focus,
body[data-theme="light"] .search-input:focus {
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* Filter Buttons Light Mode */
body[data-theme="light"] .filter-btn {
    background: #ffffff;
    border-color: rgba(230, 57, 70, 0.3);
    color: #555555;
}

body[data-theme="light"] .filter-btn.active,
body[data-theme="light"] .filter-btn:hover {
    background: #e63946;
    color: white;
}

/* Statistics Section Light Mode */
body[data-theme="light"] .stats-section {
    background: linear-gradient(135deg, #e63946, #c1121f);
}

body[data-theme="light"] .stats-section .stat-number {
    color: white;
}

/* CTA Section Light Mode */
body[data-theme="light"] .cta-section,
body[data-theme="light"] .services-cta,
body[data-theme="light"] .mocktest-section {
    background: linear-gradient(135deg, #e63946, #c1121f);
}

body[data-theme="light"] .cta-section h2,
body[data-theme="light"] .services-cta h2,
body[data-theme="light"] .mocktest-section h2 {
    color: white;
}

body[data-theme="light"] .cta-section p,
body[data-theme="light"] .services-cta p,
body[data-theme="light"] .mocktest-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Footer Light Mode */
body[data-theme="light"] .footer-modern {
    background: #f8f9fa;
    border-top-color: rgba(230, 57, 70, 0.15);
}

body[data-theme="light"] .footer-modern .branch-col h4 {
    color: #1a1a1a;
}

body[data-theme="light"] .footer-modern .branch-address p,
body[data-theme="light"] .footer-modern .contact-item p,
body[data-theme="light"] .footer-modern .contact-item a,
body[data-theme="light"] .footer-modern .brand-description {
    color: #555555;
}

body[data-theme="light"] .footer-modern .contact-item a:hover {
    color: #e63946;
}

body[data-theme="light"] .footer-modern .social-icons a {
    background: rgba(0, 0, 0, 0.05);
    color: #555555;
}

body[data-theme="light"] .footer-modern .social-icons a:hover {
    background: #e63946;
    color: white;
}

body[data-theme="light"] .footer-modern .developer-credit {
    border-top-color: rgba(0, 0, 0, 0.1);
    color: #888888;
}

/* Social Sidebar Light Mode */
body[data-theme="light"] .social-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(230, 57, 70, 0.2);
}

body[data-theme="light"] .social-sidebar a {
    background: #f0f0f0;
    color: #e63946;
}

body[data-theme="light"] .social-sidebar a:hover {
    background: #e63946;
    color: white;
}

/* Modal Light Mode */
body[data-theme="light"] .country-modal .modal-content {
    background: #ffffff;
}

body[data-theme="light"] .country-modal .modal-body p,
body[data-theme="light"] .country-modal .modal-description {
    color: #555555;
}

body[data-theme="light"] .country-modal .modal-stats {
    background: #f5f5f5;
}

/* Process Steps Light Mode */
body[data-theme="light"] .process-step p {
    color: #666666;
}

/* Hero Stats Light Mode */
body[data-theme="light"] .hero-stats {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .hero-stat span:last-child {
    color: #666666;
}

/* Announcement Card Light Mode */
body[data-theme="light"] .announcement-card .announcement-content h3 {
    color: #e63946;
}

body[data-theme="light"] .announcement-card .announcement-content p {
    color: #555555;
}

body[data-theme="light"] .announcement-card .announcement-date {
    color: #888888;
}

/* Success Story Card Light Mode */
body[data-theme="light"] .success-card .info-item .info-value {
    color: #1a1a1a;
}

body[data-theme="light"] .success-card .info-item .info-label {
    color: #888888;
}

/* Feature Card Light Mode */
body[data-theme="light"] .feature-card p {
    color: #666666;
}

/* Value Card Light Mode */
body[data-theme="light"] .value-card p {
    color: #666666;
}

/* Team Card Light Mode */
body[data-theme="light"] .team-card .team-contact p {
    color: #888888;
}

/* FAQ Light Mode */
body[data-theme="light"] .faq-question h4 {
    color: #1a1a1a;
}

body[data-theme="light"] .faq-answer p {
    color: #555555;
}

/* Buttons Light Mode */
body[data-theme="light"] .btn-outline {
    border-color: #e63946;
    color: #e63946;
}

body[data-theme="light"] .btn-outline:hover {
    background: #e63946;
    color: white;
}

body[data-theme="light"] .btn-glow {
    border-color: #e63946;
    color: #e63946;
}

body[data-theme="light"] .btn-glow:hover {
    background: #e63946;
    color: white;
}

/* Responsive adjustments for light mode */
@media (max-width: 768px) {
    body[data-theme="light"] .mobile-nav {
        background: #ffffff;
    }
    
    body[data-theme="light"] .mobile-nav-links li a {
        color: #1a1a1a;
    }
    
    body[data-theme="light"] .mobile-theme-toggle {
        background: #f0f0f0;
    }
}

/* Country Card Light Mode */
body[data-theme="light"] .country-content .visa-rate {
    background: rgba(230, 57, 70, 0.1);
    color: #e63946;
}

body[data-theme="light"] .country-stats {
    border-top-color: rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .country-stats .stat-label {
    color: #888888;
}

/* Prevent horizontal scroll on all devices */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    button, 
    .btn-glow, 
    .btn-outline,
    .service-btn,
    .test-btn,
    .submit-btn,
    .nav-links a,
    .mobile-nav-links a,
    .social-sidebar a,
    .filter-btn,
    .view-all-btn,
    .cta-btn-white,
    .mocktest-btn,
    .email-consultation-btn {
        cursor: pointer;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Fix hero section on mobile */
    .hero {
        background-attachment: scroll !important;
        min-height: 100vh;
        height: auto;
        padding: 100px 5% 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        white-space: normal !important;
        word-break: break-word;
    }
    
    .typing-text {
        font-size: 1.6rem !important;
        white-space: normal !important;
        border-right: none !important;
        animation: none !important;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .btn-glow, .btn-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hero-stat {
        flex: 1;
        min-width: 80px;
    }
    
    .hero-stat .stat-number {
        font-size: 1.5rem;
    }
    
    /* Fix all grid layouts */
    .grid-3, .grid-4,
    .services-container,
    .test-grid,
    .features-grid,
    .benefits-grid,
    .stories-grid,
    .values-grid,
    .team-grid,
    .success-stories-grid,
    .countries-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Fix about page */
    .story-container,
    .ceo-container,
    .mv-container,
    .contact-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .story-image img,
    .ceo-image img {
        height: 250px !important;
        object-fit: cover;
    }
    
    .mv-card, .value-card, .team-card, .service-card {
        padding: 1.5rem !important;
    }
    
    /* Fix contact cards */
    .contact-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        margin-top: -30px;
    }
    
    .contact-card {
        padding: 1.2rem !important;
    }
    
    .contact-card-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
    }
    
    /* Fix process steps */
    .process-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Fix statistics section */
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    /* Fix forms */
    .contact-form-wrapper,
    .consultation-form-wrapper {
        padding: 1.5rem !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
    }
    
    .submit-btn {
        padding: 14px !important;
        font-size: 1rem !important;
    }
    
    /* Fix FAQ section */
    .faq-question {
        padding: 1rem !important;
    }
    
    .faq-question h4 {
        font-size: 0.9rem !important;
        padding-right: 30px;
    }
    
    /* Fix cards content */
    .card, .service-card, .country-card-modern {
        margin: 0;
    }
    
    .card-image img {
        height: 180px;
    }
    
    .card-content, .service-content, .country-content {
        padding: 1rem;
    }
    
    /* Fix hero stats badges on ielts page */
    .hero-stats-badge {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .hero-stat {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .hero-stat span {
        font-size: 0.8rem;
    }
    
    /* Fix floating elements - hide on mobile to prevent overflow */
    .floating-element,
    .floating-element2,
    .floating-element3,
    .hero-floating-icon {
        display: none !important;
    }
    
    /* Fix about hero */
    .about-hero h1 {
        font-size: 2rem !important;
    }
    
    .about-hero {
        background-attachment: scroll !important;
        padding: 120px 5% 60px;
    }
    
    /* Fix team section */
    .branch-title {
        font-size: 1.4rem;
        text-align: center;
        display: block;
    }
    
    .team-image {
        height: 200px;
    }
    
    /* Fix CTA sections */
    .cta-section h2,
    .services-cta h2,
    .cta-about h2,
    .mocktest-content h2 {
        font-size: 1.6rem !important;
    }
    
    .cta-section p,
    .services-cta p,
    .cta-about p,
    .mocktest-content p {
        font-size: 0.9rem !important;
        padding: 0 15px;
    }
    
    /* Fix benefit cards */
    .benefit-card {
        flex-direction: column !important;
        text-align: center;
        align-items: center;
        padding: 1.5rem;
    }
    
    .benefit-icon {
        margin-bottom: 1rem;
    }
    
    /* Fix feature cards */
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    /* Fix section headers */
    .section-header h2 {
        font-size: 1.8rem !important;
        padding: 0 15px;
    }
    
    .section-header p {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    /* Fix footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .brand-description {
        max-width: 100%;
        margin: 0 auto 1.5rem;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .branch-col h4 {
        display: block;
        text-align: center;
    }
    
    .branch-col h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .branch-address, .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .branch-address p, .contact-item p {
        text-align: left;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Fix modal on mobile */
    .country-modal .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-country-name {
        font-size: 1.3rem;
        flex-wrap: wrap;
    }
    
    .modal-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }
    
    /* Fix university details page */
    .university-header {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .university-title h1 {
        font-size: 1.6rem !important;
    }
    
    .university-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .apply-section {
        padding: 2rem;
    }
    
    .apply-section h2 {
        font-size: 1.4rem;
    }
    
    /* Fix search section on countries page */
    .search-section {
        position: relative;
        top: auto;
        padding: 1rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .filter-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    /* Fix success stories cards */
    .success-card-content {
        padding: 1rem;
    }
    
    .student-name {
        font-size: 1.1rem;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .info-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .info-item {
        flex: 1;
        min-width: 70px;
    }
    
    /* Fix announcement cards */
    .announcement-card {
        margin: 0 10px;
    }
    
    .announcement-image, .announcement-video {
        height: 180px;
    }
    
    .announcement-content {
        padding: 1rem;
    }
    
    .announcement-title {
        font-size: 1.1rem;
    }
    
    /* Fix social sidebar on mobile */
    .social-sidebar {
        transform: translateY(-50%) scale(0.8);
        left: -10px;
        padding: 8px 6px;
        gap: 8px;
    }
    
    .social-sidebar a {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    /* Ensure no horizontal scroll */
    .hero, .services-hero, .contact-hero, .universities-hero, .countries-hero, .ielts-hero {
        overflow-x: hidden;
    }
    
    /* Fix tables on mobile */
    .data-table, .recent-table, .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Fix images to be responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix container padding */
    .container, .footer-container, .university-container {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* For very small devices (iPhone SE, etc.) */
@media (max-width: 480px) {
    .hero h1, .about-hero h1, .services-hero h1, .contact-hero h1 {
        font-size: 1.5rem !important;
    }
    
    .section-header h2 {
        font-size: 1.5rem !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .contact-cards {
        grid-template-columns: 1fr !important;
    }
    
    .stats-container {
        grid-template-columns: 1fr !important;
    }
    
    .btn-glow, .btn-outline {
        max-width: 240px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .hero-stat .stat-number {
        font-size: 1.2rem;
    }
    
    .hero-stat span:last-child {
        font-size: 0.7rem;
    }
    
    .logo-text {
        font-size: 1rem !important;
    }
    
    .logo-img {
        height: 32px !important;
    }
}

/* Fix for iPhone 17 Pro Max specific (large screen but still mobile) */
@media (min-width: 430px) and (max-width: 932px) {
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .grid-3, .services-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .success-stories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .test-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Ensure all interactive elements have proper touch feedback */
@media (hover: none) and (pointer: coarse) {
    button, a, .btn-glow, .service-btn, .filter-btn {
        -webkit-tap-highlight-color: rgba(255,51,51,0.2);
    }
    
    button:active, a:active, .btn-glow:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* Fix for iOS input zoom issue */
input, select, textarea {
    font-size: 16px !important;
}

/* Fix for sticky headers on mobile */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

body {
    padding-top: 70px;
}

/* Fix for modal scroll on mobile */
.country-modal.active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure footer sticks to bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    margin-top: auto;
}
   