/* ================== VARIABLES & BASE ================== */
:root {
    --primary-color: #ff5e48;
    --dark-color: #1e2532;
    --text-color: #555;
    --bg-light: #fdf6f5;
    --bg-grey: #f8f9fa;
    --white-color: #fff;
    --border-color: #e0e0e0;
    --font-primary: 'Roboto', 'Arial', sans-serif;
    --font-heading: 'Roboto Slab', serif;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #fff;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }


body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

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

section {
    padding: 80px 0;
    overflow: hidden; /* Prevent animations from showing outside section */
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-family: var(--font-heading);
    color: var(--dark-color);
    margin-bottom: 50px;
    line-height: 1.3;
}

.underline {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.tagline { 
    display: inline-block;
    background-color: #f7c7bf;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ================== HEADER ================== */
.header {
    background: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo img { height: 40px; }
.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.nav-list a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-list a:hover { color: var(--primary-color); }
.nav-item-has-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    list-style: none;
    min-width: 200px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}
.nav-item-has-dropdown:hover .dropdown-menu { display: block; opacity: 1; transform: translateY(0); }
.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 1rem; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--dark-color); cursor: pointer; }

/* ================== HERO SECTION ================== */
.hero-section {
    background-color: var(--bg-light);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 90%;
}
.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}
.benefits-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.benefits-list i { color: var(--primary-color); }
.hero-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; gap: 1rem; }
.hero-form input, .hero-form select {
    flex: 1;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}
