/*
Theme Name: Shree Jagray Academy
Theme URI: https://example.com/jagray-academy
Author: Daarzy
Author URI: https://Daarzy.com
Description: A custom WordPress theme for Shree Jagray Academy.
Version: 1.2
Text Domain: jagray-academy
*/

/* --- 1. THEME VARIABLES --- */
/* --- 1. THEME VARIABLES --- */
:root {
    --primary-teal: #004d61;
    --secondary-mustard: #f0ad00;
    --accent-dark: #264653;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --radius: 24px;
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --nav-height: 90px;
    /* Updated to match actual header height (60px logo + 30px padding) */
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

/* ... (Skipping unchanged sections) ... */

/* Fix Hamburger Jitter */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-teal);
    transition: 0.3s;
    z-index: 2001;
    position: relative;
    width: 30px;
    text-align: center;
}

.hamburger:hover {
    color: var(--secondary-mustard);
}

/* Mobile Menu Overlay - Starts BELOW header */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    /* Starts after header */
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    /* Full height minus header */
    background: white;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    z-index: 900;
    /* Below header (1000) */
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    /* Slight slide effect */
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-inner {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow-y: auto;
    align-items: center;
    text-align: center;
}

/* --- 2. RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--accent-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-teal);
}

p {
    color: #475569;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

a {
    text-decoration: none;
    transition: 0.3s;
    color: inherit;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.containerr {
    max-width: 1200px;
    margin: 0 20px;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* --- 3. UTILITIES & BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-teal);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 77, 97, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 77, 97, 0.4);
    background: #003847;
}

.btn-secondary {
    background: var(--secondary-mustard);
    color: white;
    box-shadow: 0 10px 20px rgba(240, 173, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(240, 173, 0, 0.4);
    background: #d49a00;
}

.btn-white {
    background: white;
    color: var(--primary-teal);
}

.btn-white:hover {
    background: #f0f0f0;
}

.section-padding {
    padding: 80px 0;
}

.sub-tag {
    color: var(--secondary-mustard);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 8px;
}

/* --- 4. TOP BAR & HEADER --- */
.top-bar {
    background-color: var(--primary-teal);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact a {
    color: white;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-contact a:hover {
    color: var(--secondary-mustard);
}

.top-social a {
    color: white;
    margin-left: 15px;
}

.top-social a:hover {
    color: var(--secondary-mustard);
}

.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 0 0 auto;
    margin-right: 40px;
}

.custom-logo-link img,
.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-teal);
}

.logo i {
    color: var(--secondary-mustard);
    font-size: 1.8rem;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--accent-dark);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--primary-teal);
}

.header-cta {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

/* Fix Hamburger Jitter */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-teal);
    transition: 0.3s;
    z-index: 2001;
    position: relative;
    width: 30px;
    /* Fixed width to prevent jitter */
    text-align: center;
}

.hamburger:hover {
    color: var(--secondary-mustard);
}

/* Mobile Menu Overlay - Starts BELOW header */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    /* Starts after header */
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    /* Full height minus header */
    background: white;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    z-index: 900;
    /* Below header (1000) */
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    /* Slight slide effect */
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-inner {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow-y: auto;
    align-items: center;
    text-align: center;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 400px;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-dark);
    width: 100%;
}

.mobile-nav-list a:hover {
    color: var(--primary-teal);
    padding-left: 10px;
}

/* Arrow icon */
.mobile-nav-list a::after {
    content: "\ea6e";
    /* ri-arrow-right-line */
    font-family: 'remixicon';
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
    font-size: 1.5rem;
    color: #cbd5e1;
    transition: 0.3s;
}

.mobile-nav-list a:hover::after {
    color: var(--secondary-mustard);
    transform: translateX(5px);
}

.mobile-cta {
    margin-top: 30px;
    width: 100%;
    max-width: 400px;
}

.mobile-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* --- 5. HERO SLIDER --- */
.hero {
    position: relative;
    height: calc(100vh - 120px);
    max-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #004d61 0%, rgba(0, 77, 97, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    margin-left: 0;
    text-align: left;
    max-width: 800px;
    /* Force wrapping for long text */
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 4;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 100px;
    fill: var(--bg-light);
}

/* --- 6. FLOATING INFO CARDS --- */
.float-wrap {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    margin-bottom: 60px;
}

