/* --- CSS Variables for Theme Colors --- */
:root {
    --primary-blue: #0b3668;
    --secondary-blue: #1c5291;
    --accent-orange: #f28500;
    --accent-orange-hover: #d67500;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-blue);
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 10px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info a {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    color: var(--accent-orange);
}

.top-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.top-links a:not(.btn-apply):hover {
    color: var(--accent-orange);
}

.btn-apply {
    background-color: var(--accent-orange);
    color: var(--text-light) !important;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.btn-apply:hover {
    background-color: var(--accent-orange-hover);
}

/* --- Main Navigation --- */
.main-header {
    background-color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 70px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-orange);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width var(--transition-speed);
}

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

.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: color var(--transition-speed);
}

.search-btn:hover {
    color: var(--accent-orange);
}

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

.close-menu {
    display: none;
    text-align: right;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 20px;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    min-height: 500px;
    background-color: var(--secondary-blue);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding: 40px 5%;
    position: relative;
    z-index: 2;
}

.hero-text-container {
    max-width: 600px;
    position: relative;
}

.hero-subtitle {
    color: var(--accent-orange);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 40px;
    font-weight: 800;
}

.hero-badge {
    position: absolute;
    bottom: -80px;
    left: 30px;
    background-color: var(--accent-orange);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transform: rotate(-10deg);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-10px) rotate(-10deg);
    }

    100% {
        transform: translateY(0) rotate(-10deg);
    }
}

.badge-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.badge-subtitle {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 5px;
}

.badge-btn {
    background-color: var(--text-light);
    color: var(--accent-orange);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.hero-programs {
    margin-top: 40px;
    margin-left: 200px;
}

.hero-programs ul {
    list-style-type: none;
}

.hero-programs li {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.hero-programs li::before {
    content: '►';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-size: 0.8rem;
    top: 5px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Quick Links below hero */
.quick-links {
    background: linear-gradient(90deg, var(--accent-orange) 0%, var(--primary-blue) 100%);
    color: var(--text-light);
    padding: 20px 0;
}

.quick-links-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 150px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color var(--transition-speed), transform 0.2s;
}

.quick-link-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.quick-link-item i {
    font-size: 2rem;
}

.ql-text {
    display: flex;
    flex-direction: column;
}

.ql-text strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.ql-text span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Content Section --- */
.main-content {
    padding: 60px 20px;
}

.content-box {
    background: var(--text-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.content-box h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 2rem;
}

.content-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Page Banner --- */
.page-banner {
    background-color: var(--secondary-blue);
    padding: 30px 0;
}

.page-banner h1 {
    color: var(--accent-orange);
    font-size: 2.2rem;
}

/* --- Academics Content --- */
.academics-container {
    display: flex;
    gap: 40px;
    padding: 50px 20px;
    align-items: flex-start;
}

/* Sidebar Search Widget */
.sidebar {
    width: 320px;
    flex-shrink: 0;
    background-color: #1a365d;
    /* Dark blue matching screenshot */
    border-radius: 6px;
    padding: 40px 30px;
    color: var(--text-light);
}

.search-widget h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: #21518f;
    /* Match the slightly lighter blue input boxes */
    border: none;
    border-radius: 4px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    appearance: none;
}

.form-control::placeholder {
    color: #a0c4f2;
}

select.form-control {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a0c4f2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    cursor: pointer;
}

.form-control option {
    background-color: #1a365d;
    color: var(--text-light);
}

/* Course List */
.course-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-card {
    background-color: var(--text-light);
    border: 1px solid #e0e5eb;
    background: linear-gradient(to bottom, #ffffff 0%, #f4f7f9 100%);
    border-radius: 4px;
    padding: 25px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.course-card h3 {
    color: var(--secondary-blue);
    font-size: 1.4rem;
    font-weight: 700;
}

.btn-more {
    background-color: var(--accent-orange);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.btn-more:hover {
    background-color: var(--accent-orange-hover);
    color: var(--text-light);
}

/* Responsive updates for academics */
@media (max-width: 992px) {
    .academics-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

/* --- Generic Page Content --- */
.page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 50px 20px;
}

.text-content h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 2rem;
}

.text-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.text-content ul.feature-list {
    margin-top: 15px;
    padding-left: 20px;
}

.text-content ul.feature-list li {
    margin-bottom: 10px;
    list-style-type: disc;
    color: #444;
}

/* --- Forms (Admissions) --- */
.apply-form {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.apply-form .form-group {
    margin-bottom: 20px;
}

.apply-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
}

.apply-form .form-control {
    background-color: var(--bg-light);
    border: 1px solid #ddd;
    color: var(--text-dark);
}

.apply-form .form-control:focus {
    border-color: var(--accent-orange);
}

.btn-submit {
    width: 100%;
    background-color: var(--accent-orange);
    color: var(--text-light);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.btn-submit:hover {
    background-color: var(--accent-orange-hover);
}

@media (max-width: 768px) {
    .page-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-badge {
        position: relative;
        bottom: 0;
        left: 0;
        margin: 20px 0;
        transform: rotate(0);
        animation: none;
    }

    .hero-programs {
        margin-left: 0;
    }

    .hero-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .top-links {
        display: none;
        /* Hide top links on mobile for cleaner look */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 300px;
        height: 100vh;
        background-color: var(--text-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 2000;
    }

    .main-nav.active {
        right: 0;
    }

    .close-menu {
        display: block;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }

    .nav-actions {
        padding: 20px;
    }

    .quick-links-grid {
        flex-direction: column;
    }
}