
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
  padding-top: 70px;
}
.navbar {
  background-color: #a60000;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
   box-sizing: border-box;
  z-index: 1000;
  
}

.navbar .logo {
  color: #fff;
  font-weight: bold;
  font-size: 20px;
}

.navbar .menu {
  display: flex;
  align-items: center;
}

.navbar .menu a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}

.navbar .menu a:first-child {
  margin-left: 0;
}
/* navbar */

.header {
  position: relative;
  height: 400px;
  display: flex;
  margin-top: -10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 2px black;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.5s ease-in-out;
  opacity: 0;
  z-index: 0;
}

.bg-image.visible {
  opacity: 1;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}


.fade-transition::before {
  background-image: var(--next-bg);
  opacity: 1;
}


.header > div {
  position: relative;
  z-index: 2;
}

.header h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.section h2 {
  font-size: 28px;
  color: #a60000;
  margin-bottom: 15px;
}

.section p {
  line-height: 1.6;
}

.button {
  display: inline-block;
  background: #ff002b;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 20px;
}

.button:hover {
  background-color: #d40026;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.logo-img {
  height: 32px;
  width: 32px;
  margin-right: 8px;
}

/* Background slideshow animation */
@keyframes slideShow {
  0% {
    background-image: url('/static/img/nbr1.jpeg');
  }
  33% {
    background-image: url('/static/img/nbr2.jpeg');
  }
  66% {
    background-image: url('/static/img/nbr3.jpeg');
  }
  100% {
    background-image: url('/static/img/nbr1.jpeg');
  }
}

/* footer */
.footer {
  background-color: #fefefe;
  padding: 40px 20px;
  border-top: 2px solid #e3e3e3;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.footer-logo {
  width: 70px;
  height: 70px;
  border-radius: 20%;
  object-fit: cover;
}

.footer-text h3 {
  margin: 0;
  color: #a60000;
  font-size: 20px;
}

.footer-text p {
  margin: 4px 0;
  font-size: 14px;
  color: #666;
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.footer-right-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-right-content h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #a60000;
}

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

.social-icons a {
  display: inline-block;
}

.social-icons img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.15);
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    width: 50px !important;
    height: 50px !important;
  }

  .footer-text h3 {
    font-size: 16px !important;
  }

  .footer-text p {
    font-size: 12px !important;
  }

  .footer-right-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right-content h4 {
    font-size: 14px !important;
    margin-top: 10px;
    margin-left: 60px;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin-top: 6px;
  }

  .social-icons img {
    margin-left: 30px;
    width: 24px !important;
    height: 24px !important;
  }
}



/* footer */

@media (max-width: 768px) {
  body {
    padding-top: 60px;
    font-size: 18px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
  }

  .navbar .logo {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .navbar .menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .navbar .menu a {
    margin: 10px 0;
    font-size: 18px;
  }

  .header {
    height: 300px;
    padding: 0 10px;
    background-position: center center;
  }

  .header h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .section {
    padding: 0 15px;
    margin: 30px 0;
  }

  .section h2 {
    font-size: 24px;
    text-align: center;
  }

  .section p {
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
  }

  .button {
    padding: 12px 0px;
    font-size: 14px;
    display: block;
    margin: 20px auto 0;
    width: 80%;
    text-align: center;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery img {
    height: 250px;
  }

  .footer {
    padding: 50px 20px;
  }

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

  .footer-text h3 {
    font-size: 22px;
  }

  .footer-text p {
    font-size: 16px;
  }

  .footer-right-content h4 {
    font-size: 20px;
  }

  .social-icons img {
    width: 40px;
    height: 40px;
  }
}

/* Sembunyikan hamburger di desktop */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    align-items: center;
  }

  .hamburger {
    display: block;
    margin-left: auto;
  }

  .navbar .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* sesuaikan dengan tinggi navbar */
    left: 0;
    width: 100%;
    background-color: #ff002b;
    padding: 10px 20px;
    z-index: 999;
  }

  .navbar .menu.show {
    display: flex;
  }
  
.header h1,p {
  font-size: 15px;
  margin-bottom: 10px;
}

}
.news-update {
  background-color: #f8f8f8;
  padding: 50px 20px;
  text-align: center;
}

.news-update h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #a60000;
}

.news-update p {
  color: #444;
  margin-bottom: 30px;
}

.news-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.news-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
  width: 280px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: scale(1.03);
}

.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.news-card p {
  padding: 10px 15px;
  font-size: 14px;
}
.about-bigreds {
  background: linear-gradient(to right, #fff5f7, #ffe3e6);
  padding: 60px 20px;
  text-align: center;
}

.about-bigreds h2 {
  font-size: 32px;
  color: #a60000;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-description {
  max-width: 720px;
  margin: 0 auto 50px auto;
  color: #333;
  font-size: 17px;
  line-height: 1.6;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 20px;
  width: 270px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  text-align: center;
}

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

.feature-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}

.feature-card h3 {
  color: #b0001c;
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-card p {
  color: #444;
  font-size: 14.5px;
  line-height: 1.5;
}

#popupOverlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5); /* semi transparan */
  display: flex;
  align-items: center;
  justify-content: center;
}

#popupSuccess {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.join-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #25D366; /* Warna hijau WhatsApp */
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.join-btn:hover {
  background-color: #1ebe5d;
}

.swiper-pagination {
  position: relative;
  z-index: 10;
}.berita-section {
  padding: 50px 20px;
  background-color: #fafafa;
  text-align: center;
}

.berita-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #c8102e;
  font-weight: bold;
}

.news-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.news-card {
  display: flex;
  width: 100%;
  max-width: 760px;
  background: white;
  border-left: 6px solid #c8102e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.news-card img {
  width: 300px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.news-content {
  padding: 15px 18px;
  flex: 1;
  text-align: left;
}

.news-content h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #222;
  font-weight: 600;
  line-height: 1.4;
}

.news-content p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-content small {
  font-size: 0.75rem;
  color: #999;
  display: block;
}

/* Responsive */
@media (max-width: 600px) {
  .news-card {
    flex-direction: column;
    align-items: center;
    border-left: none;
    border-top: 6px solid #c8102e;
  }

  .news-card img {
    width: 100%;
    height: 160px;
  }

  .news-content {
    text-align: center;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  padding: 30px 30px 20px;
  max-width: 700px;
  width: 90%;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideUp 0.4s ease;
  font-family: 'Segoe UI', sans-serif;
  overflow-y: auto;
  max-height: 90vh;
}

/* Tutup button */
.close {
  position: absolute;
  top: 0px;
  right: 20px;
  background-color: #e53935;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.close:hover {
  background-color: #c62828;
}

/* Image */
.modal-content img {
  width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

/* Title */
#modalTitle {
  font-size: 1.7rem;
  margin-bottom: 8px;
  color: #222;
  font-weight: 600;
}

/* Date */
#modalDate {
  display: block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #888;
}

/* Content */
#modalContent {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 500px) {
  .modal-content {
    padding: 20px;
    margin-top: 50px;
  }
  modal-content img {
 margin-top: 20px;
}
  #modalTitle {
    font-size: 1.4rem;
  }
  .close {
    margin-top: 10px;
    padding: 0px 0px;
    font-size: 13px;
  }
}

.fade-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: scale(1);
}
@media (max-width: 600px) {
    .image-section img {
      max-height: 500px; /* Atur sesuai kebutuhan */
    }
  }