/* Vidya Pankh – Frontend (shared) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #fff;
    color: #222;
    line-height: 1.5;
}

:root {
    --yellow: #f6ce1a;
    --mint: #dff8f3;
    --text: #222;
    --muted: #707070;
    --dark: #4e4e4e;
    --container: min(1280px, calc(100% - 32px));
    --header-height: 72px;
    --bg-banner-1: url("../images/banner-1.png");
    --bg-banner-2: url("../images/banner-2.png");
    --bg-contact: url("../images/contact.png");
    --bg-our-team: url("../images/our-team.png");
    --bg-donation-banner: url("../images/donation-banner.png");
}

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

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

.container {
    width: var(--container);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-inline: 16px;
    width: min(var(--container), 100%);
}

.section-title {
    text-align: center;
    color: var(--yellow);
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 28px;
}

/* —— Header —— */
.site-header {
    position: relative;
    z-index: 100;
    background: #fff;
}

.page-home .site-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}

.page-home .site-header--overlay .topbar {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 0 0 18px 18px;
    padding: 18px 18px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand h2 {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.page-home .brand h2 a,
.page-home nav a {
    color: #fff;
}

.page-inner .brand h2 a,
.page-inner nav a {
    color: var(--text);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--yellow);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.logo span {
    font-size: 26px;
    color: #fff;
    line-height: 1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: clamp(12px, 2vw, 24px);
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

nav a {
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.85;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--yellow);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(246, 206, 26, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--yellow);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-inner .menu-toggle {
    background: var(--yellow);
}

/* —— Home hero —— */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--bg-banner-1) center center / cover no-repeat;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    color: #666;
    text-align: center;
    padding: 12px 16px;
    font-size: clamp(13px, 1.8vw, 16px);
    backdrop-filter: blur(4px);
}

/* —— Donate banner (home) —— */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: min(70vh, 520px);
    background: var(--bg-banner-2) center center / cover no-repeat;
    overflow: hidden;
}

.hero-banner--donation {
    background-image: var(--bg-donation-banner);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
}

.hero-banner .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: min(65vh, 520px);
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 40px clamp(16px, 4vw, 60px) 32px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    width: 100%;
    max-width: 420px;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    min-width: 160px;
    background: #ffd31a;
    color: #fff;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background 0.2s ease;
}

.donate-btn:hover {
    transform: translateY(-2px);
    background: #ffca00;
}

