@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Lato:wght@400;700&family=Playfair+Display:wght@700;900&display=swap');

/* Color Palette (maroon theme) */
:root {
    --maroon-50: #FFF5F5;
    --maroon-100: #FEE2E2;
    --maroon-200: #FECDCE;
    --maroon-300: #F9A8A8;
    --maroon-400: #F07575;
    --maroon-500: #E12D39;
    --maroon-600: #C01A24;
    --maroon-700: #8B0000;
    --maroon-800: #660000;
    --maroon-900: #4D0000;

    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* General Body and HTML Styling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
}

/* Header */
.header {
    background: #800000;
    background: linear-gradient(137deg, rgba(128, 0, 0, 0.48) 0%, rgba(255, 255, 255, 1) 15%, rgba(255, 255, 255, 1) 71%, rgba(128, 0, 0, 0.56) 82%);
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* space between logo and nav */
    text-align: center;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo-image {
    height: 2.5rem;
    width: 2.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--gray-800);
}

.main-nav {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
}

.nav-link {
    color: var(--gray-600);
    transition: color 0.3s, transform 0.3s;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    
}

.nav-link:hover {
    color: var(--maroon-700);
    transform: translateY(-2px);
}

.cta-button {
    background-color: var(--maroon-700);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: var(--maroon-800);
    transform: scale(1.05);
}

.mobile-menu-button {
    display: block;
    color: var(--gray-600);
    transition: color 0.3s;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
}

a {
    text-decoration: none;
    font-size: 20px;

}

.mobile-menu-button:hover {
    color: var(--maroon-700);
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu-icon {
    height: 1.75rem;
    width: 1.75rem;
}

.mobile-nav {
    display: block;
    background: #EDDD53;
    background: linear-gradient(56deg,rgba(237, 221, 83, 1) 14%, rgba(255, 255, 255, 1) 52%);
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.mobile-nav.menu-open {
    max-height: 550px;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: var(--gray-600);
    transition: color 0.3s;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.mobile-nav-link:hover {
    color: var(--maroon-700);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-size: cover;
    background-position: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.7;
    background-color:rgba(0, 0, 0, 0.9);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    /* animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s ease-out forwards;
}

/* Hero Title (Improved) */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    animation: fadeInScale 1.5s ease-out forwards;
}



/* Animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


@media (min-width: 640px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
    
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.50rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-family: 'Times New Roman', Times, serif;
}

/* Hero CTA */
.hero-cta {
    background-color: white;
    color: var(--maroon-700);
    transition: background-color 0.3s, transform 0.3s;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: inline-block;
}

.hero-cta:hover {
    background-color: var(--gray-200);
    transform: scale(1.05);
}

/* END OF HEADER */



/* ============================= */
/* 📌 Programs Section */
/* ============================= */
.academics-section {
    background-color: maroon;
    padding: 5rem 1.5rem;
}

/* Title Styling */
.programs-title-wrapper {
    background: #FF8C00;
    display: inline-block;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.programs-title {
    color: white;
    font-size: 2rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin: 0;
}

/* Program list container */
.programs-list {
    max-width: 1000px;
    margin: 0 auto;
    color: white;
}

/* Each program entry */
.program-entry {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
}

.program-entry:last-child {
    border-bottom: none;
}

/* Main dropdown button */
.dropdown-btn {
    background: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 0.8rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.dropdown-btn:hover {
    color: #FFD700;
}

/* ============================= */
/* 📌 Program Dropdown Content */
/* ============================= */
.program-entry .dropdown-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 0.5rem;
    transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out, padding 0.6s ease-in-out;
    font-size: 15px;
}

/* Expand only direct child content (fix) */
.program-entry.active > .dropdown-content {
    max-height: 1500px; /* large enough to fit majors */
    opacity: 1;
    padding-top: 0.5rem;
}

/* Better readability for inside program dropdown */
.dropdown-content h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: #FFD700; 
}

.dropdown-content ul {
    list-style-type: none; 
    padding-left: 0; 
    margin-bottom: 0;
}

/* ============================= */
/* 📌 Majors Dropdown */
/* ============================= */
.majors-list {
    margin-top: 1rem;
    padding-left: 1rem;
}

/* Major buttons */
.dropdown-btn.major-btn {
    font-size: 1rem;
    font-weight: normal;
    padding: 0.5rem 0;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
}

.dropdown-btn.major-btn:hover {
    color: #FFD700;
}

/* Major content hidden */
.major-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    margin-left: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
   
}

.major-content strong {
   color: #FFD700;
   font-size: 20px;
}

/* Major content shown */
.major-entry.active .major-content {
    max-height: 600px;
    opacity: 1;
    padding-top: 0.5rem;
}

/* ============================= */
/* 📌 Dropdown Arrows (UX) */
/* ============================= */
.dropdown-btn::after {
    content: "▾";
    position: absolute;
    right: 0.5rem;
    transition: transform 0.3s ease;
}

.program-entry.active > .dropdown-btn::after,
.major-entry.active > .dropdown-btn::after {
    transform: rotate(180deg);
}

/* End of Marketing Drop Down */


/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: 2rem 1.5rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers items along the main axis (vertical on mobile) */
    align-items: center;    /* Centers items along the cross axis (horizontal) */
    text-align: center;     /* Centers text within items */
    gap: 2rem;
}

/* This media query will now keep everything centered on wider screens too */
@media (min-width: 768px) {
    .footer-container {
        flex-direction: column; /* Still stacked vertically */
        align-items: center;    /* Center everything horizontally */
        text-align: center;     /* Ensure text is centered */
    }

    /* Specifically target the footer-main to ensure its content is centered */
    .footer-main {
        align-items: center; /* This is the key change for centering links on desktop */
    }

    /* Also ensure the links themselves are not overridden */
    .footer-links {
        justify-content: center; /* If footer-links itself is a flex container */
    }
}

/* Existing: Social/Contact Section */
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-social h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--gray-400);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: white;
}

/* Existing: Copyright & Links Section */
.footer-main {
    display: flex;
    flex-direction: column;
    /* Ensure this is centered by default and within media query */
    align-items: center; /* Default for mobile and smaller screens */
    gap: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    /* text-align: center; This might be redundant if parent is centering, but can be explicit */
}

.footer-links {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    /* text-align: center; // This might be redundant if parent is centering */
    justify-content: center; /* Ensure internal links are centered if they take less than 100% width */
}

.footer-links a{
    font-size: 15px;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
}

.footer-link:hover {
    color: white;
}


/* --- Modal Styling ---  PRIVACY AND TERMS */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}
.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.modal-body h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}
.modal-body h3 {
    font-size: 1.5rem;
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.modal-body p, .modal-body ul {
    line-height: 1.6;
    color: #666;
    text-align: justify;
}
.modal-body ul {
    margin-left: 20px;
}
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 90%;
    }
}



