/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    background-attachment: fixed;
}

/* Top Contact Bar */
.top-bar {
    background-color: #1a2a6c;
    /* Deep Navy Blue */
    color: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* Header & Logo Section */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    padding: 20px 5%;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: #b21f1f;
    /* Crimson Red */
    border-radius: 8px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 4.5rem;
    /* Further increased from 3.5rem */
    color: #1a2a6c;
    letter-spacing: 4px;
    line-height: 0.9;
}

.logo-text p {
    font-size: 2.2rem;
    /* Further increased from 1.6rem */
    color: #b21f1f;
    font-weight: 900;
    margin-top: 5px;
    letter-spacing: 2px;
}

/* Navigation */
nav {
    background-color: #ffffff;
    border-top: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 5%;
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav a {
    text-decoration: none;
    padding: 12px 28px;
    font-weight: 600;
    color: #444;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: inset 0 0 0 2px #1a2a6c;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    z-index: -1;
    transition: all 0.4s ease;
    transform: scale(0);
    opacity: 0;
}

nav a:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: none;
}

nav a:hover::before {
    transform: scale(1);
    opacity: 1;
}

/* Home - Deep Blue */
nav a:nth-child(1)::before {
    background: linear-gradient(135deg, #1a2a6c, #2a4a9c);
}

nav a:nth-child(1):hover {
    box-shadow: 0 10px 20px -10px #1a2a6c;
}

/* Courses - Crimson Red */
nav a:nth-child(2)::before {
    background: linear-gradient(135deg, #b21f1f, #e23f3f);
}

nav a:nth-child(2):hover {
    box-shadow: 0 10px 20px -10px #b21f1f;
}

/* Admission - Emerald Green */
nav a:nth-child(3)::before {
    background: linear-gradient(135deg, #28a745, #48c765);
}

nav a:nth-child(3):hover {
    box-shadow: 0 10px 20px -10px #28a745;
}

/* Contact - Bright Orange */
nav a:nth-child(4)::before {
    background: linear-gradient(135deg, #fd7e14, #ff9e34);
}

nav a:nth-child(4):hover {
    box-shadow: 0 10px 20px -10px #fd7e14;
}

/* Course Grid Text Size Enhancement */
#courses h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

#courses p {
    font-size: 1.15rem;
    font-weight: 500;
}

.extra-course {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

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

    .logo-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    nav {
        flex-wrap: wrap;
    }

    nav a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}