/* Core Styling Variables Matching Elite Traditional School Brand Schemes */
:root {
    --primary-maroon: #721c24;   /* Deep Heritage Maroon / Crimson Royal Base */
    --accent-gold: #d4af37;      /* Regal Metallic Academic Gold Decoration */
    --slate-navy: #0f172a;       /* Clean Modern Structural Dark Text Neutral */
    --light-bg: #fdfbf7;         /* Warm Ivory/Cream Canvas (Reduces eye fatigue) */
    --pure-white: #ffffff;
    --text-muted: #64748b;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--slate-navy);
    overflow-x: hidden;
}

/* 1. TOP ADMINISTRATIVE STRIP */
.top-bar {
    background: var(--slate-navy);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.top-bar-contact span {
    margin-right: 20px;
}

.top-bar-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 15px;
    transition: var(--transition-smooth);
}

.top-bar-links a:hover {
    color: var(--accent-gold);
}

.top-login-badge {
    background: var(--primary-maroon);
    color: var(--pure-white) !important;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

/* 2. INSTITUTIONAL HEADER & SHIELD EMBLEM */
.main-header {
    background: var(--pure-white);
    padding: 1.5rem 5%;
    border-bottom: 3px solid var(--primary-maroon);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.emblem-placeholder {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-maroon), #4a1116);
    border: 2px solid var(--accent-gold);
    border-radius: 50% 50% 50% 50%; /* Traditional shield curving outline */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-gold);
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.school-title-block h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--primary-maroon);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.school-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: 2px;
}

/* 3. TRADITIONAL MENU NAVIGATION BAR */
.navigation-bar {
    background: var(--primary-maroon);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-links-wrapper {
    display: flex;
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.nav-links-wrapper li a {
    display: block;
    padding: 1.1rem 1.5rem;
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
}

.nav-links-wrapper li a:hover, .nav-links-wrapper li a.active-link {
    background: rgba(255,255,255,0.08);
    border-bottom: 3px solid var(--accent-gold);
    color: var(--accent-gold);
}

.nav-toggle-btn { display: none; }

/* 4. EMERGENCY LIVE TICKER STREAM */
.ticker-ribbon {
    background: #fff3cd;
    border-bottom: 1px solid #ffeeba;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-label {
    background: #ffc107;
    color: var(--slate-navy);
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 5;
    box-shadow: 4px 0 10px rgba(0,0,0,0.05);
}

.ticker-viewport {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker-text-track {
    display: inline-block;
    padding-left: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    color: #856404;
    animation: runTicker 25s linear infinite;
}

@keyframes runTicker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* 5. IMMERSIVE HERO BANNER PLATFORM */
.hero-stage {
    position: relative;
    padding: 12rem 5% 10rem 5%;
    background: #1e0508 url('../images/campus-facade.jpg') center/cover no-repeat;
    text-align: center;
}

.hero-overlay-shade {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(114, 28, 36, 0.6));
    z-index: 1;
}

.hero-inner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-inner-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--pure-white);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-inner-content p {
    color: #f1f5f9;
    font-size: 1.15rem;
    margin: 1.5rem 0 2.5rem 0;
}

.hero-button-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.action-btn {
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.gold-btn {
    background: var(--accent-gold);
    color: var(--slate-navy);
}

.gold-btn:hover {
    background: #bd9b2d;
    transform: translateY(-2px);
}

.transparent-btn {
    border: 2px solid var(--pure-white);
    color: var(--pure-white);
}

.transparent-btn:hover {
    background: var(--pure-white);
    color: var(--primary-maroon);
}

/* 6. ADMINISTRATIVE DUAL WORKSPACE SPLIT */
.administrative-split-row {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 4rem;
}

.panel-heading-style h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: var(--primary-maroon);
}

.accent-underline {
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 0.5rem 0 2rem 0;
}

.accent-underline.center-align {
    margin: 0.5rem auto 3rem auto;
}

/* Principal Profile Architecture */
.principal-profile-layout {
    display: flex;
    gap: 2rem;
}

.photo-frame {
    flex: 0 0 240px;
    background: var(--pure-white);
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: fit-content;
}

.raw-profile-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 2px;
}

