* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background: linear-gradient(
    180deg,
    #f5f9f6 0%, /* hijau pastel lembut */ 
    #81c784 50%, /* hijau segar */ 
    #1b5e20 100% /* hijau tua pekat */
  );
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 100 100"><polygon points="50,5 95,38 77,90 23,90 5,38" fill="none" stroke="%23cccccc" stroke-width="4"/></svg>');
    background-repeat: repeat;
    background-size: 9px 9px;
    
}

header {
  height: 58px;
  background: #13a96b; /* hijau tua */
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.logo img {
  height: 50px; /* atur tinggi logo */
  width: auto; /* biar proporsional */
}

nav {
  display: flex;
  gap: 0.5rem;
  font-family: "Roboto", sans-serif; /* font lebih modern & clean */
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  font-weight: bold; /* sedikit lebih tebal biar terbaca */
  transition: background 0.3s ease;
  font-size:1.2rem;
}

nav a:hover {
  background: #2d6a4f; /* hijau sedang */
  border-radius: 5px;
  color: #f1faee; /* teks jadi lebih terang saat hover */
}
.nav-btn {
  background: orange;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 1rem;
  transition: background 0.3s ease;
}

.nav-btn:hover {
  background: darkorange;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: white;
}
/* Slider Styles */
.slider-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  height: auto;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Dark green overlay */
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 1;
}

.slide-content {
  position: absolute;
  top: 80px; /* jarak dari atas, bisa kamu atur */
  left: 50%;
  transform: translateX(-50%); /* hanya geser horizontal */
  z-index: 2;
  color: white;
  text-align: center;
  max-width: 90%;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

.slide-title {
  position: absolute;
  top: 30px; /* jarak dari atas */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
}

.slide-title h2 {
  display: inline-block;
  color: #208630;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

  /* Efek timbul */
  background: #ffffff; /* putih biar ada kontras */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* bayangan kotaknya */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* bayangan teks */
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.slide-title p {
  margin-top: 0.5rem;
  font-size: 1, 2rem;
  font-weight: bold;
  color: #222; /* warna teks lebih gelap agar terbaca */
  font-style: italic; /* gaya miring agar beda dari judul */
}

.slide-title h2:hover {
  transform: translateY(-3px); /* efek naik pas hover */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.25);
}

.slide.active .slide-content {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.slide h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.slide p {
  font-size: 1.2rem;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  z-index: 3;
}

.slider-controls button {
  background: rgba(27, 67, 50, 0.6);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  transition: background 0.3s;
}

.slider-controls button:hover {
  background: rgba(45, 106, 79, 0.9);
}

main {
  padding: 2rem;
  color: #070707;
}
main h1 {
  color: #ffae00; /* warna kunyit lebih tajam */
  text-shadow:
    0 0 2px #fff5cc,
    0 0 6px #ffe066;
  font-weight: bold;
}

#linkwebsekolah {
  display: inline-block;
  background: linear-gradient(135deg, #90ee90, #ff7f50); /* hijau muda ke oranye */
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-family: "Segoe UI", sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
#linkwebsekolah a {
  text-decoration: none;
  color: #222;
}

#linkwebsekolah:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.card-custom {
      background: linear-gradient(
        135deg,
        rgba(144, 238, 144, 0.9), /* hijau muda */
        rgba(255, 255, 255, 0.2)  /* putih semi transparan */
      );
      box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3); /* cahaya putih halus */
      border-radius: 1.5rem; /* sama seperti rounded-4 */
      backdrop-filter: blur(2px); /* efek kaca/halus (opsional) */
    }
footer {
  background: #1b4332;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
/*layanan*/
.card-header-icon {
      font-size: 48px;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 1.25rem;
      background-color: #f8f9fa;
      border-bottom: none;
    }
    .card-outline-1 {
      outline: 3px solid #4D96FF; /* coding - biru */
      outline-offset: -3px;
    }
    .card-outline-2 {
      outline: 3px solid #6BCB77; /* kesiswaan - hijau */
      outline-offset: -3px;
    }
    .card-outline-3 {
      outline: 3px solid #FFD93D; /* kurikulum - kuning */
      outline-offset: -3px;
    }
    .card-outline-4 {
      outline: 3px solid #FF6B6B; /* islami - merah */
      outline-offset: -3px;
    }
    
/*utk fa spmb*/
.custom-blue {
  color: #007bff; /* Atau warna biru lainnya */
}
.card-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
footer a{
    text-decoration: none;
}

/*hp*/
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #1b4332;
    padding: 1rem;
    border-radius: 5px;
    z-index: 9;
  }

  nav.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
  .nav-btn {
    display: inline-block;
  }
  .slide-title h2 {
    display: inline-block;
    color: #208630;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0;
  }
}
