/*
Theme Name: Mother Haleema School
Theme URI: https://motherhaleemacs.com/
Author: Custom School Web Design
Description: Premium Indian school WordPress theme with admissions-focused homepage and Customizer-editable content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: mother-haleema-school
*/

:root {
  --forest: #083f34;
  --green: #0c7a52;
  --saffron: #f47b20;
  --saffron-soft: #fff1e5;
  --gold: #c99a36;
  --ink: #17201d;
  --muted: #69736f;
  --line: #e7e3dc;
  --paper: #fbf8f3;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(8, 63, 52, .14);
  --radius: 24px;
  --font-body: "Outfit", "Nunito", Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
}
body.loaded .loader { opacity: 0; pointer-events: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity .45s ease;
}
.loader span {
  width: 42px;
  height: 42px;
  border: 4px solid #f6d2b2;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: mh-spin 1s linear infinite;
}
@keyframes mh-spin { to { transform: rotate(1turn); } }

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(18px, 5vw, 74px);
  color: var(--white);
  transition: background .35s ease, color .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-header.is-scrolled {
  padding-block: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 35px rgba(8, 63, 52, .12);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-crest {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 255, 255, .12);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand strong {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
}
.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 12px;
  opacity: .78;
}
.main-nav {
  font-size: 13px;
  font-weight: 700;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav .menu-list {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav li {
  position: relative;
}
.main-nav a { position: relative; opacity: .9; }
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--saffron);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 220px;
  padding: 12px;
  border: 1px solid rgba(8, 63, 52, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 45px rgba(8, 63, 52, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
}
.main-nav .sub-menu a:hover {
  color: var(--forest);
  background: var(--saffron-soft);
}
.main-nav .sub-menu a::after {
  display: none;
}
.nav-cta, .btn, .hero-form button, .newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav-cta {
  padding: 0 22px;
  color: var(--white);
  background: var(--saffron);
  box-shadow: 0 12px 28px rgba(244, 123, 32, .28);
}
.btn { padding: 0 24px; }
.btn:hover, .nav-cta:hover, .hero-form button:hover { transform: translateY(-2px); }
.btn-primary, .hero-form button, .newsletter button {
  color: var(--white);
  background: linear-gradient(135deg, var(--saffron), #df5f13);
  box-shadow: 0 16px 34px rgba(244, 123, 32, .28);
}
.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .34);
  backdrop-filter: blur(14px);
}
.btn-outline {
  color: var(--forest);
  background: var(--white);
  border: 1px solid var(--line);
}
.section { padding: clamp(72px, 8vw, 124px) clamp(18px, 5vw, 74px); }
.section-dark { color: var(--white); }
.soft-bg {
  background:
    radial-gradient(circle at top left, rgba(244, 123, 32, .09), transparent 36%),
    #f5f0e8;
}
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 118px clamp(18px, 5vw, 74px) 56px;
}
.hero-media, .hero-media img, .hero-shade { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: mh-slow-zoom 14s ease-in-out infinite alternate;
}
@keyframes mh-slow-zoom { to { transform: scale(1.06); } }
.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 63, 52, .92), rgba(8, 63, 52, .62) 46%, rgba(244, 123, 32, .18)),
    linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .28));
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.kicker {
  margin: 0 0 12px;
  color: var(--saffron);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: 0;
}
h1 {
  max-width: 910px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: .96;
}
h2 {
  max-width: 840px;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1;
}
h3 { margin: 0; font-size: 21px; }
.hero-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 36px;
}
.stats-row div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
}
.stats-row strong {
  display: block;
  color: #ffd594;
  font-size: 30px;
  line-height: 1;
}
.stats-row span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}
.hero-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.hero-form > span {
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
}
.hero-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.hero-form input, .hero-form select, .newsletter input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
}
.hero-form small { color: var(--muted); line-height: 1.4; }
.wpforms-container { margin: 0 !important; }
.wpforms-container input, .wpforms-container select, .wpforms-container textarea {
  border-radius: 14px !important;
}
.wpforms-submit {
  border-radius: 999px !important;
  background: var(--saffron) !important;
  color: var(--white) !important;
  border: 0 !important;
  font-weight: 800 !important;
}
.trust-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: -42px clamp(18px, 5vw, 74px) 0;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(8, 63, 52, .12);
  box-shadow: var(--shadow);
}
.trust-strip article {
  min-height: 112px;
  padding: 20px 16px;
  background: var(--white);
  text-align: center;
}
.trust-strip span {
  display: block;
  color: var(--saffron);
  font-size: 25px;
  font-weight: 900;
}
.trust-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--forest);
  font-size: 13px;
}
.about-grid, .admission-panel {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.section-copy p, .section-head p, .mission-card p, .program-card p, .timeline p, .footer p, .faq-list p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.mission-card, .scholarship {
  margin-top: 24px;
  padding: 22px;
  border-left: 4px solid var(--saffron);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(8, 63, 52, .08);
}
.mission-card strong, .scholarship { color: var(--forest); font-weight: 900; }
.mini-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.mini-counters div {
  padding: 18px;
  border-radius: 18px;
  background: var(--saffron-soft);
}
.mini-counters strong { display: block; color: var(--saffron); font-size: 26px; }
.mini-counters span { color: var(--muted); font-size: 12px; font-weight: 800; }
.image-collage { position: relative; min-height: 560px; }
.main-photo, .float-photo {
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.main-photo { height: 560px; border-radius: 34px; }
.float-photo {
  position: absolute;
  width: 38%;
  height: 190px;
  border: 8px solid var(--paper);
  border-radius: 24px;
}
.float-photo.one { top: 34px; left: -42px; }
.float-photo.two { right: -28px; bottom: 40px; }
.section-head {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}
.section-head p {
  max-width: 690px;
  margin: 14px auto 0;
}
.program-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.program-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 86px rgba(8, 63, 52, .2);
}
.program-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: brightness(.68);
  transition: transform .45s ease;
}
.program-card:hover img { transform: scale(1.06); }
.program-card .icon {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--forest);
  background: #ffd594;
  font-weight: 900;
}
.program-card div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(8, 63, 52, .92));
}
.program-card p { margin-bottom: 0; color: rgba(255, 255, 255, .8); }
.masonry-gallery {
  display: grid;
  grid-auto-rows: 170px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.masonry-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(8, 63, 52, .1);
}
.masonry-gallery .tall { grid-row: span 2; }
.masonry-gallery .wide { grid-column: span 2; }
.masonry-gallery img, .immersive-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.masonry-gallery figure:hover img, .immersive-gallery img:hover { transform: scale(1.07); }
.masonry-gallery figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(8, 63, 52, .78);
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.timeline { display: grid; gap: 14px; }
.timeline article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(8, 63, 52, .08);
}
.timeline span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}
.timeline p { margin: 4px 0 0; }
.timeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.facility-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.facility-card {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 24px;
  color: var(--forest);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(8, 63, 52, .08);
  font-weight: 900;
  text-align: center;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.achievement-grid article {
  min-height: 210px;
  padding: 26px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(145deg, rgba(8, 63, 52, .94), rgba(12, 122, 82, .88)), var(--forest);
}
.achievement-grid strong { display: block; font-size: 24px; }
.achievement-grid span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, .76);
}
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 24px;
}
.featured-news, .news-list article {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 38px rgba(8, 63, 52, .08);
}
.featured-news img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}
.featured-news div, .news-list article { padding: 24px; }
.featured-news span, .news-list span {
  color: var(--saffron);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.news-list { display: grid; gap: 16px; }
.news-list strong {
  display: block;
  margin-top: 8px;
  color: var(--forest);
  font-size: 20px;
}
.testimonial-section {
  background:
    linear-gradient(135deg, rgba(8, 63, 52, .94), rgba(8, 63, 52, .82)),
    url("https://images.unsplash.com/photo-1519452575417-564c1401ecc0?auto=format&fit=crop&w=1600&q=80") center/cover;
}
.testimonial-section .section-head h2, .testimonial-section .section-head p { color: var(--white); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.glass-card {
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
}
.glass-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
  line-height: 1.7;
}
.glass-card cite { color: #ffd594; font-style: normal; font-weight: 900; }
.immersive-gallery {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr 1.1fr;
  gap: 16px;
}
.immersive-gallery img {
  height: 330px;
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(8, 63, 52, .08);
}
.faq-section { background: var(--saffron-soft); }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-list details {
  margin-bottom: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(8, 63, 52, .06);
}
.faq-list summary {
  padding: 20px 24px;
  color: var(--forest);
  font-weight: 900;
  cursor: pointer;
}
.faq-list p { margin: 0; padding: 0 24px 22px; }
.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.final-cta img, .final-overlay { position: absolute; inset: 0; }
.final-cta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.final-overlay {
  background: linear-gradient(90deg, rgba(8, 63, 52, .9), rgba(8, 63, 52, .58)), rgba(0, 0, 0, .24);
}
.final-cta > div {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
}
.final-cta h2 { margin-inline: auto; color: var(--white); }
.final-cta p {
  max-width: 660px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.7;
}
.inner-page {
  background: var(--paper);
}
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: 150px clamp(18px, 5vw, 74px) 76px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(8, 63, 52, .94), rgba(8, 63, 52, .72), rgba(244, 123, 32, .34)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1800&q=86") center/cover;
}
.page-hero > div:not(.page-hero-bg) {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.page-hero h1 {
  color: var(--white);
}
.page-hero p:not(.kicker) {
  max-width: 680px;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.7;
}
.page-content {
  padding-top: 54px;
}
.content-card {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(8, 63, 52, .08);
}
.content-card h2,
.content-card h3 {
  color: var(--forest);
}
.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.content-card img {
  border-radius: 18px;
}
.footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) .7fr .7fr 1fr;
  gap: 34px;
  padding: 58px clamp(18px, 5vw, 74px) 84px;
  color: var(--white);
  background: var(--forest);
}
.footer .brand-crest { background: rgba(255, 255, 255, .1); }
.footer p, .footer a {
  display: block;
  color: rgba(255, 255, 255, .74);
  line-height: 1.7;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer li + li {
  margin-top: 8px;
}
.footer h3 { margin: 0 0 14px; color: #ffd594; }
.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.app-badges span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
}
.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
}
.newsletter button { min-height: 46px; padding: 0 16px; }
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--white);
  background: #16a263;
  box-shadow: 0 16px 34px rgba(22, 162, 99, .34);
  font-weight: 900;
}
.mobile-cta {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 46;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 42px rgba(8, 63, 52, .2);
  backdrop-filter: blur(16px);
}
.mobile-cta a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}
.mobile-cta a:first-child { background: var(--saffron); }
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .program-cards, .achievement-grid, .immersive-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-header, .hero-grid, .about-grid, .admission-panel, .news-layout, .footer { grid-template-columns: 1fr; }
  .site-header {
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
  }
  .hero { min-height: auto; padding-top: 116px; }
  .hero-grid { gap: 28px; }
  .stats-row, .mini-counters, .testimonial-grid { grid-template-columns: 1fr; }
  .image-collage { min-height: 430px; }
  .main-photo { height: 430px; }
  .float-photo { display: none; }
  .masonry-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry-gallery .wide { grid-column: auto; }
}
@media (max-width: 620px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
  }
  .brand-crest { width: 42px; height: 42px; }
  .brand strong { font-size: 14px; }
  .brand small, .nav-cta { display: none; }
  .hero { padding-inline: 16px; }
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  .hero-actions, .timeline-actions { flex-direction: column; }
  .btn { width: 100%; }
  .trust-strip {
    grid-template-columns: 1fr 1fr;
    margin-inline: 16px;
  }
  .program-cards, .achievement-grid, .masonry-gallery, .immersive-gallery { grid-template-columns: 1fr; }
  .masonry-gallery { grid-auto-rows: 230px; }
  .masonry-gallery .tall { grid-row: auto; }
  .timeline article { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .mobile-cta { display: grid; }
}