.float-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.f-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}

.f-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-mustard);
}

.f-icon {
    width: 50px;
    height: 50px;
    background: rgba(240, 173, 0, 0.1);
    color: var(--secondary-mustard);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- 6b. WHO WE ARE --- */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-group {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: center;
}

.about-img-group img:first-child {
    height: 400px;
}

.about-img-group img:last-child {
    height: 300px;
    margin-top: 50px;
}

/* --- 6c. UNIQUE FEATURES --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feat-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feat-card:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.feat-card i {
    font-size: 2.5rem;
    color: var(--primary-teal);
    margin-bottom: 20px;
}

/* --- 6d. LEARNING PATHWAY (TIMELINE) --- */
.timeline-wrap {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e2e8f0;
    transform: translateX(-50%);
    border-radius: 4px;
}

.timeline-fill {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    background: var(--secondary-mustard);
    transform: translateX(-50%);
    height: 0;
    transition: height 0.5s;
    border-radius: 4px;
}

.t-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding: 0 40px;
    opacity: 0.3;
    transition: 0.5s;
}

.t-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.t-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.t-item.active {
    opacity: 1;
}

.t-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--secondary-mustard);
    border-radius: 50%;
    z-index: 2;
}

.t-item:nth-child(odd) .t-dot {
    right: -10px;
}

.t-item:nth-child(even) .t-dot {
    left: -10px;
}

/* --- 6e. CURRICULUM TABS --- */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    color: var(--accent-dark);
}

.tab-btn.active,
.tab-btn:hover {
    border-color: var(--primary-teal);
    background: var(--primary-teal);
    color: white;
}

.tab-content {
    display: none;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid;
}

.subject-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.subject-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 12px;
}

.s-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 6f. LIFE AT SCHOOL --- */
.life-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.life-card {
    position: relative;
    height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.life-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
    transition: 0.3s;
    opacity: 0.9;
}

.life-card:hover .life-overlay {
    padding-bottom: 40px;
    background: linear-gradient(to top, var(--primary-teal), transparent);
}

.life-overlay h3 {
    color: white;
    margin-bottom: 5px;
}

/* --- 6g. INFRASTRUCTURE --- */
.infra-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    height: 500px;
}

.infra-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.infra-item {
    padding: 25px;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
}

.infra-item:hover,
.infra-item.active {
    background: white;
    box-shadow: var(--shadow);
    border-color: #e2e8f0;
}

.infra-item h4 {
    margin-bottom: 5px;
    color: var(--primary-teal);
}

.infra-item p {
    margin: 0;
    font-size: 0.9rem;
}

.infra-preview {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
}

.infra-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 0.5s;
    transform: scale(1.1);
}

.infra-img.active {
    opacity: 1;
    transform: scale(1);
}

.infra-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    /* backdrop-filter removed for stability */
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- 6h. GALLERY COLLAGE --- */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
}

.c-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.c-wide {
    grid-column: span 2;
}

.c-tall {
    grid-row: span 2;
}

.c-big {
    grid-column: span 2;
    grid-row: span 2;
}

.c-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 77, 97, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.c-item:hover .c-overlay {
    opacity: 1;
}

.c-text {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: 0.3s;
}

.c-item:hover .c-text {
    transform: translateY(0);
}

.c-text h4 {
    color: white;
    margin-bottom: 5px;
}

/* --- 6i. FACULTY --- */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.fac-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
}

.fac-card:hover {
    transform: translateY(-5px);
}

.fac-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
}

/* --- GALLERY PAGE STYLES --- */
.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-card-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-img img {
    transform: scale(1.05);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 77, 97, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay i {
    transform: scale(1);
}

.gallery-card-content {
    padding: 20px;
}

.gallery-date {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-mustard);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-card-content h3 {
    font-size: 1.2rem;
    color: var(--primary-teal);
    margin-bottom: 10px;
    line-height: 1.3;
}

.gallery-card-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .gallery-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* --- 6j. ADMISSIONS --- */
.adm-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.adm-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.adm-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 77, 97, 0.1);
    line-height: 1;
}

.adm-card:hover .adm-num {
    color: var(--secondary-mustard);
}

