
/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Google Sans", Arial, sans-serif;
    color: var(--dark);
    background: #fff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    transition: 0.3s ease;
}

.container {
    width: min(1180px, 90%);
    margin: auto;
}

section {
    padding: 110px 0;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --green: #04662d;
    --green-dark: #03451f;
    --gold: #c2a607;
    --gold-light: #e2c832;
    --cream: #f8f7f1;
    --light: #f5f6f4;
    --dark: #111814;
    --text: #000000;
    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}



/* =========================================================
   HEADER / RESPONSIVE NAVIGATION
========================================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header .main-nav {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 6%;
    position: relative;
    z-index: 1001;
    box-sizing: border-box;
}

/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.header .nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.header .nav-links ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.header .nav-links ul li {
    list-style: none;
    position: relative;
}

.header .nav-links ul li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    position: relative;
    transition: color 0.3s ease;
}

.header .nav-links ul li a:hover,
.header .nav-links ul li.active a {
    color: var(--gold-light);
}

/* Gold underline */

.header .nav-links ul li a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    height: 2px;
    background: var(--gold-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.header .nav-links ul li a:hover::after,
.header .nav-links ul li.active a::after {
    transform: scaleX(1);
}

/* =========================================================
   HAMBURGER BUTTON
========================================================= */

.header .menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 1px solid rgba(226, 200, 50, 0.65);
    border-radius: 8px;
    background: var(--green-dark);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1010;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.header .menu-toggle:hover {
    background: var(--green);
}

.header .menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 3px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

/* Animate hamburger into X */

.header .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.header .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   MOBILE / TABLET NAVIGATION
========================================================= */

@media (max-width: 1100px) {

    .header .main-nav {
        min-height: 80px;
        padding: 12px 5%;
    }

    /* Show hamburger */

    .header .menu-toggle {
        display: flex;
    }

    /* Dropdown panel */

    .header .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 5%;
        right: 5%;
        width: auto;
        transform: translateY(-10px);
        display: block;
        white-space: normal;

        background: var(--green-dark);
        border: 1px solid rgba(226, 200, 50, 0.45);
        border-radius: 12px;
        padding: 12px;

        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);

        visibility: hidden;
        opacity: 0;
        pointer-events: none;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;

        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    /* Open dropdown */

    .header .nav-links.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .header .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        width: 100%;
    }

    .header .nav-links ul li {
        width: 100%;
    }

    .header .nav-links ul li a {
        color: var(--white);
        display: block;
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 7px;
    }

    .header .nav-links ul li a::after {
        display: none;
    }

    .header .nav-links ul li a:hover,
    .header .nav-links ul li.active a {
        color: var(--gold-light);
        background: rgba(226, 200, 50, 0.1);
    }

    /* Keep the existing circular logo */

    .header .logo {
        width: 76px;
        height: 76px;
        padding: 6px;
    }
}

/* =========================================================
   SMALL MOBILE SCREENS
========================================================= */

@media (max-width: 480px) {

    .header .main-nav {
        min-height: 72px;
        padding: 10px 5%;
    }

    .header .logo {
        width: 65px;
        height: 65px;
    }

    .header .menu-toggle {
        width: 44px;
        height: 44px;
    }

    .header .nav-links {
        left: 4%;
        right: 4%;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .header .menu-toggle span,
    .header .nav-links,
    .header .nav-links ul li a {
        transition: none;
    }
}


/* =========================================================
   PREMIUM SCHOOL LOGO
========================================================= */

.logo {
    width: 100px;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 1005;

    padding: 7px;

    background: rgba(255, 255, 255, 0.96);

    border-radius: 50%;

    border: 2px solid var(--gold-light);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 0 0 5px rgba(255, 255, 255, 0.10);

    backdrop-filter: blur(8px);

    flex-shrink: 0;

    transition: all 0.35s ease;
}

.logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    position: relative;
    z-index: 2;

    transition: transform 0.35s ease;
}

/* Hover */

.logo:hover {
    transform: translateY(-2px) scale(1.03);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.30),
        0 0 0 6px rgba(226, 200, 50, 0.15);
}

.logo:hover img {
    transform: scale(1.04);
}

/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;

    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(3, 22, 12, 0.90),
            rgba(3, 22, 12, 0.55),
            rgba(3, 22, 12, 0.20)
        ),
        url("../Images/home/hero.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    color: #ffffff;

    overflow: hidden;
}

