/* ==========================================
   1. GLOBAL VARIABLES & RESET
   ========================================== */
:root {
    --primary-blue: #e0f2f7;
    --primary-yellow: #ffc400;
    --primary-dark-blue: #0b6e14; /* Your School Green */
    --pastel-pink: #ffe8e0;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --nav-green: #016416; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================
   2. HEADER & NAVIGATION (DESKTOP)
   ========================================== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 45px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- Logo --- */
.logo-container a {
    display: block;
    text-decoration: none;
}

.school-logo-full {
    /* Scales the logo beautifully between 180px and 320px */
    width: clamp(220px, 35vw, 400px);
    height: auto;
    display: block;
}

/* --- Hamburger Button (Hidden on Desktop) --- */
.mobile-menu-btn {
    display: none; 
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--primary-dark-blue);
    cursor: pointer;
    padding: 5px;
}

/* --- Desktop Navigation --- */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 15px; 
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--nav-green);
    font-size: 14.5px;
    font-weight: 600;
    display: inline-block;
    padding: 8px 16px; 
    border-radius: 10px; 
    transition: all 0.3s ease;
}

/* Hover Effect: Solid Green Background + White Text */
.main-nav a:hover {
    background-color: var(--primary-dark-blue);
    color: #ffffff;
}

/* Active Page State (Current Page) */
.main-nav a.active {
    background-color: rgba(11, 110, 20, 0.1); 
    color: var(--primary-dark-blue);
}

/* ==========================================
   3. LEARNING PAGE (HOMEPAGE) STYLES
   ========================================== */

/* --- Hero Section --- */
.hero-learning {
    display: flex;
    min-height: 550px;
    align-items: stretch;
}

.hero-learning .hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f0f7f4; 
    padding: 60px;
}

.hero-text-inner {
    max-width: 500px; 
}

.hero-learning .hero-text h1 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 4rem;
    color: var(--primary-dark-blue); 
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.hero-learning .hero-text p {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.hero-learning .hero-image {
    flex: 1;
}

.hero-learning .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Alternating Rows --- */
.learning-rows-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    background: #fff;
}

.learning-row {
    display: flex;
    min-height: 350px;
}

.row-color-box {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 50px;
}

.row-color-box h2 {
    color: white;
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.row-image {
    flex: 1;
}

.row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.row-text {
    flex: 1.2; 
    display: flex;
    align-items: center;
    padding: 60px;
    background-color: var(--pastel-pink);
}

.row-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ==========================================
   4. FOOTER & CONTACT FORM
   ========================================== */
.site-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    padding: 60px 40px;
    gap: 40px;
    background: #fff;
    border-top: 1px solid #eee;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--primary-dark-blue);
}

