:root {
  --primary: #435ebe;
  --blue-dark: #3549aa;
  --light-bg: #f2f7ff;
  --white: #fff;
  --text-dark: #333;
  --bg-gray-light: #dedede;
  --hover-bg: #e0e7ff;
  --danger: #e74c3c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-nav {
  display: flex;
  gap: 5px;
}

.icon-nav svg {
  width: 18px;
  color: var(--primary);
}

.logo-content {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  text-decoration: none;
}

.logo-content img {
  width: 90px;
  height: auto;
}

.logo-content-sidebar {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  text-decoration: none;
}

.logo-content span {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--primary);
}

.logo-content-sidebar img {
  width: 50px;
  height: auto;
}

.logo-content-sidebar span {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--bg-gray-light);
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links li a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--primary);
}

.logo-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  font-size: 28px;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 250px;
  height: 100%;
  background-color: var(--primary);
  color: white;
  transition: left 0.3s ease;
  padding: 60px 20px;
  z-index: 999;
}

.sidebar.active {
  left: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 20px 0;
}

.sidebar a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.btn {
  background: var(--primary);
  padding: 8px 16px;
  border-radius: 5px;
  color: var(--white) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  display: inline-block;
  cursor: pointer;
  transition: transform 0.6s ease !important;
}

.btn:hover {
  background: var(--blue-dark);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px) !important;
}

/* Hero Section */
.slideshow-container {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.mySlides {
  display: none;
}

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

.overlay-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.caption-text {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 24px;
  text-align: center;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.caption-text h2 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
}

.caption-text p {
  color: white;
  font-size: 1rem;
  font-weight: 700;
}

.caption-text a {
  background: var(--primary);
  font-size: 15px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  color: var(--white) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  display: inline-block;
  cursor: pointer;
  transition: transform 0.6s ease !important;
}

.caption-text a:hover {
  background: var(--blue-dark);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px) !important;
}

.dot-content {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: auto;
  z-index: 10;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: var(--primary);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* About */
.about {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.berita {
  background-color: var(--hover-bg);
  padding: 20px 0px;
}

.berita h2 {
  text-align: center;
}

.load-more {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  padding: 10px 24px;
  margin: 20px auto;
  border: 2px solid var(--primary);
  border-radius: 30px;
  font-size: 15px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  font-weight: 600;
  text-decoration: none !important;
}

.load-more:hover {
  background: var(--primary);
  color: var(--white);
}

/* Kegiatan */
.kegiatan {
  padding: 60px 20px;
}

.kegiatan h2 {
  text-align: center;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: white;
  padding: 20px;
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 350px;
  overflow: hidden;
  box-sizing: border-box;
}

.card a {
  text-decoration: none;
}

.card h3 {
  color: var(--primary);
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.card p {
  color: var(--text-dark);
  font-size: 15px;
  flex-grow: 1;
}

.card:hover {
  transform: translateY(-5px);
}

/* Footer */
.footer {
  background-color: #111;
  color: #fff;
  padding: 30px 0;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.logo-footer {
  display: flex;
  gap: 15px;
  text-decoration: none;
  color: white;
  align-items: center;
}

.logo-footer img {
  width: 80px;
  height: auto;
}

.school-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.school-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.school-address {
  font-size: 13px;
  line-height: 1.4;
  color: #ccc;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: #fff;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary); /* Gunakan warna utama situs */
}

.footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .school-info {
    align-items: center;
  }

  .footer-right {
    align-items: center;
  }
}

/* Responsive */
@media (min-width: 600px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  /* Navigasi */
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  /* Hero Section */
  .hero h2 {
    font-size: 28px;
    text-align: center;
  }

  .hero p {
    font-size: 16px;
    text-align: center;
  }

  /* Card container (misalnya untuk fitur atau konten lain) */
  .card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* Tambahan opsional agar konten tidak kepotong */
  .slideshow-container {
    max-height: none;
    height: auto;
  }

  .mySlides img {
    height: auto;
  }

  .caption-text {
    font-size: 16px;
    padding: 12px;
  }

  .caption-text h2 {
    font-size: 20px;
  }

  .caption-text p {
    font-size: 14px;
  }

  .caption-text a {
    font-size: 14px;
    padding: 6px 12px;
  }

  .btn {
    background: var(--light-bg);
    color: black !important;
  }

  .btn:hover {
    background: var(--hover-bg);
  }

  .icon-nav {
    display: flex;
    gap: 5px;
    align-items: center;
  }

  .icon-nav svg {
    width: 18px;
    color: white;
  }
}
