:root {
  --primary: #4fc3f7;
  --bg: #ffffff;
  --wa: #25d366;
  --ig1: #f58529;
  --ig2: #dd2a7b;
  --ig3: #8134af;
  --ig4: #515bd4;
  --yt: #ff0000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.8rem;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: black;
  /* min-height: 5000px; */
}
/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 7%;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  display: flex;
  font-size: 2rem;
  font-weight: 700;
  color: black;
  align-items: center;
}

.navbar .navbar-logo img {
  width: 4rem;
  height: auto;
  margin-right: 1rem;
}

.navbar .navbar-logo .text-nav {
  font-weight: 700;
  font-size: 1.6rem;
}

.navbar .navbar-logo .text-nav span {
  font-weight: 400;
  color: var(--primary);
  font-size: 1.2rem;
}

.navbar .navbar-nav a {
  color: black;
  display: inline-block;
  font-size: 1.2rem;
  margin: 0 1rem;
}

/* Nav Kreativitas */
.navbar .navbar-nav ul {
  list-style: none;
}

.navbar .navbar-nav ul li {
  position: relative;
  float: left;
  margin-bottom: 0.5rem;
}

.navbar .navbar-nav ul li:hover > ul {
  display: initial;
}

.navbar .navbar-nav ul li ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 13rem;
  background: white;
}

.navbar .navbar-nav ul li ul li {
  width: 100%;
}

.navbar .navbar-nav ul li ul li ul {
  left: 13rem;
  top: 0;
}

/* Akhir Nav Kreativitas */
.navbar .navbar-nav a:hover {
  color: var(--primary);
}

.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra button {
  color: black;
  margin: 0 0.5rem;
  background: none;
}

.navbar .navbar-extra button:hover {
  color: var(--primary);
}

#menu {
  display: none;
}

/* Bagian Main Section */
/* .main1 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("../img/hero1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

.main1::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255) 3%,
    rgba(255, 255, 255, 0) 65%
  );
}

.main1 .content {
  padding: 1.4rem 7%;
  max-width: 60rem;
  z-index: 999;
}

.main1 .content h1 {
  font-size: 5em;
  color: black;
  text-shadow: 1px 1px 3px rgba(255, 255, 255);
  line-height: 1.2;
}

.main1 .content h1 span {
  color: var(--primary);
}

.main1 .content p {
  font-size: 1.6rem;
  margin-top: 1rem;
  line-height: 1.4;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(255, 255, 255);
  mix-blend-mode: difference;
}

.main1 .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: white;
  background-color: var(--primary);
  border-radius: 1rem;
  text-shadow: 1px 1px 3px rgba(255, 255, 255);
} */

/* Main 2 | Slider */
.container {
  padding: 8rem 1rem 0;
  margin-bottom: 3rem;
}

.container .slider-wraper {
  position: relative;
  margin: 0 auto;
}

.container .slider-wraper .slider {
  display: flex;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
  border-radius: 0.5rem;
}

.container .slider-wraper .slider img {
  flex: 1 0 100%;
  width: 100%;
  scroll-snap-align: start;
  object-fit: cover;
}

