@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Radley&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

:root {
  --primary-color: #9b4819;
  --secondary-color: #f4f1e8;
  --sidebar-bg: #ffffff;
  --text-color: #333;
  --hover-bg: #f0f0f0;
  --highlight-color: #d1c4e9;
  --hero-text-color: #9b4819;
  --font-heading: "Radley", sans-serif;
  --font-body: "Poppins", sans-serif;
  --font-utama: "Lora", sans-serif;
  --font-inter: "Inter", sans-serif;
}

.section h1[class$="-title"],
.jadwal-title,
.schedule-section h1,
.berita-title,
.kegiatan-section h1,
.pengumuman-title {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 60px;
  line-height: 1;
  position: relative;
  text-align: center;
}

.section h1[class$="-title"]::after,
.jadwal-title::after,
.schedule-section h1::after,
.berita-title::after,
.kegiatan-section h1::after,
.pengumuman-title::after {
  content: "";
  width: 150px;
  height: 2px;
  background: #7a3412;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  border-radius: 2px;
  transition: width 0.3s ease-in-out;
}

.section,
.schedule-section,
.kegiatan-section {
  padding-top: 100px;
  padding-bottom: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--secondary-color);
  position: relative;
}

#hero {
  background: url("img/bg1.jpg") no-repeat center center/cover;
  color: var(--hero-text-color);
  padding-top: 80px;
}

#berita {
  padding: 100px 5% 60px;
}

#pengumuman {
  padding: 100px 5% 80px;
}

#kegiatan-section {
  padding: 100px 5% 80px;
}

#section-target {
  padding: 100px 5% 80px;
}

body {
  font-family: var(--font-inter);
}

p {
  font-family: var(--font-body);
}

.schedule-content h2,
.kegiatan-content h2,
.footer-title {
  font-family: var(--font-inter);
}

.schedule-content p,
.schedule-times .day-label,
.schedule-times .time-button,
.kegiatan-content p,
.view-all-button {
  font-family: var(--font-body);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  flex: 1;
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 20px 5px;
  background: var(--secondary-color);
  position: relative;
}

