/* ==========================================================================
   1. CSS VARIABLES & BASE RESET
   ========================================================================== */
:root {
    --navy-blue: #002147;
    --yellow: #FFD700;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --text-color: #333333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--white);
    color: var(--text-color);
    -webkit-text-size-adjust: 100%;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }
.text-center { text-align: center; }

/* ==========================================================================
   2. TYPOGRAPHY & BUTTONS
   ========================================================================== */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--navy-blue);
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}
.section-title span { color: var(--yellow); }

.btn-primary, .btn-brochure {
    display: inline-block;
    background-color: var(--yellow);
    color: var(--navy-blue);
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--yellow);
    cursor: pointer;
    text-align: center;
}
.btn-primary:hover, .btn-brochure:hover {
    background-color: var(--navy-blue);
    color: var(--yellow);
}

/* ==========================================================================
   3. NAVIGATION BAR (DESKTOP & MOBILE)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 12px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-blue);
}
.logo img { height: 60px; width: auto; }
.logo h2 { font-size: 1.4rem; font-weight: 700; white-space: nowrap; }

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}
.nav-links li a {
    font-weight: 500;
    color: var(--navy-blue);
    transition: var(--transition);
    padding: 8px 0;
    display: inline-block;
}
.nav-links li a:hover, .nav-links li a.active-link { color: var(--yellow); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--yellow);
    border-radius: 0 0 5px 5px;
    z-index: 1001;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--navy-blue);
    cursor: pointer;
    padding: 5px;
}

/* ==========================================================================
   4. HERO SLIDER & PAGE HEADERS (CONTRAST FIXED)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
    overflow: hidden;
    padding: 40px 15px;
}

.slider { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 0; 
}

.slide {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-size: cover; 
    background-position: center; 
    opacity: 0; 
    transition: opacity 1s ease-in-out;
}

/* Darker dual gradient overlay to guarantee text readability */
.slide::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: linear-gradient(
        180deg, 
        rgba(239, 240, 241, 0) 0%, 
        rgba(0, 22, 48, 0.90) 100%
    );
}

.slide.active { opacity: 1; }

/* Hero Content Box with subtle backdrop blur & high z-index */
.hero-content { 
    position: relative;
    z-index: 2; 
    max-width: 850px; 
    padding: 30px 20px;
    background: rgba(0, 33, 71, 0.35);
    border-radius: 15px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
    line-height: 1.25;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 25px;
    color: var(--yellow);
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-services {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.h-service {
    background: rgba(27, 27, 57, 0.7);
    backdrop-filter: blur(5px);
    border: 1.5px solid var(--yellow);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.h-service i { 
    color: var(--yellow); 
    margin-right: 8px; 
}
/* ==========================================================================
   5. LAYOUT GRIDS & SECTIONS
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: -10px -10px 0 var(--yellow);
}
.about-text p { margin-bottom: 15px; line-height: 1.7; }

.key-points { margin-top: 25px; }
.point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.point i {
    font-size: 1.3rem;
    color: var(--yellow);
    background: var(--navy-blue);
    padding: 12px;
    border-radius: 6px;
    flex-shrink: 0;
}
.point h4 { color: var(--navy-blue); margin-bottom: 4px; }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.service-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}
.service-card:hover { transform: translateY(-5px); border-bottom-color: var(--yellow); }
.service-card i { font-size: 2.5rem; color: var(--navy-blue); margin-bottom: 15px; }
.service-card h3 { margin-bottom: 10px; color: var(--navy-blue); }

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.dest-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 240px;
    display: block;
}
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dest-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(transparent, var(--navy-blue)); color: var(--white);
}
.dest-card:hover img { transform: scale(1.1); }
.dest-card:hover .dest-overlay h3 { color: var(--yellow); }

/* Study Route Timeline */
.route-container { max-width: 800px; margin: 0 auto; position: relative; }
.route-container::before {
    content: '';
    position: absolute;
    top: 0; left: 24px;
    height: 100%; width: 3px;
    background: var(--navy-blue);
}
.route-step { position: relative; margin-bottom: 30px; padding-left: 65px; }
.step-icon {
    position: absolute; left: 6px; top: 0;
    width: 38px; height: 38px;
    background: var(--yellow); color: var(--navy-blue);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; border: 3px solid var(--light-bg);
}
.step-content {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--navy-blue);
}
.step-content h3 { color: var(--navy-blue); margin-bottom: 8px; font-size: 1.15rem; }

/* Why Choose Us & Reviews */
.why-grid, .testi-grid, .contact-info-grid, .europe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.why-item, .testi-card, .contact-card, .country-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}
.why-item i, .contact-card i { font-size: 2.2rem; color: var(--yellow); margin-bottom: 12px; }
.testi-card img { width: 75px; height: 75px; border-radius: 50%; margin-bottom: 12px; border: 3px solid var(--yellow); }
.stars { color: var(--yellow); margin-bottom: 12px; font-size: 0.9rem; }

/* Fee Grid */
.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}
.fee-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.fee-header { background: var(--navy-blue); color: var(--white); padding: 20px; text-align: center; border-bottom: 4px solid var(--yellow); }
.fee-header i { font-size: 2rem; color: var(--yellow); margin-bottom: 10px; }
.fee-list { padding: 15px 20px; }
.fee-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; }
.fee-list li:last-child { border-bottom: none; }

