* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #0d47a1;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9999;
}

/* ===== LOGO ===== */
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-area img {
  width: 40px;
}

.logo-area h1 {
  font-size: 18px;
}

/* ===== MENU TOGGLE ===== */
.menu-area {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: white;
  transition: color 0.3s;
}

.menu-area.active {
  color: #ffca28;
}

.menu-icon {
  font-size: 26px;
}

.menu-text {
  font-size: 16px;
}

/* ===== MENU DROPDOWN ===== */
.navbar nav {
  display: none;
  flex-direction: column;
  background: #0d47a1;
  position: absolute;
  top: 70px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 12px;
}

.navbar nav.active {
  display: flex;
}

/* ===== LINK MENU ===== */
.navbar nav a {
  color: white;
  text-decoration: none;
  padding: 10px 5px;
  border-radius: 6px;
  transition: 0.3s;
}

.navbar nav a:hover {
  background: rgba(255,255,255,0.15);
  color: #ffca28;
}

.navbar nav a.active {
  background: #ffca28;
  color: #0d47a1;
  font-weight: 600;
}

/* HERO */
.hero {
  background: linear-gradient(
    rgba(13,71,161,0.7),
    rgba(13,71,161,0.7)
  ), url("../img/banner.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 120px 20px;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}
.teks-hidup {
  animation: slideFade 2s ease-out forwards;
}

@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.teks-fade {
  animation: fadeIn 3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.teks-fade {
  animation: fadeIn 3s ease-in, glow 2s infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #fff;
  }
  to {
    text-shadow: 0 0 15px #ffca28;
  }
}

.hero-slider {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* slide aktif */
.slide.active {
  opacity: 1;
}

/* overlay gelap */
.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 71, 161, 0.6);
  z-index: 1;
}

/* teks di atas banner */
.hero-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero-text h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* responsive */
@media (max-width: 768px) {
  .hero-slider {
    height: 320px;
  }

  .hero-text h2 {
    font-size: 26px;
  }
}

/* indikator */
.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #ffca28;
  transform: scale(1.2);
}

.btn {
  background: #ffca28;
  color: #0d47a1;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

/* SECTION */
.section {
  padding: 50px;
}

.section h2 {
  text-align: left;
  margin-bottom: 25px;
}

.sambutan {
  padding: 60px 40px;
  background: #f5f7fb;
}

.sambutan h2 {
  margin-bottom: 30px;
  color: #0d47a1;
}

.sambutan-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.sambutan-content img {
  width: 160px;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.teks-sambutan {
  max-width: 1000px;
  text-align: left;
}

.teks-sambutan p {
  line-height: 1.7;
  margin-bottom: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .sambutan-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .teks-sambutan {
    text-align: left;
  }
}

.teks-sambutan {
  border-left: 4px solid #0d47a1;
  padding-left: 20px;
}

.sambutan {
  animation: fadeSlide 1.5s ease forwards;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kegiatan-harian {
  background: #f5f7fa;
  padding: 60px 20px;
}

.kegiatan-harian h2 {
  text-align: center;
  color: #0d47a1;
}

.kegiatan-subtitle {
  text-align: center;
  color: #555555;
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 40px;
}

.kegiatan-list {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.kegiatan-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.kegiatan-card:hover {
  transform: translateY(-5px);
}

.kegiatan-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.kegiatan-content {
  padding: 18px;
}

.kegiatan-tanggal {
  font-size: 13px;
  color: #777;
}

.kegiatan-content h3 {
  margin: 8px 0;
  color: #222;
}

.kegiatan-content p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.kegiatan-subtitle {
  text-align: center;
  color: #555;
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 35px;
}

.kegiatan-subtitle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #fbc02d; /* kuning */
  border-radius: 2px;
}

.keahlian {
  padding: 60px 30px;
  background: linear-gradient(135deg, #f0f4ff, #e8f0ff);
  text-align: center;
}

.keahlian h2 {
  color: #0d47a1;
  margin-bottom: 10px;
}

.keahlian-subtitle {
  color: #555;
  margin-bottom: 40px;
}

.keahlian-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.keahlian-card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.keahlian-card h3 {
  color: #0d47a1;
  margin-bottom: 10px;
  font-size: 18px;
}

.keahlian-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.keahlian-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.keahlian-icon {
  font-size: 40px;
  color: #ffca28;
  margin-bottom: 15px;
  transition: transform 0.3s, color 0.3s;
}

.keahlian-card:hover .keahlian-icon {
  transform: scale(1.15);
  color: #0d47a1;
}

.keahlian-subtitle {
  color: #555;
  margin-bottom: 40px;
  position: relative;
}

/* garis bawah subjudul */
.keahlian-subtitle::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: #ffca28;
  margin: 15px auto 0;
  border-radius: 10px;
}

/* layanan pendidikan */
.layanan {
  padding: 70px 30px;
  background: #ffffff;
  text-align: center;
}

.layanan h2 {
  font-size: 32px;
  font-weight: 700;
}

.layanan h2 span {
  color: #0228a7;
}

.layanan-subtitle {
  color: #555;
  margin-top: 10px;
  margin-bottom: 20px;
  position: relative;
}

/* garis bawah subtitle */
.layanan-subtitle::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #fbc02d;
  margin: 15px auto 0;
  border-radius: 5px;
}

/* grid card */
.layanan-list {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin-inline: auto;
}

/* card */
.layanan-card {
  background: #0d47a1;
  color: white;
  padding: 30px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

/* hover */
.layanan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.35);
}

/* icon */
.layanan-card i {
  font-size: 40px;
  color: #e9a700;
  margin-bottom: 15px;
}

/* text */
.layanan-card p {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

/* FOOTER */
.footer {
  background: #0d47a1;
  color: #ddd;
  padding-top: 60px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

/* Judul kolom */
.footer-col h3 {
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h3::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #e9a700;
  position: absolute;
  bottom: -8px;
  left: 0;
}

/* Info */
.footer-info {
  list-style: none;
  padding: 0;
}

.footer-info li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-info i {
  color: #e9a700;
  margin-right: 8px;
}

/* Sosial media */
.footer-social {
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  background: #222;
  color: #fff;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 8px;
  transition: background 0.3s;
}

.footer-social a:hover {
  background: #fbc02d;
  color: #000;
}

/* Map */
.footer iframe {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  border: none;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fbc02d;
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 40px;
  padding: 20px 30px;
  text-align: center;
  color: #aaa;
}

.footer-bottom small {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .hero h2 {
    font-size: 28px;
  }
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area img {
  width: 45px;     /* ukuran logo */
  height: auto;
}

.logo-area h1 {
  font-size: 20px;
  font-weight: 600;
}
@media (max-width: 768px) {
  .logo-area h1 {
    font-size: 18px;
  }

  .logo-area img {
    width: 40px;
  }
}
