/* =========================
   Base Reset
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   Typography
   ========================= *//* =========================
   Typography
   ========================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--heading-color);
    margin-bottom: 10px;
}

p {
    margin-bottom: 10px;
}

/* =========================
   Layout
   ========================= */
header {
    background: var(--header-bg);
    padding: 20px;
    border-bottom: 3px solid var(--primary-color);
}

nav a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 30px 20px;
    background: var(--main-bg);
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

footer p {
    color: var(--footer-text);
    margin-bottom: 5px;
}

/* =========================
   HERO SLIDESHOW (CONFIG)
   ========================= */

.hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    margin-bottom: 40px;
}

/* All slides stacked */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Active slide only */
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Hide on mobile if configured */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-cta {
    background: #f59e0b;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
}

/* Mobile height */
@media (max-width: 768px) {
    .hero {
        height: 260px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }
}

/* =========================
   Header Layout
   ========================= */
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
    width: auto;
}

.school-info h2 {
    margin: 0;
}

.school-info p {
    margin: 0;
    color: #555;
}

.header-contact a {
    display: block;
    text-decoration: none;
    color: #0a4d8c;
    font-weight: 600;
    margin-bottom: 5px;
}

.header-contact .cta {
    background: #0a4d8c;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 4px;
    text-align: center;
}
/* =========================
   Home Sections
   ========================= */
section {
    margin-bottom: 30px;
}

section ul {
    margin-left: 20px;
}

section li {
    margin-bottom: 8px;
}
.notice-list li {
    margin-bottom: 8px;
}

.notice-list a {
    color: #0a4d8c;
    font-weight: 600;
    text-decoration: none;
}

.notice-list a:hover {
    text-decoration: underline;
}
/* =========================
   Principal Section
   ========================= */

.principal-section {
    margin-top: 40px;
}

.principal-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.principal-photo img {
    width: 140px;          /* ✅ FIXED SIZE */
    height: 180px;         /* ✅ FIXED SIZE */
    object-fit: cover;     /* ✅ NO STRETCH */
    object-position: top;  /* ✅ FACE VISIBLE */
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
}

.principal-message h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0a4d8c;
}

.principal-message p {
    margin: 0;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
    .principal-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .principal-photo img {
        width: 120px;
        height: 160px;
    }
}

/* =========================
   Mandatory Disclosure
   ========================= */

.disclosure-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.disclosure-table th,
.disclosure-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.disclosure-table th {
    background: #f1f5fb;
    width: 35%;
}

.disclosure-links li {
    margin-bottom: 8px;
}

.disclosure-links a {
    color: #0a4d8c;
    font-weight: 600;
}
/* =========================
   About Page – Campus Gallery (Final)
   ========================= */

.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* No padding, no background box */
.about-item {
    text-align: center;
}

/* Image defines the box size */
.about-item img {
    width: 100%;
    height: 180px;          /* fixed, consistent size */
    object-fit: contain;   /* NO cropping */
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
}

/* Caption */
.about-item p {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0a4d8c;
}
/* =========================
   ABOUT PAGE HERO
   ========================= */

.about-hero {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 6px;
}

.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-overlay h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    .about-hero {
        height: 220px;
    }
    

    .about-hero-overlay h1 {
        font-size: 1.5rem;
    }
}
/* =========================
   ACADEMICS PAGE – HERO
   ========================= */

.about-hero {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 40px;
}

.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.25)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.about-hero-overlay h1 {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-hero-overlay p {
    color: #f1f5f9;
    font-size: 1.1rem;
    max-width: 720px;
}

/* =========================
   CONTENT SECTIONS
   ========================= */

main > section {
    margin-bottom: 40px;
}

main h2 {
    font-size: 1.7rem;
    color: #0f3d68;
    margin-bottom: 12px;
    font-weight: 700;
}

main p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    max-width: 900px;
}

/* =========================
   LIST STYLES (Curriculum / Assessment)
   ========================= */

main ul {
    padding-left: 20px;
    max-width: 900px;
}

main ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.6;
}

/* =========================
   METHODOLOGY VISUAL GRID
   ========================= */

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.about-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.about-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f3d68;
    margin: 12px 10px 6px;
}

.about-item p {
    font-size: 0.95rem;
    color: #4b5563;
    padding: 0 12px 14px;
    line-height: 1.5;
}