/* Extra overlay */

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.35)
        );

    pointer-events: none;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    position: relative;
    z-index: 2;

    width: min(1180px, 90%);

    margin: auto;

    padding-top: 90px;
}

.hero-eyebrow {
    display: inline-block;

    color: var(--gold-light);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(4rem, 8vw, 7rem);

    line-height: 0.95;

    margin: 0 0 30px;

    font-weight: 800;

    letter-spacing: -4px;
}

.hero h1 span {
    color: var(--gold-light);
}

.hero-content > p {
    max-width: 680px;

    font-size: 18px;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.88);

    margin-bottom: 40px;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-buttons {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;

    align-items: center;

    gap: 18px;

    background: var(--gold);

    color: white;

    padding: 16px 28px;

    text-decoration: none;

    font-weight: 700;
}

.hero-btn:hover {
    background: var(--gold-light);

    color: white;

    transform: translateY(-4px);

    box-shadow:
        0 15px 30px rgba(194, 166, 7, 0.3);
}

.hero-btn-outline {
    display: inline-flex;

    align-items: center;

    padding: 15px 28px;

    border: 1px solid rgba(255, 255, 255, 0.7);

    color: white;

    text-decoration: none;

    font-weight: 600;

    backdrop-filter: blur(10px);
}

.hero-btn-outline:hover {
    background: white;

    color: var(--dark);
}


/* =========================================================
   HERO SCROLL
========================================================= */

.hero-scroll {
    margin-top: 70px;

    display: flex;

    align-items: center;

    gap: 12px;
}

.hero-scroll span {
    display: block;

    width: 35px;

    height: 1px;

    background: var(--gold);
}

.hero-scroll p {
    margin: 0;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 2px;

    opacity: 0.8;
}


/* =========================================================
   HERO STATS
========================================================= */

.hero-bottom {
    position: absolute;

    bottom: 0;
    right: 0;

    z-index: 3;

    display: flex;

    align-items: center;

    background: rgba(3, 69, 31, 0.95);

    padding: 28px 45px;

    gap: 45px;
}

.hero-bottom div {
    display: flex;

    flex-direction: column;
}

.hero-bottom strong {
    font-size: 28px;

    color: var(--gold-light);
}

.hero-bottom span {
    font-size: 12px;

    opacity: 0.75;

    margin-top: 5px;
}

/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;

  gap: 40px;

  margin-bottom: 55px;
}

.section-heading.centered {
  display: block;

  text-align: center;

  max-width: 760px;

  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  color: var(--gold);

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 2.5px;

  text-transform: uppercase;
}

.section-heading h2,
.welcome-text h2,
.facility-header h2,
.portal-text h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);

  line-height: 1.05;

  letter-spacing: -2px;

  margin: 12px 0 20px;
}

.section-heading h2 span,
.welcome-text h2 span,
.facility-header h2 span,
.portal-text h2 span,
.final-cta h2 span {
  color: var(--green);
}

.section-heading p {
  max-width: 650px;

  color: var(--text);

  line-height: 1.8;
  
}


/* =========================================================
   HEAD'S WELCOME
========================================================= */

.heads-welcome {
  background: rgb(238, 234, 234);
}

.welcome-grid {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 90px;

  align-items: center;
}

.welcome-photo {
  position: relative;
  
}

.welcome-photo img {
  width: 100%;

  height: 620px;

  object-fit: cover;

}

.photo-label {
  position: absolute;

  left: 25px;
  bottom: 25px;

  background: white;

  padding: 20px 25px;

  max-width: 280px;

  box-shadow: var(--shadow);
}

.photo-label span {
  display: block;

  color: var(--gold);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 2px;

  margin-bottom: 6px;
}

.photo-label strong {
  font-size: 16px;
}

.welcome-text .lead {
  font-size: 20px;

  line-height: 1.7;

  color: #000000;
}

.welcome-text p {
  line-height: 1.9;

  color: var(--text);
}

.welcome-signature {
  margin: 35px 0;

  padding-left: 20px;

  border-left: 3px solid var(--gold);
}

.welcome-signature strong {
  display: block;

  color: var(--green);

  margin-bottom: 5px;
}

.welcome-signature span {
  font-size: 13px;

  color: #000000;
}

.text-link {
  color: var(--green);

  font-weight: 700;

  text-decoration: none;
}

.text-link:hover {
  color: var(--gold);
}


/* =========================================================
   WHY Z8
========================================================= */

.why-z8 {
  background: var(--white);
}

.why-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}

