/*
==============================================
RESET & BASIC SETUP
==============================================
*/
:root {
    /* New, modern color palette inspired by American university styles */
    --primary-color: #0A2342; /* A deeper, more corporate blue */
    --secondary-color: #0077B6; /* A brighter, engaging blue for links */
    --accent-color: #FFC107; /* Retaining the vibrant yellow for CTAs */
    --text-color: #212529; /* Standard dark grey for readability */
    --text-secondary: #495057; /* Lighter grey for secondary text */
    --background-color: #FFFFFF;
    --surface-color: #F8F9FA; /* Light grey for section backgrounds */
    --border-color: #DEE2E6;

    /* New typography scheme for better readability and hierarchy */
    --font-family-heading: 'Poppins', sans-serif; /* Bold and modern for titles */
    --font-family-body: 'Inter', sans-serif;      /* Clean and readable for text */
    
    --font-size-base: 1rem; /* 16px */
    --font-size-lg: 1.125rem; /* 18px */
    --font-size-xl: 1.25rem; /* 20px */
    --font-size-h1: 3rem; /* 48px */
    --font-size-h2: 2.25rem; /* 36px */
    --font-size-h3: 1.75rem; /* 28px */

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    --border-radius: 0.25rem;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

/*
==============================================
BUTTONS
==============================================
*/
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}


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

body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

p {
    margin-bottom: var(--spacing-md);
}

/*
==============================================
HEADER & NAVIGATION - NEW DESIGN
==============================================
*/

.site-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    margin-right: var(--spacing-md);
}

.logo-text {
    font-family: var(--font-family-heading);
    font-weight: 500;
    line-height: 1.2;
    font-size: 1rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: var(--spacing-lg);
}

.main-nav a {
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-sm) 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

.header-actions .btn {
    font-family: var(--font-family-heading);
    font-weight: 500;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/*
==============================================
HERO SECTION - NEW DESIGN
==============================================
*/

.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.6); /* --primary-color with alpha */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    color: white;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    max-width: 700px;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    margin-right: var(--spacing-md);
    border: 2px solid transparent;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.btn-accent:hover {
    background-color: #ffcd38;
    color: var(--primary-color);
    text-decoration: none;
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    border-color: white;
    color: white;
}
.hero-buttons .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
}

/*
==============================================
INNER PAGE HEADER
==============================================
*/
.page-header {
    position: relative;
    padding: var(--spacing-xxl) 0;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.7); /* --primary-color with alpha */
    z-index: 1;
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-title {
    font-size: var(--font-size-h1);
    color: white;
}
.page-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--spacing-sm);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/*
==============================================
QUICK FACTS SECTION
==============================================
*/
.quick-facts {
    background-color: var(--surface-color);
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--border-color);
}
.quick-facts .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.fact-item .fact-number {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.fact-item .fact-label {
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: var(--text-secondary);
}

/*
==============================================
GENERAL SECTION STYLING
==============================================
*/
.section {
    padding: var(--spacing-xxl) 0;
}
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.section-title {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-sm);
}
.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

/*
==============================================
UTILITY CLASSES
==============================================
*/
.img-fluid {
    max-width: 100%;
    height: auto;
}
.rounded {
    border-radius: var(--border-radius);
}
.shadow {
    box-shadow: var(--shadow);
}


/*
==============================================
ABOUT PAGE SPECIFIC STYLES
==============================================
*/
.about-mission-vision .grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.about-mission-vision h3 {
    font-size: 1.5rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.leadership-team .team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.team-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    text-align: center;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-lg);
    border: 5px solid white;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
}
.team-member-name {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
}
.team-member-title {
    font-family: var(--font-family-body);
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}
.team-member-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/*
==============================================
PROGRAM DETAIL PAGE
==============================================
*/
.detail-layout-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: var(--spacing-xxl);
}

.program-main-content h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-lg);
}
.program-main-content h3 {
    font-size: 1.5rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.icon-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--spacing-lg);
}
.icon-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    color: var(--text-secondary);
}
.icon-list li i {
    color: var(--secondary-color);
    margin-right: var(--spacing-md);
    margin-top: 4px;
    font-size: 1.1rem;
}

