/*
==============================================
RESET & BASIC SETUP
==============================================
*/
:root {
    --primary-color: #003366; /* A professional, deep blue */
    --secondary-color: #007BFF; /* A vibrant blue for links and accents */
    --accent-color: #FFC107; /* A warm yellow for call-to-action buttons */
    --text-color: #333333;
    --text-secondary: #555555;
    --background-color: #FFFFFF;
    --surface-color: #F8F9FA;
    --border-color: #DEE2E6;

    --font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-serif: 'Lora', serif;
    
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.75rem;

    --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;
}

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

body {
    font-family: var(--font-family-sans-serif);
    font-size: var(--font-size-base);
    line-height: 1.6;
    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-serif);
    font-weight: 700;
    line-height: 1.2;
    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
==============================================
*/

.site-header {
    background-color: #ffffff; /* Restored white background */
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative; /* Keep in document flow */
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

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

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

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

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    border-bottom: 2px solid transparent;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}

.btn-primary:hover {
    opacity: 0.9;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--background-color);
}

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

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/*
==============================================
HERO SECTION
==============================================
*/

.hero {
    position: relative;
    height: 80vh; /* Reduced height */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -1; /* Place video behind content */
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-actions .btn {
    margin: 0 var(--spacing-sm);
    font-size: 1.1rem;
    padding: var(--spacing-md) var(--spacing-xl);
}

/*
==============================================
SECTIONS
==============================================
*/
.section {
    padding: var(--spacing-xxl) 0;
}

.section-bg {
    background-color: var(--surface-color);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/*
==============================================
GRID LAYOUTS
==============================================
*/
.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/*
==============================================
CARDS
==============================================
*/

.card {
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.card-text {
    color: var(--text-secondary);
    flex-grow: 1;
}

.card-link {
    display: block;
    margin-top: var(--spacing-md);
    font-weight: bold;
    color: var(--secondary-color);
}

/* News Card Specifics */
.news-card .card-body {
    position: relative;
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* Stats Section */
.stats-item {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
}

.stats-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stats-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.stats-box p {
    margin: 0;
    font-size: 1.1rem;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
    display: block;
}

/* Program Details Page */
.program-details {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.program-main-content {
    flex: 3;
    min-width: 300px;
}

.program-main-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.program-main-content ul {
    list-style: disc;
    padding-left: 20px;
    line-height: 1.8;
}

.program-sidebar {
    flex: 1;
    min-width: 250px;
}

.sidebar-widget {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar-widget h4 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.sidebar-widget p {
    margin: 0 0 10px;
}

.sidebar-widget .btn {
    width: 100%;
    text-align: center;
}

/* Contact Page Layout */
.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-details-col,
.contact-form-col {
    flex: 1;
    min-width: 300px;
}

.contact-details-col h2,
.contact-form-col h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.contact-item h4 {
    margin: 0 0 5px;
}

.contact-item p,
.contact-item a {
    margin: 0;
    color: #555;
    text-decoration: none;
}
.contact-item a:hover {
    color: var(--secondary-color);
}

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


/* Campus Section */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/*
==============================================
FOOTER
==============================================
*/
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-xxl) 0;
}

.site-footer a {
    color: #FFFFFF;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.footer-col h4 {
    color: var(--accent-color);
    font-family: var(--font-family-sans-serif);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--spacing-sm);
}

.footer-bottom {
    border-top: 1px solid #1a4775;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    text-align: center;
    font-size: 0.9rem;
    color: #A0A0A0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-socials {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.footer-socials a {
    font-size: 1.5rem;
}

/*
==============================================
RESPONSIVE DESIGN
==============================================
*/

@media (max-width: 992px) {
    .grid-cols-3, .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
    }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        flex-direction: column;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        box-shadow: var(--shadow);
    }

    .main-nav.active {
       max-height: 500px; /* Adjust as needed */
       padding: var(--spacing-md) 0;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .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);
    }

    .header-actions {
        display: none; /* Hide buttons in mobile nav view */
    }

    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 60vh;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

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 #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

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(2, 48, 106, 0.2);
}

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

/* Form-specific Styles */
.application-form {
    margin-top: 30px;
}

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

fieldset {
    border: 1px solid #ddd;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
}

legend {
    padding: 0 10px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Custom file input */
input[type="file"] {
    border: none;
    padding: 0;
}

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);
}

.btn:hover, .btn-secondary:hover {
    background-color: #e8a500;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    position: relative; /* Ensure it has a stacking context */
    z-index: 101;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar .contact-info a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.top-bar .contact-info a:hover {
    text-decoration: underline;
}

.top-bar .contact-info i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3, .footer-col h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
}

.footer-col p {
    color: #ccc;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #3a4b6c;
    padding-top: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
}