/* ===== NSSEDGK — Site Styles ===== */

:root {
    --green: #15713a;
    --green-dark: #0d4d26;
    --accent: #f5a623;
    --light-bg: #eef7f0;
    --text: #1f2937;
    --muted: #64748b;
    --border: #dce8df;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 35px rgba(13, 77, 38, 0.10);
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Header / Nav ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--green);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    object-fit: cover;
    padding: 2px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text small {
    font-size: 0.62rem;
    font-weight: 500;
    color: #cfe3d6;
    letter-spacing: 0.3px;
}

/* ===== Burger button ===== */
.menu-btn {
    display: block;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    position: relative;
}

.menu-btn::before {
    content: "\2630"; /* hamburger */
    font-size: 1.5rem;
    line-height: 44px;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ===== Side drawer ===== */
nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 82vw;
    height: 100%;
    background: var(--green);
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.28);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

nav.open {
    transform: translateX(0);
}

.nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.4px;
}

.close-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

nav a {
    display: block;
    padding: 13px 24px;
    color: #d6ece0;
    font-size: 1rem;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

nav a.active {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border-left-color: var(--accent);
}

/* ===== Drawer backdrop ===== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
}

.nav-overlay.show {
    display: block;
}

/* Prevent background scroll while the drawer is open */
body.nav-lock {
    overflow: hidden;
}

/* ===== Single-section router ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Hero keeps its centered layout when shown */
.hero.page.active {
    display: block;
}

/* ===== Hero ===== */
.hero {
    background:
        linear-gradient(135deg, rgba(13, 77, 38, 0.92) 0%, rgba(21, 113, 58, 0.86) 100%),
        url("images/building.jpg") center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 120px 24px;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 12px;
}

.hero h2 {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    color: #dcefe2;
    margin-bottom: 32px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    margin: 6px;
    padding: 13px 28px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--green-dark);
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
}

.btn + .btn {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn + .btn:hover {
    background: var(--white);
    color: var(--green);
    box-shadow: none;
}

/* ===== Sections ===== */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 72px 24px;
}

.light-bg {
    background: var(--light-bg);
    max-width: none;
}

.light-bg > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    color: var(--green);
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
}

.section-description {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
    color: var(--muted);
    font-size: 1.05rem;
}

/* ===== Profile blocks (Principal / VP / Coordinator) ===== */
.principal-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.principal-content > div {
    flex: 1;
    min-width: 280px;
}

.principal-content h3 {
    color: var(--green);
    font-size: 1.4rem;
}

.principal-content h4 {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 14px;
}

.principal-content p {
    margin-bottom: 14px;
    color: #374151;
}

.principal-img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

/* ===== Card grids (Teachers / Facilities / Achievements) ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(13, 77, 38, 0.15);
}

.card img,
.faculty-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.faculty-img {
    height: 240px;
}

.card h3 {
    color: var(--green);
    margin: 18px 16px 6px;
    font-size: 1.2rem;
}

.card p {
    color: var(--muted);
    margin: 0 16px 20px;
}

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

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, filter 0.2s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* ===== Footer ===== */
.footer {
    background: var(--green-dark);
    color: #cfe3d6;
    text-align: center;
    padding: 36px 24px;
}

.footer a {
    color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .principal-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 18px;
    }

    .section {
        padding: 52px 18px;
    }
}

/* ===== Logo-as-placeholder portrait ===== */
.principal-img.logo-placeholder,
.faculty-img.logo-placeholder {
    object-fit: contain;
    background: var(--light-bg);
    padding: 18px;
    border: 1px solid var(--border);
}

/* ===== Focus / subject tags ===== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.tags span {
    background: var(--light-bg);
    color: var(--green-dark);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ===== Contact details ===== */
.contact-info {
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 28px;
    text-align: center;
}

.contact-info p {
    margin: 8px 0;
    font-size: 1.05rem;
}

.contact-info a,
.contact-line a {
    color: var(--green);
    font-weight: 700;
}

.contact-info a:hover,
.contact-line a:hover {
    text-decoration: underline;
}

.contact-line {
    margin-top: 14px;
}

/* ===== Teacher profile note ===== */
.faculty-note {
    text-align: center;
    color: var(--muted);
    margin-top: 36px;
    font-size: 0.98rem;
}