.program-sidebar .sidebar-widget {
    background-color: var(--surface-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
}
.program-sidebar .widget-title {
    font-size: var(--font-size-xl);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}
.details-list dt {
    font-family: var(--font-family-heading);
    font-weight: 500;
    color: var(--text-color);
    margin-top: var(--spacing-md);
}
.details-list dd {
    margin-left: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}
.details-list dt:first-child {
    margin-top: 0;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.1rem;
}

/*
==============================================
RESEARCH PAGE
==============================================
*/
.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xxl);
}
.featured-project:last-child {
    margin-bottom: 0;
}
/* Aligns image to the right on even-numbered project cards */
.featured-project:nth-child(even) .project-image {
    order: 2;
}
.project-content h3 {
    font-size: 1.5rem;
}
.project-content .btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
}
.project-content .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.publication-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}
.publication-list li {
    background-color: var(--surface-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}
.publication-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}
.publication-list a {
    font-size: 1.1rem;
    color: var(--text-color);
    text-decoration: none;
}
.publication-list a:hover {
    color: var(--secondary-color);
}
.publication-list em {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-secondary);
    font-style: italic;
}

/*
==============================================
CAMPUS PAGE
==============================================
*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    display: block;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/*
==============================================
CONTACT PAGE
==============================================
*/
.contact-page-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xxl);
}

.contact-info-col .section-title,
.contact-form-col .section-title {
    margin-bottom: var(--spacing-md);
}

.contact-info-col p {
    margin-bottom: var(--spacing-lg);
}

.contact-details-list {
    margin-top: var(--spacing-lg);
}

.contact-details-list li div {
    color: var(--text-secondary);
}

.contact-details-list li strong {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    margin-bottom: var(--spacing-xs);
}
.contact-details-list li a {
    color: var(--secondary-color);
    text-decoration: none;
}
.contact-details-list li a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 0;
    padding-top: var(--spacing-xxl);
}
.map-container iframe {
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/*
==============================================
ADMISSIONS PAGE
==============================================
*/
.admission-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}
.step {
    background-color: var(--surface-color);
    padding: var(--spacing-lg);
    padding-left: var(--spacing-xl);
    border-radius: var(--border-radius);
    position: relative;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}
.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.step-number {
    position: absolute;
    top: 50%;
    left: -22px;
    transform: translateY(-50%);
    background-color: var(--secondary-color);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 4px solid var(--background-color);
}
.step-content h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}
.step-content .btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
}
.step-content .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.deadline-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: var(--spacing-xl) auto 0;
}
.deadline-item {
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
    transition: var(--transition);
}
.deadline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.deadline-date {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-right: var(--spacing-lg);
    min-width: 90px;
}
.deadline-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.8;
}
.deadline-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.deadline-info h4 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}
.deadline-info p {
    margin-bottom: 0;
    color: var(--text-secondary);
}


/*
==============================================
ACADEMIC PROGRAMS SECTION
==============================================
*/
.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}
.program-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.program-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.program-card .card-content {
    padding: var(--spacing-lg);
}
.program-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}
.program-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}
.program-card .card-link {
    font-family: var(--font-family-heading);
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
}
.program-card .card-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.program-card .card-link i {
    margin-left: var(--spacing-xs);
    transition: transform 0.3s ease;
}
.program-card .card-link:hover i {
    transform: translateX(5px);
}

/*
==============================================
CAMPUS LIFE SECTION
==============================================
*/
.campus-life {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}
.campus-life::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(10, 35, 66, 0.85), rgba(0, 119, 182, 0.75));
    z-index: 1;
}
.campus-life .container {
    position: relative;
    z-index: 2;
}
.campus-life-content {
    max-width: 700px;
    margin: 0 auto;
}
.campus-life .section-title {
    color: white;
}
.campus-life .btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}
.campus-life .btn-primary:hover {
    text-decoration: none;
    opacity: 0.9;
}