/* ===== INNER PAGE HERO FIX ===== */

.inner-page {
    background: var(--paper);
    margin: 0;
    padding: 0;
}

/* HERO SECTION */
.page-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 320px;
    padding: 140px clamp(18px, 5vw, 74px) 60px;
    margin: 0;
}

/* HERO BACKGROUND */
.page-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            rgba(8, 63, 52, .94),
            rgba(8, 63, 52, .72),
            rgba(244, 123, 32, .34)
        ),
        url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1800&q=86")
        center/cover;
}

/* HERO CONTENT */
.page-hero > div:not(.page-hero-bg) {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* HERO TITLE */
.page-hero h1 {
    margin: 0;
    color: var(--white);
    line-height: 1;
    font-size: clamp(46px, 6vw, 92px);
}

/* HERO PARAGRAPH */
.page-hero p:not(.kicker) {
    max-width: 680px;
    margin-top: 18px;
    color: rgba(255,255,255,.82);
    font-size: 18px;
    line-height: 1.7;
}

/* REMOVE GAP BELOW HERO */
.page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* CONTENT CARD */
.content-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 54px);
    border-radius: 28px;
    background: var(--white);
    box-shadow: 0 18px 50px rgba(8, 63, 52, .08);
}

/* REMOVE FIRST ELEMENTOR GAP */
.elementor-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {

    .page-hero {
        min-height: 240px;
        padding: 120px 20px 40px;
    }

    .page-hero h1 {
        font-size: 42px;
    }

    .content-card {
        padding: 24px;
        border-radius: 22px;
    }
}
