
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap');

/* =========================
   1. DASAR WEBSITE
========================= */
:root {
  --g: #075b3a;
  --gd: #043a28;
  --gold: #d9ad35;
  --ink: #18352a;
  --muted: #66756c;
  --pale: #f3f7f2;
  --line: #e1e9e1;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.7 'DM Sans', Arial, sans-serif;
}

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

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

/* =========================
   2. BAR INFORMASI ATAS
========================= */
.top {
  background: var(--gd);
  color: #e0ebe2;
  padding: 7px max(calc((100% - 1160px) / 2), 20px);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.top span {
  float: right;
}

/* =========================
   3. HEADER DAN NAVIGASI
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
  min-height: 86px;
  padding: 12px max(calc((100% - 1160px) / 2), 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand img {
  width: 72px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}


.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand b {
  font: 800 20px 'Manrope', sans-serif;
  color: var(--g);
}

.brand small {
  font-size: 10px;
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
  color: #46574c;
}

nav a:hover,
nav a.active {
  color: var(--g);
}

nav .ppdb {
  background: var(--g);
  color: #fff;
  padding: 11px 16px;
  border-radius: 6px;
}

nav .ppdb:hover,
nav .ppdb.active {
  background: #0a754a;
  color: #fff;
}

.toggle {
  display: none;
  border: 0;
  background: var(--pale);
  color: var(--g);
  font-size: 22px;
  padding: 7px 12px;
  border-radius: 7px;
}

/* =========================
   4. BANNER UTAMA
   Foto: assets/images/gerbang-min1majene.jpeg
========================= */
.hero {
  width: 100%;
  min-height: 570px;
  display: flex;
  align-items: center;
  position: relative;
  color: #fff;
  background-color: #075b3a;
  background-image: url('images/gerbang-min1majene.jpeg');
  background-position: center 48%;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero .wrap {
  width: min(1160px, calc(100% - 40px));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  padding: 70px 0 80px;
}

.hero h1 {
  max-width: 1100px;
  font-size: clamp(38px, 5.7vw, 68px);
  line-height: 1.13;
  overflow-wrap: normal;
  word-break: normal;
}

.hero p {
  max-width: 600px;
}

.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 43, 28, 0.93),
    rgba(3, 59, 39, 0.77) 47%,
    rgba(4, 59, 39, 0.12)
  );
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 680px) {
  .hero {
    min-height: 530px;
    background-position: 58% center;
  }

  .hero-text {
    padding: 60px 0;
  }

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


.kicker,
label {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.hero h1,
.pagehero h1 {
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  font-weight: 800;
  font-size: clamp(38px, 5.7vw, 68px);
  line-height: 1.13;
  letter-spacing: -0.04em;
  margin: 18px 0;
}

.hero p {
  max-width: 600px;
  color: #e1ebe4;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.actions .gold {
  background: #e0b83f;
  color: #173422;
}

.actions .outline {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid #fff;
  color: #fff;
}

.actions .gold:hover {
  background: #edca5b;
}

.actions .outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.motto {
  font-size: 12px;
  color: #dce7de;
  margin-top: 38px;
  letter-spacing: 0.06em;
}

/* =========================
   5. MENU AKSES CEPAT
========================= */
.quick {
  position: relative;
  margin-top: -30px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px #063b2812;
  overflow: hidden;
}

.quick > a {
  padding: 20px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-right: 1px solid var(--line);
  font-size: 18px;
  color: var(--gold);
}

.quick > a:last-child {
  border-right: 0;
}

.quick i {
  font-style: normal;
  background: #eaf4ed;
  color: var(--g);
  padding: 7px 11px;
  border-radius: 8px;
}

.quick span {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-size: 12px;
}

.quick small {
  font-size: 10px;
  color: var(--muted);
}

/* =========================
   6. BAGIAN KONTEN
========================= */
.section {
  padding: 82px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

h2 {
  font: 800 clamp(27px, 3.3vw, 40px)/1.2 'Manrope', sans-serif;
  letter-spacing: -0.035em;
  color: var(--gd);
  margin: 10px 0 20px;
}

.split p,
.notice p {
  color: var(--muted);
  font-size: 14px;
}

.link {
  display: inline-block;
  color: var(--g);
  font-size: 13px;
  font-weight: 800;
  margin-top: 10px;
}

.pale {
  background: var(--pale);
}

/* =========================
   7. FOTO PROFIL SEKOLAH
========================= */
.photo {
  position: relative;
  padding: 0 0 22px 22px;
}

.photo:before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 65%;
  height: 65%;
  background: #e6f0e6;
}

.photo img {
  position: relative;
  width: 100%;
  height: 355px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 35px #063b2818;
}

.caption {
  position: absolute;
  bottom: 0;
  right: -10px;
  background: #fff;
  padding: 13px 19px;
  box-shadow: 0 10px 30px #063b281a;
  display: flex;
  flex-direction: column;
}

.caption b {
  color: var(--g);
  font-size: 12px;
}

.caption small {
  font-size: 10px;
  color: var(--muted);
}

/* =========================
   8. KARTU INFORMASI
========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.cards article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 9px;
}

.cards em {
  font-style: normal;
  color: var(--g);
  background: #eaf4ed;
  padding: 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.cards h3 {
  font: 800 19px 'Manrope', sans-serif;
  color: var(--gd);
  margin: 22px 0 10px;
}

.cards p {
  font-size: 13px;
  color: var(--muted);
}

.cards a {
  font-size: 12px;
  font-weight: 800;
  color: var(--g);
}

.cards .green {
  background: var(--g);
  color: #fff;
}

.cards .green h3,
.cards .green a {
  color: #fff;
}

.cards .green p {
  color: #d9e7dd;
}

/* =========================
   9. GALERI SEKOLAH
========================= */
.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 15px;
  margin-top: 25px;
}

.gallery figure {
  height: 245px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e4ece5;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(transparent, #0009);
}

/* =========================
   10. AJAKAN / CTA
========================= */
.cta {
  background: var(--gd);
  color: #fff;
  padding: 45px 0;
}

.ctain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta h2 {
  color: #fff;
  margin: 8px 0;
  font-size: 30px;
}

.cta p {
  color: #d3e1d6;
  font-size: 13px;
}

/* =========================
   11. BANNER HALAMAN DALAM
   Foto: assets/images/gedung-depan.jpeg
========================= */
.pagehero {
  padding: 65px 0;
  background-color: #043a28;
  background-image:
    linear-gradient(
      110deg,
      rgba(4, 58, 40, 0.93),
      rgba(8, 114, 72, 0.88)
    ),
    url('images/gedung-depan.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

.pagehero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 12px 0;
}

.pagehero p {
  color: #e1eee5;
}

/* =========================
   12. INFORMASI DAN PENGUMUMAN
========================= */
.two {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 25px;
  align-items: start;
}

.notice,
.two aside {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.two aside {
  background: var(--pale);
}

.two aside h3 {
  margin-top: 0;
  color: var(--gd);
}

.two li {
  margin: 9px 0;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  font-size: 11px;
  background: #fff2d2;
  color: #755509;
  padding: 6px 11px;
  border-radius: 20px;
}

.greenbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--g);
  color: #fff;
  margin-top: 10px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.greenbtn:hover {
  background: #0a754a;
}

.warning {
  background: #fff3d6;
  padding: 13px;
  border-radius: 7px;
  font-size: 12px;
  color: #6b5725;
}

/* =========================
   13. FOOTER
========================= */
footer {
  background: #032f20;
  color: #dce8df;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 28px 0;
}

.foot .brand b {
  color: #fff;
}

.foot .brand small {
  color: #c1d0c5;
}

.foot .brand img {
  width: 50px;
  height: 48px;
}

.foot p {
  font-size: 12px;
  color: #c1d0c5;
  max-width: 330px;
}

.bottom {
  border-top: 1px solid #ffffff22;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: #c1d0c5;
}

/* =========================
   14. TABLET
========================= */
@media (max-width: 900px) {
  header {
    padding-left: 20px;
    padding-right: 20px;
  }

  nav {
    gap: 12px;
    font-size: 11px;
  }

  .brand b {
    font-size: 17px;
  }

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

  .quick > a:nth-child(2) {
    border-right: 0;
  }

  .quick > a:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .split {
    gap: 35px;
  }

  .gallery figure {
    height: 200px;
  }
}

/* =========================
   15. PONSEL
========================= */
@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .top span {
    display: none;
  }

  header {
    min-height: 72px;
    padding: 10px 16px;
    flex-wrap: wrap;
    position: sticky;
  }

  .brand img {
    width: 47px;
    height: 46px;
  }

  .brand b {
    font-size: 15px;
  }

  .brand small {
    font-size: 9px;
  }

  .toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px 18px;
    box-shadow: 0 15px 25px #0002;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 8px;
  }

  nav .ppdb {
    text-align: center;
  }

  .hero {
    min-height: 530px;
    background-position: 58% center;
  }

  .hero-text {
    padding: 60px 0;
  }

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

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

  .quick {
    margin-top: -22px;
  }

  .quick > a {
    padding: 14px 9px;
    gap: 7px;
    font-size: 15px;
  }

  .quick i {
    padding: 5px 8px;
  }

  .quick span {
    font-size: 11px;
  }

  .quick small {
    font-size: 9px;
  }

  .section {
    padding: 60px 0;
  }

  .split,
  .two {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .photo img {
    height: 270px;
  }

  .split h2 {
    font-size: 30px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .cards article {
    padding: 22px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .gallery figure {
    height: 155px;
  }

  .gallery .wide {
    grid-column: span 2;
    height: 210px;
  }

  .ctain,
  .foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .bottom {
    font-size: 10px;
  }

  .pagehero {
    padding: 45px 0;
  }

  .pagehero h1 {
    font-size: 35px;
  }
}


/* PERBAIKAN BANNER MIN 1 MAJENE */
.hero {
  width: 100%;
  min-height: 570px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;

  background-color: #075b3a;
  background-image: url("./images/gerbang-min1majene.jpeg");
  background-position: center 48%;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero .shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 43, 28, 0.93) 0%,
    rgba(3, 59, 39, 0.77) 47%,
    rgba(4, 59, 39, 0.12) 100%
  );
}

.hero .wrap.hero-text {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  max-width: 100%;
  margin: 0 auto;
  padding: 70px 0 80px;
}

.hero .kicker {
  display: block;
  color: #e0b83f;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.hero h1 {
  max-width: 1100px;
  margin: 18px 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 5.7vw, 68px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 600px;
  color: #e1ebe4;
  font-size: 15px;
}

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

.hero .motto {
  margin-top: 38px;
  color: #dce7de;
  font-size: 12px;
  letter-spacing: 0.06em;
}

@media (max-width: 680px) {
  .hero {
    min-height: 530px;
    background-position: 58% center;
  }

  .hero .wrap.hero-text {
    width: calc(100% - 32px);
    padding: 60px 0;
  }

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

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