.frame-caption {
    text-align: center;
    padding-top: 0.75rem;
}

.frame-caption h4 {
    color: var(--primary-maroon);
    font-size: 1rem;
}

.frame-caption p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.principal-speech-text .lead-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-maroon);
    font-style: italic;
    margin-bottom: 1rem;
}

.principal-speech-text p {
    font-size: 0.98rem;
    color: #334155;
    margin-bottom: 1rem;
    line-height: 1.65;
}

.read-more-link {
    color: var(--primary-maroon);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Live Notice Panel Mechanics */
.notices-board-panel {
    background: var(--pure-white);
    border-top: 4px solid var(--primary-maroon);
    padding: 2rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    height: fit-content;
}

.notices-scroller-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.notice-card-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 1.25rem;
}

.notice-card-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.date-badge {
    background: rgba(114, 28, 36, 0.06);
    color: var(--primary-maroon);
    flex: 0 0 55px;
    height: 55px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    border: 1px solid rgba(114, 28, 36, 0.1);
}

.date-badge span { font-size: 1.25rem; line-height: 1; }
.date-badge <small> { font-size: 0.7rem; text-transform: uppercase; margin-top: 2px; }

.category-tag-badge {
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
}

.notice-meta-details p a {
    color: var(--slate-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.notice-meta-details p a:hover {
    color: var(--primary-maroon);
}

.view-all-notices-btn {
    display: block;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--slate-navy);
    padding: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.view-all-notices-btn:hover {
    background: var(--primary-maroon);
    color: var(--pure-white);
}

/* 7. HIGH-END ASYMMETRIC MASONRY GALLERY */
.campus-gallery-section {
    padding: 5rem 5% 7rem 5%;
    background: #f1f5f9;
}

.section-center-heading {
    text-align: center;
}

.section-center-heading h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--primary-maroon);
}

.masonry-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 240px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-tile {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.tile-hover-mask {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(114, 28, 36, 0.9), rgba(15, 23, 42, 0.4));
    display: flex;
    align-items: flex-bottom;
    padding: 1.5rem;
    box-sizing: border-box;
    opacity: 0;
    transition: var(--transition-smooth);
}

