/*
Theme Name: Health University
Theme URI: https://example.com/health-university
Author: Alieu Bockarie
Author URI: https://example.com
Description: A professional, clinical, and modern academic WordPress theme for Health University.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: health-university
*/

:root {
    --primary-color: #002D62;
    /* Deep Navy */
    --accent-color: #008080;
    /* Medical Teal */
    --text-color: #333333;
    --light-gray: #F4F7F9;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

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

/* Header UI */
.utility-bar {
    background-color: #222;
    color: white;
    font-size: 0.85rem;
    padding: 10px 0;
}

.utility-bar a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    margin-left: 20px;
}

.utility-bar a:hover {
    color: white;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.site-logo h1 {
    margin: 0;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-apply-btn {
    background-color: var(--accent-color);
    color: white !important;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

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

.header-search-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.menu-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--primary-color);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
    padding: 40px;
    color: white;
    overflow-y: auto;
}

.menu-overlay.active {
    transform: translateX(0);
}

.menu-overlay ul {
    list-style: none;
}

.menu-overlay a {
    color: white;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: var(--white);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 998;
    /* Below menu overlay but above header content */
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-overlay.active {
    transform: translateY(80px);
    /* Push down below header */
}

.close-search {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
}

.search-form {
    display: flex;
    gap: 20px;
}

.search-field {
    flex-grow: 1;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    padding: 10px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
}

/* Hero Section */
.hero-western {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 45, 98, 0.9) 0%, rgba(0, 45, 98, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    color: white;
}

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

.hero-cards {
    position: absolute;
    bottom: -40px;
    right: 0;
    display: flex;
    gap: 20px;
    z-index: 20;
}

.hero-card {
    background: var(--white);
    padding: 20px;
    width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--accent-color);
}

/* Program Finder */
.program-finder-section {
    background: #f0f0f0;
    /* Light gray fallback */
    padding: 100px 0 60px;
    /* Top padding to account for overlap */
}

.program-finder-box {
    background: var(--primary-color);
    padding: 40px;
    border-radius: 8px;
    color: white;
}

.pf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.pf-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.pf-select {
    width: 100%;
    padding: 12px;
    background: white;
    border: none;
    border-radius: 4px;
    height: 50px;
}

.pf-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    height: 50px;
    padding: 0 30px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

/* Content Sections */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.content-block.image-right .cb-text {
    order: 1;
}

.content-block.image-right .cb-image {
    order: 2;
}

.cb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cb-text {
    padding: 60px;
    background: var(--white);
}

/* News Stack */
.news-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: white;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.news-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Footer & Sticky CTA */
.site-footer {
    background: #111;
    color: #fff;
    padding: 80px 0 100px;
    /* Bottom padding for sticky bar */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #C5B358;
    /* Gold-ish accent like WesternU */
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 2000;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsiveness */

/* Tablet & Smaller Laptops (max-width: 992px) */
@media (max-width: 992px) {
    :root {
        --container-width: 90%;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .single-program-layout {
        grid-template-columns: 1fr;
    }

    .sticky-sidebar {
        position: static;
        margin-top: 40px;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 10px;
    }

    .hero-western {
        height: auto;
        padding: 60px 0 100px;
        flex-direction: column;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-cards {
        position: static;
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .hero-card {
        width: 100%;
        border-left: none;
        border-top: 5px solid var(--accent-color);
    }

    .pf-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .content-block {
        grid-template-columns: 1fr;
    }

    .content-block.image-right .cb-image {
        order: -1;
    }

    .cb-text {
        padding: 30px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sticky-bottom-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .program-archive-grid {
        grid-template-columns: 1fr;
    }

    /* Faculty Grid */
    .container>div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .container>div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    .menu-overlay {
        padding: 20px;
    }

    .menu-overlay a {
        font-size: 1.2rem;
    }

    /* Application Form */
    #application-form>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}