/* Color Variables */
:root {
    --navy: #1e2a5e;
    --gold: #c5a059;
    --white: #ffffff;
    --bg: #f4f7f9;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: #333;
    line-height: 1.6;
}

/* Header & Logo Styling - Logo Left, Name Center */
header {
    background: var(--navy);
    color: var(--white);
    padding: 20px 5%;
    border-bottom: 5px solid var(--gold);
    
    /* This creates the 3-part layout */
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    align-items: center; 
}

.school-logo {
    height: 120px; /* This is the size from your original file */
    width: auto;
}

.header-text {
    text-align: center; /* This centers the name in the middle */
    flex-grow: 1;
}

/* This is the "secret" space that keeps the name centered */
.header-spacer {
    width: 120px; 
}

.header-text h1 {
    margin: 0;
}

.header-text p {
    margin: 5px 0 0;
}
nav {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    transition: 0.3s ease;
}

nav a:hover, nav a.active {
    background: var(--gold);
    color: var(--navy);
}

/* Content Layout */
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

section {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

h2 {
    color: var(--navy);
    border-left: 5px solid var(--gold);
    padding-left: 15px;
}

.main-img {
    width: 100%;
    border-radius: 5px;
    margin-top: 20px;
}

/* News Section Styling */
.news-item {
    border-left: 3px solid #ddd;
    padding-left: 20px;
    margin-top: 15px;
}

.news-item h3 {
    color: var(--gold);
    margin: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: var(--navy);
    color: var(--white);
    border-top: 5px solid var(--gold);
}
/* Professional Call-to-Action Button */
.cta-button {
    display: inline-block;
    background-color: var(--gold);
    color: var(--navy);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px; /* Modern rounded shape */
    margin: 20px 0;
    transition: 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: var(--navy);
    color: var(--white);
    transform: scale(1.05); /* Button grows slightly on hover */
}
/* Better handling for smaller screens */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stack logo and text on mobile */
        padding: 20px 2%;
    }

    .header-spacer {
        display: none; /* We don't need the spacer if stacked */
    }

    .school-logo {
        height: 80px; /* Smaller logo for mobile */
        margin-bottom: 10px;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }
}

/* Accessibility: Clear focus for keyboard users */
.cta-button:focus, nav a:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}
/* --- ABOUT PAGE SPECIFIC STYLES --- */

