:root {
  --ink: #071f18;
  --muted: #62746b;
  --line: #dce8de;
  --soft: #f6fbf6;
  --panel: #ffffff;
  --primary: #006233;
  --primary-dark: #004b2a;
  --accent: #d21034;
  --gold: #d6a835;
  --danger: #b42318;
  --warn: #d89017;
  --ok: #168a5f;
  --public-purple: #4b0082;
  --public-violet: #8a4ff5;
  --public-pink: #f83f91;
  --public-cyan: #6dc7e8;
  --shadow: 0 18px 45px rgba(6, 32, 24, 0.09);
}

/* Public homepage v2 */
:root {
  --public-purple: #063f2a;
  --public-violet: #0f6f49;
  --public-pink: #d6a835;
}

.public-topbar {
  min-height: 42px;
  padding: 0 42px;
  background: #052d20;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
}

.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.topbar-contact span,
.platform-pill,
.platform-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.topbar-contact svg,
.platform-pill svg,
.platform-button svg {
  width: 17px;
  height: 17px;
}

.platform-pill {
  min-height: 32px;
  border: 1px solid rgba(214, 168, 53, 0.45);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(214, 168, 53, 0.12);
  color: #fff;
  font-weight: 800;
}

.platform-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--gold);
  color: #10251f;
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.platform-button:hover,
.platform-pill:hover {
  background: #e5bd53;
  color: #10251f;
}

.announcement-bar {
  background: linear-gradient(135deg, #0b5d3b, #128057);
}

.announcement-bar a {
  background: #fff;
  color: var(--public-purple);
}

.hero-animated-scene {
  position: relative;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.12), rgba(214, 168, 53, 0.16), rgba(255, 255, 255, 0.94)),
    #fff;
  box-shadow: var(--shadow);
}

.hero-animated-scene > img {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 999px;
  background: #fff;
  padding: 5px;
  box-shadow: var(--shadow);
}

.orbit {
  position: absolute;
  border: 2px dashed rgba(0, 98, 51, 0.22);
  border-radius: 50%;
  animation: rotateOrbit 18s linear infinite;
}

.orbit-one {
  width: 300px;
  height: 300px;
}

.orbit-two {
  width: 210px;
  height: 210px;
  animation-direction: reverse;
  animation-duration: 12s;
}

.student-figure {
  position: relative;
  width: 180px;
  height: 240px;
  animation: floatHero 4.2s ease-in-out infinite;
}

.student-head {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  background: #ffd9b3;
  box-shadow: inset 0 -8px rgba(120, 63, 4, 0.08);
}

.student-body {
  width: 132px;
  height: 116px;
  margin: -2px auto 0;
  border-radius: 48px 48px 18px 18px;
  background: linear-gradient(135deg, var(--primary), #0f8f60);
}

.student-book {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 132px;
  height: 76px;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff 0 48%, #f7fbf8 48% 52%, #fff 52%);
  border: 2px solid #dce8de;
  transform: rotate(-8deg);
}

.floating-card {
  position: absolute;
  min-width: 104px;
  height: 54px;
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  box-shadow: var(--shadow);
  animation: floatHero 4.8s ease-in-out infinite;
}

.floating-card svg {
  width: 22px;
  height: 22px;
}

.card-one {
  top: 94px;
  right: 42px;
}

.card-two {
  bottom: 86px;
  right: 58px;
  animation-delay: 0.7s;
}

.card-three {
  bottom: 134px;
  left: 42px;
  animation-delay: 1.1s;
}

@keyframes rotateOrbit {
  to {
    transform: rotate(360deg);
  }
}

.spaces-grid,
.why-grid,
.services-grid,
.life-grid {
  display: grid;
  gap: 16px;
}

.spaces-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.space-card,
.service-card {
  padding: 18px;
}

.space-card > svg,
.service-card > svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.space-card h3,
.service-card h3 {
  margin: 12px 0 8px;
  font-size: 21px;
  font-weight: 900;
}

.space-card p,
.service-card p {
  min-height: 96px;
  color: var(--muted);
  line-height: 1.8;
}

.login-space-btn {
  width: 100%;
}

.program-card {
  overflow: hidden;
}

.program-visual {
  height: 118px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.14), rgba(214, 168, 53, 0.16)),
    #fff;
}