/* --- 7. PAGE TEMPLATES --- */
.page-header {
    background-color: var(--primary-teal);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: white;
    margin: 0;
}

.page-content {
    padding-bottom: 60px;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* --- 8. FOOTER --- */
/* Fix Header Jitter - Ensure header stays fixed and doesn't shift */
body.menu-open {
    overflow: hidden;
}

.site-header {
    width: 100%;
    top: 0;
    z-index: 3000;
    transition: none;
}

/* --- 8. FOOTER --- */
footer {
    background: var(--primary-teal);
    color: #cbd5e1;
    padding: 60px 0 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Fix Footer Text Color Conflict */
footer p,
.foot-contact-item {
    color: #cbd5e1 !important;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.9rem;
}

footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: var(--secondary-mustard);
    padding-left: 5px;
}

.c-text h4 {
    color: var(--secondary-mustard);
    margin-bottom: 5px;
}

.c-text p {
    color: white;
    font-size: 0.9rem;
    margin: 0;
}

.foot-logo img {
    width: 220px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

/* Trust Badges */
.secure-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: #cbd5e1;
}

.badge-item i {
    color: var(--secondary-mustard);
    font-size: 1rem;
}

/* --- SINGLE POST STYLES (News Article) --- */
.news-article .entry-content p {
    margin-bottom: 1.5em;
    text-align: left;
    /* Ensure left alignment */
}

.news-article .entry-content h2,
.news-article .entry-content h3 {
    color: var(--primary-teal);
    margin-top: 2em;
    margin-bottom: 0.8em;
    text-align: left;
}

.news-article .entry-content ul,
.news-article .entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 20px;
    text-align: left;
}

.news-article .entry-content blockquote {
    border-left: 4px solid var(--secondary-mustard);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #475569;
    background: #f8fafc;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.post-navigation a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.post-navigation a:hover {
    color: var(--secondary-mustard);
}

.foot-links a {
    display: block;
    margin-bottom: 8px;
}

/* --- PRINCIPAL'S MESSAGE --- */
.principal-box {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.principal-content {
    padding: 50px;
}

.quote-icon {
    font-size: 3rem;
    color: var(--secondary-mustard);
    opacity: 0.2;
    margin-bottom: 20px;
}

.signature {
    font-family: 'Cursive', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-teal);
    margin-top: 20px;
    font-weight: 700;
}

/* --- SAFETY SECTION --- */
.safety-wrapper {
    position: relative;
    background: var(--primary-teal);
    border-radius: var(--radius);
    padding: 60px;
    overflow: hidden;
    color: white;
}

.safety-bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 300px;
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.safety-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    /* backdrop-filter removed for stability */
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.safety-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.safety-card i {
    font-size: 2rem;
    color: var(--secondary-mustard);
    margin-bottom: 20px;
}


@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* --- UPCOMING EVENTS --- */
.event-row {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: 0.3s;
    border-left: 5px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.event-row:hover {
    transform: translateX(10px);
    border-left-color: var(--secondary-mustard);
    box-shadow: var(--shadow);
}

.date-box {
    background: #f1f5f9;
    padding: 10px 20px;
    border-radius: 15px;
    text-align: center;
    margin-right: 25px;
    min-width: 90px;
}

.date-box span {
    display: block;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-teal);
    line-height: 1;
}

.date-box small {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
}

.event-info {
    flex: 1;
}

.event-btn {
    padding: 8px 20px;
    border: 1px solid var(--primary-teal);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    background: transparent;
    color: var(--primary-teal);
    cursor: pointer;
    transition: 0.3s;
}

.event-btn:hover {
    background: var(--primary-teal);
    color: white;
}

/* --- STUDENT OF THE MONTH (ID CARD UI) --- */
.sm-section {
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.id-card-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 40px;
    /* Space for lanyard */
}

.id-card {
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid #e2e8f0;
    transform-origin: top center;
    animation: swing 3s ease-in-out infinite alternate;
}

@keyframes swing {
    from {
        transform: rotate(1deg);
    }

    to {
        transform: rotate(-1deg);
    }
}

/* Lanyard Effect */
.lanyard {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 120px;
    background: var(--primary-teal);
    z-index: 10;
}

.lanyard::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #cbd5e1;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    border-radius: 5px;
}

