* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Radley", serif; /* Ubah ke Radley */
}

/*-------------------------------------Navbar Start------------------------------------------*/
.navbar {
  background: rgba(244, 241, 232, 0.9);
  padding: 5px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo-title {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 45px;
  width: auto;
  margin-right: 0.5rem;
}

.title {
  color: #9b4819;
  font-size: 24px;
  font-weight: bold;
  white-space: nowrap;
}

.menu-container {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  position: relative;
  margin: 0 3px;
}

.nav-menu a {
  color: #9b4819;
  text-decoration: none;
  font-size: 20px;
  padding: 5px 10px;
  transition: background 0.3s, color 0.3s;
}

.nav-menu a:hover {
  background: #9b4819;
  color: #f4f1e8;
  border-radius: 5px;
}

.has-submenu .arrow {
  font-size: 20px;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-menu li.active .arrow {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #f4f1e8;
  display: none;
  min-width: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  list-style: none;
}

@media (min-width: 790px) {
  .nav-menu li:hover .dropdown {
    display: block;
  }
}

.dropdown li {
  margin: 0;
  padding: 10px 20px;
}

.dropdown a {
  display: block;
}

/* User Icon */
.user-icon {
  color: #9b4819;
  font-size: 20px;
  cursor: pointer;
  margin: 0 10px;
  display: flex;
  align-items: center;
}

.user-icon a {
  color: #9b4819;
  padding: 0;
}

.user-icon a:hover {
  background: none;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 18px;
  color: #9b4819;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.modal-content {
  background: #f4f1e8;
  margin: 15% auto;
  padding: 20px;
  width: 300px;
  border-radius: 5px;
  position: relative;
  text-align: center;
}

.close {
  position: absolute;
  top: 5px; /* Jarak dari atas */
  right: 5px; /* Jarak dari kanan */
  font-size: 30px; /* Ukuran font lebih kecil */
  color: #9b4819;
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px; /* Padding kecil untuk area klik */
  width: 20px; /* Lebar tetap */
  height: 20px; /* Tinggi tetap */
  line-height: 20px; /* Memusatkan simbol vertikal */
  text-align: center; /* Memusatkan simbol horizontal */
}

.close:hover {
  color: #7a3a14; /* Warna lebih gelap saat hover */
  background: rgba(155, 72, 25, 0.1); /* Latar belakang transparan saat hover */
}

/* Styling untuk modal choice */
.modal-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-content h2 {
  color: #9b4819;
  font-size: 16px;
  margin-bottom: 20px;
}

.choice-btn {
  background: #9b4819;
  color: #f4f1e8;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin: 5px 0;
}

.choice-btn:hover {
  background: #7a3a14;
}

/* Styling untuk modal login */
.modal-content label {
  color: #9b4819;
  display: block;
  font-size: 12px;
  margin: 10px 0 5px;
  text-align: left;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #9b4819;
  border-radius: 4px;
}

.modal-content button[type="submit"] {
  background: #9b4819;
  color: #f4f1e8;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.modal-content button[type="submit"]:hover {
  background: #7a3a14;
} /* Media Queries */

/* Laptop (max-width: 1024px) */
@media (max-width: 1400px) {
  .navbar {
    padding: 5px 20px;
  }
  .nav-menu li {
    margin: 0 1px;
  }
  .title {
    font-size: 16px;
  }
  .user-icon {
    margin: 0 8px;
  }
  .nav-menu a {
    font-size: 16px;
  }

  .has-submenu .arrow {
    font-size: 16px;
  }
}

/* Tablet (max-width: 768px) */
@media (max-width: 790px) {
  .hamburger {
    display: block;
  }
  .menu-container {
    position: relative;
    width: 100%;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #f4f1e8;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 70vh; /* Batas tinggi maksimum */
    overflow-y: scroll; /* Aktifkan scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling di iOS */
    /* Sembunyikan scrollbar */
    -ms-overflow-style: none; /* IE dan Edge */
    scrollbar-width: none; /* Firefox */
  }
  .nav-menu::-webkit-scrollbar {
    display: none; /* Chrome, Safari, dan Opera */
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li {
    margin: 5px 0;
    width: 100%;
    text-align: left;
  }
  .nav-menu a {
    display: block;
    padding: 5px 8px;
  }
  .dropdown {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    padding: 0 0 0 20px;
    background: rgba(235, 231, 220, 0.95);
  }
  .dropdown li {
    padding: 5px 15px;
  }
  .nav-menu li.active .dropdown {
    display: block;
  }
  .user-icon {
    margin: 5px 0;
  }
  .title {
    font-size: 16px;
  }
  .logo img {
    height: 35px;
  }
}

/* Smartphone (max-width: 480px) */
@media (max-width: 480px) {
  .navbar {
    padding: 5px 15px;
  }
  .title {
    font-size: 16px;
  }
  .logo img {
    height: 30px;
  }
  .nav-menu {
    padding: 8px 0;
  }
  .nav-menu li {
    margin: 4px 0;
  }
  .nav-menu a {
    padding: 6px 12px;
  }
  .dropdown li {
    padding: 4px 12px;
  }
  .user-icon {
    margin: 4px 0;
  }
}

/*-------------------------------------Navbar End------------------------------------------*/

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: url("img/bg4.jpg") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding-top: 60px;
}

.hero-content {
  z-index: 10;
}

.hero-logo {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 50px;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: normal;
  color: #252525;
}

.hero-title span {
  display: block;
  font-size: 70px;
  font-style: normal;
  font-weight: normal;
  color: #9b4819;
}

.hero-quote {
  font-size: 18px;
  font-style: italic;
  opacity: 0.9;
  color: #9b4819;
}

/* Overlay untuk transparansi 50% */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(244, 241, 232, 0.726); /* Transparansi 50% */
  z-index: 5;
}

@media (max-width: 790px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-title span {
    font-size: 40px;
  }

  .hero-quote {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-title span {
    font-size: 40px;
  }

  .hero-quote {
    font-size: 12px;
  }
}

/*-----------------------Jadwal Misa -------------------------*/

.jadwal-misa {
  background: #9b4819;
  color: #f4f1e8;
  padding: 60px 0;
  text-align: center;
}

.section-title {
  font-size: 36px;
  margin-top: -2rem;
  font-weight: normal;
}

.section-divider {
  width: 30rem;
  height: 1px;
  background: #f4f1e8;
  border: none;
  margin: 0 auto 20px;
  margin-top: 1rem;
}

.schedule-wrapper {
  display: flex;
  justify-content: center; /* Memusatkan isi flex (kolom) */
  gap: 40px; /* Jarak antar kolom kiri dan kanan */
  max-width: 1000px; /* Batas lebar total */
  margin: 0 auto; /* Memusatkan wrapper di tengah halaman */
}

.schedule-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-box {
  background: #fff;
  padding: 5px 5px;
  border-radius: 5px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
  margin-top: 12px;
}

.section-subtitle {
  font-size: 26px;
  font-weight: bold;
  color: #9b4819;
  font-family: "Merriweather Sans", sans-serif;
}

.schedule-item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: ppx 0;
  width: 100%;
}

.schedule-part {
  font-size: 18px;
  color: #f4f1e8;
  font-family: "Merriweather Sans", sans-serif;
  flex: 1;
  text-align: right;
}

.schedule-part2 {
  font-size: 18px;
  color: #f4f1e8;
  font-family: "Merriweather Sans", sans-serif;
  flex: 1;
  text-align: left;
}

.schedule-divider {
  font-size: 18px;
  color: #f4f1e8;
  margin: 0 10px;
}

.title-kecil {
  font-size: 24px;
  margin-top: 0rem;
  font-weight: normal;
  color: #f4f1e8;
}

/*-----------------------Media Queries-------------------------*/
@media (max-width: 1024px) {
  .jadwal-misa {
    padding: 50px 0;
  }
  .schedule-wrapper {
    gap: 30px;
  }
}

@media (max-width: 790px) {
  .jadwal-misa {
    padding: 40px 0;
  }
  .schedule-wrapper {
    gap: 20px;
  }
  .section-title {
    font-size: 30px;
  }
  .title-kecil {
    font-size: 18px;
  }

  .schedule-part {
    font-size: 12px;
  }

  .schedule-part2 {
    font-size: 12px;
  }

  .schedule-divider {
    font-size: 12px;
  }
  .section-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .jadwal-misa {
    padding: 30px 0;
  }
  .schedule-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  .schedule-column {
    width: 100%;
  }
  .section-title {
    font-size: 24px;
    margin: 0;
  }
  .title-kecil {
    font-size: 15px;
  }

  .content-box {
    margin-top: 10px;
  }
  .schedule-item {
    margin: 3px 0;
  }
}

/*--------------------------------------------------------------*/
.announcement-section {
  padding: 40px 0;
  text-align: center;
  position: relative;
}

.section-title2 {
  font-size: 36px;
  margin-top: -2rem;
  font-weight: normal;
  text-align: center;
  color: #9b4819;
}

.title-kecil2 {
  font-size: 24px;
  margin-top: 0rem;
  font-weight: normal;
  text-align: center;
  color: #9b4819;
}

.section-divider2 {
  width: 30rem;
  height: 1px;
  background: #9b4819;
  border: none;
  margin: 0 auto 20px;
  margin-top: 1rem;
}

.carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px;
}

