/* Global Styles */
:root {
    --primary-color: #003366;
    /* Deep Blue */
    --secondary-color: #FFA500;
    /* Gold/Orange */
    --accent-color: #2E8B57;
    /* Green for success/scholarship */
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
/* Top Bar */
.top-bar {
    background-color: #002244;
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    /* Centered content */
    align-items: center;
}

.contact-info span {
    margin: 0 15px;
    /* Added margin for centering */
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 5px;
}

/* Header Glass */
header {
    background-color: rgba(255, 255, 255, 0.8);
    /* Semi-transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    /* Reduced padding for cleaner look */
}

.logo img {
    height: 50px;
    /* Slightly smaller logo */
    width: auto;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    /* More spacing */
}

nav ul li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    text-transform: uppercase;
    /* Professional touch */
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.btn-nav {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    /* Force white text */
    padding: 10px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav:hover {
    background-color: #e69500;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 165, 0, 0.4);
}

.btn-nav::after {
    display: none;
    /* No underline for button */
}

.mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section Enhanced */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.4), rgba(0, 51, 102, 0.6)), url('https://images.unsplash.com/photo-1562774053-701939374585?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding: 120px 0;
    /* More padding for better spacing */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    filter: blur(50px);
    opacity: 0.4;
    animation: float 20s infinite;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: #ffae00;
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #00d2ff;
    border-radius: 50%;
    animation-delay: -5s;
}

.shape-3 {
    top: 20%;
    right: 30%;
    width: 200px;
    height: 200px;
    background: #ff0055;
    border-radius: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text .highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 165, 0, 0.3);
    z-index: -1;
    transform: skewX(-15deg);
}

.hero-text .sub-headline {
    font-size: 1.8rem;
    background: linear-gradient(90deg, #b71c1c, #d32f2f);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.4);
    letter-spacing: 1px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--secondary-color), #ff8c00);
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.6);
}

.hero-form {
    background: rgba(255, 255, 255, 0.1);
    /* Frosted Glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 35px;
    border-radius: 20px;
    width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.3s backwards;
    /* Delay for staggered effect */
}

.hero-form h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.3);
    background: var(--white);
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #002244;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 34, 68, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassy Theme Global */
body {
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    background-attachment: fixed;
    /* Ensures gradient covers whole page */
}

/* Header Glass */
header {
    background-color: rgba(255, 255, 255, 0.8);
    /* Semi-transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* About Us Section */
.about-section {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.stats-grid {
    display: flex;
    gap: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.stat-item p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--white);
    /* White border */
    outline: 5px solid var(--primary-color);
    /* Blue outline matching logo */
}

/* Universities Section Glass */
.universities {
    padding: 60px 0;
    background: transparent;
    /* Let body gradient show */
    text-align: center;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.highlight-text {
    color: var(--secondary-color);
}

.mt-5 {
    margin-top: 60px;
}

.university-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.uni-card {
    background: rgba(255, 255, 255, 0.6);
    /* Glassy card */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    /* Glass shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.uni-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.uni-logo {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s;
}

.uni-card:hover .uni-logo {
    transform: scale(1.05);
}

/* Features Section Glass */
.features {
    padding: 80px 0;
    text-align: center;
    background: transparent;
    /* Let body gradient show */
}

.features h2 {
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.feature-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    background: rgba(255, 255, 255, 0.6);
    /* Glassy item */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 5px solid transparent;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    border-top-color: var(--secondary-color);
}

.feature-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    /* Changed to primary */
    margin-bottom: 25px;
    background: rgba(0, 51, 102, 0.1);
    padding: 20px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.feature-item:hover i {
    background-color: var(--secondary-color);
    color: var(--white);
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-info i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}


.footer-bottom {
    background-color: #002244;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {

    /* Top Bar Fix */
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        padding: 5px 0;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .contact-info span {
        margin: 0;
        font-size: 0.8rem;
    }

    /* Header Fix - Keep Row Layout */
    .header-container {
        flex-direction: row;
        /* Force row to keep Logo and Menu side-by-side */
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .logo img {
        height: 40px;
        /* Smaller logo for mobile */
    }

    nav {
        width: 100%;
        display: none;
        margin-top: 15px;
        background: rgba(255, 255, 255, 0.95);
        /* Better background for readability */
        padding: 10px;
        border-radius: 8px;
    }

    nav.active {
        display: block;
        position: absolute;
        top: 60px;
        /* Below header */
        left: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
    }

    .mobile-menu-icon {
        display: block;
        /* Position static relative to flex container */
        position: static;
        font-size: 24px;
        cursor: pointer;
        color: var(--primary-color);
    }

    /* Hero Fixes */
    .hero {
        padding: 80px 0 60px;
        /* Reduced vertical padding */
    }

    .hero-text h1 {
        font-size: 1.8rem;
        /* Smaller font */
        margin-bottom: 15px;
    }

    .hero-text .sub-headline {
        font-size: 1rem;
        /* Much smaller badge */
        padding: 5px 15px;
        margin-bottom: 20px;
        white-space: normal;
        /* Allow wrap if needed, though nice to keep one line */
        text-align: center;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-content {
        justify-content: center;
        text-align: center;
        /* Center align text for mobile */
    }

    .hero-form {
        width: 100%;
        margin-top: 30px;
        padding: 20px;
        /* Reduced form padding */
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        justify-content: center;
        gap: 20px;
        /* Ensure gap for wrapped items */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-social {
        justify-content: center;
        display: flex;
        gap: 15px;
    }

    /* Button Fixes for Mobile */
    /* Button Fixes for Mobile */
    .btn-primary {
        padding: 12px 30px !important;
        font-size: 1rem !important;
        width: 100% !important;
        text-align: center;
        margin-bottom: 20px;
    }

    .btn-submit {
        padding: 12px;
        font-size: 1rem;
    }

    /* Fix Apply Now button in mobile menu */
    .btn-nav {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
        box-shadow: none;
        /* Flat look in menu */
    }
}

/* Logo Slider */
.logo-slider {
    background: var(--light-bg);
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--light-bg), transparent);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--light-bg), transparent);
}

.slider-track {
    display: flex;
    width: calc(250px * 34);
    /* 17 logos * 2 sets */
    animation: scroll 40s linear infinite;
}

.slide {
    width: 250px;
    padding: 0 40px;
    /* Increased padding */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
    cursor: pointer;
}

.slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 17));
        /* Move by one set width */
    }
}