.program-visual svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
  animation: floatHero 4s ease-in-out infinite;
}

.program-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 900;
}

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

.why-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow);
}

.why-grid svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
}

.why-grid strong {
  font-size: 19px;
  font-weight: 900;
}

.why-grid span {
  color: var(--muted);
  line-height: 1.7;
}

.admission-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admission-steps article {
  position: relative;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.admission-steps article:not(:last-child)::after {
  position: absolute;
  left: -13px;
  top: 50%;
  content: "↓";
  color: var(--gold);
  font-size: 20px;
  transform: translateY(-50%) rotate(90deg);
}

.admission-steps strong {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.admission-steps span {
  color: var(--ink);
  font-weight: 800;
}

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

.life-grid {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.events-list {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.events-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.events-list time {
  color: var(--primary);
  font-weight: 900;
}

.events-list span {
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.gallery-photo {
  position: relative;
  min-height: 210px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.gallery-photo.featured {
  grid-column: span 2;
  min-height: 260px;
}

.gallery-photo.tall {
  grid-row: span 2;
  min-height: 432px;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-photo:hover img {
  transform: scale(1.04);
}

.gallery-photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(5, 45, 32, 0.82);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.gallery-tile {
  min-height: 180px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0f8f60);
  box-shadow: var(--shadow);
}

.testimonial-placeholder {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-placeholder svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.testimonial-placeholder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.contact-form {
  width: min(860px, 100%);
  margin: 28px auto 0;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: right;
}

.contact-form input,
.contact-form textarea {
  min-width: 0;
  border: 1px solid #cfd9d1;
  border-radius: 8px;
  padding: 12px;
  outline: none;
  font: inherit;
}

.contact-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.public-footer {
  margin: 0;
  padding: 34px 24px 18px;
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  justify-content: stretch;
  text-align: right;
  border-top: 0;
  background: #052d20;
  color: rgba(255, 255, 255, 0.78);
}

.public-footer h3,
.footer-brand strong {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.public-footer a,
.public-footer span {
  display: block;
  margin-top: 7px;
}

.footer-brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 1100px) {
  .spaces-grid,
  .why-grid,
  .admission-steps,
  .services-grid,
  .life-grid,
  .public-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .public-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 10px 14px;
  }

  .spaces-grid,
  .why-grid,
  .admission-steps,
  .services-grid,
  .life-grid,
  .gallery-grid,
  .contact-form,
  .public-footer {
    grid-template-columns: 1fr;
  }

  .admission-steps article:not(:last-child)::after {
    left: 50%;
    top: auto;
    bottom: -19px;
    transform: translateX(-50%);
  }

  .hero-animated-scene {
    min-height: 360px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.1), rgba(214, 168, 53, 0.12), rgba(210, 16, 52, 0.07)),
    radial-gradient(circle at top left, rgba(0, 98, 51, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(210, 16, 52, 0.13), transparent 28%),
    #f6fbf6;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

.ltr-text {
  direction: ltr;
  unicode-bidi: embed;
}

.public-page {
  min-height: 100vh;
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 19px;
}

.announcement-bar {
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 24px 16px;
  background: linear-gradient(135deg, var(--public-purple), var(--public-violet));
  color: #fff;
  font-weight: 900;
}

.announcement-bar > svg {
  width: 72px;
  height: 72px;
  stroke-width: 2.4;
}

.announcement-bar div {
  min-width: min(560px, 100%);
  text-align: right;
}

.announcement-bar strong,
.announcement-bar span {
  display: block;
}

.announcement-bar strong {
  font-size: 44px;
  line-height: 1.1;
}

.announcement-bar span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  font-weight: 500;
}

.announcement-bar a {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--public-pink);
  color: #fff;
  padding: 0 28px;
  font-size: 22px;
  font-weight: 800;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  margin: 0;
  padding: 0 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  border: 0;
  border-radius: 0;
  background: var(--public-purple);
  color: #fff;
  box-shadow: none;
}

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

.public-brand img,
.login-headline img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: none;
}

.public-brand strong,
.public-brand small {
  display: block;
}

.public-brand strong {
  font-size: 21px;
  font-weight: 900;
}

.public-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.public-nav nav {
  display: flex;
  justify-content: center;
  gap: 0;
}

.public-nav nav a {
  min-height: 116px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
}

.public-nav nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.public-page main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 40px;
}

.public-hero {
  min-height: calc(100vh - 264px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: 28px;
  padding: 38px 0 28px;
}

.public-hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.15;
  font-weight: 900;
}

.public-hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 23px;
  line-height: 2;
  font-weight: 700;
}

.public-counters {
  margin: 4px auto 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 8px;
  overflow: hidden;
  background: var(--public-purple);
  box-shadow: var(--shadow);
}

.public-counters article {
  min-height: 136px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #fff;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.18);
}

.public-counters article:nth-child(even) {
  background: rgba(255, 255, 255, 0.06);
}

.public-counters strong {
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
}

.public-counters span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 22px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.public-hero-media {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.12), rgba(13, 148, 136, 0.2), rgba(214, 168, 53, 0.15)),
    linear-gradient(135deg, #d9f99d, #5eead4 48%, #ffffff 100%);
  box-shadow: var(--shadow);
}

.public-hero-media::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, 0.28) 18% 22%, transparent 22% 100%),
    linear-gradient(145deg, transparent 0 62%, rgba(0, 98, 51, 0.12) 62% 74%, transparent 74% 100%);
}