/* =========================
   MOBILE OPTIMIZATION
   ========================= */

@media (max-width: 768px) {

    .about-hero {
        height: 240px;
    }

    .about-hero-overlay h1 {
        font-size: 1.7rem;
    }

    .about-hero-overlay p {
        font-size: 1rem;
    }

    main h2 {
        font-size: 1.4rem;
    }
}


/* =========================
   Gallery
   ========================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.gallery-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}


/* =========================
   Responsive (Mobile)
   ========================= */
@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

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

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    nav a {
        margin: 0;
        font-size: 14px;
    }

    main {
        margin: 15px;
        padding: 20px;
    }

    h1 {
        font-size: 22px;
    }
}
/* =========================
   CONTACT PAGE
   ========================= */

/* =========================
   CONTACT DETAILS (FIXED)
   ========================= */

.contact-details {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px 24px;
    align-items: start;
}

/* Section heading full width */
.contact-details h2 {
    grid-column: 1 / -1;
    margin-bottom: 10px;
}

/* Labels */
.contact-details p strong {
    color: #0a4d8c;
    font-weight: 700;
}

/* Address text */
.contact-details p {
    margin: 0;
}

/* Lists align under value column */
.contact-details ul {
    margin: 0;
    padding-left: 18px;
}

.contact-details li {
    margin-bottom: 6px;
}

/* =========================
   MOBILE FIX
   ========================= */
@media (max-width: 768px) {
    .contact-details {
        grid-template-columns: 1fr;
    }

    .contact-details h2 {
        grid-column: auto;
    }
}


/* Map */
.contact-map iframe {
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* =========================
   CONTACT FORM
   ========================= */

.contact-form {
    max-width: 900px;
}

.contact-form form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.contact-form textarea {
    grid-column: 1 / -1;
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    grid-column: 1 / -1;
    width: fit-content;
    padding: 10px 22px;
}

/* =========================
   CTA NOTE
   ========================= */

.contact-cta {
    background: #f1f5fb;
    padding: 16px 20px;
    border-left: 4px solid #0a4d8c;
    border-radius: 4px;
    font-style: italic;
    color: #374151;
}

/* =========================
   SOCIAL LINKS
   ========================= */

.contact-social ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-social a {
    text-decoration: none;
    font-weight: 600;
    color: #0a4d8c;
}

.contact-social a:hover {
    text-decoration: underline;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .contact-details {
        grid-template-columns: 1fr;
    }

    .contact-form form {
        grid-template-columns: 1fr;
    }
}
/* =========================
   SOCIAL ICONS
   ========================= */

.social-icons {
    list-style: none;
    display: flex;
    gap: 24px;
    padding-left: 0;
    flex-wrap: wrap;
}

.social-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    color: #0a4d8c;
}

.social-item svg {
    width: 22px;
    height: 22px;
    fill: #0a4d8c;
}

.social-item a:hover span {
    text-decoration: underline;
}
/* ==================================================
   MANAGEMENT & STAFF – FINAL OVERRIDE (SCOPED)
   ================================================== */

main .management-section {
    padding: 40px 0;
}

main .management-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* ===== MANAGEMENT CARD ===== */

main .management-card {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    align-items: flex-start;
}

main .management-card img {
    width: 160px;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

main .management-content {
    flex: 1;
}

main .management-content h3 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #0a3d62;
}

main .management-content .designation {
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

main .management-content p {
    line-height: 1.6;
    color: #374151;
    max-width: none; /* overrides main p rule */
}

/* ===== STAFF GRID ===== */

main .staff-section {
    padding: 40px 0;
}

main .staff-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

main .staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

main .staff-card {
    background: #ffffff;
    padding: 16px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

main .staff-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

main .staff-card h4 {
    margin: 8px 0 4px;
    font-size: 16px;
    color: #0a3d62;
}

main .staff-card .designation {
    font-size: 14px;
    color: #555;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
    main .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    main .management-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    main .management-card img {
        width: 180px;
        height: 220px;
    }
}

@media (max-width: 576px) {
    main .staff-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   Primary Button (Content)
   ========================= */

.btn-primary {
    display: inline-block;
    margin-top: 12px;
    background: #0a4d8c;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.btn-primary:hover {
    background: #083a68;
}

