/* Define CSS variables for consistency */
:root {
    --hero-gradient: linear-gradient(135deg, #00b4d8, #ff6f61); /* Teal to coral gradient */
    --secondary-color: linear-gradient(135deg, #1e3c72, #2a5298); /* Dark blue gradient */
    --accent-color: #ff6f61; /* Coral accent */
    --text-color: #ffffff; /* White text */
    --card-bg: #f8f9fa; /* Light gray for cards */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --content-bg: #caf0f8; /* Light cyan background */
}

/* Body styling to match main content background */
body {
    background-color: var(--content-bg);
    margin: 0;
    padding: 0;
}

/* Hero section */
.hero {
    background: var(--hero-gradient);
    color: var(--text-color);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Modern hero section with background image support */
.home-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 1s ease;
    background: var(--hero-gradient); /* Fallback to match screenshot */
}

/* Dark overlay for better text readability */
.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Lighter overlay for gradient visibility */
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* Ensure content is above the overlay */
.home-hero .container {
    position: relative;
    z-index: 2;
}

/* Restore fixed background on desktop */
@media (min-width: 768px) {
    .home-hero {
        background-attachment: fixed;
    }
}

/* Hero text styles */
.home-hero h1 {
    font-size: 3.5rem;
    font-family: 'Merriweather', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    color: var(--text-color);
}

.home-hero p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    color: #f0f0f0;
}

/* Enhanced call-to-action button */
.home-hero .btn-cta {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* Ensure gradient button */
}

.home-hero .btn-cta:hover,
.home-hero .btn-cta:focus {
    background: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.home-hero .btn-cta:active {
    transform: translateY(-1px);
}

/* Header styling */
.site-header {
    background: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.school-name {
    font-size: 1.8rem;
    font-family: 'Merriweather', serif;
    color: var(--text-color);
    margin: 0;
}

/* Navbar styling */
.navbar {
    background: var(--secondary-color);
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--accent-color) !important;
}

.search-form {
    margin-left: auto;
}

.search-form .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.search-form .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color);
}

/* About section styling */
.about-section {
    padding: 4rem 0;
    background: var(--content-bg);
}

.about-section h2 {
    font-family: 'Merriweather', serif;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-section p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

/* Footer styling */
footer {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 1rem 0;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive hero adjustments */
@media (max-width: 576px) {
    .home-hero {
        min-height: 350px;
        background-attachment: scroll;
    }

    .home-hero h1 {
        font-size: 2.2rem;
    }

    .home-hero p {
        font-size: 1.2rem;
    }

    .home-hero .btn-cta {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }

    .school-name {
        font-size: 1.5rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .search-form {
        margin: 1rem auto 0;
        width: 100%;
    }
}

/* Center headings in container sections */
.container h1 {
    text-align: center;
}

/* Card styling for program listing (assumed from programs.html) */
.card {
    border: none;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    background: var(--content-bg);
}

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

.card-body {
    background: var(--card-bg);
    padding: 1.5rem;
}