.public-hero-media img {
  position: relative;
  z-index: 1;
  width: min(280px, 62%);
  max-height: 320px;
  object-fit: contain;
  border: 6px solid var(--primary);
  border-radius: 999px;
  background: #fff;
  padding: 10px;
}

.hero-stat {
  position: absolute;
  z-index: 2;
  min-width: 168px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-stat:first-of-type {
  right: 22px;
  bottom: 28px;
}

.hero-stat:last-of-type {
  left: 22px;
  top: 28px;
}

.hero-stat strong,
.hero-stat span {
  display: block;
}

.hero-stat strong {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
}

.hero-stat span {
  color: var(--muted);
  font-weight: 800;
}

.public-section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-head h2,
.public-section h2 {
  margin-bottom: 0;
  font-size: 30px;
  font-weight: 900;
}

.section-copy {
  color: var(--muted);
  line-height: 2;
  font-weight: 700;
}

.info-grid,
.posts-grid,
.contact-grid,
.program-grid {
  display: grid;
  gap: 16px;
}

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

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

.contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.program-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.contact-card,
.post-card,
.program-card {
  padding: 18px;
}

.info-card svg,
.contact-card svg,
.program-card svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.info-card h3,
.post-card h3,
.program-card h3 {
  margin: 12px 0 8px;
  font-size: 19px;
  font-weight: 900;
}

.info-card p,
.post-card p,
.program-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.9;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.about-card {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(251, 247, 236, 0.94)),
    repeating-linear-gradient(45deg, rgba(0, 98, 51, 0.025) 0 2px, transparent 2px 9px);
}

.about-card h2 {
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.45;
}

.about-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 2;
  font-weight: 700;
}

.feature-stack {
  display: grid;
  gap: 12px;
}

.feature-line {
  padding: 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.feature-line svg {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 8px;
  background: #e9f6ef;
  color: var(--primary);
}

.feature-line strong {
  font-weight: 900;
}

.feature-line span {
  color: var(--muted);
  line-height: 1.7;
}

.admission-strip {
  margin: 34px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.12), rgba(214, 168, 53, 0.14), rgba(255, 255, 255, 0.88)),
    #fff;
  box-shadow: var(--shadow);
}

.admission-strip h2 {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 900;
}

.admission-strip p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 700;
}

.post-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.post-media img,
.post-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 24px;
  align-items: start;
}

.public-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.public-form input,
.public-form select,
.public-form textarea,
.login-card input,
.login-card select,
.form-grid textarea {
  min-width: 0;
  border: 1px solid #cfd9d1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.public-form input,
.public-form select,
.login-card input,
.login-card select {
  height: 44px;
  padding: 0 12px;
}

.public-form textarea,
.form-grid textarea {
  padding: 12px;
  resize: vertical;
}

.contact-card {
  display: grid;
  gap: 8px;
}

.contact-card strong {
  font-weight: 900;
}

.contact-card span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

#contact {
  margin-top: 24px;
  padding: 56px 24px;
  background: linear-gradient(135deg, var(--public-purple), #9356cf);
  color: #fff;
  text-align: center;
}

#contact .eyebrow,
#contact .section-head h2 {
  color: #fff;
}

