/*
Theme Name: SKTPP2 2026
Theme URI: https://sktpp2.techogre.com
Author: TechOgre
Description: Modern single-page school website for Sekolah Kebangsaan Taman Putra Perdana 2.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: sktpp2-2026
*/

:root {
  --ink: #10231f;
  --muted: #a2b1b1;
  --paper: #f7f4ec;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --green: #0c7a5b;
  --green-deep: #063f35;
  --lime: #b7d74b;
  --blue: #1b6bd8;
  --gold: #f0b43c;
  --coral: #ef6f5e;
  --line: rgba(16, 35, 31, 0.13);
  --shadow: 0 24px 70px rgba(16, 35, 31, 0.14);
  --radius: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(183, 215, 75, 0.34), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(27, 107, 216, 0.16), transparent 28rem),
    linear-gradient(180deg, #fbf8f0 0%, #edf6f0 55%, #f7f4ec 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

.site-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(247, 244, 236, 0.74);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 820;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: #fff;
  box-shadow: 0 12px 28px rgba(12, 122, 91, 0.24);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand span:last-child {
  max-width: 260px;
  line-height: 1.08;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.pill-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--green-deep);
  font-size: 0.92rem;
  font-weight: 740;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(12, 122, 91, 0.09);
}

.pill-button {
  color: #fff;
  background: var(--green-deep);
  box-shadow: 0 14px 32px rgba(6, 63, 53, 0.2);
}

.hero {
  width: min(100% - 32px, var(--max));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 54px 0 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
  align-items: center;
  gap: 36px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid rgba(12, 122, 91, 0.19);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(3.15rem, 8vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 670px;
  color: #31443d;
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 34px;
}

.primary-action,
.secondary-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 820;
  text-decoration: none;
}

.primary-action {
  color: #fff;
  background: var(--green);
  box-shadow: 0 18px 40px rgba(12, 122, 91, 0.26);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 660px;
}

.fact {
  min-height: 106px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 16px 36px rgba(16, 35, 31, 0.08);
}

.fact strong {
  display: block;
  margin-bottom: 3px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1;
}

.fact span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 680;
}

.hero-media {
  position: relative;
  min-height: 690px;
}

.photo-stack {
  position: absolute;
  inset: 0;
}

.photo-card {
  position: absolute;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: #dbe8df;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-card.main {
  inset: 34px 0 118px 58px;
}

.photo-card.side {
  width: 43%;
  height: 34%;
  left: 0;
  bottom: 42px;
}

.photo-card.small {
  width: 39%;
  height: 29%;
  top: 0;
  right: 22px;
}

.media-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(78%, 370px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  padding: 18px;
  background: rgba(6, 63, 53, 0.88);
  color: #fff;
  box-shadow: 0 18px 48px rgba(6, 63, 53, 0.26);
  backdrop-filter: blur(16px);
}

.media-badge strong {
  display: block;
  font-size: 1.08rem;
}

.media-badge span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 78px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 34px);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(16, 35, 31, 0.09);
  backdrop-filter: blur(14px);
}

.panel h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}

.panel p {
  color: var(--muted);
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.spotlight {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 63, 53, 0.92), rgba(12, 122, 91, 0.86)),
    var(--surface);
}

.spotlight p,
.spotlight li {
  color: rgba(255, 255, 255, 0.8);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.year {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--green-deep);
  background: rgba(183, 215, 75, 0.52);
  font-size: 0.9rem;
  font-weight: 840;
}

.image-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 14px;
  min-height: 390px;
}

.image-strip img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-strip img:nth-child(2) {
  margin-top: 44px;
}

.list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  gap: 10px;
  color: #fff;
}

.list li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--green);
}

.metric {
  display: grid;
  gap: 4px;
}

.metric strong {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.contact-band {
  border-radius: 36px;
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 63, 53, 0.88), rgba(27, 107, 216, 0.72)),
    url("assets/campus-5.jpg") center / cover;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-group-heading {
  margin: 34px 0 16px;
}

.contact-group-heading .eyebrow {
  margin-bottom: 12px;
}

.contact-group-heading h3 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.08;
}

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

.contact-card {
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.contact-card span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card a,
.contact-card strong {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 820;
  text-decoration: none;
}

.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 70px 0 36px;
}

.page-hero h1 {
  max-width: 900px;
}

.year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.year-filter a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(12, 122, 91, 0.16);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  font-weight: 820;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(16, 35, 31, 0.06);
}

.year-filter a:hover,
.year-filter a.active {
  color: #fff;
  background: var(--green-deep);
}

.post-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 16px 0 84px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(16, 35, 31, 0.09);
  text-decoration: none;
}

.post-card time,
.post-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 740;
}

.post-card h2 {
  margin: 14px 0 12px;
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  line-height: 1.12;
}

.post-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.pagination {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 24px;
}

.pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: none;
}

.pagination .current {
  background: var(--green-deep);
  color: #fff;
}

.article-wrap {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
  padding: 64px 0 86px;
}

.article-header {
  margin-bottom: 34px;
}

.article-header h1 {
  margin-bottom: 16px;
  font-size: clamp(2.45rem, 6vw, 5.8rem);
  line-height: 0.94;
}

.article-content {
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.article-content img,
.article-content iframe {
  max-width: 100%;
}

.article-content img {
  height: auto;
  border-radius: 18px;
}

.article-content a {
  color: var(--green);
  font-weight: 760;
}

.article-content table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

@media (max-width: 980px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .hero-media {
    min-height: 560px;
  }

  .span-7,
  .span-5,
  .span-4,
  .span-6 {
    grid-column: 1 / -1;
  }

  .image-strip,
  .contact-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .image-strip img:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .brand span:last-child {
    max-width: 210px;
  }

  .nav-links a {
    padding: 0 12px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 430px;
  }

  .photo-card.main {
    inset: 34px 0 96px 22px;
  }

  .photo-card.side {
    width: 48%;
    height: 32%;
  }

  .photo-card.small {
    width: 43%;
    height: 27%;
    right: 0;
  }

  .media-badge {
    width: 92%;
  }

  .section {
    padding: 52px 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}