.footer-column p, 
.footer-column li {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

/* Social Links */
.social-links { 
    list-style: none; 
}

.social-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover { 
    color: var(--primary-yellow); 
}

/* Footer Form */
.footer-column form { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.form-row { 
    display: flex; 
    gap: 15px; 
}

.footer-column input, 
.footer-column textarea {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #333;
    background: transparent;
    outline: none;
    font-size: 14px;
}

.submit-btn {
    width: 100px;
    padding: 10px 0;
    background: transparent;
    color: var(--primary-dark-blue);
    border: none;
    border-bottom: 2px solid var(--primary-dark-blue);
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.3s;
}

.submit-btn:hover {
    color: var(--primary-yellow);
    border-bottom: 2px solid var(--primary-yellow);
}

.footer-bottom {
    text-align: left;
    padding: 20px 40px;
    font-size: 12px;
    color: var(--text-gray);
    background: #fff;
}

/* ==========================================
   5. RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================== */
@media (max-width: 1024px) {
    /* --- Header & Hamburger --- */
    .site-header {
        padding: 10px 20px;
        flex-wrap: nowrap; /* Keep logo and hamburger on one line */
    }

    .mobile-menu-btn {
        display: block; /* Show hamburger */
    }

    /* --- Mobile Dropdown Menu --- */
    .main-nav {
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
        padding: 0; 
        z-index: 999;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0; 
        align-items: center;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0; 
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 15px 0;
        border-radius: 0; 
    }

    .main-nav a span {
        display: block;
        width: 100%;
    }

    /* Full-width hover background on mobile */
    .main-nav a:hover {
        background-color: var(--primary-dark-blue);
    }
    
    .main-nav a:hover span {
        color: #ffffff;
    }

    .main-nav a.active {
        background-color: rgba(11, 110, 20, 0.1);
    }

    /* --- Hero Adjustments --- */
    .hero-learning { 
        flex-direction: column; 
    }
    .hero-learning .hero-text { 
        padding: 40px 20px; 
    }
    .hero-learning .hero-text h1 { 
        font-size: 2.3rem; 
    }
    
    /* --- Row Adjustments --- */
    .learning-row { 
        flex-direction: column; 
    }
    .row-color-box { 
        padding: 30px; 
        min-height: 150px; 
    }
    .row-color-box h2 { 
        font-size: 2rem; 
    }
    .row-text { 
        padding: 30px; 
    }

    /* --- Footer Adjustments --- */
    .site-footer {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
}

/* ==========================================
   7. ABOUT PAGE SPECIFIC STYLES
   ========================================== */

/* --- Two Column Section (Principal & Mission) --- */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 10%;
}

.two-column-section .column img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 30px;
}

.two-column-section .column h2 {
    font-size: 2rem;
    color: var(--primary-dark-blue);
    margin-bottom: 20px;
}

.two-column-section .column p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* --- Vision & Values Section --- */
.values-section {
    padding: 80px 10%;
}

.values-container {
    max-width: 800px;
}

.values-section h2 {
    font-size: 2rem;
    color: var(--primary-dark-blue);
    margin-bottom: 30px;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    font-size: 2.5rem;
    color: var(--primary-dark-blue);
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Custom Bullet Point */
.values-list li::before {
    content: '•';
    color: var(--nav-green); /* Green bullet */
    font-size: 3rem;
    margin-right: 15px;
    line-height: 1;
}

/* --- Faculty & Staff Section --- */
.faculty-section {
    padding: 80px 10%;
}

.faculty-container h2 {
    font-size: 2rem;
    color: var(--primary-dark-blue);
    margin-bottom: 10px;
}

.faculty-intro {
    color: var(--text-gray);
    margin-bottom: 40px;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 30px;
}

.staff-card {
    background: #fff; /* To ensure the image doesn't have weird gaps */
    display: flex;
    flex-direction: column;
}

.staff-card img {
    width: 100%;
    height: 300px; /* Fixed height so all images match */
    object-fit: cover;
}

.staff-info {
    padding: 25px;
    flex: 1; /* Pushes the box to fill the remaining height */
}

.staff-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.staff-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.staff-info a {
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

/* --- Responsive Tweaks for About Page --- */
@media (max-width: 900px) {
    .two-column-section {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        padding: 40px 20px;
    }
    
    .values-list li {
        font-size: 1.8rem;
    }

    .faculty-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
    }
}

@media (max-width: 600px) {
    .faculty-grid {
        grid-template-columns: 1fr; /* 1 column on phone */
    }
}

/* --- Custom H1 Word Control --- */
.custom-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    line-height: 1.1;
    margin-bottom: 30px;
}

/* 1. Styling "About" */
.custom-title .word-about {
    color: var(--primary-dark-blue); 
    font-weight: 800;
    text-decoration: underline; 
    text-decoration-color: var(--primary-yellow);
}

/* 2. Styling "Savannah" */
.custom-title .word-savannah {
    color: var(--nav-green); 
    font-weight: 400; 
    font-style: italic; 
    /* Removed fixed font-size so it scales with the parent clamp() */
}

/* 3. Styling "Schools" */
.custom-title .word-schools {
    color: var(--primary-yellow); 
    font-weight: 900;
    text-transform: uppercase; 
    letter-spacing: 2px;
    /* Removed fixed font-size so it scales with the parent clamp() */
}

.custom-title .keep-together {
    white-space: nowrap; 
    display: inline-block; 
}

/* --- Mobile Fix for Custom Title --- */
@media (max-width: 1024px) {
    /* Override the previous mobile h1 rule so clamp() works properly */
    .hero-learning .hero-text .custom-title { 
        font-size: clamp(2rem, 8vw, 3rem); 
    }
}

/* ==========================================
   CIRCULAR CORE VALUES SECTION
   ========================================== */
.values-section {
    padding: 80px 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.values-container {
    width: 100%;
    max-width: 800px; /* Adjust this to make the whole graphic bigger/smaller */
}

.core-values-graphic {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Creates a perfect square aspect ratio */
}

/* --- The Light Blue Connecting Ring --- */
.connector-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%; /* Size of the ring */
    height: 65%;
    border: 12px solid #d6fcb3; /* Light blue color */
    border-radius: 50%;
}

/* --- Center Text --- */
.core-values-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1;
    color: #80b601; /* Dark Blue */
}

.core-values-center-text .core {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.core-values-center-text .values {
    display: block;
    font-size: 3rem;
    font-weight: 800;
}

/* --- The 5 Value Nodes --- */
.value-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 160px;
}

/* Icon Circle Styling */
.icon-circle {
    width: 110px;
    height: 110px;
    background-color: #588f00; /* Cyan Blue */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.value-node:hover .icon-circle {
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Text Label Styling */
.value-label {
    font-size: 1rem;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
}

/* --- Positioning the Nodes (The Math) --- */
/* Top */
.value-node.top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Bottom Right */
.value-node.bottom-right {
    bottom: 5%;
    right: 15%;
}

/* Bottom Left */
.value-node.bottom-left {
    bottom: 5%;
    left: 15%;
}

/* Right */
.value-node.right {
    top: 40%;
    right: 0;
    transform: translateY(-50%);
}

/* Left */
.value-node.left {
    top: 40%;
    left: 0;
    transform: translateY(-50%);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .core-values-graphic {
        padding-bottom: 120%; /* Give more vertical room on mobile */
    }
    
    .connector-ring {
        width: 80%;
        height: 60%;
    }

    .core-values-center-text .core { font-size: 1.8rem; }
    .core-values-center-text .values { font-size: 2.2rem; }

    .icon-circle {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .value-node {
        width: 110px;
    }

    .value-label {
        font-size: 0.8rem;
    }

    /* Adjust positions for mobile so they don't overlap */
    .value-node.bottom-right { bottom: 0; right: 5%; }
    .value-node.bottom-left { bottom: 0; left: 5%; }
    .value-node.right { top: 45%; right: 0; }
    .value-node.left { top: 45%; left: 0; }
}