#contact .section-head h2 {
  max-width: 860px;
  margin-inline: auto;
  font-size: 42px;
}

#contact .contact-card {
  text-align: right;
  color: var(--ink);
}

.social-strip {
  margin-top: 28px;
}

.social-strip p {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 22px;
  font-weight: 800;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-icon.email {
  background: #ef4444;
}

.social-icon.whatsapp {
  background: #22c55e;
}

.social-icon.facebook {
  background: #4267b2;
}

.social-icon.messenger {
  background: #3b82f6;
}

.social-icon.instagram {
  background: #262626;
}

.social-icon.youtube {
  background: #dc2626;
}

.social-icon.linkedin {
  background: #0a66c2;
}

.social-icon.x-twitter {
  background: #38bdf8;
}

.social-icon.telegram {
  background: #229ed9;
}

.public-footer {
  margin: 20px 0 34px;
  padding: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.public-footer img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 999px;
  background: #fff;
  padding: 3px;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(7, 31, 24, 0.52);
}

.login-modal.open {
  display: grid;
}

.login-card {
  position: relative;
  width: min(100%, 470px);
  padding: 28px;
  display: grid;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(251, 247, 236, 0.94)),
    repeating-linear-gradient(45deg, rgba(0, 98, 51, 0.025) 0 2px, transparent 2px 9px);
}

.login-headline {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
}

.login-headline h2 {
  margin-bottom: 6px;
  font-weight: 900;
}

.login-headline p {
  margin-bottom: 0;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background: linear-gradient(180deg, #071f18, #0b2c20 62%, #10251f);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  border: 4px solid var(--primary);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 10px 24px rgba(0, 98, 51, 0.18);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-align: right;
}

.nav-item svg,
.icon-button svg,
.primary-button svg,
.ghost-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-item.active {
  border-inline-start: 4px solid var(--gold);
}

.phase-box {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.phase-box span,
.phase-box small {
  color: rgba(255, 255, 255, 0.68);
}

.phase-box strong {
  display: block;
  margin: 6px 0;
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
}

h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  width: min(360px, 38vw);
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.search svg {
  width: 18px;
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
}

.primary-button,
.ghost-button,
.icon-button {
  height: 44px;
  border-radius: 8px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.primary-button {
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #058348);
  font-weight: 700;
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.ghost-button {
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
}

.icon-button {
  width: 44px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.panel,
.role-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}

.welcome-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.12), rgba(13, 148, 136, 0.2), rgba(214, 168, 53, 0.15)),
    linear-gradient(135deg, #d9f99d, #5eead4 48%, #ffffff 100%);
}

.welcome-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, 0.28) 18% 22%, transparent 22% 100%),
    linear-gradient(145deg, transparent 0 62%, rgba(0, 98, 51, 0.12) 62% 74%, transparent 74% 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.accent-label {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.dua-animated {
  margin-bottom: 0;
  color: #c2410c;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.8;
  animation: duaFloat 5s ease-in-out infinite;
}

@keyframes duaFloat {
  0%,
  100% {
    opacity: 0.94;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-6px);
  }
}

.identity-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(251, 247, 236, 0.94)),
    repeating-linear-gradient(45deg, rgba(0, 98, 51, 0.025) 0 2px, transparent 2px 9px);
}

.identity-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border: 4px solid var(--primary);
  border-radius: 999px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 10px 24px rgba(0, 98, 51, 0.18);
}

.identity-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 900;
}

.identity-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.stat-card {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
}

.stat-card:nth-child(2) .stat-icon {
  background: var(--gold);
}

.stat-card:nth-child(3) .stat-icon {
  background: var(--ok);
}

.stat-card:nth-child(4) .stat-icon {
  background: var(--accent);
}

.stat-card small {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.content-grid {
  display: grid;
  gap: 18px;
}

.content-grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.panel {
  padding: 18px;
  min-width: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

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

.form-grid input,
.form-grid select {
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  outline: 0;
}

.form-grid textarea {
  grid-column: 1 / -1;
}

.form-grid input:focus,
.form-grid select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 111, 100, 0.12);
}