.certified-note {
    margin: 0;
    color: #fff;
    font-size: clamp(14px, 2vw, 20px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* —— Info / Why —— */
.info {
    background: #fff;
    padding: 28px 0 58px;
}

.yellow-box {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(24px, 4vw, 34px) clamp(20px, 4vw, 42px);
    color: #555;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.yellow-box p {
    max-width: 1000px;
}

.why {
    width: min(1100px, calc(100% - 32px));
    margin: 58px auto 0;
    text-align: center;
}

.why-top {
    font-size: 12px;
    letter-spacing: 2px;
    color: #b8b8b8;
    margin-bottom: 10px;
}

.why h2 {
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1;
    font-weight: 300;
    letter-spacing: 5px;
}

.why .zero {
    color: var(--yellow);
}

.why .sub {
    font-size: 14px;
    letter-spacing: 4px;
    color: #666;
    margin-top: 6px;
}

.why p {
    margin-top: 34px;
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.7;
}

/* —— Our work —— */
.our-work-section {
    padding: 70px 0 90px;
    overflow: hidden;
}

.work-title-wrap {
    text-align: center;
    margin-bottom: 35px;
}

.work-title-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(360px, 100%);
    padding: 14px 24px;
    background: var(--yellow);
    color: #fff;
    font-size: clamp(26px, 4vw, 54px);
    font-weight: 700;
    margin-bottom: 24px;
}

.work-intro {
    max-width: 980px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(16px, 1.6vw, 24px);
    line-height: 1.45;
    font-weight: 700;
    padding: 0 8px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.work-image {
    min-height: 260px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 420px;
    object-fit: cover;
}

.work-content {
    padding: clamp(24px, 3vw, 34px) clamp(20px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 260px;
}

.mint {
    background: var(--mint);
}

.work-content h2 {
    margin: 0 0 18px;
    font-size: clamp(20px, 2vw, 36px);
    line-height: 1.05;
    color: #f3b61c;
}

.work-content h2 span {
    display: block;
}

.work-content p {
    margin: 0 auto;
    max-width: 560px;
    color: #333;
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.6;
}

/* —— Gallery —— */
.gallery-section {
    padding: 48px 0 70px;
}

.gallery-title,
.media-title {
    text-align: center;
    color: #f4c61a;
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 700;
    margin-bottom: 28px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 70px;
}

.g-item {
    overflow: hidden;
    background: #f4f4f4;
    aspect-ratio: 4 / 3;
    min-height: 180px;
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.media-item {
    background: #f4f4f4;
    overflow: hidden;
    aspect-ratio: 1 / 1.1;
    min-height: 140px;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* —— Footer / supporters —— */
.supporters-section {
    padding: 50px 0 0;
}

.supporters-img {
    display: block;
    margin: 0 auto 34px;
    max-width: 100%;
    height: auto;
}

.contact-strip {
    background: #f4ca17;
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1.3fr;
    align-items: center;
    gap: 20px;
    padding: clamp(18px, 3vw, 24px) clamp(16px, 3vw, 34px);
}

.brand-mini img {
    width: min(150px, 100%);
    height: auto;
    object-fit: contain;
}

.contact-strip .contact-item {
    min-width: 0;
}

.contact-strip .contact-item.address {
    align-items: flex-start;
}

.contact-strip .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4e4e4e;
    font-size: clamp(15px, 1.8vw, 20px);
    line-height: 1.4;
}

.contact-strip .contact-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0f4761;
    color: #dfeef6;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-strip .contact-item.address {
    align-items: flex-start;
}

.footer-bottom {
    text-align: center;
    padding: 16px 0 24px;
    color: #6c6c6c;
    font-size: clamp(14px, 1.5vw, 18px);
}

/* —— Inner page hero —— */
.page-hero {
    position: relative;
    min-height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)), var(--bg-banner-1) center center / cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}

.page-hero .content {
    max-width: 760px;
    padding: clamp(48px, 8vw, 80px) 0 clamp(40px, 6vw, 70px);
}

.page-hero--about {
    background-image: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)), var(--bg-banner-1);
}

.hero.page-hero-inner {
    color: #fff;
    min-height: 45vh;
}

.hero.page-hero-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero--admission {
    background: var(--bg-banner-2) center center / cover no-repeat;
}

.hero--contact {
    background: var(--bg-contact) center center / cover no-repeat;
}

.hero--teams {
    background: var(--bg-our-team) center center / cover no-repeat;
}

.hero--donation {
    background: var(--bg-donation-banner) center center / cover no-repeat;
}

.hero.page-hero-inner .container {
    position: relative;
    z-index: 2;
}

.hero-inner {
    min-height: calc(45vh - 80px);
    display: flex;
    align-items: center;
    padding: 24px 0 44px;
}

.hero-text-wrap {
    max-width: 720px;
}

.page-label {
    display: inline-block;
    background: var(--yellow);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 8px 14px;
    margin-bottom: 16px;
}

.page-title {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 14px;
}

.page-subtitle {
    font-size: clamp(15px, 2vw, 19px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
}

.breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    color: #777;
    font-size: 14px;
}

.breadcrumb a {
    color: #555;
}

.breadcrumb a:hover {
    color: var(--yellow);
}

/* —— About —— */
.story-section {
    padding: clamp(50px, 6vw, 80px) 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 34px;
    align-items: center;
}