.hero-form input:focus, .hero-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}
.btn-submit {
    flex: 1;
    padding: 0.8rem 1rem;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
}
.btn-submit:hover { background: #e55540; }
.hero-image-wrapper { position: relative; text-align: center; }
.hero-student-img { max-width: 100%; height: auto; position: relative; z-index: 2; }
.hero-bg-shape { width: 345px; height: 345px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #f7c7bf; border-radius: 46px; z-index: 1; animation: rotate-full 20s linear infinite alternate-reverse; }
.deco { position: absolute; z-index: 3; border-radius: 50%; }
.deco-1 { width: 45px; height: 45px; border: 7px solid #52b8bb; left: 54%; top: 10%; animation: floatAnim 4s infinite alternate-reverse; }
.deco-2 { width: 15px; height: 15px; background-color: var(--primary-color); right: 40%; top: 28%; animation: floatAnim 4s infinite alternate-reverse 0.5s; }
.deco-3 { width: 26px; height: 26px; background-color: var(--primary-color); right: 20%; bottom: 20%; animation: floatAnim 2s infinite alternate-reverse; }

@keyframes rotate-full {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes floatAnim {
    from { transform: translateY(0); }
    to { transform: translateY(20px); }
}

/* ================== OTHER SECTIONS ================== */
.trust-badges-section { padding: 40px 0; background-color: var(--bg-grey); }
.trust-badges-section h3 { text-align: center; font-size: 1.2rem; margin-bottom: 2rem; color: var(--text-color); }
.badges-grid { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; }
.badge { text-align: center; }
.badge img { height: 25px; margin-bottom: 0.5rem; }
.badge span { color: #ffc107; font-size: 1.1rem; }

.achievement-section { padding: 80px 0; background-color: var(--dark-color); color: #fff; }
.achievement-section .section-title { color: #fff; }
.achievement-images { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.achievement-images img { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); max-width: 45%; }

.features-section { padding: 80px 0; background: var(--bg-light); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-card { background: var(--white-color); padding: 2rem; text-align: center; border-radius: 10px; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.feature-card img { height: 50px; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.3rem; color: var(--dark-color); margin-bottom: 0.5rem; }

.info-section { padding: 80px 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.info-image img { width: 100%; border-radius: 12px; }
.info-content h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 1rem; color: var(--dark-color); line-height: 1.3; }
.info-content p { margin-bottom: 1rem; }
.info-list { list-style:disc; list-style-position: inside; padding-left: 0; }
.info-list li { margin-bottom: 0.5rem; }
.info-section--reversed .info-grid { grid-template-areas: 'content image'; }
.info-section--reversed .info-image { grid-area: image; }
.info-section--reversed .info-content { grid-area: content; }

.why-choose-section { padding: 80px 0; background: var(--white-color); }
.why-choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.why-choose-content h2 { font-size: 2.5rem; font-family: var(--font-heading); color: var(--dark-color); margin-bottom: 1rem; }
.why-choose-content h3 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; color: var(--dark-color); }
.why-choose-content h3 i { color: var(--primary-color); }
.why-choose-images { position: relative; height: 450px; }
.why-choose-images img { position: absolute; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); object-fit: cover; }
.why-choose-images .image-1 { width: 70%; height: 70%; top: 0; left: 0; z-index: 1; }
.why-choose-images .image-2 { width: 60%; height: 60%; bottom: 0; right: 0; z-index: 2; border: 5px solid white; }

.services-section { padding: 80px 0; background: var(--bg-light); }
.services-subtitle { text-align: center; max-width: 800px; margin: -30px auto 40px; }
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.service-button { background: #fff; border: 1px solid var(--border-color); color: var(--text-color); padding: 10px 20px; border-radius: 20px; text-decoration: none; transition: all 0.3s ease; }
.service-button:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); transform: translateY(-3px); }

.testimonials-section { padding: 80px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.testimonial-card { background: var(--bg-grey); padding: 2rem; border-radius: 10px; border-top: 5px solid var(--primary-color); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.testimonial-card .stars { color: #ffc107; margin-bottom: 1rem; font-size: 1.2rem; }
.testimonial-card p { font-style: italic; margin-bottom: 1.5rem; }
.testimonial-card .author { display: flex; align-items: center; gap: 1rem; }
.testimonial-card .author img { width: 55px; height: 55px; border-radius: 50%; }
.testimonial-card .author strong { color: var(--dark-color); display: block; }
.testimonial-card .author span { font-size: 0.9rem; color: var(--text-color); }

.how-it-works-section { padding: 80px 0; background: var(--bg-grey); }
.steps-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps-container::before { content: ''; position: absolute; top: 40px; left: 12.5%; width: 75%; height: 2px; background-image: linear-gradient(to right, var(--primary-color) 50%, transparent 50%); background-size: 20px 2px; background-repeat: repeat-x; z-index: 1; }
.step-item { text-align: center; position: relative; z-index: 2; }
.step-icon { width: 80px; height: 80px; margin: 0 auto 1rem; background-color: var(--primary-color); color: var(--white-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: bold; border: 5px solid var(--bg-grey); box-shadow: 0 0 0 3px var(--primary-color); }
.step-item h3 { color: var(--dark-color); margin-bottom: 0.5rem; }

.map-section { padding: 80px 0; background: var(--white-color); text-align: center; }
.map-section .section-title { margin-bottom: 2rem; }
.map-container { position: relative; width: 100%; max-width: 1000px; margin: 2rem auto; min-height: 500px; background-image: url('assets/map-bg.webp'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.map-university, .map-student { position: absolute; animation: map-float 3s ease-in-out infinite alternate; }
.map-university img, .map-student img { max-width: 100%; }
.map-university { background: #fff; padding: 0.5rem; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.map-student { animation-delay: 0.5s; }
@keyframes map-float { from { transform: translateY(0px); } to { transform: translateY(-10px); } }
.map-buttons { margin-top: 2rem; display: flex; justify-content: center; gap: 1rem; }

.faq-section { padding: 80px 0; background-color: var(--bg-light); }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white-color); margin-bottom: 1rem; border-radius: 8px; border: 1px solid var(--border-color); overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 1.5rem; font-size: 1.1rem; font-weight: 500; color: var(--dark-color); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question i { transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; }
.faq-answer p { padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--border-color); margin-top: -1px; padding-top: 1.5rem; }
.faq-item.active .faq-answer { max-height: 200px; }

/* ================== FOOTER & WHATSAPP ================== */
.footer { background: var(--dark-color); color: #ccc; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; padding-bottom: 2rem; }
.footer-col h3 { color: var(--white-color); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { text-decoration: none; color: #ccc; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--primary-color); }
.footer-col a i { margin-right: 8px; }
.payment-methods { margin-top: 1rem; max-width: 100%; }
.footer-bottom { border-top: 1px solid #444; text-align: center; padding: 1.5rem 0; font-size: 0.9rem; }

.whatsapp-float { position: fixed; bottom: 20px; left: 20px; width: 60px; height: 60px; background-color: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 999; transition: transform 0.3s ease; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ================== SCROLL ANIMATIONS ================== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll[data-animation="fade-in-left"] { transform: translateX(-30px); }
.animate-on-scroll[data-animation="fade-in-right"] { transform: translateX(30px); }
.animate-on-scroll.visible[data-animation="fade-in-left"],
.animate-on-scroll.visible[data-animation="fade-in-right"] { transform: translateX(0); }

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 992px) {
    .header-actions .btn-contact { display: none; }
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 80px; left: 0; width: 100%; background: var(--white-color); box-shadow: 0 10px 10px rgba(0,0,0,0.05); }
    .main-nav.active { display: block; }
    .nav-list { flex-direction: column; padding: 1.5rem 0; align-items: center; gap: 0; }
    .nav-list li { width: 100%; text-align: center; }
    .nav-list a { display: block; padding: 1rem; width: 100%; justify-content: center; }
    .nav-item-has-dropdown > a > i { transition: transform 0.3s ease; }
    .nav-item-has-dropdown.open > a > i { transform: rotate(180deg); }
    
    /* === MOBILE DROPDOWN STYLES (THE FIX) === */
    .nav-item-has-dropdown:hover .dropdown-menu { display: none; } /* Disable hover on mobile */
    .dropdown-menu { 
        position: static; 
        box-shadow: none; 
        padding: 0; 
        background: #f9f9f9; 
        max-height: 0; 
        overflow: hidden; 
        transition: max-height 0.3s ease-out;
    }
    .nav-item-has-dropdown.open .dropdown-menu { 
        max-height: 500px; /* Or a large enough value */
        padding: 0.5rem 0;
    }

    .hero-grid, .why-choose-grid, .info-grid { grid-template-columns: 1fr; text-align: center; }
    .info-section--reversed .info-grid { grid-template-areas: 'image' 'content'; }
    .info-section--reversed .info-grid .info-image, .info-section--reversed .info-grid .info-content { grid-area: auto; }
    
    .hero-content p, .why-choose-content { max-width: 100%; }
    .benefits-list { justify-content: center; }
    .steps-container { grid-template-columns: 1fr 1fr; }
    .steps-container::before { display: none; }
    .why-choose-images { height: 350px; margin-top: 2rem; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .hero-content h1, .why-choose-content h2, .info-content h2 { font-size: 2.2rem; }
    .form-row { flex-direction: column; }
    .steps-container { grid-template-columns: 1fr; }
    .achievement-images img { max-width: 90%; }
    .map-container { min-height: 300px; background-size: cover; }
    .map-university, .map-student { display: none; }
}