/* Europe Country Cards */
.flag-icon { font-size: 3.8rem; margin-bottom: 10px; line-height: 1; }
.country-details { list-style: none; text-align: left; margin-top: 15px; }
.country-details li { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 0.9rem; }

/* ==========================================================================
   6. CONTACT FORM & MAP
   ========================================================================== */
.contact-form-container {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.form-group { margin-bottom: 15px; }

/* Prevent iOS Safari auto-zoom by enforcing 16px minimum font size */
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background-color: var(--light-bg);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--navy-blue);
    background-color: var(--white);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer { background: var(--navy-blue); color: var(--white); padding-top: 50px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h3 { color: var(--yellow); margin-bottom: 15px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--yellow); }
.contact-info li { display: flex; align-items: center; gap: 12px; }
.contact-info i { color: var(--yellow); }
.social-links { margin-top: 15px; display: flex; gap: 10px; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; background: rgba(255,255,255,0.1);
    border-radius: 50%; transition: var(--transition);
}
.social-links a:hover { background: var(--yellow); color: var(--navy-blue); }
.footer-bottom { text-align: center; padding: 18px 15px; background: #001633; font-size: 0.85rem; }
.footer-bottom a { color: var(--yellow); }

/* ==========================================================================
   8. WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 55px; height: 55px;
    bottom: 25px; right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 3px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.08);
}
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   9. SCROLL ANIMATION CLASSES
   ========================================================================== */
.animate-up { opacity: 0; transform: translateY(40px); transition: 0.7s ease; }
.animate-left { opacity: 0; transform: translateX(-40px); transition: 0.7s ease; }
.animate-right { opacity: 0; transform: translateX(40px); transition: 0.7s ease; }
.show-animate { opacity: 1 !important; transform: translate(0, 0) !important; }

/* ==========================================================================
   10. MEDIA QUERIES (TABLETS & MOBILE PHONES)
   ========================================================================== */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    .about-img img { box-shadow: -8px -8px 0 var(--yellow); }
}

@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .btn-brochure { display: none; } /* Hidden on mobile to keep header clean */
    
    .hamburger { display: block; }
    
    /* Mobile Slide-in Navigation Menu */
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100dvh - 60px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 30px 25px;
        gap: 15px;
        transition: 0.4s ease;
        box-shadow: -5px 10px 20px rgba(0,0,0,0.15);
        overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links li a { display: block; width: 100%; font-size: 1.05rem; }
    
    /* Mobile Dropdown Sub-menu */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-top: none;
        display: none;
        padding-left: 15px;
        background: var(--light-bg);
        border-radius: 5px;
        margin-top: 8px;
    }
    .dropdown.dropdown-active .dropdown-menu { display: block; }

    /* Hero Services Vertical Stack */
    .hero-services { flex-direction: column; align-items: center; width: 100%; }
    .h-service { width: 100%; max-width: 280px; }

    /* Timeline Adjustments */
    .route-container::before { left: 16px; }
    .step-icon { left: 0; width: 32px; height: 32px; font-size: 0.9rem; }
    .route-step { padding-left: 45px; }

    /* Floating WhatsApp Button */
    .whatsapp-float {
        width: 70px;
        height: 70px;
        bottom: 20px;
        right: 20px;
        font-size: 50px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .contact-form-container { padding: 20px 15px; }
    
    /* Fee Card List Stacking for Small Mobile Screens */
    .fee-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .fee-list li strong {
        color: var(--navy-blue);
        background: #fff8d6;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.9rem;
    }
}