/*
Theme Name: Meera Niketan School
Theme URI: https://meeraniketan.example/
Author: Meera Niketan School
Description: Custom WordPress theme for Meera Niketan Senior Secondary School, Sardarshahar.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: meera-niketan
*/

:root {
  --mn-ink: #11110f;
  --mn-paper: #f5f1e8;
  --mn-orange: #f26322;
  --mn-gold: #c79a43;
  --mn-line: rgba(17, 17, 15, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--mn-ink); background: var(--mn-paper); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 1000; background: #10110f; color: #fff; border-bottom: 1px solid rgba(255,255,255,.18); }
.site-header__inner { min-height: 84px; max-width: 1440px; margin: auto; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
.site-brand img { width: 52px; height: 52px; object-fit: contain; }
.site-brand span { max-width: 210px; line-height: 1.15; }
.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: 26px; }
.primary-menu a { display: block; padding: 32px 0; color: #fff; text-decoration: none; text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.primary-menu .menu-item-has-children { position: relative; }
.primary-menu .sub-menu { display: none; position: absolute; top: 100%; left: -18px; min-width: 210px; padding: 10px 18px; background: #10110f; box-shadow: 0 16px 30px rgba(0,0,0,.22); }
.primary-menu .sub-menu a { padding: 10px 0; }
.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu { display: block; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; font-size: 0; }
.menu-toggle::before, .menu-toggle::after, .menu-toggle span { content: ''; display: block; width: 22px; height: 1px; margin: 6px auto; background: currentColor; transition: .25s; }

.mn-shell { width: min(1320px, 92vw); margin: auto; }
.mn-kicker { margin: 0 0 16px; font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.mn-section { padding: clamp(70px, 9vw, 140px) 0; }
.mn-section__title { margin: 0; font-family: Georgia, serif; font-size: clamp(44px, 7vw, 104px); line-height: .92; font-weight: 400; letter-spacing: -.055em; }
.mn-section__title em { color: var(--mn-orange); font-weight: 400; }

.mn-hero { position: relative; min-height: calc(100vh - 84px); background: #111; color: #fff; overflow: hidden; }
.mn-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.mn-hero__slide.is-active { opacity: 1; }
.mn-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.mn-hero__slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.12) 72%), linear-gradient(0deg, rgba(0,0,0,.38), transparent 50%); }
.mn-hero__content { position: relative; z-index: 2; min-height: calc(100vh - 84px); display: flex; flex-direction: column; justify-content: center; width: min(1320px, 92vw); margin: auto; padding: 60px 0; }
.mn-hero h1 { max-width: 760px; margin: 0 0 28px; font-family: Georgia, serif; font-size: clamp(58px, 8.2vw, 126px); line-height: .82; font-weight: 400; letter-spacing: -.07em; }
.mn-hero h1 em { display: block; color: var(--mn-orange); }
.mn-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mn-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid currentColor; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 800; }
.mn-button--solid { background: #fff; color: #111; border-color: #fff; }

.mn-about-grid, .mn-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.mn-feature-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.mn-copy { font-family: Georgia, serif; font-size: clamp(20px, 2.2vw, 31px); line-height: 1.35; }
.mn-copy p:first-child { margin-top: 0; }

.mn-dark { background: #11110f; color: #fff; }
.mn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.mn-card { background: #fff; color: #111; border: 1px solid var(--mn-line); text-decoration: none; overflow: hidden; }
.mn-card__image { object-position: top center; width: 100%; aspect-ratio: 2/2; object-fit: cover; display: block; }
.mn-card__body { padding: 22px; }
.mn-card h2, .mn-card h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 27px; line-height: 1; }
.mn-card p { margin: 0; color: #5d5d57; line-height: 1.55; }
.mn-card__meta { margin-bottom: 12px; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 800; color: var(--mn-orange); }

.mn-page-hero { padding: clamp(80px, 12vw, 180px) 0 70px; background: #11110f; color: #fff; }
.mn-page-hero h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(58px, 10vw, 138px); line-height: .9; font-weight: 400; letter-spacing: -.06em; }
.mn-content { padding: 70px 0 110px; font-size: 18px; line-height: 1.75; }
.mn-content > * { max-width: 900px; }
.mn-content .alignwide { max-width: 1200px; }
.mn-content .alignfull { max-width: none; }

.faculty-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.faculty-card { background: #fff; border: 1px solid var(--mn-line); }
.faculty-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.faculty-card__body { padding: 17px; }
.faculty-card h2 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 22px; }
.faculty-card p { margin: 0; color: #777; font-size: 13px; }

.mn-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mn-gallery figure { margin: 0; overflow: hidden; background: #ddd; }
.mn-gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .4s ease; }
.mn-gallery a:hover img { transform: scale(1.025); }

.site-footer { background: #0d0e0c; color: #fff; padding: 70px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.site-footer h2, .site-footer h3 { margin: 0 0 18px; font-family: Georgia, serif; }
.site-footer p, .site-footer li { color: rgba(255,255,255,.66); line-height: 1.7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer__bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; color: rgba(255,255,255,.55); }

.result-popup { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(0,0,0,.82); }
.result-popup.is-open { display: flex; }
.result-popup__dialog { position: relative; width: min(1120px, 96vw); max-height: 92vh; }
.result-popup img { display: block; max-height: 88vh; width: 100%; object-fit: contain; }
.result-popup__close { position: absolute; top: -15px; right: -15px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 25px; cursor: pointer; }

@media (max-width: 900px) {
  .site-header__inner { min-height: 76px; padding: 0 16px; }
  .site-brand img { width: 45px; height: 45px; }
  .site-brand span { max-width: 170px; font-size: 11px; }
  .menu-toggle { display: block; }
  .site-navigation { display: none; position: absolute; top: 76px; left: 0; right: 0; max-height: calc(100vh - 76px); overflow-y: auto; background: #10110f; border-top: 1px solid rgba(255,255,255,.15); }
  .site-navigation.is-open { display: block; }
  .primary-menu { display: block; padding: 8px 20px 25px; }
  .primary-menu a { padding: 15px 3px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; }
  .primary-menu .sub-menu { display: block; position: static; padding: 0 0 0 18px; box-shadow: none; background: transparent; }
  .primary-menu .sub-menu a { font-size: 12px; opacity: .76; }
  .mn-hero, .mn-hero__content { min-height: 620px; }
  .mn-hero h1 { font-size: clamp(54px, 18vw, 78px); }
  .mn-about-grid, .mn-mission-grid { grid-template-columns: 1fr; }
  .mn-cards { grid-template-columns: 1fr 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mn-gallery { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .mn-hero, .mn-hero__content { min-height: 535px; }
  .mn-hero__content { padding: 38px 0; }
  .mn-hero h1 { font-size: 55px; }
  .mn-hero__actions { gap: 8px; }
  .mn-button { min-height: 43px; padding: 0 14px; font-size: 9px; }
  .mn-section { padding: 70px 0; }
  .mn-cards, .faculty-grid, .mn-gallery { grid-template-columns: 1fr; }
}

.school-footer {
    position: relative;
    overflow: hidden;
    background: #10110f;
    color: #fff;
}

.school-footer__accent {
    height: 7px;
    background: linear-gradient(
        90deg,
        #f26322 0 35%,
        #d4a348 35% 67%,
        #f5f1e8 67% 100%
    );
}

.school-footer__container {
    width: min(1320px, 92vw);
    margin-inline: auto;
}

.school-footer__top {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: clamp(45px, 7vw, 110px);
    padding: clamp(65px, 8vw, 110px) 0 60px;
}

.school-footer__brand {
    max-width: 390px;
}

.school-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    text-decoration: none;
}

.school-footer__logo img {
    width: 68px;
    height: 68px;
    padding: 4px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
}

.school-footer__logo span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.school-footer__logo strong {
    color: #fff;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: none;
}

.school-footer__brand > p {
    margin: 28px 0 20px;
    color: rgba(255, 255, 255, 0.65);
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.55;
}

.school-footer__location {
    color: #d4a348;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.school-footer h2 {
    margin: 0 0 25px;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 500;
}

.school-footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.school-footer__links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.school-footer__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.school-footer__links a::after {
    content: "↗";
    color: #f26322;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.school-footer__links a:hover {
    padding-left: 5px;
    color: #fff;
}

.school-footer__links a:hover::after {
    opacity: 1;
}

.school-footer__contact address {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 22px;
    font-style: normal;
    line-height: 1.75;
}

.school-footer__contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 22px;
    text-decoration: none;
}

.school-footer__contact-link span {
    color: #f26322;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.school-footer__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(30px, 4vw, 48px);
    background: #f26322;
}

.school-footer__cta > div > span {
    display: block;
    margin-bottom: 9px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.school-footer__cta h2 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(28px, 3vw, 45px);
    line-height: 1.05;
}

.school-footer__cta > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 25px;
    min-height: 56px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease;
}

.school-footer__cta > a span {
    font-size: 20px;
}

.school-footer__cta > a:hover {
    background: #fff;
    color: #10110f;
}

.school-footer__bottom {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 88px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
}

.school-footer__bottom p {
    margin: 0 auto 0 0;
}

.school-footer__bottom a {
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
}

.school-footer__bottom a:hover {
    color: #fff;
	font-size: 23px;
}

.school-footer__back-top {
    color: #d4a348 !important;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .school-footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .school-footer__brand {
        grid-column: 1 / -1;
        max-width: 600px;
    }

    .school-footer__cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .school-footer__top {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 60px;
    }

    .school-footer__brand {
        grid-column: auto;
    }

    .school-footer__logo strong {
        font-size: 20px;
    }

    .school-footer__links {
        grid-template-columns: 1fr;
    }

    .school-footer__cta {
        margin-inline: -4vw;
        padding: 38px 4vw;
    }

    .school-footer__cta > a {
        width: 100%;
        justify-content: space-between;
    }

    .school-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 28px 0;
    }

    .school-footer__bottom p {
        margin-right: 0;
		        font-size: 21px;
    }
}