.container .slider-wraper .slider-nav {
  display: flex;
  column-gap: 1rem;
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.container .slider-wraper .slider-nav a {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: white;
  opacity: 0.75;
  transition: opacity ease 250ms;
}

.container .slider-wraper .slider-nav a:hover {
  opacity: 1;
}

/* Pilih Sekolah */
.choose,
.news,
.achiv {
  margin-bottom: 2rem;
}
.choose .choose-school {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.2rem;
}

.choose .choose-school .card-pilih {
  background-color: white;
  width: 20rem;
  height: 27rem;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 0.5rem rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.choose .choose-school .card-pilih img {
  width: 100%;
  height: 21rem;
  object-fit: cover;
  display: block;
}

.choose .choose-school .card-pilih .info {
  background-color: white;
  color: black;
  text-align: center;
  padding: 0.5rem;
  flex: 1;
}

.choose .choose-school .card-pilih .info h3 {
  margin: 0 0 0, 8rem;
  color: var(--primary);
  font-size: 1rem;
}

.choose .choose-school .card-pilih .info .address {
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Berita Sekolah dan galeri*/
.nschool,
.kontak,
.news,
.achiv,
.html,
.news-list {
  padding: 1rem 7% 1.4rem;
}

.nschool h2,
.galeri h2,
.kontak h2,
.choose h2,
.achiv h2,
.news-list h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 2rem;
}

.nschool h2 span,
.kontak h2 span,
.choose h2 span,
.achiv h2 span,
.news-list h2 span {
  color: var(--primary);
}

.nschool .row {
  display: flex;
}

.nschool .row .nschool-img {
  flex: 0 1 45rem;
}

.nschool .row .nschool-img img {
  width: 100%;
}

.nschool .row .content {
  flex: 1 1 35rem;
  padding: 0 1rem;
}

.nschool .row .content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.nschool .row .content p {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Berita Terbaru */
.news .title {
  background-color: var(--primary);
  color: white;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-weight: 700;
  font-size: 1.8rem;
  border-radius: 0.2rem 0.2rem 0 0;
}

.news .line {
  border-top: 0.3rem solid var(--primary);
  margin-bottom: 1rem;
}

.news .news-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.news .news-container .main-news {
  flex: 0 1 60%;
}

.news .news-container .main-news a img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.news .news-container .main-news a h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: black;
}

.news .news-container .main-news a p {
  font-size: 1.4rem;
  color: #555;
}

.news .news-container .side-news {
  flex: 0 1 35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 35rem;
}

.news .news-container .side-news .side-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.news .news-container .side-news .side-item a {
  display: flex;
  gap: 1rem;
  color: inherit;
}

.news .news-container .side-news .side-item img {
  width: 15rem;
  height: auto;
  object-fit: cover;
  border-radius: 0.4rem;
}

.news .news-container .side-news .side-item p {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

/* Daftar Berita */
.news-list {
  padding-top: 8rem;
}

.news-list .news-container {
  gap: 1rem;
  flex-wrap: wrap;
}

.news-list .news-container .news-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 20rem;
  align-items: flex-start;
}

.news-list .news-container .news-item a {
  display: flex;
  gap: 1rem;
  color: inherit;
}

.news-list .news-container .news-item img {
  width: 45rem;
  height: auto;
  object-fit: cover;
  border-radius: 0.4rem;
}

.news-list .news-container .news-item .content {
  display: flex;
  flex-direction: column;
}

.news-list .news-container .news-item h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: black;
  text-align: left;
}

.news-list .news-container .news-item p {
  font-size: 1.4rem;
  color: #555;
  text-align: justify;
}

.news-list .news-container .news-item .line {
  border-top: 0.1rem solid var(--primary);
  margin: 2rem 0 2rem;
  width: 100%;
}

/* Penghargaan Section */
.achiv {
  padding-top: 8rem;
}
.achiv .main-achiv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.achiv .main-achiv img {
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
  object-fit: cover;
}

.achiv .side-achiv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.achiv .side-achiv img {
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
  object-fit: cover;
}

/* Galeri Section */
.galeri {
  background: var(--primary);
  padding: 8rem 7% 1.4rem;
  min-height: 100vh;
}

.galeri h2 {
  margin-bottom: 1rem;
}

.galeri h2 span {
  color: white;
}

.galeri p,
.kontak p {
  text-align: center;
  font-size: 1.5rem;
  max-width: 30rem;
  margin: auto;
  font-weight: 400;
  line-height: 1.6;
}

.galeri .tab-btn {
  display: flex;
  border-bottom: 0.2rem solid white;
  margin-top: 1rem;
  border-radius: 0.3rem;
}

.galeri .tab-btn button {
  flex: 1;
  padding: 0.5rem 0.5rem 0;
  border: none;
  background: none;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  font-family: 700;
}

.galeri .tab-btn button.active {
  color: var(--primary);
  background: white;
}

.galeri .row {
  margin-top: 1.5rem;
  display: none;
  flex-wrap: wrap;
  padding: 0 4px;
}

.galeri .row.active {
  display: flex;
}

.galeri .row .galeri-card {
  flex: 25%;
  max-width: 25%;
  padding: 0 0.5rem;
}

.galeri .row .galeri-card img {
  margin-top: 0.5rem;
  vertical-align: middle;
  width: 100%;
}

/* galeri video */
.galeri .row .main-video {
  width: 100%;
  margin-bottom: 1rem;
}

/* .galeri .row .main-video video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0.3rem;
  object-fit: cover;
} */

.galeri .row .main-video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  border-radius: 0.3rem;
  object-fit: cover;
}

