/* ======================
    GLOBAL
====================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.section {
    padding: 40px 20px;
    background: #ffffff;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ======================
    HEADER + HAMBURGER
====================== */
header {
    background: black;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10; /* ensures header is above hero overlay */
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

/* Hamburger icon */
.hamburger {
    font-size: 28px;
    cursor: pointer;
    color: white;
    display: none; /* hidden on desktop */
    z-index: 11;   /* above everything */
}

/* Hidden menu */
nav {
    position: absolute;
    top: 100%; /* just below header */
    right: 0;
    width: 100%; /* full width on mobile */
    background: black;
    display: none;
    flex-direction: column;
    z-index: 12; /* above hero overlay */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    border-bottom: 1px solid #333;
}

nav ul li a {
    display: block;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    background: #222;
}

/* Show menu */
nav.show {
    display: flex;
}

/* ======================
    HERO SECTION - FIXED BACKGROUND
====================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;

    background: url('../images/backgroundfix.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1; /* overlay below header/nav */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0077cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background-color: #005fa3;
}

/* ======================
    PROGRAM LIST
====================== */
.programs-facilities .program-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.programs-facilities .program-item {
    flex: 1 1 30%;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.programs-facilities .program-item h3 {
    margin-top: 0;
}

/* ======================
    FOOTER
====================== */
footer {
    background: black;
    color: white;
    padding: 25px 0;
    margin-top: 40px;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

footer ul li a:hover {
    opacity: 0.7;
}

/* ======================
    RESPONSIVE
====================== */
@media (max-width: 900px) {
    .hamburger {
        display: block; /* show hamburger on mobile */
    }

    nav {
        top: 60px;
        width: 100%;
    }

    .programs-facilities .program-list {
        flex-direction: column;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }
}

/* ======================
   CONTACT PAGE
====================== */

.contact-page {
    max-width: 700px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-page h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #222;
}

.contact-page .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contact-page label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.contact-page input,
.contact-page textarea {
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-page input:focus,
.contact-page textarea:focus {
    border-color: #0077cc;
    box-shadow: 0 0 0 2px rgba(0, 119, 204, 0.15);
}

.contact-page button {
    width: 100%;
    padding: 14px;
    background-color: #0077cc;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-page button:hover {
    background-color: #005fa3;
}

/* =========================
   BLOG PAGE FIXED BACKGROUND
========================= */

.blog-hero {
    background-image: url("../images/blogsbackground.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    min-height: 100vh;
    padding: 100px 0;
}

/* Dark overlay for readability */
.blog-overlay {
    background: rgba(0, 0, 0, 0.6);
    min-height: 100vh;
    padding: 60px 0;
}

/* Blog container */
.blog-container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    color: #fff;
}

/* Blog card */
.blog-post {
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.blog-post h2 {
    margin-bottom: 8px;
}

.blog-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.blog-post p {
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #004aad;
    font-weight: 600;
    text-decoration: none;
}