.why-card {
  background: #04662d;

  padding: 40px 30px;

  position: relative;

  border-bottom: 3px solid transparent;

  transition: 0.4s;
}

.why-card:hover {
  transform: translateY(-8px);

  border-bottom-color: var(--gold);

  box-shadow: var(--shadow);
}

.why-number {
  position: absolute;

  right: 25px;
  top: 20px;

  font-size: 11px;

  color: #ffffff;

  font-weight: 700;
}

.why-icon {
  color: var(--gold);

  font-size: 30px;

  margin-bottom: 30px;
}

.why-card h3 {
  font-size: 21px;

  margin-bottom: 15px;
}

.why-card p {
  color: white;

  line-height: 1.7;

  font-size: 14px;
}

.why-choose-intro {
    max-width: 680px;
    margin: 0 auto 55px;
    text-align: center;
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.2px;
}
/* =========================================================
   HIGHLIGHTS
========================================================= */

.highlights {
  background: rgb(238, 234, 234);
}

.highlight-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}



.highlight-card {
  min-height: 260px;

  padding: 35px;

  background: var(--light);

  position: relative;

  overflow: hidden;

  transition: 0.4s;
}

.highlight-card.large {
  grid-column: span 2;
  grid-row: span 2;

  padding: 0;
}

.highlight-card.large img {
  width: 100%;
  height: 100%;

  min-height: 540px;

  object-fit: cover;
}

.highlight-overlay {
  position: absolute;

  inset: 0;

  display: flex;

  flex-direction: column;

  justify-content: end;

  padding: 35px;

  color: white;

  background:
    linear-gradient(
      transparent 25%,
      rgba(0,0,0,0.85)
    );
}

.highlight-overlay span {
  color: var(--gold-light);

  font-size: 12px;

  margin-bottom: 10px;
}

.highlight-overlay h3 {
  font-size: 28px;

  margin: 0 0 10px;
}

.highlight-overlay p {
  max-width: 500px;

  line-height: 1.7;

  margin: 0;
}

.highlight-icon {
  color: var(--gold);

  font-size: 30px;

  margin-bottom: 30px;
}

.highlight-card:not(.large):hover {
  transform: translateY(-8px);

  background: var(--green);

  color: white;
}

.highlight-card:not(.large):hover p {
  color: rgba(255,255,255,0.75);
}

/* =========================================================
   PREMIUM STATS
========================================================= */

.stats {
    position: relative;

    background: var(--green);

    padding: 95px 6%;

    overflow: hidden;
}


/* =========================================================
   BACKGROUND DETAIL
========================================================= */

.stats::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -250px;
    right: -150px;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 50%;
}

.stats::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    bottom: -220px;
    left: -120px;

    border: 1px solid rgba(255,255,255,0.06);

    border-radius: 50%;
}


/* =========================================================
   GRID
========================================================= */

.stats-grid {
    position: relative;
    z-index: 2;

    max-width: 1300px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);
}


/* =========================================================
   STAT
========================================================= */

.stat {
    position: relative;

    padding: 10px 35px;

    text-align: center;
}


/* =========================================================
   DIVIDER
========================================================= */

.stat:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 15%;
    right: 0;

    width: 1px;
    height: 70%;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(255,255,255,0.25),
            transparent
        );
}


/* =========================================================
   NUMBER
========================================================= */

.stat strong {
    display: block;

    font-size: clamp(3rem, 5vw, 5rem);

    line-height: 1;

    font-weight: 700;

    letter-spacing: -2px;

    color: white;

    transition:
        transform 0.4s ease,
        color 0.4s ease;
}


/* Gold + */

.stat strong span {
    color: var(--gold-light);

    margin-left: 3px;
}


/* =========================================================
   LABEL
========================================================= */

.stat p {
    margin: 18px 0 0;

    color: rgba(255,255,255,0.72);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* =========================================================
   HOVER
========================================================= */

.stat:hover strong {
    transform: translateY(-5px);

    color: var(--gold-light);
}


/* =========================================================
   ACADEMICS
========================================================= */

.academics {
    background: var(--cream);
}


/* =========================================================
   ACADEMIC GRID
========================================================= */

.academic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/* =========================================================
   ACADEMIC CARD
========================================================= */

.academic-card {
    position: relative;

    height: 520px;

    display: block;

    overflow: hidden;

    text-decoration: none;
    color: white;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

.academic-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   IMAGE
========================================================= */

.academic-image {
    position: absolute;
    inset: 0;

    height: 100%;

    overflow: hidden;
}

.academic-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.8s ease,
        filter 0.6s ease;
}

.academic-card:hover .academic-image img {
    transform: scale(1.08);
}


/* =========================================================
   DARK IMAGE OVERLAY
========================================================= */

.academic-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.62) 35%,
            rgba(0, 0, 0, 0.18) 70%,
            rgba(0, 0, 0, 0.02) 100%
        );

    z-index: 1;
}