.galeri .row .video-card {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* .galeri .row .video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0.3rem;
} */

.galeri .row .video-card img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 0.3rem;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.galeri .row .video-card img:hover {
  transform: scale(1.05);
}

/* kreativitas */

.galeri .rowk {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  padding: 0 4px;
  gap: 0.5rem;
}

.galeri .groupp {
  flex: 23%;
}

.galeri .rowk .kreativitas-card {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem 0.5rem 0;
  background-color: white;
}

.galeri .rowk .kreativitas-card:hover {
  transform: scale(1.25);
}

.galeri .rowk .kreativitas-card img {
  vertical-align: middle;
  width: 100%;
  height: auto;
}

.galeri .rowk .kreativitas-card p {
  font-size: 1.4rem;
  font-weight: 400;
  text-align: center;
}

/* Penampil html */
.html {
  padding-top: 8rem;
  min-height: 100vh;
}

.html h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: justify;
}

.html .container-isiberita {
  padding: 0;
  text-align: justify;
  font-size: 1.4rem;
}

/* Kontak */
.kontak {
  padding-top: 8rem;
  min-height: 100vh;
}
.kontak .row {
  display: flex;
  margin-top: 1.5rem;
  background-color: #4fc3f7;
  padding: 1rem;
}

.kontak .row .map {
  flex: 1 1 45rem;
  width: 100%;
  object-fit: cover;
}

.kontak .row .rinci {
  flex: 1 1 45rem;
  padding: 1.5rem 2rem;
  justify-content: center;
}

.kontak .row .rinci .contact {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  background-color: white;
  border: 1px solid black;
  padding-left: 2rem;
}

.kontak .row .rinci h4 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: black;
}

.kontak .row .rinci h4 span {
  color: white;
}

.kontak .row .rinci .contact h5 {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 300;
  background: none;
}

/* Footer */
footer {
  background-color: var(--primary);
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
}

footer .social {
  padding: 1rem 0;
}

footer .social a {
  color: white;
  margin: 1rem;
}

footer .social a:hover,
footer .links a:hover {
  color: black;
}

footer .links {
  margin-bottom: 1rem;
}

footer .links a {
  color: white;
  padding: 0.7rem 1rem;
}

footer .credit {
  font-size: 1rem;
}

footer .credit a {
  color: white;
  font-weight: 700;
}

/* Sticky */

/* ===== KONTAINER STICKY ===== */
.sticky-social {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}

/* ===== LIST ===== */
.sticky-social ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sticky-social li {
  margin: 0.5rem 0;
  width: 10rem;

  /* tambahkan ini */
}

/* ===== LINK DASAR ===== */
.sticky-social a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 2rem 2rem 0;
  padding: 0.625rem;
  /* 10px */
  width: 2.8rem;
  /* hanya ikon terlihat */
  overflow: hidden;
  transition: width 0.3s ease;
}

/* ===== IKON ===== */
.sticky-social a i {
  font-size: 1.4rem;
  min-width: 1.5rem;
  text-align: center;
}