.carousel-container {
  overflow-x: hidden;
  display: flex;
  gap: 20px;
  scroll-behavior: smooth;
  padding: 20px 0;
}

.announcement-card {
  flex: 0 0 33.33%;
  min-width: 180px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.announcement-card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  padding: 10px;
  border-radius: 20px;

  height: 400px;
  object-fit: cover;
}

.card-content {
  padding: 15px;
  text-align: left;
}

.card-title {
  font-size: 20px;
  font-weight: normal;
  margin: 0 0 1px 0;
  color: #333;
}

.card-description {
  font-size: 12px;
  color: #666;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.read-more-btn {
  background: #9b4819;
  color: white;
  border: none;
  padding: 4px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 12px;
}

.read-more-btn:hover {
  background: #7a3814;
  transform: scale(1.05);
}

/* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(155, 72, 25, 0.8);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 10;
}

.nav-btn:hover {
  background: #9b4819;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 30px;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
}

.modal-image {
  width: 90%;
  height: auto;
  margin-bottom: 15px;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.modal-desc1,
.modal-desc2 {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.whatsapp-link {
  display: inline-block;
  background: #25d366;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 15px;
  transition: background 0.3s ease;
}

.whatsapp-link:hover {
  background: #1da851;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Responsive Design */
@media (max-width: 790px) {
  .announcement-card {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
  }

  .carousel-wrapper {
    padding: 0 40px;
  }

  .section-title2 {
    font-size: 30px;
  }

  .title-kecil2 {
    font-size: 18px;
  }

  .section-divider2 {
    width: 20rem;
  }

  .card-image {
    height: 350px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-description {
    font-size: 10px;
  }
  .modal-title {
    font-size: 18px;
  }

  .modal-desc1,
  .modal-desc2 {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .announcement-card {
    flex: 0 0 calc(100% - 20px);
    min-width: calc(100% - 20px);
  }

  .section-title2 {
    font-size: 24px;
    margin: 0;
  }

  .title-kecil2 {
    font-size: 15px;
  }

  .section-divider2 {
    width: 20rem;
  }

  .card-image {
    height: 350px;
  }

  .carousel-wrapper {
    padding: 0 30px;
    max-width: 400px;
  }

  .announcement-card {
    min-width: 70px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-description {
    font-size: 10px;
  }

  .modal-title {
    font-size: 16px;
  }

  .modal-desc1,
  .modal-desc2 {
    font-size: 10px;
  }
}

/*------------------------Artikel-------------------------*/

.artikel {
  background: #f4f1e8; /* Latar belakang krem */
  padding: 60px 0;
  color: #9b4819;
}

.section-divider2 {
  width: 30rem;
  height: 1px;
  background: #9b4819;
  border: none;
  margin: 0 auto 20px;
  margin-top: 1rem;
}

.artikel-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.artikel-item {
  display: flex;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.artikel-image {
  flex: 1; /* 1 bagian dari rasio 1:7 */
  max-width: 150px; /* Lebar gambar tetap */
}

.artikel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Gambar menyesuaikan tanpa distorsi */
}

.artikel-content {
  flex: 7; /* 7 bagian dari rasio 1:7 */
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.artikel-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 5px;
  color: #9b4819;
}

.artikel-date {
  font-size: 12px;
  color: #666;
  margin: 0 0 10px;
}

.artikel-excerpt {
  font-size: 14px;
  color: #333;
  margin: 0 0 0px;
  max-width: 100ch; /* Batasi 100 karakter */
  overflow: hidden;
  text-overflow: ellipsis;
}

.artikel-link {
  font-size: 12px;
  color: #9b4819;
  text-decoration: none;
  align-self: flex-end; /* Posisi di pojok kanan bawah */
}

.artikel-link:hover {
  text-decoration: underline;
}

/*-----------------------Media Queries-------------------------*/
@media (max-width: 1024px) {
  .artikel {
    padding: 50px 0;
  }
  .artikel-container {
    max-width: 800px;
  }
  .artikel-title {
    font-size: 18px;
  }
  .artikel-excerpt {
    font-size: 13px;
  }
}

@media (max-width: 790px) {
  .artikel {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .artikel {
    padding: 30px 0;
  }
  .artikel .section-title {
    font-size: 24px;
  }
  .artikel-title {
    font-size: 16px;
  }
  .artikel-item {
    flex-direction: column; /* Gambar di atas, konten di bawah */
  }
  .artikel-image {
    max-width: none;
    height: 200px; /* Tinggi tetap untuk gambar */
  }
  .artikel-content {
    padding: 10px;
  }
  .artikel-date {
    font-size: 11px;
  }
  .artikel-excerpt {
    font-size: 12px;
  }
  .artikel-link {
    font-size: 11px;
  }
}

/*------------------------------------Tentang Kami-----------------------------------*/
.tentang-kami {
  background: #9b4819; /* Latar belakang coklat */
  padding: 60px 0;
  color: #f4f1e8;
}

.tentang-kami .section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

.tentang-kami-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px; /* Jarak antar kolom */
  max-width: 1000px;
  margin: 0 auto;
}

.tentang-kami-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.info-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.info-text {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.tentang-kami-media {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Jarak antar gambar dan maps */
}

.paroki-image {
  width: 100%;
  height: 200px; /* Tinggi tetap untuk gambar */
}

.paroki-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Gambar menyesuaikan tanpa distorsi */
  border-radius: 10px;
}

.paroki-map {
  width: 100%;
  height: 300px; /* Tinggi tetap untuk maps */
  padding: 2rem;
}

.paroki-map iframe {
  border-radius: 8px;
}

/*-----------------------Footer-------------------------*/
.footer {
  background: #9b4819;
  padding: 20px 0;
  text-align: center;
  color: #f4f1e8;
  font-size: 14px;
}

/*-----------------------Media Queries-------------------------*/
@media (max-width: 1024px) {
  .tentang-kami {
    padding: 50px 0;
  }
  .tentang-kami-wrapper {
    gap: 30px;
    max-width: 800px;
  }
  .info-title {
    font-size: 22px;
  }
  .info-text {
    font-size: 14px;
  }
}

@media (max-width: 790px) {
  .tentang-kami {
    padding: 40px 0;
  }
  .tentang-kami-wrapper {
    flex-direction: column; /* Kolom menjadi baris */
    gap: 20px;
  }
  .paroki-image,
  .paroki-map {
    height: 350px; /* Tinggi lebih besar pada layar kecil */
  }
}

@media (max-width: 480px) {
  .tentang-kami {
    padding: 30px 0;
  }
  .tentang-kami .section-title {
    font-size: 24px;
  }
  .info-title {
    font-size: 20px;
  }
  .info-text {
    font-size: 13px;
  }
  .paroki-image,
  .paroki-map {
    height: 350px; /* Tinggi lebih besar pada layar kecil */
  }
  .footer {
    font-size: 12px;
    padding: 15px 0;
  }
}
