/* CSS Variables */
:root {
    --primary: #002147;
    /* Navy Blue */
    --accent: #FFD700;
    /* Gold */
    --accent-dark: #ccac00;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--accent);
    color: var(--primary);
    width: 100%;
}

.btn-gold:hover {
    background-color: var(--accent-dark);
}

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

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

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo span {
    color: var(--accent-dark);
    /* Darker gold for better contrast on white */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-nav {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0;
}

.btn-nav:hover {
    background-color: #003366;
    color: var(--white);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 60px;
    /* Offset fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 33, 71, 0.8), rgba(0, 33, 71, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: #e0e0e0;
}

/* Stats Bar */
.stats-bar {
    background-color: var(--primary);
    padding: 3rem 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Destinations */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.destination-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.destination-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent);
}

.flag-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.destination-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.destination-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.learn-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.learn-more:hover {
    color: var(--accent-dark);
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: #e6ecf2;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #edf2f7;
    font-family: var(--font-heading);
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

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

/* Testimonials */
.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafe 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #eee;
}

.stars {
    color: var(--accent);
    margin-bottom: 1rem;
}

.review {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.student-info h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.student-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

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

/* Footer & Form */
footer {
    background-color: var(--primary);
    color: var(--white);
}

.cta-banner {
    background-color: var(--primary);
    /* Blend with footer, or make standout */
    padding: 4rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-banner p {
    color: #ccc;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-form input {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px;
    width: 250px;
    font-family: var(--font-body);
}

.contact-form button {
    width: auto;
    min-width: 150px;
}

.footer-bottom {
    padding: 3rem 0;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-logo span {
    color: var(--accent);
}

.footer-details p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 1rem;
    opacity: 0.8;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    opacity: 0.5;
}

/* University Page Specifics */
.page-header {
    background-color: var(--primary);
    color: white;
    padding: 8rem 0 4rem;
    /* More top padding to clear fixed nav */
    margin-top: 0;
}

.page-header .section-subtitle {
    color: #e0e0e0;
}

.page-header h2 {
    color: white;
}

.country-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.country-header h3 {
    font-size: 2rem;
    margin: 0;
}

.flag-large {
    font-size: 2.5rem;
}

.uni-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.uni-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.uni-table th,
.uni-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.uni-table th {
    background-color: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
}

.uni-table tr:hover {
    background-color: #f9f9f9;
}

.rank-badge {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 40px;
    text-align: center;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 1.5rem 0;
        text-align: center;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .btn-nav {
        display: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-toggle {
        display: block;
    }

    /* Fix mobile logo */
    .logo {
        font-size: 1.0rem;
        /* Reduce font size slightly more */
        gap: 0.3rem;
        white-space: nowrap;
        /* Force single line */
    }

    .logo span {
        display: inline-block;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .contact-form {
        flex-direction: column;
    }

    .contact-form input {
        width: 100%;
    }

    .footer-flex {
        flex-direction: column;
        text-align: center;
    }

    .social-links a {
        margin: 0 0.5rem;
    }
}