.lanyard-clip {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #94a3b8;
    border-radius: 10px;
    z-index: 11;
}

.id-header {
    background: var(--primary-teal);
    padding: 20px;
    color: white;
    position: relative;
}

.id-header h3 {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.id-header small {
    font-size: 0.7rem;
    opacity: 0.9;
}

.id-photo-box {
    width: 120px;
    height: 120px;
    margin: 20px auto;
    border-radius: 10px;
    border: 3px solid var(--secondary-mustard);
    overflow: hidden;
    background: #f1f5f9;
}

.id-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-details {
    padding: 0 20px 20px;
}

.id-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: 5px;
}

.id-role {
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.id-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.id-info-item span {
    display: block;
    font-weight: 700;
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.id-info-item strong {
    color: var(--accent-dark);
}

.id-badge {
    background: var(--secondary-mustard);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.barcode {
    height: 40px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/UPC-A-036000291452.svg/1200px-UPC-A-036000291452.svg.png');
    background-size: cover;
    background-position: center;
    margin: 0 20px 20px;
    opacity: 0.7;
}

.hole-punch {
    width: 15px;
    height: 15px;
    background: #f8fafc;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- RESPONSIVE --- */
@media(max-width: 900px) {
    .safety-grid {
        grid-template-columns: 1fr;
    }

    .safety-wrapper {
        padding: 30px;
    }

    .principal-box {
        grid-template-columns: 1fr;
    }

    .principal-box img {
        height: 300px !important;
        width: 100%;
        object-fit: cover;
    }

    .principal-content {
        padding: 30px;
    }

    .top-bar {
        display: none;
    }

    /* Hide Top Bar on Mobile */

    .header-inner {
        justify-content: space-between;
    }

    .main-navigation {
        display: none;
    }

    /* Hide Desktop Menu */
    .header-cta .btn {
        display: none;
    }

    /* Hide CTA Button on Mobile Header */
    .hamburger {
        display: block;
    }

    .split-grid,
    .tab-content.active {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .life-grid,
    .faculty-grid {
        grid-template-columns: 1fr 1fr;
    }

    .float-grid,
    .adm-steps {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    /* Responsive Footer */
    .foot-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns for mobile */
        gap: 30px;
    }

    /* Logo and Contact take full width */
    .foot-grid>div:first-child,
    .foot-grid>div:last-child {
        grid-column: span 2;
    }

    /* Quick Links (Left) and Support (Right) side by side */
    .foot-grid>div:nth-child(2) {
        grid-column: 1;
    }

    .foot-grid>div:nth-child(3) {
        grid-column: 2;
    }

    /* Collage Bento Reset for Mobile */
    .collage-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .c-wide,
    .c-tall,
    .c-big {
        grid-column: auto;
        grid-row: auto;
    }

    .infra-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .infra-preview {
        height: 300px;
        display: none;
    }
}

/* --- MODERN STAFF CARD --- */
/* --- COMPACT STAFF CARD (Horizontal) --- */
.staff-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.staff-card-compact {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.staff-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.staff-img-wrapper {
    width: 200px;
    /* Fixed width for image */
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.staff-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-content {
    padding: 20px;
    flex: 1;
    text-align: left;
    /* Left align text for readability */
}

.staff-role {
    color: var(--primary-teal);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.staff-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent-dark);
    line-height: 1.2;
}

.staff-quote {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.staff-quote p {
    margin-bottom: 8px;
}

.staff-quote p:last-child {
    margin-bottom: 0;
}

/* Trustee Grid - Tighter */
.trustee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.trustee-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    border-left: 3px solid var(--secondary-mustard);
    transition: 0.2s;
}

.trustee-card:hover {
    transform: translateY(-3px);
    background: #fffbeb;
    /* Light yellow tint on hover */
}

.trustee-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--accent-dark);
}

.trustee-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- RESPONSIVE STAFF --- */
@media(max-width: 768px) {
    .staff-card-compact {
        flex-direction: column;
    }

    .staff-img-wrapper {
        width: 100%;
        height: 250px;
        /* Fixed height on mobile */
    }

    .staff-content {
        padding: 20px;
    }
}

/* --- VIRTUAL TOUR SECTION --- */
.video-section {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#tourContent {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 2;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 2rem;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.2);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .video-section {
        height: 350px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}