/* =========================================
   1. Root Variables & Global Reset
========================================= */
:root {
    --primary-color: #0b5ed7; /* Trustworthy Blue */
    --secondary-color: #ff8c00; /* Action Orange */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    transition: var(--transition);
}

/* =========================================
   2. Container & Typography
========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.text-center {
    text-align: center;
}

/* =========================================
   3. Buttons & Interactive Elements
========================================= */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #094aab;
    box-shadow: 0 4px 15px rgba(11, 94, 215, 0.3);
    transform: translateY(-2px);
}

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

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

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-rounded {
    border-radius: 50px !important;
}

/* =========================================
   4. Header & Navigation
========================================= */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* CRITICAL: Fixed Mobile Menu Positioning */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Base Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links a {
    text-decoration: none;
}

/* =========================================
   5. Hero Section (Cover Image)
========================================= */
.hero {
    background: url('../images/cover.png') no-repeat center center;
    background-size: cover;
    height: 500px;
    width: 100%;
}

/* =========================================
   6. Country Destinations Grid
========================================= */
.destinations-preview {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.country-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: block;
    color: var(--text-dark);
}

.country-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(11, 94, 215, 0.1);
}

.country-flag { 
    width: 70px; 
    height: auto; 
    margin-bottom: 15px; 
    border-radius: 5px; 
    box-shadow: 0 3px 6px rgba(0,0,0,0.15); 
}

.country-card h3 { 
    font-size: 1.1rem; 
    font-weight: 600; 
    margin-bottom: 8px; 
}

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

.country-card:hover p i {
    transform: translateX(5px);
    color: var(--secondary-color);
}

/* =========================================
   7. Student Reviews Section
========================================= */
.reviews {
    padding: 80px 0;
    background-color: var(--white);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #f8f9fa; color: #333; cursor: pointer; border-radius: 10px; border: 1px dashed #ccc;
}

.video-placeholder i { font-size: 3rem; color: #ff0000; margin-bottom: 10px; }
.review-stars { color: #FFD700; font-size: 1.1rem; margin-bottom: 10px; }

/* =========================================
   8. Free Consultation Form Section
========================================= */
.consultation-section { 
    background-color: var(--primary-color); 
    color: #fff; 
    padding: 70px 0; 
}

.consult-form-wrapper { 
    background: #fff; 
    padding: 40px; 
    border-radius: 20px; 
    max-width: 800px; 
    margin: 0 auto; 
    color: var(--text-dark);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.form-row { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 20px; 
    flex-wrap: wrap; 
}

.form-row .input-group { 
    flex: 1; 
    min-width: 250px; 
}

.consult-form-wrapper input, .consult-form-wrapper select {
    width: 100%; 
    padding: 12px 20px; 
    border: 1px solid #ddd; 
    border-radius: 50px; 
    font-family: 'Poppins', sans-serif; 
    font-size: 1rem;
    outline: none; 
    background-color: #f9f9f9;
    transition: var(--transition);
}

.consult-form-wrapper input:focus, .consult-form-wrapper select:focus { 
    border-color: var(--primary-color); 
    background-color: #fff;
    box-shadow: 0 0 8px rgba(11, 94, 215, 0.2);
}

/* Custom Select Dropdown Arrow */
.consult-form-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px top 50%;
    background-size: 12px auto;
}

/* =========================================
   9. Features / Trust Indicators Grid
========================================= */
.features {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.icon-gradient-1 { background: linear-gradient(45deg, #FF512F, #DD2476); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.icon-gradient-2 { background: linear-gradient(45deg, #1A2980, #26D0CE); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.icon-gradient-3 { background: linear-gradient(45deg, #11998e, #38ef7d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* =========================================
   10. Footer
========================================= */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.fb-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1877F2;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.fb-footer-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.4);
    color: #fff;
}

.footer-contact h4, .footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h4::after, .footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links a {
    display: block;
    color: #b3b3b3;
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

/* =========================================
   11. Floating WhatsApp Button
========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.5);
    color: #FFF;
}

/* =========================================
   12. Mobile Responsiveness & Hamburger Fix
========================================= */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 992px) {
    .hero {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; /* Show menu button on mobile */
    }

    /* Fixed Mobile Menu Container */
    .nav-links {
        display: none !important; /* CRITICAL FIX: Hide menu forcefully by default */
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 100%; /* Positions the menu directly below the navbar */
        left: 0;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        text-align: center;
        gap: 15px;
        z-index: 999; /* Keeps the menu above other content */
    }

    /* Display when 'active' class is toggled by JavaScript */
    .nav-links.active {
        display: flex !important; /* Force show when active */
        animation: fadeInMenu 0.3s ease-in-out forwards;
    }
    
    @keyframes fadeInMenu {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Fix for mobile menu links spacing */
    .nav-links a:not(.nav-cta-btn) {
        border-radius: 8px; /* Square buttons on mobile */
        border: none;
        border-bottom: 1px solid #eee;
        padding: 10px;
        width: 100%; /* Makes the link take full width on mobile */
    }

    .nav-cta-btn {
        display: inline-block;
        margin-top: 10px;
        width: 100%;
    }

    .hero {
        height: 220px; 
    }
    
    .consult-form-wrapper {
        padding: 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