/* =========================================================
   TEXT OVER IMAGE
========================================================= */

.academic-content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    padding: 38px;
}


/* =========================================================
   CATEGORY
========================================================= */

.academic-content span {
    display: inline-block;

    margin-bottom: 14px;

    padding: 7px 13px;

    background: var(--gold);

    color: white;

    border-radius: 50px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


/* =========================================================
   TITLE
========================================================= */

.academic-content h3 {
    margin: 0 0 12px;

    color: white;

    font-size: 30px;

    line-height: 1.1;

    font-weight: 700;

    letter-spacing: -0.5px;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.academic-content p {
    margin: 0;

    max-width: 500px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   CTA
========================================================= */

.academic-content strong {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

    color: white;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 0.5px;

    transition:
        gap 0.3s ease,
        color 0.3s ease;
}

.academic-card:hover .academic-content strong {
    gap: 17px;

    color: var(--gold);
}


.academic-intro {
    max-width: 680px;
    margin: 0 auto 50px;
    text-align: center;
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   STUDENT LIFE
========================================================= */

.student-life {
  background: var(--green-dark);
}

.light h2 {
  color: white;
}

.light h2 span {
  color: var(--gold-light);
}

.light p {
  color: rgba(255,255,255,0.7);
}

.life-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 15px;
}

.life-card {
  height: 450px;

  position: relative;

  overflow: hidden;

  text-decoration: none;

  color: white;
}

.life-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.6s;
}

.life-card::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      transparent 25%,
      rgba(0,0,0,0.85)
    );
}

.life-card:hover img {
  transform: scale(1.08);
}

.life-card > div {
  position: absolute;

  bottom: 0;
  left: 0;

  z-index: 2;

  padding: 30px;
}

.life-card span {
  color: var(--gold-light);

  font-size: 11px;
}

.life-card h3 {
  font-size: 27px;

  margin: 8px 0;
}

.life-card p {
  margin: 0;

  color: rgba(255,255,255,0.75);

  line-height: 1.6;
}


/* =========================================================
   FACILITIES
========================================================= */

.facilities {
  background: white;
}

.facility-header {
  display: grid;

  grid-template-columns: 1fr 0.7fr;

  gap: 80px;

  align-items: end;

  margin-bottom: 50px;
}

.facility-header p {
  line-height: 1.8;

  color: var(--text);

  margin-bottom: 25px;
}

.facility-gallery {
  display: grid;

  grid-template-columns: 2fr 1fr;

  grid-template-rows: repeat(2, 280px);

  gap: 15px;
}

.facility-main {
  grid-row: span 2;

  position: relative;

  overflow: hidden;
}

.facility-main img,
.facility-small img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.5s;
}

.facility-main:hover img,
.facility-small:hover img {
  transform: scale(1.05);
}

.facility-caption {
  position: absolute;

  bottom: 0;
  left: 0;

  right: 0;

  padding: 30px;

  color: white;

  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.facility-caption span {
  color: var(--gold-light);
}

.facility-caption h3 {
  margin: 8px 0 0;

  font-size: 26px;
}

.facility-small {
  position: relative;

  overflow: hidden;
}

.facility-small span {
  position: absolute;

  bottom: 20px;
  left: 20px;

  color: white;

  font-weight: 700;

  z-index: 2;
}


/* =========================================================
   NEWS
========================================================= */

.news {
  background: var(--cream);
}

.news-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.news-item {
  background: white;

  overflow: hidden;

  transition: 0.4s;
}

.news-item:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow);
}

.news-image {
  height: 260px;

  position: relative;

  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.5s;
}

.news-item:hover img {
  transform: scale(1.06);
}

.news-category {
  position: absolute;

  left: 20px;
  bottom: 20px;

  background: var(--gold);

  color: white;

  padding: 7px 12px;

  font-size: 10px;

  font-weight: 800;

  text-transform: uppercase;
}

.news-body {
  padding: 30px;
}

.news-date {
  font-size: 11px;

  color: var(--gold);

  font-weight: 700;
}

.news-body h3 {
  font-size: 23px;

  margin: 12px 0;
}