.wide {
  grid-column: 1 / -1;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.compact table {
  min-width: 560px;
}

th,
td {
  padding: 12px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: rgba(246, 251, 246, 0.92);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.badge.ok {
  background: #e4f5ed;
  color: var(--ok);
}

.badge.warn {
  background: #fff2dc;
  color: var(--warn);
}

.badge.danger {
  background: #ffe8e8;
  color: var(--danger);
}

.row-action {
  border: 0;
  background: transparent;
  color: var(--danger);
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.row-action:hover {
  background: #ffe8e8;
}

.finance-bars,
.activity-list,
.debt-list,
.group-list,
.mini-metrics,
.roles-grid {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-meta,
.activity-item,
.debt-item,
.group-card,
.mini-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.bar-track {
  height: 10px;
  background: #e7edf4;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--primary), #058348);
}

.activity-item,
.debt-item,
.group-card,
.mini-metric {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.activity-item strong,
.debt-item strong,
.group-card strong,
.mini-metric strong {
  display: block;
}

.activity-item small,
.debt-item small,
.group-card small,
.mini-metric small {
  color: var(--muted);
}

.debt-item {
  border-inline-start: 4px solid var(--danger);
}

.roles-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.role-card {
  padding: 15px;
  box-shadow: none;
}

.role-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.role-card ul {
  margin: 0;
  padding: 0 18px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.toast {
  position: fixed;
  left: 22px;
  bottom: 22px;
  min-width: 240px;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1100px) {
  .public-nav {
    grid-template-columns: 1fr auto;
    padding: 12px 18px;
  }

  .public-nav nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .public-nav nav a {
    min-height: 54px;
  }

  .public-hero,
  .split-section,
  .info-grid,
  .posts-grid,
  .contact-grid,
  .program-grid,
  .about-layout,
  .public-counters {
    grid-template-columns: 1fr 1fr;
  }

  .app-shell {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .brand div,
  .nav-item span,
  .phase-box {
    display: none;
  }

  .brand {
    justify-content: center;
  }

  .nav-item {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .announcement-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .announcement-bar div {
    text-align: center;
  }

  .announcement-bar strong {
    font-size: 34px;
  }

  .announcement-bar span {
    font-size: 18px;
  }

  .public-nav {
    width: min(100% - 20px, 1280px);
    grid-template-columns: auto auto;
  }

  .public-brand span {
    display: none;
  }

  .public-hero {
    min-height: auto;
    padding: 34px 0;
  }

  .public-hero,
  .split-section,
  .info-grid,
  .posts-grid,
  .contact-grid,
  .program-grid,
  .about-layout,
  .public-counters,
  .public-form {
    grid-template-columns: 1fr;
  }

  .public-hero-copy h1 {
    font-size: 38px;
  }

  .public-hero-media {
    min-height: 360px;
  }

  .section-head.inline {
    align-items: stretch;
    flex-direction: column;
  }

  .admission-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 12px;
  }

  .brand div {
    display: block;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item span {
    display: none;
  }

  .main {
    padding: 16px;
  }

  .topbar,
  .top-actions,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .stats-grid,
  .dashboard-hero,
  .content-grid.two,
  .roles-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .identity-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .dua-animated {
    font-size: 22px;
  }
}

/* Final public page overrides */
.public-nav {
  width: 100%;
  margin: 0;
  padding: 0 42px;
  min-height: 116px;
  border: 0;
  border-radius: 0;
  background: var(--public-purple);
  color: #fff;
  box-shadow: none;
}

.public-nav nav {
  gap: 0;
}

.public-nav nav a {
  min-height: 116px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.public-nav nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.public-brand img {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.public-brand small {
  color: rgba(255, 255, 255, 0.72);
}

.public-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

.public-footer {
  margin: 0;
  padding: 34px 24px 18px;
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  justify-content: stretch;
  text-align: right;
  border-top: 0;
  background: #052d20;
  color: rgba(255, 255, 255, 0.78);
}

.public-footer h3,
.footer-brand strong {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.public-footer a,
.public-footer span {
  display: block;
  margin-top: 7px;
}

.footer-brand img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 1100px) {
  .public-nav {
    padding: 12px 18px;
  }

  .spaces-grid,
  .why-grid,
  .admission-steps,
  .services-grid,
  .life-grid,
  .public-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .public-nav {
    width: 100%;
    grid-template-columns: auto auto;
  }

  .public-nav nav a {
    min-height: 54px;
  }

  .spaces-grid,
  .why-grid,
  .admission-steps,
  .services-grid,
  .life-grid,
  .gallery-grid,
  .contact-form,
  .public-footer {
    grid-template-columns: 1fr;
  }

  .gallery-photo,
  .gallery-photo.featured,
  .gallery-photo.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
  }
}

/* Requested menu and primary-class animated hero */
.public-nav {
  grid-template-columns: 1fr;
  justify-items: center;
}

.public-nav nav {
  width: 100%;
  justify-content: center;
}

.announcement-bar {
  min-height: 112px;
  gap: 18px;
}

.announcement-bar > strong {
  color: #fff;
  font-size: 46px;
  line-height: 1.1;
  font-weight: 900;
}

.primary-class-hero {
  position: relative;
  min-height: 560px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(240, 250, 246, 0.98) 0 62%, #d7efe4 62% 100%),
    #fff;
  box-shadow: var(--shadow);
}

.primary-class-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, 0.4) 18% 22%, transparent 22% 100%),
    radial-gradient(circle at 12% 14%, rgba(214, 168, 53, 0.16), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(0, 98, 51, 0.12), transparent 24%);
}

.class-board {
  position: absolute;
  top: 54px;
  right: 50%;
  z-index: 1;
  width: min(520px, 72%);
  min-height: 142px;
  border: 10px solid #9a6a38;
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #0f5d3e, #0a3f2c);
  color: #fff;
  transform: translateX(50%);
  box-shadow: 0 18px 35px rgba(6, 32, 24, 0.16);
}

.class-board span {
  font-size: 42px;
  font-weight: 900;
}

.class-board small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 24px;
  font-weight: 800;
}

.figure-head {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 50%;
  background: #ffd7b5;
  box-shadow: inset 0 -6px rgba(120, 63, 4, 0.08);
}

.teacher-figure {
  position: absolute;
  right: 12%;
  bottom: 118px;
  z-index: 2;
  width: 132px;
  animation: classFloat 4.4s ease-in-out infinite;
}

.teacher-body {
  width: 104px;
  height: 132px;
  margin: -2px auto 0;
  border-radius: 42px 42px 18px 18px;
  background: linear-gradient(135deg, var(--gold), #e9c864);
}

.teacher-pointer {
  position: absolute;
  top: 74px;
  left: -70px;
  width: 118px;
  height: 5px;
  border-radius: 999px;
  background: #8b5a2b;
  transform: rotate(-18deg);
  transform-origin: right center;
  animation: pointerMove 2.4s ease-in-out infinite;
}

.desks-row {
  position: absolute;
  right: 9%;
  left: 9%;
  bottom: 42px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 24px;
}

.pupil {
  position: relative;
  display: grid;
  justify-items: center;
  animation: classFloat 4.8s ease-in-out infinite;
}

.pupil-two {
  animation-delay: 0.45s;
}

.pupil-three {
  animation-delay: 0.9s;
}

.pupil-body {
  width: 86px;
  height: 78px;
  margin-top: -2px;
  border-radius: 34px 34px 12px 12px;
  background: linear-gradient(135deg, var(--primary), #0f8f60);
}

.pupil-two .pupil-body {
  background: linear-gradient(135deg, #0e7490, #22a6c4);
}

.pupil-three .pupil-body {
  background: linear-gradient(135deg, #b45309, #e0a12b);
}

.desk {
  position: relative;
  width: min(210px, 100%);
  height: 92px;
  margin-top: -16px;
  border-radius: 8px 8px 16px 16px;
  background: linear-gradient(180deg, #c58945, #9a622e);
  box-shadow: 0 16px 28px rgba(70, 43, 17, 0.18);
}

.desk span {
  position: absolute;
  top: 18px;
  right: 50%;
  width: 82px;
  height: 42px;
  border-radius: 6px;
  background: linear-gradient(90deg, #fff 0 48%, #eef7f2 48% 52%, #fff 52%);
  transform: translateX(50%) rotate(-3deg);
}

.class-bubble {
  position: absolute;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
  animation: bubbleFloat 5s ease-in-out infinite;
}

.class-bubble svg {
  width: 28px;
  height: 28px;
}

.bubble-one {
  top: 72px;
  right: 16%;
}

.bubble-two {
  top: 214px;
  left: 18%;
  animation-delay: 0.7s;
}

.bubble-three {
  bottom: 150px;
  right: 48%;
  animation-delay: 1.3s;
}

@keyframes classFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pointerMove {
  0%,
  100% {
    transform: rotate(-18deg);
  }

  50% {
    transform: rotate(-8deg);
  }
}

@keyframes bubbleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-14px) scale(1.04);
  }
}

@media (max-width: 820px) {
  .public-nav {
    grid-template-columns: 1fr;
  }

  .announcement-bar > strong {
    font-size: 34px;
  }

  .primary-class-hero {
    min-height: 650px;
  }

  .class-board {
    top: 34px;
    width: 86%;
  }

  .teacher-figure {
    right: 8%;
    bottom: 250px;
    transform: scale(0.85);
  }

  .desks-row {
    right: 6%;
    left: 6%;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pupil {
    transform: scale(0.82);
  }
}

/* Latest requested public refinements */
.public-nav {
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-items: stretch;
  min-height: 96px;
}

.menu-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.public-nav nav {
  width: auto;
  justify-content: center;
  align-items: stretch;
}

.menu-group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.menu-group > a::after {
  content: "⌄";
  margin-inline-start: 6px;
  font-size: 16px;
}

.submenu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.16s ease;
}

.menu-group:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.public-nav .submenu a {
  min-height: 38px;
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.public-nav .submenu a:hover {
  color: var(--primary);
  background: var(--soft);
}

.registration-visual-hero {
  position: relative;
  min-height: 560px;
  margin-bottom: 18px;
  border-bottom: 4px solid var(--gold);
  overflow: hidden;
  background: #10243a;
}

.registration-visual-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroImageDrift 9s ease-in-out infinite alternate;
}

.registration-visual-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 45, 32, 0.1), rgba(5, 45, 32, 0.76) 54%, rgba(5, 45, 32, 0.9)),
    radial-gradient(circle at 58% 40%, rgba(214, 168, 53, 0.18), transparent 32%);
}

.registration-hero-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 54%;
  transform: translateY(-50%);
  color: #fff;
  text-align: center;
}

.hero-gallery-strip {
  position: absolute;
  z-index: 3;
  right: 50%;
  bottom: 26px;
  width: min(920px, 78%);
  height: 118px;
  overflow: hidden;
  border-radius: 8px;
  transform: translateX(50%);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.hero-gallery-track {
  height: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  width: max-content;
  animation: heroGalleryScroll 26s linear infinite;
}

.hero-gallery-track img {
  width: 168px;
  height: 96px;
  flex: 0 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@keyframes heroGalleryScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(50%);
  }
}

.registration-hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.34);
}

.registration-hero-copy p {
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 24px;
  font-weight: 800;
}

.registration-cta {
  min-height: 64px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px 0 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.registration-cta i,
.registration-cta svg {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  padding: 10px;
  background: var(--gold);
  color: #fff;
}

@keyframes heroImageDrift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.045) translateX(-1.5%);
  }
}