.story-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.story-card img {
    width: 100%;
    min-height: 320px;
    object-fit: cover;
}

.story-content h2 {
    font-size: clamp(24px, 3vw, 42px);
    color: #f3b61c;
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.story-content p {
    font-size: clamp(15px, 1.5vw, 18px);
    color: #444;
    line-height: 1.85;
    margin-bottom: 18px;
}

.story-highlight {
    background: var(--mint);
    padding: 20px 22px;
    border-left: 6px solid var(--yellow);
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 600;
}

.mission-section {
    padding: 0 0 clamp(50px, 6vw, 80px);
}

.mission-box {
    background: var(--yellow);
    color: #fff;
    padding: clamp(28px, 4vw, 42px) clamp(20px, 4vw, 34px);
    text-align: center;
}

.mission-box h3 {
    font-size: clamp(24px, 3vw, 44px);
    margin-bottom: 16px;
    font-weight: 800;
}

.mission-box p {
    font-size: clamp(15px, 1.5vw, 20px);
    line-height: 1.8;
    max-width: 980px;
    margin: 0 auto;
}

.values-section {
    padding: 0 0 clamp(50px, 6vw, 80px);
}

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

.value-box {
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.value-box h4 {
    color: #f3b61c;
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 800;
}

.value-box p {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

.cta-strip {
    background: var(--mint);
    padding: clamp(32px, 4vw, 40px) 0;
    text-align: center;
}

.cta-strip h3 {
    font-size: clamp(22px, 3vw, 40px);
    margin-bottom: 12px;
    font-weight: 800;
}

.cta-strip p {
    font-size: clamp(15px, 1.5vw, 18px);
    color: #555;
    max-width: 850px;
    margin: 0 auto 22px;
    line-height: 1.8;
    padding: 0 12px;
}

.btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    color: #fff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(246, 206, 26, 0.28);
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn-primary:hover {
    transform: translateY(-1px);
}

/* —— Contact —— */
.contact-banner-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 24px 0 0;
}

.contact-section {
    padding: clamp(50px, 6vw, 70px) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: flex-start;
}

.contact-card,
.contact-form-card,
.admission-card,
.donation-card {
    background: #f8f8f8;
    border-radius: 18px;
    border: 1px solid #eee;
    padding: clamp(20px, 3vw, 26px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form-card {
    background: #fff;
}

.contact-card h2 {
    font-size: clamp(24px, 3vw, 40px);
    color: #f3b61c;
    margin-bottom: 8px;
    font-weight: 800;
}

.contact-card p,
.contact-form-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 18px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.contact-item-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    font-size: 16px;
    color: #333;
}

.contact-item-row strong {
    min-width: 72px;
    font-weight: 700;
    color: #444;
}

.contact-note {
    font-size: 14px;
    color: #777;
}

.contact-form-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
    font-weight: 700;
}

.map-card {
    margin-top: 18px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
}

.map-card iframe {
    width: 100%;
    height: min(280px, 50vw);
    border: 0;
    display: block;
}

/* —— Forms (shared) —— */
.admission-section,
.donation-section {
    padding: clamp(50px, 6vw, 70px) 0;
}

.admission-header,
.donation-header {
    text-align: center;
    margin-bottom: 30px;
}

.admission-header h2,
.donation-header h1 {
    font-size: clamp(28px, 4vw, 48px);
    color: #f3b61c;
    font-weight: 800;
    margin-bottom: 8px;
}

.admission-header p,
.donation-header p {
    font-size: 16px;
    color: #555;
}

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

.donation-card .form-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 18px;
}

.donation-card .form-grid > .form-group {
    margin-bottom: 0;
}

.contact-form-card .field-error,
.donation-card .field-error {
    display: block;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.field-label,
.contact-form-card label,
.donation-card label {
    font-size: 13px;
    color: #444;
    font-weight: 600;
}

.field-note {
    font-size: 12px;
    color: #888;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 10px 11px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    background: #fff;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px rgba(246, 206, 26, 0.2);
}

.section-label {
    grid-column: 1 / -1;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-actions {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.field-error {
    color: #d93025;
    font-size: 12px;
    margin-top: 4px;
}

.flash-success {
    background: var(--mint);
    color: #155724;
    padding: 12px 16px;
    margin: 16px auto;
    border-radius: 8px;
    border: 1px solid #b7f0df;
    font-size: 14px;
    width: var(--container);
    max-width: 100%;
}

.flash-success--wide {
    margin-bottom: 0;
}

/* —— Teams —— */
.founder-section {
    padding: clamp(50px, 6vw, 70px) 0 60px;
}

.founder-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 34px;
    align-items: center;
}

.founder-photo {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.founder-photo img {
    width: 100%;
    min-height: 300px;
    object-fit: cover;
}

.founder-content h2 {
    font-size: clamp(24px, 3vw, 42px);
    color: #f3b61c;
    margin-bottom: 10px;
    font-weight: 800;
}

.founder-role {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 16px;
}

.founder-content p {
    font-size: 17px;
    color: #444;
    line-height: 1.85;
    margin-bottom: 14px;
}

.founder-quote {
    font-style: italic;
    border-left: 4px solid var(--yellow);
    padding-left: 14px;
    color: #555;
}

.team-section {
    padding: 20px 0 70px;
}

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

.team-card {
    background: #f8f8f8;
    border-radius: 14px;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.team-photo {
    height: 220px;
    overflow: hidden;
    background: #ddd;
}

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

.team-body {
    padding: 18px;
    text-align: center;
    flex: 1;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.team-role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: #999;
    margin-bottom: 10px;
}

.team-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.volunteer-section {
    padding: 0 0 70px;
}

.volunteer-box {
    background: var(--mint);
    padding: clamp(28px, 4vw, 38px) clamp(20px, 3vw, 30px);
    text-align: center;
}

.volunteer-box h3 {
    font-size: clamp(24px, 3vw, 40px);
    margin-bottom: 12px;
    font-weight: 800;
}

.volunteer-box p {
    font-size: 17px;
    max-width: 900px;
    margin: 0 auto 18px;
    line-height: 1.8;
    color: #444;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
    .work-grid {
        grid-template-columns: 1fr 1fr;
    }

    .work-content {
        grid-column: 1 / -1;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .story-grid,
    .founder-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .donation-card .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-right {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: calc(var(--header-height) + 16px) 20px 24px;
        background: #fff;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 200;
        overflow-y: auto;
    }

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

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    nav li {
        border-bottom: 1px solid #eee;
    }

    nav a {
        display: block;
        padding: 14px 4px;
        color: var(--text) !important;
        font-size: 16px;
    }

    .header-btn {
        width: 100%;
        margin-top: 16px;
        padding: 14px;
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 150;
        pointer-events: none;
        display: none;
    }

    .hero-banner .hero-content {
        align-items: center;
        justify-content: center;
    }

    .hero-actions {
        align-items: center;
    }
}

@media (max-width: 768px) {
    :root {
        --container: calc(100% - 24px);
    }

    .topbar {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .brand {
        flex: 1;
        min-width: 0;
    }

    .hero {
        min-height: 85vh;
    }

    .work-grid,
    .gallery-grid,
    .media-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .work-image,
    .work-content {
        min-height: 220px;
    }

    .g-item {
        aspect-ratio: 16 / 10;
        min-height: 180px;
    }

    .contact-strip {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-strip .contact-item {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .brand-mini {
        display: flex;
        justify-content: center;
    }

    .admission-card form,
    .contact-form-card form {
        grid-template-columns: 1fr;
    }

    .page-hero .content {
        text-align: center;
    }

    .page-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

@media (max-width: 480px) {
    .logo {
        width: 48px;
        height: 48px;
    }

    .logo span {
        font-size: 22px;
    }
}