/*
==============================================
NEWS & EVENTS SECTION
==============================================
*/
.news-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}
.news-item {
    display: flex;
    flex-direction: column;
}
.news-item img {
    border-radius: var(--border-radius);
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: var(--spacing-lg);
}
.news-content .news-date {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}
.news-content h3 {
    font-size: 1.3rem;
    line-height: 1.4;
}
.news-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}
.news-content .read-more {
    font-family: var(--font-family-heading);
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
}
.news-content .read-more:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/*
==============================================
FOOTER - NEW DESIGN
==============================================
*/
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xxl) 0 0 0;
    font-size: 0.95rem;
}
.site-footer .container {
    max-width: 1200px;
}
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}
.footer-logo {
    width: 60px;
    margin-bottom: var(--spacing-md);
}
.footer-about h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}
.footer-about p {
    margin-bottom: var(--spacing-lg);
}
.footer-socials a {
    color: white;
    margin-right: var(--spacing-md);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.footer-socials a:hover {
    color: var(--accent-color);
    text-decoration: none;
}
.footer-links h4, .footer-contact h4 {
    font-family: var(--font-family-heading);
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: var(--spacing-sm);
}
.footer-links a, .footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.footer-links a:hover, .footer-contact a:hover {
    color: white;
    text-decoration: underline;
}
.footer-contact p {
    margin-bottom: var(--spacing-sm);
}
.footer-contact i {
    margin-right: var(--spacing-sm);
    color: var(--accent-color);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg) 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/*
==============================================
RESPONSIVE DESIGN
==============================================
*/
@media (max-width: 1024px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: var(--spacing-md) 0;
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
    }
    .main-nav li {
        width: 100%;
    }
    .main-nav a {
        padding: var(--spacing-md) var(--spacing-lg);
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    .main-nav a::after {
        display: none;
    }
    .main-nav a.active, .main-nav a:hover {
        background-color: var(--surface-color);
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .detail-layout-grid {
        grid-template-columns: 1fr;
    }
    .program-sidebar {
        margin-top: var(--spacing-xl);
    }
    .contact-page-layout {
        grid-template-columns: 1fr;
    }
}

/*
==============================================
404 PAGE
==============================================
*/
.error-page-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg);
    /* Attempt to make it fill the space between header and footer */
    min-height: calc(100vh - 100px - 350px); /* 100vh - approx header height - approx footer height */
}
.error-code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    text-shadow: 4px 4px 0px var(--surface-color), 6px 6px 0px var(--border-color);
    margin: 0;
}
.error-title {
    font-size: var(--font-size-h2);
    margin-top: 0;
    color: var(--text-secondary);
}
.error-message {
    max-width: 500px;
    margin: var(--spacing-md) auto var(--spacing-xl);
    font-size: var(--font-size-lg);
}


@media (max-width: 768px) {
    :root {
        --font-size-h1: 2.5rem;
        --font-size-h2: 1.75rem;
    }
    .hero {
        text-align: center;
    }
    .hero-content .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        width: 100%;
        max-width: 300px;
    }
    .quick-facts .container {
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }
    .fact-item {
        flex-basis: calc(50% - var(--spacing-lg));
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }
    .deadline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .deadline-date {
        margin-right: 0;
        margin-bottom: var(--spacing-md);
        min-width: 120px;
        text-align: center;
    }

    .featured-project {
        grid-template-columns: 1fr;
    }
    .featured-project .project-image {
        margin-bottom: var(--spacing-lg);
    }
    /* This ensures the alternating order is maintained on mobile */
    .featured-project:nth-child(even) .project-image {
        order: -1;
    }

    .about-mission-vision .grid-2-col {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    .about-mission-vision .col-image {
        order: -1; /* Move image to top on mobile */
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about, .footer-links, .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-socials {
        margin-top: var(--spacing-sm);
    }
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="search"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 15px; /* Increased padding for more height */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family-body);
    color: var(--text-color);
    background-color: var(--background-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(10, 35, 66, 0.2);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Form-specific Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}
.application-form {
    margin-top: var(--spacing-xl);
}

.form-intro {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #555;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
    margin-bottom: var(--spacing-xl);
}

legend {
    padding: 0;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.form-group:last-child {
    margin-bottom: 0;
}


.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-actions {
    margin-top: var(--spacing-lg);
    text-align: right;
}


/* Custom file input */
input[type="file"] {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
}

input[type="file"]::file-selector-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background-color: var(--secondary-color);
}