#contact {
  margin-top: 24px;
  padding: 56px 24px;
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.08), rgba(214, 168, 53, 0.1)),
    #f6fbf6;
  color: var(--ink);
  text-align: center;
}

#contact .eyebrow {
  color: var(--primary);
}

#contact .section-head h2 {
  color: var(--ink);
}

.contact-grid {
  max-width: 1180px;
  margin: 0 auto;
}

#contact .contact-card {
  position: relative;
  min-height: 150px;
  padding: 22px;
  text-align: right;
  overflow: hidden;
  border: 1px solid rgba(0, 98, 51, 0.14);
  background: #fff;
}

#contact .contact-card::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 5px;
  height: 100%;
  content: "";
  background: linear-gradient(180deg, var(--primary), var(--gold));
}

#contact .contact-card svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 8px;
  background: #e8f5ef;
  color: var(--primary);
}

#contact .contact-card strong {
  margin-top: 12px;
  color: var(--ink);
  font-size: 18px;
}

#contact .contact-card span {
  color: var(--muted);
}

.social-strip p {
  color: var(--primary);
}

.social-icon .fa-brands,
.social-icon .fa-solid {
  font-size: 22px;
}

.registration-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.1), rgba(214, 168, 53, 0.12)),
    #f6fbf6;
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}

