/* E-School website — 2026 redesign */

:root {
  --teal: #0B8A8F;
  --teal-light: #0d989d;
  --teal-dark: #08696D;
  --teal-tint: #E6F3F4;
  --teal-pale: #d7efef;
  --green: #4CAF6E;
  --green-tint: #E9F6EE;
  --ink: #1F3A4D;
  --muted: #5A6B78;
  --surface: #F4F7F9;
  --line: #e3ebee;
  --gutter: 48px;
}

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

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-dark);
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 70px;
  text-align: center;
}

.section--alt {
  background: var(--surface);
  padding-block: 64px;
}

.section-title {
  margin: 0 0 36px;
  font-size: 32px;
  color: var(--teal);
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  box-shadow: 0 1px 0 #edf2f4;
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.brand__logo {
  height: 44px;
  width: auto;
}

.brand__seal {
  width: 46px;
  height: 46px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--teal);
}

.site-nav a.is-active {
  color: var(--teal);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  border: none;
  background: none;
  padding: 4px;
  cursor: pointer;
  line-height: 0;
}

/* ---------- Hero ---------- */

.hero,
.page-hero,
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--teal-light) 0%, var(--teal) 45%, var(--teal-dark) 100%);
}

.hero__skyline {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  opacity: .5;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 56px;
  align-items: center;
  padding-block: 76px 90px;
}

.hero__text {
  color: #ffffff;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 52px;
  line-height: 1.3;
  font-weight: 700;
}

.hero__lead {
  margin: 0 0 30px;
  font-size: 20px;
  line-height: 1.8;
  max-width: 620px;
}

.hero__note {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--teal-pale);
}

.hero__note strong {
  font-weight: 600;
  color: #ffffff;
}

.hero__devices img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__devices .hero__phone {
  display: none;
}

.store-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #101418;
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 16px;
  transition: transform .15s ease;
}

.store-badge:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.store-badge__text {
  text-align: left;
  line-height: 1.1;
}

.store-badge__text small {
  display: block;
  font-size: 9px;
  opacity: .8;
}

.store-badge__text b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding-block: 84px 96px;
  text-align: center;
}

.page-hero h1 {
  position: relative;
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 46px;
}

.page-hero p {
  position: relative;
  margin: 0;
  color: var(--teal-pale);
  font-size: 18px;
}

.page-hero p strong {
  color: #ffffff;
  font-weight: 600;
}

/* ---------- Announcement ---------- */

.announcement {
  background: var(--green-tint);
  border-bottom: 1px solid #cbe8d4;
  font-size: 15px;
}

.announcement__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 13px;
}

.announcement__tag {
  flex: none;
  background: var(--green);
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 14px;
  font-size: 13px;
  font-weight: 700;
}

.announcement__close {
  margin-inline-start: auto;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Video ---------- */

.video-section {
  padding-block: 72px 64px;
}

.video-section .section-title {
  margin-bottom: 8px;
}

.video-section__sub {
  margin: 0 0 30px;
  font-size: 16px;
  color: var(--muted);
}

.video-frame {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--teal-light), var(--teal-dark));
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- About ---------- */

.about {
  padding-block: 24px 70px;
}

.about .section-title {
  margin-bottom: 20px;
}

.about p {
  margin: 0 auto;
  max-width: 880px;
  font-size: 17px;
  line-height: 1.9;
}

/* ---------- Vision / mission ---------- */

.vision__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 44px;
  align-items: center;
  text-align: right;
}

.vision__cards {
  display: grid;
  gap: 22px;
}

.vision__cards .card {
  padding: 30px 34px;
}

.vision__cards h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--teal);
}

.vision__cards p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.vision__illust img {
  display: block;
  width: 100%;
  border-radius: 16px;
}

/* ---------- Goals ---------- */

.goals__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  text-align: right;
}

.goal {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 22px;
}

.goal__num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-weight: 700;
}

.goal p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
}

/* ---------- Values ---------- */

.values .section-title {
  margin-bottom: 40px;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.value__icon {
  flex: none;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value strong {
  display: block;
  font-size: 17px;
}

.value p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Educational content ---------- */

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  text-align: right;
  max-width: 1080px;
  margin: 0 auto;
}

.feature {
  padding: 28px 30px;
  display: flex;
  gap: 18px;
}

.feature__icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- Admission notice ---------- */

.notice {
  max-width: 940px;
  margin: 0 auto;
  padding: 38px 42px;
  text-align: right;
}

.notice h2 {
  margin: 0 0 22px;
  font-size: 26px;
  color: var(--teal);
}

.notice p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.9;
}

