/* General reset */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eaeff3;
    color: #222;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 51, 102, 0.8);
    padding: 0.4rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw; /* Prevents overflow */
    box-sizing: border-box;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

nav .logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav img.logo {
    height: 28px;
    width: auto;
}

nav span.logo-text {
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
    white-space: nowrap;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
    overflow: hidden;
    gap: 1rem;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    transition: 0.4s;
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    background: url('yyp_gray.png') center center/cover no-repeat;
    background-color: #FFF8DC; /* Easter yellow (Cornsilk) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 200px; /* ← Increased from 80px */
    text-align: center;
}

.hero img.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.hero .tagline-box {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-size: 1.5rem;
    font-weight: bold;
    color: #003366;
    margin-bottom: 20px;
}

.hero .learn-more-btn {
    background-color: #003366;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero .learn-more-btn:hover {
    background-color: #00509e;
}

/* About section */
.about-section {
    background-color: #ffffff;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.about-container {
    display: flex;
    align-items: center;           /* ← Vertically centers both image and text */
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    max-width: 1000px;
    width: 100%;
    gap: 30px;
}

.about-container img {
    width: 200px;
    height: auto;
    border-radius: 10px;
}

.about-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

/* Banner */
.banner {
    background-color: red;
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 48px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 51, 102, 0.9);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        border-radius: 4px;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0.5rem 0;
        text-align: right;
        padding-right: 1rem;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
    }
}
/* --------------------------------CONTACT PAGE CSS ------------------------------------------*/

/* Easter yellow background for all pages */
body {
    background-color: #FFF8DC;
}

/* Centered and boxed container */
.container {
    max-width: 800px;
    margin: 100px auto 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Contact details inner box */
.contact-details {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 10px;
    margin-top: 2rem;
    line-height: 1.8;
}
/*----------------------------------YYP PAGE  STYLE -----------------------------------*/
/* YYP page background and GIF centering */
body.yyp-page {
    background-color: #FFF8DC; /* Easter yellow */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

body.yyp-page main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.yyp-page main img {
    max-width: 300px; /* smaller size */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