.registration-shell {
  width: min(760px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.registration-shell img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.registration-shell h1 {
  margin: 10px 0;
  font-size: 36px;
  font-weight: 900;
}

.registration-shell p {
  color: var(--muted);
  line-height: 2;
  font-size: 18px;
}

@media (max-width: 1100px) {
  .public-nav {
    grid-template-columns: auto 1fr;
  }

  .public-nav .platform-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .public-nav {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .public-nav nav {
    justify-content: flex-start;
  }

  .registration-visual-hero {
    min-height: 520px;
  }

  .registration-hero-copy {
    right: 50%;
    width: min(92%, 440px);
    transform: translate(50%, -50%);
  }

  .registration-hero-copy p {
    font-size: 18px;
  }
}

/* Final cleanup after requested removals */
.public-nav {
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 18px;
}

.public-nav nav {
  min-width: 0;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: thin;
}

.public-nav > .platform-button {
  min-width: 170px;
}

.public-footer {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .public-nav {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .public-nav > .platform-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .public-nav,
  .public-footer {
    grid-template-columns: 1fr;
  }
}

/* Sticky top line and chat tools */
.public-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
}

.public-topbar .platform-pill {
  min-height: 34px;
  background: var(--gold);
  color: #10251f;
  border-color: var(--gold);
}

.public-nav {
  grid-template-columns: auto minmax(0, 1fr);
}

.public-nav nav {
  justify-content: center;
}

.floating-chat {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.chat-fab {
  min-width: 122px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(6, 32, 24, 0.22);
}

.chat-fab svg,
.chat-fab i {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.live-chat {
  background: var(--primary);
}

.whatsapp-chat {
  background: #25d366;
}

.live-chat-panel {
  position: fixed;
  left: 22px;
  bottom: 138px;
  z-index: 70;
  width: min(360px, calc(100vw - 44px));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
}

.live-chat-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.live-chat-head {
  padding: 14px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-chat-head strong,
.live-chat-head span {
  display: block;
}

.live-chat-head span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.live-chat-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.live-chat-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.chat-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 700;
}

.live-chat-body input,
.live-chat-body textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  outline: 0;
  font: inherit;
}

.live-chat-body textarea {
  resize: vertical;
}

@media (max-width: 820px) {
  .public-topbar {
    position: sticky;
  }

  .floating-chat {
    left: 12px;
    bottom: 12px;
  }

  .chat-fab {
    min-width: 52px;
    width: 52px;
    padding: 0;
  }

  .chat-fab span {
    display: none;
  }

  .live-chat-panel {
    left: 12px;
    bottom: 132px;
    width: calc(100vw - 24px);
  }
}

/* Compact menu refinement */
.public-topbar .platform-pill {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
}

.public-topbar .platform-pill svg {
  width: 14px;
  height: 14px;
}

.public-nav {
  min-height: 74px;
  padding: 0 28px;
}

.menu-logo img {
  width: 56px;
  height: 56px;
}

.public-nav nav a {
  min-height: 74px;
  padding: 0 10px;
  border-inline-start: 0;
  font-size: 15px;
}

.menu-group > a::after {
  margin-inline-start: 4px;
  font-size: 12px;
}

@media (max-width: 820px) {
  .public-nav {
    min-height: auto;
    padding: 10px 14px;
  }

  .public-nav nav a {
    min-height: 42px;
  }
}

/* Menu final alignment */
.public-nav {
  grid-template-columns: auto auto minmax(0, 1fr);
  justify-content: start;
  justify-items: start;
  column-gap: 42px;
  position: sticky;
  top: 42px;
  z-index: 79;
}

.public-nav nav {
  justify-content: flex-start;
  overflow: visible;
  scrollbar-width: none;
}

.public-nav nav::-webkit-scrollbar {
  display: none;
}

.public-nav > .platform-button {
  justify-self: start;
  min-width: auto;
  min-height: 38px;
  padding: 0 12px;
  font-size: 14px;
}

.public-nav > .platform-button svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1100px) {
  .public-nav {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .public-nav > .platform-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