/* Hero Section with subtle overlay */
.about-hero {
    background: linear-gradient(rgba(30, 42, 94, 0.8), rgba(30, 42, 94, 0.8)), url('school-building.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin: 0;
}

/* Mission & Vision Flex Layout */
.mission-flex {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 50px;
}

.mission-text {
    flex: 2;
    min-width: 300px;
}

.vision-card {
    flex: 1;
    min-width: 280px;
    background: var(--navy);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    border-bottom: 6px solid var(--gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.vision-card h3 {
    color: var(--gold);
    margin-top: 0;
}

.vision-card ul {
    padding-left: 20px;
}

.vision-card li {
    margin-bottom: 10px;
}

/* Principal Quote Box */
.principal-box {
    margin-top: 30px;
    padding: 20px;
    border-left: 5px solid var(--gold);
    background: #fff;
    font-style: italic;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
}

.principal-box small {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-style: normal;
    color: var(--navy);
}

/* Feature Grid Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feature-card {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-card .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

/* Info Grid (Hours & Chapel) */
.info-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.info-item {
    flex: 1;
    min-width: 280px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border-top: 4px solid var(--navy);
}

/* Uniform Grid */
.uniform-grid {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    background: #fdfdfd;
    padding: 30px;
    border-radius: 12px;
    border: 1px dashed var(--gold);
    margin-top: 20px;
}

.uniform-column {
    flex: 1;
    min-width: 250px;
}

.uniform-column h4 {
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    padding-bottom: 5px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .about-hero {
        padding: 50px 15px;
    }
    
    .about-hero h1 {
        font-size: 1.8rem;
    }
}
/* --- ADMISSIONS STYLES --- */

.admissions-hero {
    background-color: var(--navy);
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border-bottom: 6px solid var(--gold);
    margin-bottom: 30px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.program-card {
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    border-top: 4px solid var(--gold);
}

.program-card h4 {
    color: var(--navy);
    margin-top: 0;
}

.apply-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.apply-info {
    flex: 2;
    min-width: 300px;
}

.tuition-box {
    flex: 1;
    min-width: 250px;
    background: var(--bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--gold);
}

.apply-info ol {
    padding-left: 20px;
    margin-bottom: 30px;
}

.apply-info li {
    margin-bottom: 15px;
}
/* --- CONTACT PAGE STYLES --- */

.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-info, .contact-form-section {
    flex: 1;
    min-width: 320px;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.map-wrapper {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.ihms-form .form-group {
    margin-bottom: 20px;
}

.ihms-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--navy);
}

.ihms-form input, 
.ihms-form select, 
.ihms-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Crucial for full width */
}

.ihms-form input:focus, 
.ihms-form textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 5px rgba(197, 160, 89, 0.3);
}

.ihms-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
}
/* --- HOME UPDATES LAYOUT --- */
.home-updates {
    display: flex;
    gap: 30px;
    flex-wrap: wrap; /* Stacks on mobile */
    margin-top: 40px;
}

.notice-board {
    flex: 2; /* Notice board takes more space */
    min-width: 300px;
}

.upcoming-calendar {
    flex: 1; /* Calendar is a sidebar style */
    min-width: 280px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Post-it Note Styles */
.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.post-it {
    background: #fff9c4; /* Yellow */
    padding: 15px;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.1);
    transform: rotate(-1deg);
    border-left: 5px solid var(--gold);
}

.post-it.blue { background: #e1f5fe; transform: rotate(1deg); }
.post-it.green { background: #e8f5e9; transform: rotate(-0.5deg); }

.post-it h4 { margin: 0 0 10px 0; color: var(--navy); font-size: 1rem; }
.post-it p { font-size: 0.85rem; margin: 0; line-height: 1.4; }

/* Calendar Event Styles */
.event-stack {
    margin-bottom: 20px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.date-badge {
    background: var(--navy);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    min-width: 50px;
}

.date-badge span {
    display: block;
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: bold;
}

.event-info h4 { margin: 0; font-size: 0.95rem; color: var(--navy); }
.event-info p { margin: 0; font-size: 0.8rem; color: #666; }

.cta-small {
    font-size: 0.8rem;
    color: var(--navy);
    text-decoration: underline;
    font-weight: bold;
}
/* BRANDING & VARIABLES */
:root {
    --navy: #1e2a5e;
    --gold: #c5a059;
    --white: #ffffff;
    --bg: #f4f7f9;
    --portal-blue: #337ab7;
    --accent-red: #b32025;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: #333;
    line-height: 1.6;
    font-size: 18px; /* Ensures text is readable */
}

/* HEADER & NAV */
header {
    background: var(--navy);
    color: var(--white);
    padding: 20px 5%;
    border-bottom: 5px solid var(--gold);
    display: flex;
    justify-content: space-between; 
    align-items: center; 
}

.school-logo { height: 120px; width: auto; }
.header-text { text-align: center; flex-grow: 1; }
.header-spacer { width: 120px; }

@media (max-width: 768px) {
    header { flex-direction: column; text-align: center; }
    .header-spacer { display: none; }
    .school-logo { height: 80px; }
}

nav {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 1px solid var(--gold);
    border-radius: 4px;
}

nav a:hover, nav a.active { background: var(--gold); color: var(--navy); }

/* STAFF GRID SYSTEM */
.staff-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    color: var(--navy);
    border-bottom: 4px solid var(--gold);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.staff-card {
    background: var(--white);
    border: 1px solid #ddd;
    border-left: 6px solid var(--portal-blue);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.staff-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.role-tag {
    font-weight: bold;
    color: var(--portal-blue);
}

/* SPECIAL HIGHLIGHTS */
.principal-card { border-left-color: var(--accent-red); background: #fffafa; }
.office-card { border-left-color: var(--gold); }

footer {
    text-align: center;
    padding: 30px;
    background: var(--navy);
    color: var(--white);
    border-top: 5px solid var(--gold);
    margin-top: 50px;
}
/* --- CLEAN & BALANCED SLIDER --- */
#image-slider {
    background: transparent;
    padding: 0;
    margin: 20px auto 40px auto;
}

.slider-container {
    max-width: 1000px; /* Aligns with your other content */
    margin: 0 auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide {
    display: none; 
}

.slide.active {
    display: block;
    animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
    from {opacity: 0.6;} 
    to {opacity: 1;}
}

.slide img {
    width: 100%;
    height: 400px; /* Lower height so it's not overwhelming */
    object-fit: cover;
    display: block;
}

/* Slimmer side arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 42, 94, 0.5);
    color: white;
    border: none;
    padding: 15px 10px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.prev { left: 0; border-radius: 0 4px 4px 0; }
.next { right: 0; border-radius: 4px 0 0 4px; }

/* Elegant, smaller text box */
.slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 6px;
    border-left: 5px solid var(--gold);
    max-width: 320px; /* Small and clean */
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slide-text h3 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.slide-text p { margin: 5px 0 0; font-size: 0.85rem; }

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--navy) 0%, #2a3f7f 100%);
    color: var(--white);
    padding: 40px 5%;
    text-align: center;
    margin: 40px 0;
    border-radius: 8px;
}

.newsletter-section h2 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.newsletter-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 30px;
    background-color: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background-color: #dab86f;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* Footer Social Media */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 30px 5%;
    text-align: center;
    border-top: 5px solid var(--gold);
}

footer p {
    margin: 8px 0;
}

.social-links {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}