/*
Theme Name: Nandere Secondary School
Description: A light visual refinement of Blocksy for Nandere Secondary School.
Author: Nandere Secondary School
Template: blocksy
Version: 1.0.0
Text Domain: nanderess
*/

:root {
  --nad-blue: #064b7c;
  --nad-blue-dark: #032f50;
  --nad-cyan: #24a7ed;
  --nad-olive: #9b9411;
  --nad-ink: #12181c;
  --nad-muted: #61707b;
  --nad-soft: #f8f6ef;
  --nad-line: #e4e9ed;
  --nad-white: #ffffff;
}

/* Academics and post sections remain fully editable Elementor elements. */
.nad-section.e-con,
.nad-post-section.e-con {
  width: 100%;
  max-width: none;
  padding: 96px 24px;
}

.nad-inner.e-con {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin-inline: auto;
  padding: 0;
  gap: 28px;
}

.nad-narrow.e-con {
  width: min(100%, 780px);
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

.nad-eyebrow {
  color: var(--nad-olive);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nad-display .elementor-heading-title {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  color: var(--nad-white);
  letter-spacing: -.035em;
}

.nad-section-title .elementor-heading-title {
  color: var(--nad-ink);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.nad-lead,
.nad-lead p {
  color: var(--nad-muted);
  font-size: 19px;
  line-height: 1.75;
}

.nad-hero.e-con {
  min-height: 590px;
  justify-content: center;
  background-position: center 38%;
  background-size: cover;
  isolation: isolate;
}

.nad-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(2, 34, 57, .9) 0%, rgba(3, 48, 80, .7) 52%, rgba(3, 48, 80, .3) 100%);
}

.nad-hero .nad-inner {
  align-items: flex-start;
}

.nad-hero-copy.e-con {
  max-width: 770px;
  align-items: flex-start;
  gap: 19px;
}

.nad-hero .nad-eyebrow,
.nad-hero .nad-lead,
.nad-hero .nad-lead p {
  color: var(--nad-white);
}

.nad-button .elementor-button {
  padding: 16px 26px;
  border-radius: 4px;
  background: var(--nad-cyan);
  color: #062842;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

.nad-button .elementor-button:hover {
  background: var(--nad-white);
  color: var(--nad-blue);
  transform: translateY(-2px);
}

.nad-soft {
  background: var(--nad-soft);
}

.nad-blue {
  background: var(--nad-blue);
}

.nad-grid.e-con {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}

.nad-card.e-con {
  height: 100%;
  padding: 34px;
  gap: 14px;
  border: 1px solid var(--nad-line);
  border-top: 4px solid var(--nad-olive);
  border-radius: 8px;
  background: var(--nad-white);
  box-shadow: 0 18px 50px rgba(23, 48, 64, .08);
}

.nad-card .elementor-icon-box-icon {
  margin-bottom: 12px;
}

.nad-card .elementor-icon {
  color: var(--nad-olive);
  fill: var(--nad-olive);
}

.nad-card .elementor-icon-box-title {
  margin-bottom: 10px;
  color: var(--nad-ink);
}

.nad-card .elementor-icon-box-description {
  color: var(--nad-muted);
  line-height: 1.65;
}

.nad-split.e-con {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.nad-split-copy.e-con {
  align-items: flex-start;
  gap: 18px;
}

.nad-photo.e-con {
  min-height: 480px;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
  box-shadow: 22px 22px 0 var(--nad-soft);
}

.nad-checklist ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.nad-checklist li {
  position: relative;
  margin: 0 0 13px;
  padding-left: 30px;
  color: var(--nad-ink);
}

.nad-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--nad-olive);
  font-weight: 900;
}

.nad-journey.e-con {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.nad-step.e-con {
  padding: 30px 26px;
  border-left: 3px solid var(--nad-cyan);
  background: rgba(255, 255, 255, .08);
}

.nad-step .elementor-heading-title,
.nad-step .elementor-widget-text-editor,
.nad-step .elementor-widget-text-editor p,
.nad-blue .nad-section-title .elementor-heading-title,
.nad-blue .nad-lead,
.nad-blue .nad-lead p {
  color: var(--nad-white);
}

.nad-step .elementor-heading-title {
  font-size: 23px;
}

.nad-cta.e-con {
  padding-top: 82px;
  padding-bottom: 82px;
  background: linear-gradient(120deg, var(--nad-blue) 0%, #0872aa 100%);
}

.nad-cta .nad-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.nad-cta .elementor-heading-title,
.nad-cta .elementor-widget-text-editor,
.nad-cta .elementor-widget-text-editor p {
  color: var(--nad-white);
}

/* Elementor-built news article interiors. */
.nad-post-hero.e-con {
  padding-top: 86px;
  padding-bottom: 64px;
  background: var(--nad-soft);
}

.nad-post-body.e-con {
  padding-top: 72px;
  padding-bottom: 72px;
}

.nad-post-body .nad-inner {
  max-width: 820px;
}

.nad-post-body .elementor-widget-text-editor,
.nad-post-body .elementor-widget-text-editor p,
.nad-post-body .elementor-widget-text-editor li {
  color: #344650;
  font-size: 18px;
  line-height: 1.8;
}

.nad-post-image img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 9px;
}

/* Footer redesign: clear contrast, generous spacing, and responsive alignment. */
#footer.ct-footer {
  display: none !important;
}

.ct-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #02253f 0%, #064b7c 70%, #075b8e 100%);
  color: rgba(255, 255, 255, .86);
}