/* ===== TEKS ===== */
.sticky-social a span {
  margin-left: 0.6rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

/* ===== HOVER: MUNCULKAN TEKS ===== */
.sticky-social a:hover {
  width: 100%;
  padding-left: 1rem;
}

.sticky-social a:hover span {
  /* melebar responsif */
  opacity: 1;
}

/* ===== WARNA KHUSUS ===== */
.sticky-social .whatsapp a {
  background-color: var(--wa);
}

.sticky-social .instagram a {
  background: linear-gradient(
    45deg,
    var(--ig1),
    var(--ig2),
    var(--ig3),
    var(--ig4)
  );
}

.sticky-social .youtube a {
  background-color: var(--yt);
}

.sticky-social .facebook a {
  background-color: #1877f2;
}

.sticky-social .tiktok a {
  background-color: black;
}

.sticky-social .facebook a {
  background-color: #1877f2;
}

.sticky-social .x a {
  background-color: black;
}

.sticky-social .telegram a {
  background-color: #0088cc; /* biru khas Telegram */
}

/* Media Queries */
/* Laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}
/* Tablet */
@media (max-width: 768px) {
  html {
    font-size: 65.5%;
  }

  #menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    text-align: center;
    background: white;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: 0.5s;
  }

  .navbar .navbar-nav ul li {
    width: 100%;
    margin: 0%;
  }

  .navbar .navbar-nav ul li ul {
    position: relative;
    width: 100%;
  }

  .navbar .navbar-nav ul li ul li {
    background: #eee;
  }

  .navbar .navbar-nav ul li ul li ul {
    left: 0;
  }

  .navbar .navbar-nav.active {
    max-height: 60rem;
    transition: 0.5s;
  }

  .navbar .navbar-nav a {
    color: black;
    display: block;
    margin: 0.2rem;
    padding: 0.2rem;
    font-size: 1.5rem;
  }

  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.1);
  }

  .nschool .row {
    flex-wrap: wrap;
  }

  .nschool .row .nschool-img img {
    height: 24rem;
    object-fit: cover;
    object-position: center;
  }

  .nschool .row .content {
    padding: 0;
  }

  .nschool .row .content h3 {
    margin-top: 1rem;
    font-size: 2rem;
  }

  .nschool .row .content {
    font-size: 1.6rem;
  }

  .news-list .news-container .news-item img {
    width: 25rem;
  }

  .galeri p {
    font-size: 1.4rem;
  }

  .achiv .main-achiv {
    grid-template-columns: repeat(1, 1fr);
  }

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

  .galeri .row .galeri-card {
    flex: 50%;
    max-width: 50%;
  }

  .galeri .row .video-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .galeri .rowk .groupp {
    flex: 48%;
    max-width: 48%;
  }

  .kontak .row {
    flex-wrap: wrap;
  }

  .kontak .row .map {
    height: 30rem;
  }
}

/* Mobile */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }

  .galeri .row .galeri-card {
    flex: 100%;
    max-width: 100%;
  }

  .galeri .rowk .groupp {
    flex: 100%;
    max-width: 100%;
  }

  /* sedikit mengecil */
  .sticky-social {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    display: flex;
    justify-content: center;
  }

  .sticky-social ul {
    display: flex;
    flex-direction: row;
    /* horizontal */
    gap: 0.5rem;
    /* jarak antar tombol */
    margin: 0;
    padding: 0;
  }

  .sticky-social li {
    width: auto;
    /* sesuaikan otomatis */
    margin: 0;
  }

  .sticky-social a {
    width: 3rem;
    /* hanya ikon */
    border-radius: 50%;
    /* biar bulat di mobile */
    padding: 0.7rem;
  }

  .sticky-social a:hover {
    width: 3rem;
    /* tidak melebar saat hover di mobile */
    padding-left: 0.7rem;
  }

  .sticky-social a span {
    display: none;
    /* teks disembunyikan di mobile */
  }
}