.news-body p {
  color: var(--text);

  line-height: 1.7;

  font-size: 14px;

  margin-bottom: 20px;
}


/* =========================================================
   EVENTS
========================================================= */

.events {
  background: white;
}

.events-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 15px;
}

.event-item {
  display: grid;

  grid-template-columns: 90px 1fr 40px;

  align-items: center;

  gap: 25px;

  padding: 25px;

  border: 1px solid var(--border);

  transition: 0.3s;
}

.event-item:hover {
  border-color: var(--gold);

  box-shadow: var(--shadow);
}

.event-date {
  background: var(--green);

  color: white;

  width: 80px;
  height: 80px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;
}

.event-date strong {
  font-size: 28px;

  line-height: 1;
}

.event-date span {
  color: var(--gold-light);

  font-size: 10px;

  font-weight: 700;

  margin-top: 5px;
}

.event-info > span {
  color: var(--gold);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 1px;
}

.event-info h3 {
  margin: 7px 0;

  font-size: 20px;
}

.event-info p {
  color: var(--text);

  font-size: 13px;

  margin: 0;
}

.event-arrow {
  color: var(--green);

  font-size: 22px;

  text-decoration: none;
}
/* =========================================================
   Z8 PREMIUM GALLERY
========================================================= */

.z8-gallery-preview {
    position: relative;
    background: var(--cream);
    padding: 100px 0;
    overflow: hidden;
}


/* =========================================================
   GALLERY HEADING
========================================================= */

.z8-gallery-preview .section-heading {
    margin-bottom: 38px;
}

.z8-gallery-preview .section-heading h2 {
    margin-bottom: 12px;
}


/* =========================================================
   GALLERY INTRO
========================================================= */

.z8-gallery-intro {
    max-width: 680px;
    margin: 0 auto;

    text-align: center;

    color: var(--text);

    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.2px;
}


/* =========================================================
   GALLERY GRID
========================================================= */

.z8-gallery-grid {
    display: grid;

    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: 240px 240px;

    gap: 14px;
}


/* =========================================================
   GALLERY ITEMS
========================================================= */

.z8-gallery-item {
    position: relative;

    display: block;

    height: 100%;

    overflow: hidden;

    background: #ddd;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08);

    text-decoration: none;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}


/* =========================================================
   FEATURED IMAGE
========================================================= */

.z8-gallery-item.z8-gallery-featured {
    grid-row: span 2;

    border: 2px solid rgba(201, 164, 76, 0.18);
}


/* =========================================================
   GALLERY IMAGES
========================================================= */

.z8-gallery-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(.2, .8, .2, 1),
        filter 0.5s ease;
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.z8-gallery-item::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.20) 45%,
            rgba(0, 0, 0, 0) 75%
        );

    opacity: 0.85;

    transition:
        opacity 0.4s ease;

    pointer-events: none;
}


/* =========================================================
   GALLERY LABEL
========================================================= */