/* 🏛️ Navigation Bar */
.navbar {
  width: 100%;
  background: transparent;
  padding: 20px 0;
  box-shadow: none;
  z-index: 1000;
  text-align: center;
  position: fixed;
  top: 0;
  transition: top 0.3s ease-in-out, background 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

.navbar.visible {
  top: 0;
  background: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.nav-logo {
  font-family: "lora", sans-serif;
  font-weight: normal;
  font-size: 1.3rem;
  color: var(--primary-color);
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.navbar.visible .nav-logo {
  color: #fff;
}

.nav-logo img {
  width: 40px;
  margin-right: 10px;
  border-radius: 50%;
}

.nav-links {
  color: var(--primary-color);
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 150px;
  z-index: 1001;
}

.dropdown-icon {
  font-size: 12px;
  color: var(--primary-color);
  margin-left: 8px;
  margin-top: 4px;
  transition: transform 0.3s ease-in-out;
}

.dropdown-menu li {
  border-bottom: 1px solid #f0f0f0; /* Separator */
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  color: #000;
  font-size: 0.9rem;
  padding: 10px 15px;
  display: block;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.dropdown-menu a:hover {
  background: #f9f9f9;
  color: #7a3412;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-family: var(--font-utama);
  color: var(--primary-color);
  text-decoration: none;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  transition: color 0.3s ease-in-out;
}

.nav-links li a:hover {
  color: var(--text-color);
}

.navbar.visible .nav-links li a {
  color: #fff;
}

.navbar.visible .dropdown-menu li a {
  color: var(--primary-color);
}

.navbar.visible .nav-links li a:hover {
  color: #ddd;
}

.navbar.visible .dropdown-icon {
  color: #fff;
}

.has-dropdown.active .dropdown-icon {
  transform: translateY(-50%) rotate(180deg);
}

/* 🎆 Hero Section */
#hero {
  background: url("img/bg1.jpg") no-repeat center center/cover;
  color: var(--hero-text-color);
  flex-direction: column;
  margin-top: 0;
  min-height: 100vh;
  padding: 20px 5%;
  position: relative;
  z-index: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  padding: 40px 0;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  width: 120px;
  margin-top: 20px;
}

.title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: normal;
  color: var(--primary-color);
  margin-top: 20px;
}

.title span {
  display: block;
  font-family: "Lora", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
  color: #333;
  line-height: 1;
}

.verse {
  font-family: "Roboto", serif;
  font-size: 1rem;
  max-width: 100%;
  margin-top: 30px;
  text-align: center;
  align-items: center;
  line-height: 1.3;
}

.verse p1 {
  font-family: "Roboto", serif;
}

/* 📌 Sidebar Styling */
.sidebar {
  width: 300px;
  background: var(--sidebar-bg);
  height: 100vh;
  position: fixed;
  top: 0;
  left: -300px;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease-in-out;
  overflow-y: auto;
  z-index: 3000;
  padding-bottom: 20px;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 1.5rem;
  background: var(--primary-color);
  color: white;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  position: relative;
}

.sidebar-search {
  padding: 10px;
  background: var(--secondary-color);
  text-align: center;
}

.search-box {
  width: 85%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  font-size: 14px;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar-links li {
  padding: 12px 15px;
  position: relative;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease-in-out;
}

.sidebar-links li:hover {
  background: var(--hover-bg);
}

.close-sidebar {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 15px;
  padding: 5px;
}

.close-sidebar:hover {
  color: #ffdddd;
}

.icon {
  font-size: 18px;
  margin-right: 10px;
  color: var(--primary-color);
  vertical-align: middle;
}

.menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.menu-text {
  flex-grow: 1;
  display: inline-block;
  vertical-align: middle;
}

/* 📂 Submenu Styling */
.submenu {
  display: none;
  list-style: none;
  padding: 0 0 0 30px;
  margin: 0;
  background: var(--sidebar-bg);
  transition: padding 0.3s ease-in-out, height 0.3s ease-in-out;
  width: 100%;
  overflow: hidden;
  height: 0;
}
.has-submenu {
  position: relative;
}

.has-submenu.active .submenu {
  display: block;
  height: auto;
  padding: 10px 0 10px 30px;
}

.submenu li {
  padding: 10px 15px;
  font-weight: normal;
  color: var(--text-color);
  display: block;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu li a {
  text-decoration: none;
  color: var(--text-color);
  display: block;
  width: 100%;
}

.submenu-icon {
  font-size: 14px;
  color: var(--primary-color);
  transition: transform 0.3s ease-in-out;
}

.has-submenu.active .submenu-icon {
  transform: rotate(180deg);
}

@media screen and (min-width: 769px) {
  .has-submenu:hover .submenu {
    display: none;
  }

  .has-submenu:hover .submenu-icon {
    transform: none;
  }

  .has-dropdown:hover .dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
  }
}

/* 🍔 Hamburger Menu */
.hamburger-menu {
  width: 35px;
  height: 35px;
  background: var(--primary-color);
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: fixed;
  top: 10px;
  left: 15px;
  z-index: 2002;
  border: none;
  outline: none;
  transition: background 0.3s ease-in-out;
}

.hamburger-menu i {
  font-size: 22px;
  color: white;
}

.hamburger-menu:hover {
  background: #7a3412;
}

/* 🌑 Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 2000;
}

.overlay.active {
  display: block;
}

/* 📱 Responsive Design Satu */
@media screen and (max-width: 1024px) {
  .nav-container {
    flex-direction: column;
  }
  .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .has-dropdown:hover .dropdown-menu {
    display: block !important;
  }

  .has-dropdown.active .dropdown-menu {
    display: block !important;
  }

  .nav-logo {
    justify-content: center;
  }

  .hamburger-menu {
    display: flex;
  }

  .sidebar {
    width: 250px;
  }

  #hero {
    margin-top: 0;
  }
}

@media screen and (min-width: 769px) {
  .has-submenu:hover .submenu {
    display: block;
  }

  .has-dropdown:hover .dropdown-menu {
    display: block !important;
  }

  .has-dropdown.active .dropdown-menu {
    display: block !important;
  }
}

@media screen and (max-width: 768px) {
  .has-submenu.active .submenu {
    display: block;
  }

  .has-submenu.active .submenu-icon {
    transform: translateY(-50%) rotate(180deg);
  }
}

/* 🎠 Stacked Center Carousel Styling */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 350px;
  margin: 30px auto 0;
  overflow: hidden;
}

.carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  position: absolute;
  width: 300px;
  height: 200px;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.carousel-item.active {
  transform: scale(1.1);
  z-index: 3;
}

.carousel-item.prev {
  transform: translateX(-200px) scale(0.9);
  z-index: 2;
  opacity: 0.7;
}

.carousel-item.next {
  transform: translateX(200px) scale(0.9);
  z-index: 2;
  opacity: 0.7;
}

.carousel-button {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: #555;
  opacity: 80%;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
  z-index: 4;
}

.carousel-button:hover {
  background: #333;
}

.carousel-btn {
  position: absolute;
  top: 75%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 16px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.prev-btn {
  left: 18%;
}

.next-btn {
  right: 18%;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

@media screen and (max-width: 768px) {
  .carousel-container {
    max-width: 90%;
    height: 180px;
  }

  .carousel-item {
    width: 220px;
    height: 150px;
  }

  .carousel-item.prev {
    transform: translateX(-100px) scale(0.8);
  }

  .carousel-item.next {
    transform: translateX(100px) scale(0.8);
  }

  .carousel-button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .carousel-btn {
    font-size: 14px;
    width: 22px;
    height: 22px;
  }

  .prev-btn {
    left: 10%;
  }

  .next-btn {
    right: 10%;
  }
}

/* 📢 Pengumuman Section */
#pengumuman {
  background: var(--secondary-color);
  padding: 80px 5%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pengumuman-title {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 60px;
  line-height: 1;
  position: relative;
  text-align: center;
}

.pengumuman-title::after {
  content: "";
  width: 150px;
  height: 2px;
  background: #7a3412;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  border-radius: 2px;
  transition: width 0.3s ease-in-out;
}

.announcement-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  align-items: center;
}

.announcement {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  width: 100%;
  text-align: left;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.announcement.show {
  opacity: 1;
  transform: translateX(0);
}

.announcement.show:nth-child(odd) {
  transform: translateX(0);
  transform-origin: left;
}

.announcement.show:nth-child(even) {
  transform: translateX(0);
  transform-origin: right;
}

.announcement:nth-child(odd) {
  transform: translateX(-100%);
}

.announcement:nth-child(even) {
  transform: translateX(100%);
}

.announcement:hover {
  transform: scale(1.02);
}

.announcement-image {
  width: 100px;
  height: 100px;
  background: #ccc;
  border-radius: 10px;
  flex-shrink: 0;
}

.announcement-content {
  padding-left: 15px;
  flex-grow: 1;
  text-align: left;
}

.announcement-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 5px;
}

.announcement-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
}

.read-more {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  font-weight: normal;
  display: block;
  margin: 0 auto;
  transition: color 0.3s ease-in-out;
}

.read-more:hover {
  color: #333;
}

@media screen and (min-width: 768px) {
  .announcement-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .announcement {
    width: 30%;
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .announcement-content {
    padding: 0;
    text-align: center;
  }

  .announcement-title {
    margin-bottom: 5px;
  }

  .announcement-body {
    margin-bottom: 10px;
  }

  .read-more {
    margin-top: 10px;
  }

  .announcement-image {
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 767px) {
  .announcement {
    flex-direction: row;
    width: 100%;
  }

  .announcement-content {
    text-align: left;
  }

  .announcement-image {
    margin-right: 15px;
  }
}

/* 📢 Kegiatan Section */
.kegiatan-section {
  width: 100%;
  padding: 2rem;
  background-color: #fff;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.kegiatan-section .section-description {
  font-family: "Inter", Arial, serif;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #7e370f;
  text-align: center;
}

.kegiatan-card {
  background-color: #f4f1e8;
  border-radius: 5px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 8px;
  padding-right: 15px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  color: #7e370f;
}

.date-box {
  background: var(--primary-color);
  border-radius: 5px;
  margin-right: 15px;
  text-align: center;
  font-weight: bold;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 2rem;
}
.date-box span {
  font-size: 1rem;
  text-transform: uppercase;
}

.kegiatan-content {
  flex-grow: 1;
}

.subheading {
  color: #7e370f;
  font-size: 0.9rem;
}

.kegiatan-content p {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: #7e370f;
}

.view-all-button {
  font-family: "Inter", Arial, sans-serif;
  background-color: #8b4513;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  text-align: center;
  margin-top: 1rem;
  width: fit-content;
}

.view-all-button:hover {
  background-color: #7a3c0d;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #7e370f;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

.close-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #7e370f;
}

#popup-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

#popup-details {
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* 📰 Berita Section */
#berita {
  padding: 60px 5%;
  background: var(--secondary-color);
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.berita-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.berita-carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.berita-card {
  width: calc(100% / 3 - 20px);
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}

.berita-card.placeholder {
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
}

.berita-card.placeholder img {
  display: none;
}

.berita-card.placeholder .berita-content {
  padding: 15px;
  text-align: center;
}

.berita-card.placeholder .berita-content h3,
.berita-card.placeholder .berita-content p,
.berita-card.placeholder .berita-button {
  display: none;
}

.berita-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.berita-content {
  padding: 15px;
  text-align: left;
}

.berita-content h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.berita-content p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

.berita-button {
  display: inline-block;
  width: 100%;
  padding: 10px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.berita-button:hover {
  background: #7a3412;
}

.berita-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
}

.berita-carousel-wrapper {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  max-width: calc(100% - 60px);
}

.berita-btn {
  position: relative;
  color: #555;
  border: none;
  font-size: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  margin: 0 10px;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.berita-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .berita-card {
    width: calc(50% - 20px);
    margin: 0;
  }

  .berita-carousel {
    gap: 20px;
  }

  .berita-carousel-wrapper {
    max-width: calc(100% - 60px);
  }
}

@media screen and (max-width: 768px) {
  .berita-card {
    width: 100%;
    margin: 0;
  }

  .berita-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .berita-btn {
    font-size: 14px;
    width: 25px;
    height: 25px;
  }

  .berita-title {
    font-size: 28px;
    margin-bottom: 8px;
    padding-top: 15px;
  }

  #berita {
    padding-top: 50px;
  }

  .berita-carousel {
    gap: 0;
  }

  .berita-carousel-wrapper {
    max-width: 100%;
  }
}

@media screen and (min-width: 1025px) {
  .berita-card {
    width: calc(100% / 3 - 20px);
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  margin: 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.carousel-dot.active {
  background: var(--primary-color);
}

/* ⛪ Jadwal Misa Section */

.schedule-section {
  width: 100%;
  padding: 2rem;
  background-color: #fff;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

#scheduleContent {
  width: 70%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.schedule-section h1 {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 60px;
  line-height: 1;
  position: relative;
  text-align: center;
}

.schedule-section::after {
  content: "";
  width: 150px;
  height: 2px;
  background: #7a3412;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  border-radius: 2px;
  transition: width 0.3s ease-in-out;
}

.schedule-card {
  background-color: #8b4513;
  padding: 1rem 2rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.schedule-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(139, 69, 19, 0.6),
    rgba(139, 69, 19, 0.8)
  ); /* Brown gradient with opacity */
  z-index: 1;
}

.schedule-content,
.schedule-times {
  position: relative;
  z-index: 2;
}

.schedule-content {
  flex-grow: 1;
  text-align: left;
}

.schedule-content h2 {
  font-family: "Radley", sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.schedule-content p {
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.2rem;
  color: #fff;
}

.schedule-times {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
}

.day-label {
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.2rem;
  font-weight: bolder;
}

.time-button {
  width: 180px;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-family: "Inter", Arial, sans-serif;
  font-weight: bolder;
  font-size: 1.1rem;
  color: var(--primary-color);
  transition: background-color 0.3s;
  margin-bottom: 1px;
}

.time-block:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .schedule-section {
    padding: 0.5rem;
  }

  .schedule-section h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .schedule-card {
    width: 120%;
    flex-direction: row;
    padding: 0.75rem;
    margin-bottom: 1rem;
    min-height: 120px;
  }

  .schedule-content {
    padding-right: 0.5rem;
  }

  .schedule-content h2 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  }

  .schedule-content p {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
  }

  .schedule-times {
    gap: 0.3rem;
  }

  .day-label {
    font-size: clamp(0.9rem, 1rem);
  }

  .time-button {
    padding: 0.4rem 0.8rem;
    font-size: clamp(0.9rem, 1rem);
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .schedule-section {
    padding: 1rem;
  }

  .schedule-card {
    width: 120%;
    flex-direction: row;
    padding: 1rem;
    min-height: 110px;
  }

  .schedule-content {
    padding-right: 1rem;
  }

  .schedule-times {
    gap: 0.5rem;
  }

  .schedule-content h2 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  }

  .schedule-content p {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
  }
  .schedule-times {
    gap: 0.3rem;
  }

  .day-label {
    font-size: clamp(0.9rem, 1rem);
  }

  .time-button {
    padding: 0.4rem 0.8rem;
    font-size: clamp(0.9rem, 1rem);
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .schedule-section {
    padding: 1.5rem;
  }

  .schedule-card {
    flex-direction: row;
    padding: 1.5rem;
  }

  .schedule-content {
    padding-right: 1.5rem;
  }

  .schedule-times {
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .schedule-section {
    padding: 2rem;
  }

  .schedule-card {
    padding: 7rem;
  }

  .schedule-content {
    padding-right: 2rem;
  }

  .schedule-times {
    gap: 1rem;
  }
}

/* 📱 Extra Small Screens */
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  /* 🏛️ Navigation Bar */
  .navbar {
    padding: 10px 0;
  }

  .nav-logo {
    font-size: 1rem;
  }

  /* 📌 Sidebar */
  .sidebar {
    width: 200px;
    left: -200px;
  }

  .sidebar.active {
    left: 0;
  }

  .sidebar-header {
    font-size: 16px;
    padding: 1rem;
  }

  .sidebar-search {
    padding: 8px;
  }

  .search-box {
    width: 80%;
    padding: 6px;
    font-size: 12px;
  }

  .sidebar-links li {
    padding: 10px 12px;
    font-size: 14px;
  }

  .submenu li {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hamburger-menu {
    width: 30px;
    height: 30px;
    top: 22px;
    left: 10px;
  }

  .hamburger-menu i {
    font-size: 18px;
  }

  /* 🎆 Hero Section */
  #hero {
    padding: 15px 3%;
  }

  .hero-content {
    padding-top: 30px;
  }

  .logo {
    width: 100px;
    margin-top: 15px;
  }

  .title {
    font-size: 2rem;
  }

  .title span {
    font-size: 1.5rem;
  }

  .verse {
    font-size: 0.9rem;
    margin-top: 20px;
    line-height: 1.2;
  }

  .carousel-container {
    max-width: 100%;
    height: 150px;
    margin: 20px auto 0;
  }

  .carousel-item {
    width: 180px;
    height: 120px;
  }

  .carousel-item.prev {
    transform: translateX(-80px) scale(0.8);
  }

  .carousel-item.next {
    transform: translateX(80px) scale(0.8);
  }

  .carousel-button {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .carousel-btn {
    font-size: 12px;
    width: 20px;
    height: 20px;
  }

  .prev-btn {
    left: 15%;
  }

  .next-btn {
    right: 15%;
  }

  /* ⛪ Jadwal Misa Section */
  .schedule-section {
    padding: 1.5rem;
  }

  .schedule-section h1 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .schedule-card {
    padding: 0.8rem;
    margin-bottom: 1rem;
    width: 120%;
    max-height: 200px;
  }

  .card-content h2 {
    font-size: 1.2rem;
  }

  .card-content p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .schedule-times {
    gap: 0.4rem;
    margin-left: 0.8rem;
  }

  .time-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* 📰 Berita (Pengumuman Gereja) Section */
  #berita {
    padding: 40px 3%;
  }

  .berita-title {
    margin-bottom: 5px;
    padding-top: 10px;
  }

  .berita-card {
    width: 100%;
    margin: 0;
  }

  .berita-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .berita-carousel {
    gap: 0;
  }

  .berita-carousel-wrapper {
    max-width: 100%;
  }

  .berita-content h3 {
    font-size: 1rem;
  }

  .berita-content p {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .berita-button {
    padding: 8px;
    font-size: 0.9rem;
  }

  .berita-btn {
    font-size: 12px;
    width: 20px;
    height: 20px;
    margin: 0 5px;
  }

  /* Kegiatan Gereja Section */
  .kegiatan-section {
    padding: 1.5rem;
  }

  .kegiatan-section h1 {
    font-size: 2rem;
  }

  .kegiatan-section .section-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .kegiatan-card {
    padding: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .date-box {
    width: 150px;
    height: 120px;
    margin-right: 0.8rem;
    font-size: 2.3rem;
  }

  .date-box .divider {
    width: 50%;
    height: 1px;
    background: #666;
    margin: 5px 0;
  }

  .date-box span {
    font-size: 0.9rem;
  }

  .kegiatan-content h2 {
    font-size: 1rem;
  }

  .kegiatan-content p {
    font-size: 0.7rem;
  }

  .subheading h2 {
    font-family: var(--font-inter);
    font-size: 20rem;
  }

  .view-all-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.6rem;
  }

  /* 📢 Artikel Gereja (Pengumuman) Section */
  #pengumuman {
    padding: 60px 3%;
  }

  .pengumuman-title {
    margin-bottom: 40px;
  }

  .announcement {
    padding: 10px;
  }

  .announcement-image {
    width: 80px;
    height: 80px;
    margin-right: 10px;
  }

  .announcement-title {
    font-size: 1rem;
  }

  .announcement-body {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .read-more {
    font-size: 0.8rem;
  }

  /* 👣 Footer */
  .footer-content {
    padding: 5px 0;
  }

  .footer-title {
    font-size: 1rem;
  }

  .footer-address {
    font-size: 0.7rem;
  }

  .footer-social-title {
    font-size: 0.8rem;
  }

  .social-icon {
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
    margin: 0 5px;
    line-height: 25px;
  }

  .footer-copyright {
    font-size: 0.7rem;
  }
}

/* 👣 Footer */
.footer {
  position: relative;
  z-index: 1;
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  width: 100%;
  flex-shrink: 0;
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 0;
}

.footer-title {
  font-family: "Lora", serif;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-address {
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.footer-social-title {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 10px;
}

.footer-social-icons {
  margin-bottom: 15px;
}

.social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  margin: 0 10px;
  line-height: 40px;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.social-icon:hover {
  background: #7a3412;
  transform: scale(1.1);
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.8rem;
  margin-top: 10px;
}

@media screen and (max-width: 768px) {
  .footer-content {
    padding: 5px 0;
  }

  .footer-title {
    font-size: 1.2rem;
  }

  .footer-address {
    font-size: 0.8rem;
  }

  .footer-social-title {
    font-size: 0.9rem;
  }

  .social-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    margin: 0 8px;
    line-height: 30px;
  }
}

@media screen and (min-width: 769px) {
  .footer-content {
    padding: 10px 0;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin: 0 10px;
  }
}

/* Modal  */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 5000;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal.active {
  display: block;
  opacity: 1;
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 40px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-weight: bold;
  font-size: 34px;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

.modal-close:hover {
  color: #ff0000;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}

.modal-content-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

.modal-date {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.modal-desc {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

@media screen and (min-width: 769px) {
  .modal-body {
    flex-direction: flex;
    gap: 20px;
  }

  .modal-image {
    flex: 1;
  }

  .modal-image img {
    max-height: 100%;
    object-fit: cover;
  }

  .modal-content-text {
    flex: 2;
  }
}

/* Scroll Arrow Button */
.scroll-arrow {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.scroll-arrow:hover {
  background: #5e2a0e;
  transform: scale(1.1);
}

.scroll-arrow i {
  font-size: 24px;
}

.scroll-arrow.hidden {
  display: none;
}

@media screen and (max-width: 768px) {
  .scroll-arrow {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
  }

  .scroll-arrow i {
    font-size: 20px;
  }
}

.content-container {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  width: 100%;
  max-width: none;
  height: 800px;
  min-height: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 768px) {
  .content-container {
    width: 100%;
    padding: 15px;
    min-height: 300px;
  }
  .hero-content {
    padding: 30px 0;
  }
  .section {
    padding: 15px 5px;
  }
}

.nav-container {
  position: relative;
}

.login-icon {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

.navbar.visible .login-icon {
  color: #fff;
}

.login-icon:hover {
  color: var(--text-color);
}

.navbar.visible .login-icon:hover {
  color: #ddd;
}

/* Login Modal  */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 5001;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.login-modal.active {
  display: block;
  opacity: 1;
}

.login-modal-content {
  background: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

.login-modal-close:hover {
  color: #ff0000;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-form label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-color);
}

.login-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-inter);
  font-size: 1rem;
  outline: none;
}

.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

.password-toggle:hover {
  color: #7a3412;
}

.login-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.login-btn,
.cancel-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.login-btn {
  background: var(--primary-color);
  color: #fff;
}

.login-btn:hover {
  background: #7a3412;
}

.cancel-btn {
  background: #ccc;
  color: #333;
}

.cancel-btn:hover {
  background: #bbb;
}

@media screen and (max-width: 768px) {
  .nav-container {
    justify-content: center;
    position: relative;
    height: 50px;
  }
  .nav-container .login-icon {
    display: none;
  }

  .sidebar .login-icon {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: var(--primary-color);
    padding: 12px 15px;
    font-family: var(--font-body);
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
  }

  .login-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    display: flex;
  }

  .nav-links {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .login-modal-content {
    width: 90%;
    max-width: 300px;
    padding: 15px;
    margin-top: 18rem;
  }

  .login-form label {
    font-size: 0.9rem;
  }

  .login-form input {
    font-size: 0.9rem;
    padding: 8px;
  }

  .login-btn,
  .cancel-btn {
    font-size: 0.9rem;
    padding: 8px;
  }

  .password-toggle {
    font-size: 16px;
  }

  .sidebar .login-icon {
    font-size: 16px;
    padding: 10px 15px;
  }
}