.nad-site-footer-main.e-con {
  width: 100%;
  max-width: none;
  padding: 68px 28px 54px;
}

.nad-site-footer-inner.e-con {
  width: min(100%, 1290px);
  max-width: 1290px;
  margin-inline: auto;
  padding: 0;
}

.nad-site-footer-grid.e-con {
  display: grid;
  grid-template-columns: 2fr 1fr 1.35fr;
  align-items: start;
  gap: 64px;
}

.nad-footer-col.e-con {
  align-items: flex-start;
  gap: 13px;
}

.nad-footer-about.e-con {
  max-width: 480px;
}

.nad-footer-logo img {
  width: 92px;
  height: auto;
  padding: 8px;
  border-radius: 7px;
  background: var(--nad-white);
}

.nad-footer-heading .elementor-heading-title {
  color: var(--nad-white);
  font-size: 19px;
  line-height: 1.3;
}

.nad-site-footer .elementor-widget-text-editor,
.nad-site-footer .elementor-widget-text-editor p,
.nad-site-footer .elementor-widget-text-editor li {
  color: rgba(255, 255, 255, .82);
  line-height: 1.72;
}

.nad-site-footer .elementor-widget-text-editor p {
  margin-bottom: 8px;
}

.nad-site-footer a {
  color: #c9edff;
}

.nad-site-footer a:hover {
  color: var(--nad-white);
}

.nad-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nad-footer-links li {
  margin-bottom: 8px;
}

.nad-site-footer-bottom.e-con {
  width: 100%;
  max-width: none;
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .16);
}

.nad-site-footer-bottom-inner.e-con {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.nad-site-footer-bottom .elementor-widget-text-editor,
.nad-site-footer-bottom .elementor-widget-text-editor p {
  margin: 0;
  font-size: 13px;
}

.ct-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--nad-olive), var(--nad-cyan));
}

.ct-footer [data-row="middle"] {
  padding-top: 68px;
  padding-bottom: 54px;
}

.ct-footer .ct-container {
  gap: 48px;
}

.ct-footer .widget-title {
  color: var(--nad-white) !important;
  font-size: 18px !important;
  letter-spacing: .03em;
}

.ct-footer p,
.ct-footer li,
.ct-footer .textwidget {
  color: rgba(255, 255, 255, .82);
  line-height: 1.75;
}

.ct-footer a {
  color: #c9edff;
  text-decoration: none;
}

.ct-footer a:hover {
  color: var(--nad-white);
}

.ct-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-footer li {
  margin-bottom: 9px;
}

.nad-footer-brand img {
  width: 92px;
  height: auto;
  margin-bottom: 18px;
  padding: 8px;
  border-radius: 7px;
  background: var(--nad-white);
}

.nad-footer-brand strong {
  display: block;
  margin-bottom: 10px;
  color: var(--nad-white);
  font-size: 20px;
}

.nad-footer-contact span {
  display: block;
  margin-bottom: 10px;
}

.ct-footer [data-row="bottom"] {
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .16);
}

.ct-footer [data-row="bottom"] * {
  color: rgba(255, 255, 255, .82);
}

.footer-powered-by {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.footer-powered-by .renu-link {
  color: var(--nad-white);
  font-weight: 800;
}

@media (max-width: 1024px) {
  .nad-section.e-con,
  .nad-post-section.e-con {
    padding: 76px 28px;
  }

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

  .nad-split.e-con {
    gap: 44px;
  }

  .nad-journey.e-con {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nad-site-footer-grid.e-con {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
  }
}

@media (max-width: 767px) {
  .nad-section.e-con,
  .nad-post-section.e-con {
    padding: 62px 20px;
  }

  .nad-hero.e-con {
    min-height: 520px;
    padding-top: 86px;
    padding-bottom: 86px;
    background-position: 57% center;
  }

  .nad-hero::before {
    background: rgba(2, 34, 57, .78);
  }

  .nad-hero-copy.e-con,
  .nad-split-copy.e-con {
    align-items: center;
    text-align: center;
  }

  .nad-grid.e-con,
  .nad-split.e-con,
  .nad-journey.e-con,
  .nad-cta .nad-inner {
    grid-template-columns: 1fr;
  }

  .nad-grid.e-con,
  .nad-journey.e-con {
    gap: 20px;
  }

  .nad-card.e-con {
    padding: 30px 24px;
    text-align: center;
  }

  .nad-photo.e-con {
    min-height: 330px;
    order: -1;
    box-shadow: 12px 12px 0 var(--nad-soft);
  }

  .nad-cta .nad-inner {
    justify-items: center;
    text-align: center;
  }

  .ct-footer [data-row="middle"] {
    padding-top: 52px;
    padding-bottom: 38px;
  }

  .ct-footer .ct-container,
  .ct-footer .ct-widget,
  .ct-footer .widget-title,
  .ct-footer .textwidget {
    text-align: center;
  }

  .nad-footer-brand img {
    margin-inline: auto;
  }

  .footer-powered-by {
    justify-content: center;
  }

  .nad-site-footer-main.e-con {
    padding: 52px 22px 38px;
  }

  .nad-site-footer-grid.e-con {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
  }

  .nad-footer-col.e-con {
    align-items: center;
    text-align: center;
  }

  .nad-site-footer-bottom.e-con {
    padding: 22px;
  }

  .nad-site-footer-bottom-inner.e-con {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
}
