/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
   :root {
    --primary-color: #040814;      /* Deep navy/black */
    --secondary-color: #d4af37;    /* Vibrant gold */
    --accent-color: #eab308;       /* Warm yellow/orange */
    --text-main: #cbd5e1;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    --bg-main: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #040814;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --container-width: 1200px;
}

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

html, body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile Responsiveness for Section Headers */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 15px;
    }
}

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

.section-padding {
    padding: 5rem 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: capitalize;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(to right, #eab308, #d4af37);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(to right, #facc15, #eab308);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.main-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 110px;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--secondary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--bg-white);
    color: var(--primary-color);
    padding-top: 4rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

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

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: var(--primary-color);
    font-weight: 500;
}

.footer-col ul a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.contact-info i {
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: #f8f9fa;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================================================
   Footer Logo Wrap
   ========================================================================== */
.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Admissions Ticker Bar
   ========================================================================== */
.admissions-ticker {
    background: linear-gradient(to right, #d4af37, #eab308);
    color: #000;
    padding: 8px 0;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.ticker-content {
    display: flex;
    animation: tickerScroll 20s linear infinite;
    white-space: nowrap;
}

.ticker-content span {
    padding: 0 60px;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Countries Dropdown
   ========================================================================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    min-width: 450px;
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    margin-top: 15px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.force-show .dropdown-menu {
    display: block;
}

/* Invisible bridge to fix the hover gap issue */
.nav-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-white) !important;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--secondary-color) !important;
}

.dropdown-item img {
    width: 20px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ==========================================================================
   Contact Info Alignment Fix
   ========================================================================== */
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.5;
}

.contact-info li i {
    margin-top: 4px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .header-action .btn-primary {
        display: none !important;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile Header & Nav */
    .header-container {
        height: auto !important;
        padding: 10px 20px;
    }

    .logo img {
        height: 60px !important;
        max-width: 200px !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff !important;
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        gap: 1rem;
        z-index: 1000;
    }

    .main-nav ul.active {
        display: flex;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        margin-top: 10px;
        background-color: #f8f9fa;
        border: 1px solid #ddd;
    }

    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dropdown-item {
        color: var(--primary-color) !important;
    }
}

/* ==========================================================================
   Newsletter Section (Global)
   ========================================================================== */
.newsletter-section {
    background-color: var(--primary-color);
    padding: 4rem 0;
    color: var(--text-white);
}

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

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h2 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    width: 100%;
    flex: 1;
    max-width: 500px;
    min-width: 300px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-family: inherit;
}

.newsletter-form button {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 15px 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-family: inherit;
}

.newsletter-form button:hover {
    filter: brightness(1.1);
}

/* ==========================================================================
   Preloader Animation
   ========================================================================== */
body.loading {
    overflow: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preloader-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animation-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.earth-container {
    position: absolute;
    width: 150px;
    height: 150px;
    z-index: 5; /* In front of text */
}

.premium-earth {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2563eb 0%, #1e3a8a 50%, #020617 100%);
    box-shadow: inset -15px -15px 30px rgba(0,0,0,0.9), 
                inset 5px 5px 20px rgba(255,255,255,0.4), 
                0 0 30px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.earth-grid {
    position: absolute;
    width: 200%;
    height: 100%;
    background-image: url('../images/world-map.svg');
    background-size: 50% 100%;
    background-repeat: repeat-x;
    opacity: 0.7;
    animation: scrollGrid 15s linear infinite;
}

@keyframes scrollGrid {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.airplane-container {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 6; /* In front of earth */
    opacity: 0;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.6));
}

.airplane-svg {
    width: 100%;
    height: 100%;
}

.preloader-text-wrapper {
    position: absolute;
    z-index: 4; /* BEHIND the earth */
    white-space: nowrap;
    opacity: 0;
    text-align: left;
    /* Will be positioned via GSAP */
}

.preloader-text-wrapper h2 {
    font-size: 2rem;
    letter-spacing: 2px;
    margin: 0;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.preloader-text-wrapper span {
    color: var(--secondary-color);
    font-size: 1.2rem;
    letter-spacing: 5px;
    font-weight: 500;
    display: block;
    margin-top: 5px;
}