.z8-gallery-item::before {
    content: "VIEW PHOTO";

    position: absolute;

    left: 24px;
    bottom: 22px;

    z-index: 3;

    color: #fff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    opacity: 0;

    transform: translateY(10px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


/* Featured image label */

.z8-gallery-featured::before {
    content: "SCHOOL LIFE";

    font-size: 14px;
    letter-spacing: 1.2px;
}


/* =========================================================
   HOVER IMAGE
========================================================= */

.z8-gallery-item:hover .z8-gallery-image {
    transform: scale(1.08);

    filter: saturate(1.08);
}


.z8-gallery-item:hover::after {
    opacity: 1;
}


.z8-gallery-item:hover::before {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   HOVER LIFT
========================================================= */

.z8-gallery-item:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   GALLERY BUTTON AREA
========================================================= */

.z8-gallery-button-wrap {
    text-align: center;

    margin-top: 45px;
}


/* =========================================================
   PREMIUM GALLERY BUTTON
========================================================= */

.z8-gallery-button {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 15px 30px;

    background: var(--green);

    color: #fff;

    border-radius: 50px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.3px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   BUTTON SHINE
========================================================= */

.z8-gallery-button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent
        );

    transform: skewX(-20deg);

    transition:
        left 0.6s ease;
}


.z8-gallery-button:hover::before {
    left: 130%;
}


/* =========================================================
   BUTTON HOVER
========================================================= */

.z8-gallery-button:hover {
    background: var(--gold);

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   QUICK ACCESS
========================================================= */

.quick-access {
  background: var(--green-dark);
}

.quick-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 15px;
}

.quick-card {
  position: relative;

  background: rgba(255,255,255,0.06);

  border: 1px solid rgba(255,255,255,0.12);

  padding: 35px;

  color: white;

  text-decoration: none;

  min-height: 210px;

  transition: 0.4s;
}

.quick-card:hover {
  background: var(--gold);

  transform: translateY(-5px);
}

.quick-card > span {
  color: var(--gold-light);

  font-size: 11px;
}

.quick-card h3 {
  font-size: 22px;

  margin: 25px 0 10px;
}

.quick-card p {
  color: rgba(255,255,255,0.65);

  font-size: 14px;

  line-height: 1.6;

  max-width: 260px;
}

.quick-card strong {
  position: absolute;

  right: 30px;
  bottom: 30px;

  font-size: 25px;
}


/* =========================================================
   SCHOOL PORTAL
========================================================= */

.portal {
  background: white;
}

.portal-grid {
  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 90px;

  align-items: center;
}

.portal-text p {
  color: var(--text);

  line-height: 1.8;

  max-width: 500px;

  margin-bottom: 30px;
}

.portal-cards {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.portal-card {
  display: grid;

  grid-template-columns: 50px 1fr 30px;

  align-items: center;

  gap: 20px;

  padding: 25px;

  border: 1px solid var(--border);

  text-decoration: none;

  color: var(--dark);

  transition: 0.3s;
}

.portal-card:hover {
  border-color: var(--gold);

  transform: translateX(8px);
}

.portal-card > span {
  color: var(--gold);

  font-weight: 700;

  font-size: 11px;
}

.portal-card h3 {
  margin: 0 0 5px;
}

.portal-card p {
  margin: 0;

  color: var(--text);

  font-size: 13px;
}

.portal-card strong {
  color: var(--green);
}


/* =========================================================
   FINAL CTA
========================================================= */

.final-cta {
  position: relative;

  background:
    linear-gradient(
      rgba(3,69,31,0.88),
      rgba(3,69,31,0.88)
    ),
    url("assets/Images/AfricaDay1.jpg");

  background-size: cover;
  background-position: center;

  color: white;

  text-align: center;
}

.cta-content {
  max-width: 850px;

  margin: auto;
}

.cta-content .section-tag {
  color: var(--gold-light);
}

.final-cta h2 {
  font-size: clamp(3rem, 6vw, 5.5rem);

  line-height: 1;

  letter-spacing: -3px;

  margin: 20px 0;
}

.final-cta h2 span {
  color: var(--gold-light);
}

.final-cta p {
  max-width: 650px;

  margin: 0 auto 35px;

  line-height: 1.8;

  color: rgba(255,255,255,0.8);
}

.cta-buttons {
  display: flex;

  justify-content: center;

  gap: 15px;

  flex-wrap: wrap;
}


/* =========================================================
   TAKAKUNDA PRIMARY SCHOOL
   NEWS & EVENTS HUB
========================================================= */


/* =========================================================
   HERO
========================================================= */

.news-hub-hero {

    position: relative;

    min-height: 620px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 140px 8% 100px;

    color: #fff;

    background:
        linear-gradient(
            rgba(4, 9, 30, 0.78),
            rgba(4, 9, 30, 0.88)
        ),
        url("../Images/kimberly-farmer-lUaaKCUANVI-unsplash.jpg");

    background-size: cover;

    background-position: center;
}


.news-hub-overlay {

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(4, 102, 45, 0.18),
            transparent 60%
        );

    pointer-events: none;
}


.news-hub-hero-content {

    position: relative;

    z-index: 2;

    max-width: 850px;

    margin: auto;
}


.news-eyebrow {

    display: inline-block;

    margin-bottom: 20px;

    color: #d5bc25;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 3px;
}


.news-hub-hero h1 {

    margin: 0 0 25px;

    font-size: clamp(48px, 7vw, 82px);

    line-height: 1;

    font-weight: 700;
}


.news-hub-hero p {

    max-width: 720px;

    margin: 0 auto 35px;

    color: rgba(255,255,255,0.88);

    font-size: 18px;

    line-height: 1.8;
}


.news-hero-status {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 12px 20px;

    border: 1px solid rgba(255,255,255,0.2);

    background: rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);

    font-size: 13px;

    font-weight: 600;

    letter-spacing: .5px;
}


.status-dot {

    width: 9px;

    height: 9px;

    border-radius: 50%;

    background: #d5bc25;

    box-shadow: 0 0 0 5px rgba(213,188,37,0.12);

}

/* =========================================================
   CHECK BACK
========================================================= */

.news-checkback {

    padding: 130px 8%;

    background: #f7f9f7;

    text-align: center;
}


.news-checkback-inner {

    max-width: 760px;

    margin: auto;
}


.checkback-icon {

    display: flex;

    justify-content: center;

    gap: 7px;

    margin-bottom: 35px;
}


.checkback-icon span {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #c2a607;

    animation: newsPulse 1.5s infinite ease-in-out;
}


.checkback-icon span:nth-child(2) {

    animation-delay: .2s;
}


.checkback-icon span:nth-child(3) {

    animation-delay: .4s;
}


@keyframes newsPulse {

    0%,
    100% {

        opacity: .35;

        transform: translateY(0);

    }

    50% {

        opacity: 1;

        transform: translateY(-5px);

    }
}


.news-checkback h2 {

    margin: 5px 0 20px;

    color: #1c2721;

    font-size: clamp(42px, 5vw, 62px);
}


.news-checkback p {

    max-width: 680px;

    margin: auto;

    color: #68726c;

    font-size: 17px;

    line-height: 1.85;
}


.checkback-divider {

    width: 55px;

    height: 3px;

    margin: 30px auto;

    background: #c2a607;
}


.news-checkback .checkback-small {

    color: #8a928d;

    font-size: 14px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  background: #08120d;

  color: white;

  padding: 80px 0 25px;
}

.footer-main {
  display: grid;

  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;

  gap: 60px;

  padding-bottom: 60px;

  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;

  align-items: center;

  gap: 15px;

  margin-bottom: 25px;
}

.logo-mark {
  width: 55px;
  height: 55px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: var(--gold);

  color: white;

  font-size: 20px;

  font-weight: 800;
}

.footer-logo strong {
  display: block;

  font-size: 16px;

  letter-spacing: 1px;
}

.footer-logo span {
  display: block;

  font-size: 9px;

  color: var(--gold-light);

  margin-top: 4px;
}

.footer-about > p {
  max-width: 380px;

  color: rgba(255,255,255,0.6);

  line-height: 1.8;

  font-size: 14px;
}

.footer-socials {
  display: flex;

  gap: 8px;

  margin-top: 25px;
}

.footer-socials a {
  width: 38px;
  height: 38px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.15);

  color: white;

  text-decoration: none;

  font-size: 12px;
}

