/* ==================== MODERN SECTION SPACING ==================== */
.section-modern {
  padding: 5rem 0;
  position: relative;
  transition: background-color 0.3s ease;
}

@media (max-width: 991.98px) {
  .section-modern {
    padding: 3.5rem 0;
  }
}

@media (max-width: 767.98px) {
  .section-modern {
    padding: 2.5rem 0;
  }
}

/* Section Dividers - Subtle */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--bs-border-color) 20%,
    var(--bs-border-color) 80%,
    transparent
  );
  margin: 0;
  opacity: 0.5;
}

[data-bs-theme="dark"] .section-divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent
  );
}

/* Alternate Backgrounds */
.section-alt-bg {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(var(--bs-primary-rgb), 0.015) 50%,
    transparent 100%
  );
}

[data-bs-theme="dark"] .section-alt-bg {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.015) 50%,
    transparent 100%
  );
}

/* Section Headers Modern */
.section-header-modern {
  margin-bottom: 3rem;
  position: relative;
}

.section-header-modern .section-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header-modern h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header-modern p {
  font-size: 1.05rem;
  opacity: 0.8;
}

@media (max-width: 767.98px) {
  .section-header-modern {
    margin-bottom: 2rem;
  }
  .section-header-modern h2 {
    font-size: 1.75rem;
  }
  .section-header-modern p {
    font-size: 0.95rem;
  }
}

/* ==================== HERO SLIDER ==================== */
.hero-slider {
  height: 720px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.hero-slider .swiper-slide {
  position: relative;
  overflow: hidden;
}
.hero-slider .swiper-slide img {
  width: 100%;
  height: 720px;
  object-fit: cover;
  filter: brightness(0.6);
  transform: scale(1);
  transition: transform 10s ease;
}
.hero-slider .swiper-slide-active img {
  transform: scale(1.08);
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}
.hero-content {
  color: white;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  animation: fadeInUp 1.2s ease;
}
.hero-content h1 {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 3px 5px 15px rgba(0, 0, 0, 0.8), 1px 2px 5px rgba(0, 0, 0, 0.6);
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: #ffffff;
}
.hero-content p {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.7), 1px 1px 5px rgba(0, 0, 0, 0.5);
  font-weight: 400;
  line-height: 1.6;
  max-width: 800px;
  color: #f5f5f5;
}

.weather-widget-section {
  padding: 2rem 0;
  background-color: var(--bs-body-bg);
  transition: background-color 0.3s ease;
}
.weather-widget-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Override widget style jika perlu */
.weatherwidget-io {
  width: 100% !important;
  max-width: 1200px;
}

/* ==================== NEWS CARDS ==================== */
.news-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  background: #fff;
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.news-card img {
  transition: transform 0.6s ease;
}
.news-card:hover img {
  transform: scale(1.08);
}

/* Main News Card (Kiri Besar) - COMPLETE FIX */
.news-card-main {
  height: 100%;
  min-height: 600px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: flex;
  flex-direction: column;
}

.news-card-main .image-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 600px;
  overflow: hidden;
  background: #000;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: block;
}

.news-card-main .image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

.news-card-main .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 70%,
    transparent 100%
  );
  color: white;
  padding: 2.5rem !important;
  z-index: 2;
  margin: 0;
  border-radius: 0;
}

.news-card-main .card-title {
  color: white !important;
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.news-card-main .card-title a {
  color: white !important;
}
.news-card-main .card-title a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}
.news-card-main .card-text {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1rem;
}
.news-card-main small {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Side News Cards (Kanan 4 Kecil) - COMPLETE FIX */
.news-card-side {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  height: 100%;
}

.news-card-side:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateX(5px);
}

.news-card-side .row {
  margin: 0 !important;
  height: 100%;
  min-height: 140px;
}

.news-card-side .col-5 {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: stretch;
}

.news-card-side .col-7 {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.news-card-side .image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 140px;
  overflow: hidden;
  background: #f0f0f0;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: block;
}

.news-card-side .image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

