/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

:root {
    --primary: #1a4b8c;
    --secondary: #f9a826;
    --light-bg: #fdf6e3;
    --text-dark: #333;
    --text-medium: #666;
    --card-bg: #f9f9f9;
}

/* Full page background like senior school */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/ecd7.jpeg') center top / cover no-repeat;
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
/* All header styles are now inherited from css/style.css */

.site-nav ul li a.active {
    background-color: #d4af37 !important; /* Gold background for active link */
    color: #1a4b8c !important; /* Dark blue text for active link */
}

/* Hero Section - Full Viewport Height */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/ecd7.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Full viewport height */
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.page-hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 35px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    line-height: 1.5;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: black;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn:hover {
    background-color: #e59400;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

body {
    background-color: var(--light-bg);
}

/* Content Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.section-title p {
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.bg-dark {
    background-color: white;
}

.bg-darker {
    background-color: #f8f8f8;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.content-text h2 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 2rem;
}

.content-text h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.content-text p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.content-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.content-image:hover img {
    transform: scale(1.05);
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.program-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
    border: 1px solid #e0e0e0;
    min-height: 350px;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.program-img {
    height: 500px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Update program images for ZIMSEC subjects */
.program-core {
    background-image: url('images/ecd8.jpeg');
}

.program-humanities {
    background-image: url('images/chess1.jpg');
}

.program-content {
    padding: 30px;
}

.program-content h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
}

.program-content p {
    color: var(--text-medium);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

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

.feature-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    border: 1px solid #e0e0e0;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-item p {
    color: var(--text-medium);
}

/* Schedule List */
.schedule-list {
    list-style-type: none;
}

.schedule-list li {
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: var(--card-bg);
    border-radius: 5px;
    border-left: 4px solid var(--secondary);
    color: var(--text-dark);
}

.schedule-list li strong {
    color: var(--secondary);
}

/* Admission List */
.admission-list {
    list-style-type: none;
    margin-top: 15px;
}

.admission-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
}

.admission-list li:before {
    content: "➤";
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.contact-details {
    margin-top: 25px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.contact-details p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }

    .page-hero h1 {
        font-size: 2.8rem;
    }

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

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

    .program-img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    nav {
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: #1a4b8c;
        display: none;
    }
    
    nav.show {
        display: block;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

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

    .content-grid .content-image {
        order: -1;
    }
    
    .page-hero {
        min-height: 60vh;
        padding: 80px 0;
        background-attachment: scroll;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .program-img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        min-height: 50vh;
        padding: 60px 0;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }

    .logo-img {
        height: 50px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }
    
    .program-img {
        height: 250px;
    }

    .program-content {
        padding: 20px;
    }

    .program-content h3 {
        font-size: 1.5rem;
    }
}