.footer-socials a:hover {
  background: var(--gold);

  border-color: var(--gold);
}

.footer-column h3 {
  color: var(--gold-light);

  font-size: 13px;

  text-transform: uppercase;

  letter-spacing: 1.5px;

  margin: 0 0 20px;
}

.footer-column a,
.footer-column p {
  display: block;

  color: rgba(255,255,255,0.6);

  text-decoration: none;

  font-size: 13px;

  line-height: 1.7;

  margin: 0 0 10px;
}

.footer-column a:hover {
  color: var(--gold-light);

  transform: translateX(3px);
}

.footer-contact-title {
  margin-top: 30px !important;
}

.footer-bottom {
  padding-top: 25px;

  display: flex;

  justify-content: space-between;

  gap: 20px;

  flex-wrap: wrap;

  color: rgba(255,255,255,0.4);

  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);

  text-decoration: none;

  margin-left: 20px;
}

.footer-bottom a:hover {
  color: white;
}

/* =========================================================
   POWERED BY / WEBSITE CREDIT
========================================================= */

.z8-powered-by {
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 13px;
    line-height: 1.6;

    letter-spacing: 0.2px;

    text-align: center;
}


/* CraftsbyHamilton link */

.z8-powered-by a {
    position: relative;

    color: var(--gold);

    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.3s ease;
}


/* Elegant underline */

.z8-powered-by a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -3px;

    width: 100%;
    height: 1px;

    background: var(--gold);

    transform: scaleX(0);
    transform-origin: right;

    transition:
        transform 0.3s ease;
}


.z8-powered-by a:hover {
    color: #fff;
}


.z8-powered-by a:hover::after {
    transform: scaleX(1);

    transform-origin: left;
}


/* Divider */

.footer-divider {
    color: rgba(255, 255, 255, 0.25);

    margin: 0 3px;
}

/* =========================================================
   FOOTER — RESPONSIVE DESIGN
   Desktop, Tablet, Mobile & Small Mobile
========================================================= */