.news-card-side .card-body {
  padding: 1rem 1.25rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.news-card-side .card-body h6 {
  margin-bottom: 0.5rem !important;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-side .card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Category Badge Modern */
.news-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==================== BREAKING NEWS TICKER ==================== */
.breaking-news-ticker {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  color: white;
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
  position: relative;
  z-index: 1;
}
.breaking-news-ticker marquee {
  font-weight: 500;
  font-size: 0.95rem;
}

/* ==================== EVENT CARDS - FULL IMAGE STYLE ==================== */
.event-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  background: #fff;
  padding: 0 !important;
  position: relative;
  height: 100%;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Event Card Past (untuk event yang sudah selesai) */
.event-card-past {
  opacity: 0.85;
}

.event-card-past:hover {
  opacity: 1;
}

/* Wrapper link untuk clickable card */
.event-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.event-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

.event-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.6s ease;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  border: none !important;
  border-radius: 0 !important;
}

.event-card:hover .event-image-wrapper img {
  transform: scale(1.08);
}

/* Overlay untuk event yang sudah selesai */
.event-past-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge Selesai - Glass Frost di Tengah */
.event-badge-finished {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

/* Status Badge Kecil (Akan Datang/Berlangsung) - Tetap di pojok kiri atas */
.event-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Badge Berlangsung dengan animasi */
.event-badge-live {
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.8);
  }
}

/* Sembunyikan semua elemen card-body dan info text */
.event-card .card-body,
.event-card .card-title,
.event-card .card-text,
.event-card .event-meta,
.event-card .btn {
  display: none !important;
}

/* Date Badge - Sembunyikan */
.event-date-badge {
  display: none !important;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== SWIPER CUSTOM ==================== */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: #fff;
  width: 32px;
  border-radius: 6px;
}
.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
  color: #fff;
  font-weight: bold;
}

/* ==================== DARK MODE ==================== */

/* Background Sections Dark Mode */
[data-bs-theme="dark"] .bg-body {
  background-color: #1e1e2d !important;
}

[data-bs-theme="dark"] .bg-body-secondary {
  background-color: #161623 !important;
}

/* News Cards Dark Mode */
[data-bs-theme="dark"] .news-card-side {
  background: #2b2c40;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .news-card-side:hover {
  background: #32334a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .news-card-side .image-wrapper {
  background: #1a1a2e;
}

[data-bs-theme="dark"] .news-card-side .card-body h6 a {
  color: #e7e7ff !important;
}

[data-bs-theme="dark"] .news-card-side .card-body h6 a:hover {
  color: #b4b5ff !important;
}

[data-bs-theme="dark"] .news-card-side .text-body-secondary {
  color: #a5a5ba !important;
}