.notice p:last-child {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.notice p strong {
  color: var(--teal);
}

/* ---------- CTA ---------- */

.cta {
  background: linear-gradient(150deg, var(--teal-light), var(--teal-dark));
}

.cta__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 56px;
}

.cta h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.5;
}

.cta h2 span {
  display: block;
  font-size: 17px;
  font-weight: 400;
  color: var(--teal-pale);
  margin-top: 6px;
}

.cta .store-links {
  flex: none;
}

/* ---------- Coming soon ---------- */

.soon-section {
  background: var(--surface);
  padding-block: 90px;
}

.soon {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 48px;
  text-align: center;
}

.soon__icon {
  display: inline-flex;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--teal-tint);
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.soon h2 {
  margin: 0 0 12px;
  font-size: 30px;
  color: var(--teal);
}

.soon p {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.9;
}

.contact-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 15.5px;
  flex-wrap: wrap;
}

.contact-row a,
.contact-row strong {
  color: var(--teal);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.faq__group h2 {
  margin: 0 0 18px;
  font-size: 24px;
  color: var(--teal);
}

.faq__list {
  display: grid;
  gap: 12px;
}

.faq__item {
  border-radius: 14px;
  overflow: hidden;
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.faq__mark {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.faq__q-text {
  flex: 1;
}

.faq__chev {
  flex: none;
  color: var(--teal);
  font-size: 13px;
  transition: transform .2s ease;
}

.faq__item.is-open .faq__chev {
  transform: rotate(180deg);
}

.faq__a {
  display: none;
  margin: 0;
  padding: 0 64px 20px 22px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}

.faq__item.is-open .faq__a {
  display: block;
}

.faq__contact {
  border: 1.5px solid #cfe4e5;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.faq__contact h3 {
  margin: 0;
  font-size: 19px;
  color: var(--teal);
}

.faq__contact .contact-row {
  justify-content: flex-start;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 920px;
  margin: 0 auto;
  padding: 42px 46px;
  text-align: right;
  font-size: 15.5px;
  line-height: 1.95;
}

.legal > div,
.legal > ul {
  margin-top: 16px;
}

.legal > :first-child {
  margin-top: 0;
}

.legal ul {
  padding-inline-start: 26px;
}

.legal li {
  margin-bottom: 8px;
}

.legal .mt-6 {
  margin-top: 20px;
}

.legal .mt-12 {
  margin-top: 28px;
}

.legal .font-bold {
  font-weight: 700;
  color: var(--teal);
  font-size: 17px;
  margin-top: 28px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-dark);
  color: var(--teal-pale);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 44px;
  padding-block: 52px;
}

.site-footer .brand {
  gap: 12px;
  margin-bottom: 16px;
}

.site-footer .brand__logo {
  height: 42px;
}

.site-footer .brand__seal {
  width: 52px;
  height: 52px;
}

.site-footer p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
}

.site-footer h4 {
  margin: 0 0 16px;
  font-size: 17px;
  color: #ffffff;
}

.site-footer__list {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}

.site-footer a {
  color: var(--teal-pale);
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer__list strong {
  color: #ffffff;
  font-size: 17px;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}

.social a:hover {
  background: rgba(255, 255, 255, .28);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  padding: 16px;
  font-size: 13.5px;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }

  .site-header__bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 4px;
    border-top: 1px solid #edf2f4;
    font-size: 15px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 8px 0;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 32px;
  }

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

  .values__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 32px;
  }

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

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  html {
    scroll-padding-top: 64px;
  }

  .site-header__bar {
    padding-block: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand__logo {
    height: 36px;
  }

  .brand__seal {
    width: 34px;
    height: 34px;
  }

  .section {
    padding-block: 44px;
  }

  .section--alt {
    padding-block: 40px;
  }

  .section-title {
    margin-bottom: 22px;
    font-size: 23px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 40px 44px;
    text-align: center;
  }

  .hero h1 {
    margin-bottom: 12px;
    font-size: 32px;
  }

  .hero__lead {
    margin-bottom: 22px;
    font-size: 15.5px;
    line-height: 1.9;
  }

  .hero__note {
    margin: 16px 0 26px;
    font-size: 12.5px;
  }

  .hero__devices .hero__floating {
    display: none;
  }

  .hero__devices .hero__phone {
    display: block;
    width: 170px;
    margin: 0 auto;
  }

  .store-links {
    justify-content: center;
    gap: 10px;
  }

  .store-badge {
    gap: 7px;
    border-radius: 9px;
    padding: 7px 13px;
  }

  .store-badge svg {
    width: 18px;
    height: 18px;
  }

  .store-badge__text small {
    font-size: 8px;
  }

  .store-badge__text b {
    font-size: 13px;
  }

  .page-hero {
    padding-block: 48px 56px;
  }

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

  .page-hero p {
    font-size: 14.5px;
  }

  .announcement {
    font-size: 13px;
    line-height: 1.7;
  }

  .announcement__bar {
    align-items: flex-start;
    gap: 10px;
    padding-block: 12px;
  }

  .announcement__tag {
    padding: 1px 10px;
    font-size: 11.5px;
    margin-top: 2px;
  }

  .announcement__close {
    font-size: 15px;
    padding: 2px;
  }

  .video-section {
    padding-block: 44px 36px;
  }

  .video-section .section-title {
    margin-bottom: 6px;
  }

  .video-section__sub {
    margin-bottom: 18px;
    font-size: 13.5px;
  }

  .video-frame {
    border-radius: 12px;
  }

  .about {
    padding-block: 8px 40px;
  }

  .about .section-title {
    margin-bottom: 14px;
  }

  .about p {
    font-size: 14.5px;
  }

  .vision__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .vision__illust {
    order: -1;
  }

  .vision__cards {
    gap: 16px;
  }

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

  .vision__cards h3 {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .vision__cards p {
    font-size: 14px;
  }

  .goals__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .goal {
    gap: 12px;
    border-radius: 12px;
    padding: 16px;
  }

  .goal__num {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 14px;
  }

  .goal p {
    font-size: 14px;
  }

  .values .section-title {
    margin-bottom: 24px;
  }

  .values__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .value {
    flex-direction: row;
    gap: 16px;
    text-align: right;
  }

  .value__icon {
    width: 58px;
    height: 58px;
  }

  .value__icon svg {
    width: 26px;
    height: 26px;
  }

  .value strong {
    font-size: 15px;
  }

  .value p {
    margin-top: 2px;
    font-size: 13px;
  }

  .features__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .feature {
    border-radius: 14px;
    padding: 20px;
    gap: 14px;
  }

  .feature__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .feature__icon svg {
    width: 22px;
    height: 22px;
  }

  .feature h3 {
    margin-bottom: 4px;
    font-size: 15.5px;
  }

  .feature p {
    font-size: 13px;
  }

  .notice {
    border-radius: 14px;
    padding: 24px;
  }

  .notice h2 {
    margin-bottom: 16px;
    font-size: 19px;
  }

  .notice p {
    margin-bottom: 14px;
    font-size: 13.5px;
  }

  .notice p:last-child {
    font-size: 13px;
  }

  .cta__bar {
    flex-direction: column;
    gap: 18px;
    padding-block: 36px;
    text-align: center;
  }

  .cta h2 {
    font-size: 22px;
  }

  .cta h2 span {
    font-size: 13.5px;
  }

  .soon-section {
    padding-block: 44px;
  }

  .soon {
    padding: 40px 22px;
  }

  .soon__icon {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
  }

  .soon h2 {
    font-size: 24px;
  }

  .soon p {
    margin-bottom: 22px;
    font-size: 14.5px;
  }

  .contact-row {
    gap: 12px 20px;
    font-size: 14px;
  }

  .faq {
    gap: 30px;
  }

  .faq__group h2 {
    margin-bottom: 14px;
    font-size: 19px;
  }

  .faq__q {
    gap: 10px;
    padding: 14px 16px;
    font-size: 14.5px;
  }

  .faq__a {
    padding: 0 54px 16px 16px;
    font-size: 13.5px;
  }

  .faq__contact {
    padding: 22px;
    gap: 14px;
  }

  .faq__contact h3 {
    font-size: 16.5px;
  }

  .legal {
    padding: 24px 20px;
    font-size: 14px;
  }

  .legal .font-bold {
    font-size: 15.5px;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-block: 36px 28px;
  }

  .site-footer .brand {
    gap: 10px;
    margin-bottom: 12px;
  }

  .site-footer .brand__logo {
    height: 34px;
  }

  .site-footer .brand__seal {
    width: 40px;
    height: 40px;
  }

  .site-footer p {
    font-size: 13px;
  }

  .site-footer h4 {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .site-footer__list {
    gap: 8px;
    font-size: 13.5px;
  }

  .site-footer__list strong {
    font-size: 15px;
  }

  .social {
    margin-top: 14px;
  }

  .social a {
    width: 32px;
    height: 32px;
  }

  .social svg {
    width: 15px;
    height: 15px;
  }

  .site-footer__bottom {
    padding: 14px;
    font-size: 12px;
  }
}