/* Prevent horizontal overflow */
.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer {
    width: 100%;
    overflow-wrap: anywhere;
}

.footer-main {
    width: 100%;
    min-width: 0;
}

.footer-about,
.footer-column {
    min-width: 0;
}

/* Keep long email addresses and links inside the layout */
.footer-column a,
.footer-column p,
.footer-about > p,
.footer-bottom p,
.footer-bottom a {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Smooth link transitions */
.footer-column a {
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

/* =========================================================
   TABLETS — 768px to 1024px
========================================================= */

@media (max-width: 1024px) {

    .site-footer {
        padding: 60px 24px 24px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 35px;
        padding-bottom: 40px;
    }

    .footer-about > p {
        max-width: 100%;
    }

    .footer-column h3 {
        margin-bottom: 16px;
    }

    .footer-contact-title {
        margin-top: 24px !important;
    }

    .footer-bottom {
        gap: 15px;
        padding-top: 22px;
    }

    .footer-bottom a {
        margin-left: 12px;
    }
}

/* =========================================================
   MOBILE — 481px to 767px
========================================================= */

@media (max-width: 767px) {

    .site-footer {
        padding: 45px 20px 22px;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer-logo {
        gap: 12px;
        margin-bottom: 18px;
    }

    .logo-mark {
        width: 46px;
        height: 46px;
        min-width: 46px;
        font-size: 18px;
    }

    .footer-logo strong {
        font-size: 15px;
        line-height: 1.5;
    }

    .footer-logo span {
        font-size: 9px;
        line-height: 1.5;
    }

    .footer-about > p {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.8;
    }

    .footer-socials {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
    }

    .footer-socials a {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .footer-column h3 {
        font-size: 12px;
        letter-spacing: 1.3px;
        margin-bottom: 14px;
    }

    .footer-column a,
    .footer-column p {
        font-size: 13px;
        line-height: 1.8;
        margin-bottom: 9px;
    }

    .footer-column a:hover {
        transform: none;
    }

    .footer-contact-title {
        margin-top: 22px !important;
    }

    /* Copyright and legal links */
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 14px;
        padding-top: 22px;
        font-size: 11px;
        line-height: 1.8;
    }

    .footer-bottom p {
        width: 100%;
        line-height: 1.8;
    }

    .footer-bottom a {
        display: inline-block;
        margin: 0 14px 0 0;
    }

    /* Website credit */
    .z8-powered-by {
        gap: 6px;
        font-size: 12px;
        line-height: 1.8;
        text-align: left;
        justify-content: flex-start;
    }

    .footer-divider {
        margin: 0 2px;
    }
}

/* =========================================================
   SMALL MOBILE — 320px to 480px
========================================================= */

@media (max-width: 480px) {

    .site-footer {
        padding: 35px 16px 18px;
    }

    .footer-main {
        gap: 28px;
        padding-bottom: 28px;
    }

    .footer-logo {
        align-items: center;
        gap: 10px;
    }

    .logo-mark {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 16px;
    }

    .footer-logo strong {
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    .footer-logo span {
        font-size: 8px;
        letter-spacing: 0.3px;
    }

    .footer-about > p {
        font-size: 13px;
        line-height: 1.8;
    }

    .footer-socials {
        gap: 8px;
    }

    .footer-socials a {
        width: 40px;
        height: 40px;
    }

    .footer-column h3 {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .footer-column a,
    .footer-column p {
        font-size: 12px;
        line-height: 1.8;
    }

    .footer-bottom {
        gap: 10px;
        padding-top: 18px;
        font-size: 10px;
    }

    .footer-bottom a {
        margin-right: 12px;
    }

    .z8-powered-by {
        font-size: 11px;
        gap: 5px;
    }
}

/* =========================================================
   EXTRA SMALL SCREENS — 320px and below
========================================================= */

@media (max-width: 360px) {

    .site-footer {
        padding-right: 12px;
        padding-left: 12px;
    }

    .footer-main {
        gap: 24px;
    }

    .footer-logo {
        gap: 8px;
    }

    .footer-logo strong {
        font-size: 13px;
    }

    .footer-logo span {
        font-size: 7px;
    }

    .footer-socials a {
        width: 36px;
        height: 36px;
    }

    .footer-bottom a {
        margin-right: 8px;
    }
}

/* =========================================================
   ACCESSIBILITY — REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .footer-column a,
    .z8-powered-by a,
    .z8-powered-by a::after {
        transition: none;
    }
}