.tile-hover-mask span {
    color: var(--pure-white);
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-tile:hover img {
    transform: scale(1.06);
}

.gallery-tile:hover .tile-hover-mask {
    opacity: 1;
}

.gallery-tile:hover .tile-hover-mask span {
    transform: translateY(0);
}

/* Explicit Masonry Scaling Definitions */
.tall-tile { grid-row: span 2; }
.wide-tile { grid-column: span 2; }

/* 8. FOOTER METRICS */
.institutional-footer {
    background: #090d16;
    color: #94a3b8;
    padding: 4rem 5% 1.5rem 5%;
}

.footer-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-summary-column h3, .footer-links-column h3 {
    font-family: 'Cinzel', serif;
    color: var(--pure-white);
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column ul li {
    margin-bottom: 0.75rem;
}

.footer-links-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links-column ul li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom-copyright {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

/* 9. ADAPTIVE MEDIA BREAKPOINT LAYOUT RESPONSIVENESS */
@media (max-width: 1024px) {
    .administrative-split-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .wide-tile { grid-column: span 1; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-container { flex-direction: column; text-align: center; gap: 15px; }
    .principal-profile-layout { flex-direction: column; align-items: center; }
    .photo-frame { flex: 1 1 auto; width: 100%; max-width: 280px; }
    
    .nav-toggle-btn {
        display: block;
        width: 100%;
        background: none;
        border: none;
        color: var(--pure-white);
        padding: 1rem;
        font-size: 1.1rem;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
    }
    .nav-links-wrapper {
        display: none;
        flex-direction: column;
        padding: 0;
    }
    .nav-links-wrapper.open-panel { display: flex; }
    .nav-links-wrapper li a { padding: 0.8rem 1.5rem; border-bottom: none; }
    .footer-grid-container { grid-template-columns: 1fr; gap: 2rem; }
}
.circle-logo {
  /* Step 1: Force equal dimensions to make a perfect square */
  width: 100px;
  height: 100px;
  
  /* Step 2: Turn the square into a circle */
  border-radius: 50%;
  
  /* Step 3: Prevent distortion if the original logo is a rectangle */
  object-fit: cover;
  
  /* Optional visual styles */
  border: 3px solid #333333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.image-container {
  position: relative; /* Acts as the positioning anchor for the text */
  display: inline-block; /* Keeps the container scaled to the image size */
}

.image-container img {
  display: block;
  width: 100%; /* Adapts cleanly to different screen dimensions */
  height: auto;
}

.overlay-text {
  position: absolute; /* Takes the text out of normal flow to layer it */
  top: 20px; /* Positions text 20px from the top edge of the image */
  left: 20px; /* Positions text 20px from the left edge of the image */
  color: white; /* Ensures high text contrast against dark images */
  background-color: rgba(0, 0, 0, 0.5); /* Adds a readable semi-transparent backdrop */
  padding: 10px;
  font-family: sans-serif;
}
/* Container holding the notices */
.notices-scroller-box {
    max-height: 290px;          /* Adjust this height to match exactly 3 items */
    overflow-y: auto;           /* Adds vertical scrollbar when items exceed 3 */
    display: flex;
    flex-direction: column;
    gap: 10px;                  /* Keeps uniform spacing between cards */
    padding-right: 5px;         /* Prevents scrollbar from overlapping text */
    scroll-behavior: smooth;    /* Makes scrolling fluid */
}

/* Optional: Custom clean scrollbar for modern browsers */
.notices-scroller-box::-webkit-scrollbar {
    width: 6px;
}

.notices-scroller-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.notices-scroller-box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.notices-scroller-box::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* Change layout from flex/grid to block to enable floating text wrap */
.principal-profile-layout.standard-wrap {
    display: block;
    width: 100%;
}

/* Float the photo frame to the left and create a square margin around it */
.principal-profile-layout.standard-wrap .photo-frame {
    float: left;
    margin-right: 20px;   /* Space between image frame and wrapped text */
    margin-bottom: 15px;  /* Space below image frame when text wraps underneath */
    max-width: 200px;     /* Set a definitive max-width for the square appearance */
    text-align: center;
}

/* Ensure the text flows naturally as inline block content */
.principal-profile-layout.standard-wrap .principal-speech-text {
    display: inline;
}

.principal-profile-layout.standard-wrap .lead-text {
    text-align: justify;  /* Optional: Gives a clean newspaper square alignment */
    line-height: 1.6;
}

/* Clearfix utility to reset layout stream */
.clear-float {
    clear: both;
}
        /* 1. Blur and darken background behind the popup */
        .popup-overlay {
            display: none; /* Hidden by default */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent tint */
            z-index: 9999; /* Ensure it stays on top of everything else */
            justify-content: center;
            align-items: center;
        }

        /* 2. The central box holding your image */
        .popup-box {
            position: relative;
            background-color: #fff;
            padding: 10px;
            border-radius: 8px;
            max-width: 90%;
            max-height: 80%;
            box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
        }

        /* 3. Make sure the image behaves responsively */
        .popup-box img {
            max-width: 100%;
            max-height: 70vh; /* Limits image height on smaller screens */
            display: block;
            border-radius: 4px;
        }

        /* 4. The close button configuration */
        .close-btn {
            position: absolute;
            top: -15px;
            right: -15px;
            background-color: #ff4d4d;
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
        }

        .close-btn:hover {
            background-color: #ff1a1a;
        }
        html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden; /* Prevents unwanted horizontal scrolling on mobile */
    display: flex;
    flex-direction: column;
}