[data-bs-theme="dark"] .news-card,
[data-bs-theme="dark"] .news-card-grid {
  background: #2b2c40;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .news-card:hover,
[data-bs-theme="dark"] .news-card-grid:hover {
  background: #32334a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Event Cards Dark Mode */
[data-bs-theme="dark"] .event-card {
  background: #2b2c40;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .event-card:hover {
  background: #32334a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .event-image-wrapper {
  background: #1a1a2e;
}

[data-bs-theme="dark"] .event-badge-finished {
  background: rgba(43, 44, 64, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Text Colors Dark Mode */
[data-bs-theme="dark"] .text-heading {
  color: #e7e7ff !important;
}

[data-bs-theme="dark"] .text-muted {
  color: #a5a5ba !important;
}

/* ==================== RESPONSIVE ==================== */

/* Large Desktop */
@media (min-width: 1400px) {
  .news-card-main {
    min-height: 700px;
  }
  .news-card-main .image-wrapper {
    min-height: 700px;
  }
}

/* Desktop */
@media (min-width: 1200px) and (max-width: 1399px) {
  .news-card-main {
    min-height: 650px;
  }
  .news-card-main .image-wrapper {
    min-height: 650px;
  }
}

/* Tablet */
@media (min-width: 992px) and (max-width: 1199px) {
  .news-card-main {
    min-height: 550px;
  }
  .news-card-main .image-wrapper {
    min-height: 550px;
  }
  .news-card-side .image-wrapper {
    min-height: 130px;
  }
  .event-image-wrapper {
    min-height: 260px;
  }
}

/* Small Tablet */
@media (max-width: 991px) {
  .news-card-main {
    min-height: 500px;
  }
  .news-card-main .image-wrapper {
    min-height: 500px;
  }
  .news-card-main .card-body {
    padding: 2rem !important;
  }
  .event-image-wrapper {
    min-height: 240px;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  /* Hero - Improved Mobile View */
  .hero-slider,
  .hero-slider .swiper-slide img {
    height: 450px;
  }

  .hero-overlay {
    padding-bottom: 50px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0.2) 100%
    );
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Hide navigation arrows on mobile */
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  /* Adjust pagination for mobile */
  .swiper-pagination {
    bottom: 15px !important;
  }

  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .swiper-pagination-bullet-active {
    width: 24px;
  }

  /* News Main Card */
  .news-card-main {
    min-height: 400px;
    margin-bottom: 1rem;
  }
  .news-card-main .image-wrapper {
    min-height: 400px;
  }
  .news-card-main .card-body {
    padding: 1.5rem !important;
  }
  .news-card-main .card-title {
    font-size: 1.35rem;
  }

  /* Hide description on mobile for main news card */
  .news-card-main .card-text {
    display: none;
  }

  /* News Side Cards - Stack Vertically on Mobile */
  .news-card-side {
    margin-bottom: 1rem;
  }
  .news-card-side .row {
    flex-direction: row !important;
    min-height: 120px;
  }
  .news-card-side .col-5 {
    flex: 0 0 40% !important;
    max-width: 40% !important;
  }
  .news-card-side .col-7 {
    flex: 0 0 60% !important;
    max-width: 60% !important;
  }
  .news-card-side .image-wrapper {
    min-height: 120px;
    height: 100%;
  }
  .news-card-side .card-body {
    padding: 0.75rem 1rem !important;
  }
  .news-card-side .card-body h6 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem !important;
  }
  .news-card-side .card-body p {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  /* Events */
  .event-image-wrapper {
    min-height: 220px;
  }

  .event-badge {
    font-size: 0.65rem;
    padding: 5px 10px;
  }

  .event-badge-finished {
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
  }

  /* Fix z-index for sections */
  .section-py {
    position: relative;
    z-index: 1;
  }
  .lottie-cta-section {
    position: relative;
    z-index: 0;
  }

  /* Section Header Mobile - Center align and hide button */
  .section-py .row.mb-6 {
    margin-bottom: 2rem !important;
  }

  .section-py .d-flex.justify-content-between {
    justify-content: center !important;
    text-align: center;
  }

  .section-py .d-flex.justify-content-between > div {
    text-align: center;
  }

  /* Hide button in header on mobile for both sections */
  .section-py .row.mb-6 .d-flex.justify-content-between .btn {
    display: none;
  }

  .section-py .d-flex.justify-content-between > div h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem !important;
  }

  .section-py .d-flex.justify-content-between > div p {
    font-size: 0.9rem;
  }
}

/* Mobile Small */
@media (max-width: 576px) {
  .hero-content {
    padding: 0 1rem;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 1rem;
  }

  .news-card-main {
    min-height: 350px;
  }
  .news-card-main .image-wrapper {
    min-height: 350px;
  }
  .news-card-main .card-body {
    padding: 1.25rem !important;
  }
  .news-card-main .card-title {
    font-size: 1.2rem;
  }

  /* Keep description hidden */
  .news-card-main .card-text {
    display: none;
  }

  .news-card-side .image-wrapper {
    min-height: 110px;
  }
  .news-card-side .card-body h6 {
    font-size: 0.85rem;
  }
  .news-card-side .card-body p {
    font-size: 0.7rem;
  }

  .event-image-wrapper {
    min-height: 200px;
  }

  .event-badge-finished {
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
  }

  /* Section Header for small mobile */
  .section-py .d-flex.justify-content-between > div h2 {
    font-size: 1.3rem;
  }

  .section-py .d-flex.justify-content-between > div p {
    font-size: 0.85rem;
  }
}
