:root {
    --primary-green: #23b056;
    --gold-yellow: #d4a017;
    --white: #ffffff;
    --black: #000000;
  }

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

  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
  }



/* Main Content */
.main-content {
    flex: 1; /* Biarkan main mengisi ruang tersisa antara header dan footer */
    overflow-y: auto; /* Memungkinkan scroll jika konten melebihi tinggi halaman */
    padding: 20px;
}

  /* Header and Navigation */
/* Base styles - already in your code */
.header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-logo {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

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

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #31a24c;
}

.logo-text span {
  color: #e3b53b;
}

.navbar {
  width: 80%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(45deg, transparent 10%, #1fad4d 1%);
  border-radius: 0 0 0 20px;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  gap: 2rem;
  margin-left: 10%;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: #fef08a;
  background-color: rgba(255,255,255,0.1);
}

/* Search and Contact Section */
.search-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-right: 20px;
}

.search-bar input {
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  width: 15rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(35, 176, 86, 0.2);
}

.search-contact a {
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-contact a:hover {
  transform: translateY(-2px);
}

.keterangan {
  display: flex;
  justify-content: center;
  padding: 12px 20px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eaeaea;
}

.emanoil p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #555;
}

.emanoil p i {
  color: var(--primary-green);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-green);
  transition: color 0.3s ease;
}

.hamburger:hover {
  color: var(--gold-yellow);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 20px;
  flex-direction: column;
  border-radius: 0 0 8px 8px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.mobile-nav a {
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  background-color: #f0f0f0;
  color: var(--primary-green);
}

.mobile-search-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.mobile-search-bar input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.mobile-search-bar input:focus {
  outline: none;
  border-color: var(--primary-green);
}

.mobile-contact a {
  display: block;
  background: #eab308;
  color: white;
  padding: 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.mobile-contact a:hover {
  background: #ca8a04;
}

/* Dropdown menus */
#dropdownArtikel, #dropdownArtikelMobile, #profileDropdown, #profileDropdownMobile {
  transition: all 0.3s ease;
}

/* NEW RESPONSIVE ADJUSTMENTS */
/* Large screens (above 1200px) - keep original styles */
@media (min-width: 1201px) {
  .navbar {
    width: 80%;
  }
}

/* Medium to large screens (992px to 1200px) */
@media (max-width: 1200px) {
  .navbar {
    width: 85%;
  }
  
  .nav {
    gap: 1.5rem;
    margin-left: 5%;
  }
  
  .search-contact {
    gap: 1rem;
  }
  
  .search-bar input {
    width: 12rem;
  }
}

/* Medium screens (768px to 991px) */
@media (max-width: 991px) {
  .navbar {
    width: 90%;
  }
  
  .nav {
    gap: 1rem;
    margin-left: 3%;
  }
  
  .search-contact {
    gap: 0.75rem;
  }
  
  .search-contact a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .search-bar input {
    width: 10rem;
  }
  
  .logo-text {
    font-size: 20px;
  }
}

/* Small to medium screens (576px to 767px) */
@media (max-width: 767px) {
  .navbar {
    display: none;
  }
  
  .hamburger {
    display: block;
  }

  /* Show mobile menu when active */
  .mobile-menu.active {
    display: flex;
  }
  
  .logo-text {
    font-size: 18px;
  }
}

/* Small screens (up to 575px) */
@media (max-width: 575px) {
  .nav-logo {
    padding: 8px 12px;
  }
  
  .logo-text {
    font-size: 16px;
  }
  
  .mobile-menu {
    padding: 15px;
  }
  
  .mobile-nav a, .mobile-nav button {
    font-size: 1rem;
    padding: 8px;
  }
  
  .mobile-contact a {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* Extra small screens (up to 375px) */
@media (max-width: 375px) {
  .nav-logo {
    padding: 6px 10px;
  }
  
  .logo-text {
    font-size: 14px;
  }
  
  .mobile-menu {
    padding: 12px;
  }
  
  .mobile-nav a, .mobile-nav button {
    font-size: 0.9rem;
    padding: 6px;
  }
}
  /* Carousel Styles */
  .carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
  }

  .carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: auto !important;
    min-height: 20rem;
  }

  .carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 2rem;
    box-sizing: border-box;
  }

  .carousel-item .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .carousel-item > .container > div {
    flex: 1 1 100%;
  }

  .carousel-item h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
  }

  .carousel-item p {
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .carousel-item button {
    margin-top: 1.5rem;
    background-color: var(--white);
    color: var(--primary-green);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .carousel-item button:hover {
    background-color: #e6f4ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .carousel-item .content {
    width: 100%;
    height: 100%;
    background-color: #4b5563;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    overflow: hidden;
  }

  .carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
  }

  .dd {
    display: flex;
    gap: 10px;
  }

  .carousel-indicator {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
  }

  .carousel-indicator.active {
    background-color: #333;
    opacity: 1;
    transform: scale(1.2);
  }

  .carousel-indicator:hover {
    opacity: 0.9;
  }

  /* Section Styles */
  .section-title {
    position: relative;
    color: #e3b53b;
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
  }

  .section-title:after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e3b53b;
  }

  .diagonal-bg {
    background: linear-gradient(135deg, #f4f4f4 60%, #f0d78c 40%);
    padding: 5rem 0;
  }

  .content-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
  }

  .content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  }

  .content-card-img {
    background-color: #4b4b4b;
    height: 180px;
    position: relative;
    overflow: hidden;
  }

  .content-card h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .content-card p {
    color: #666;
  }

  /* Video Section */
  .video-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
  }



  .video-container {
      position: relative;
      height: 100%;
      background-color: #ddd;
      overflow: hidden;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .video-play-button {
      position: absolute;
      bottom: 0; /* Pindahkan tombol ke bagian bawah */
      left: 0;
      right: 0;
      width: 100%;
      height: auto; /* Sesuaikan tinggi tombol dengan kontennya */
      padding: 12px; /* Berikan padding untuk ruang di dalam tombol */
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: rgba(35, 176, 86, 0.7);
      color: white;
      font-weight: 600;
      font-size: 1.2rem;
      transition: all 0.3s ease;
      cursor: pointer;

  }

  .video-play-button:hover {
      background-color: rgba(35, 176, 86, 0.85);
  }


  .video-info {
    background-color: #fff9e5;
    padding: 2rem;
    border-radius: 8px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

  .video-info h2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
  }

  .video-info h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--gold-yellow);
  }

  .video-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
  }

  .video-info a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-green);
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .video-info a:hover {
    color: var(--gold-yellow);
    text-decoration: underline;
  }

  /* Footer Styles */
  footer {
    background-color: #1a1a1a;
    color: white;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  footer h3, footer h4 {
    position: relative;
    margin-bottom: 1.5rem;
  }

  footer h3 span {
    color: var(--primary-green);
  }

  footer h4::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background-color: var(--primary-green);
  }

  footer p {
    color: #b3b3b3;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  footer .social-icons {
    display: flex;
    gap: 1rem;
  }

  footer .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  footer .social-icons a:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
  }

  footer ul li {
    margin-bottom: 0.75rem;
  }

  footer ul li a {
    display: flex;
    align-items: center;
    color: #b3b3b3;
    transition: all 0.3s ease;
  }

  footer ul li a:hover {
    color: var(--primary-green);
    transform: translateX(5px);
  }

  footer ul li a i {
    font-size: 0.7rem;
    margin-right: 0.5rem;
  }

  footer .contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  footer .contact-info li i {
    margin-right: 1rem;
    margin-top: 0.25rem;
  }

  footer .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #333;
    margin-top: 3rem;
  }

  footer .footer-bottom a {
    color: #b3b3b3;
    transition: all 0.3s ease;
  }

  footer .footer-bottom a:hover {
    color: var(--primary-green);
  }

  /* Responsive Styles */
  @media screen and (min-width: 768px) {
    .carousel-item > .container > div {
        flex: 1 1 48%;
    }

    .content-card-img {
        height: 160px;
    }
  }

  @media screen and (max-width: 1024px) {
    .navbar {
        width: 75%;
    }

    .search-bar input {
        width: 12rem;
    }
  }

  @media screen and (max-width: 768px) {
    .navbar {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .keterangan {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .mobile-menu.active {
        display: flex;
    }

    .carousel-item {
        padding: 1.5rem 1rem;
    }

    .carousel-item h2 {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .content-card-img {
        height: 120px;
    }

    .video-info {
        margin-top: 1.5rem;
    }
  }

  @media screen and (max-width: 480px) {
    .nav-logo {
        padding: 10px;
    }

    .logo-text {
        font-size: 20px;
    }

    .keterangan {
        font-size: 0.9rem;
    }

    .carousel-item {
        padding: 1rem;
    }

    .carousel-item h2 {
        font-size: 1.1rem;
    }

    .carousel-item p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .content-card-img {
        height: 100px;
    }

    .content-card h2 {
        font-size: 1rem;
    }

    .video-info h2 {
        font-size: 1.2rem;
    }
  }



          /* Dropdown Animation */
          .hidden {
            display: none;
        }

        .dropdown-enter-active,
        .dropdown-leave-active {
            transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        }

        .dropdown-enter-from,
        .dropdown-leave-to {
            opacity: 0;
            transform: translateY(-10px);
        }


        .fixed {
            position: fixed;
        }

        .z-50 {
            z-index: 50;
        }

        .bg-green-500 {
            background-color: #1fad4d;
        }

        .bg-red-500 {
            background-color: #ef4444;
        }

        .text-white {
            color: white;
        }

        .px-6 {
            padding-left: 1.5rem;
            padding-right: 1.5rem;
        }

        .py-3 {
            padding-top: 0.75rem;
            padding-bottom: 0.75rem;
        }

        .rounded-lg {
            border-radius: 0.5rem;
        }

        .shadow-md {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        /* Animation */
        @keyframes fadeInOut {
            0% {
                opacity: 0;
                transform: translateY(-20px);
            }

            10% {
                opacity: 1;
                transform: translateY(0);
            }

            90% {
                opacity: 1;
                transform: translateY(0);
            }

            100% {
                opacity: 0;
                transform: translateY(-20px);
            }
        }

        .animate-fade-in-out {
            animation: fadeInOut 5s ease-in-out;
        }

        /* Animasi untuk popup */
        /* Error popup styling */
        #popupError.show {
            opacity: 1;
            pointer-events: auto;
        }

        #popupError.show div {
            transform: scale(1);
            opacity: 1;
        }

        /* Default state for popup */
        #popupError {
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
            pointer-events: none;
        }

        #popupError>div {
            transform: scale(0.95);
            opacity: 0;
            transition: all 0.3s ease-in-out;
        }

        /* Icon styling */
        #popupError .fa-exclamation-circle {
            animation: pulse 0.8s ease-in-out;
        }

        /* Pulse animation for the exclamation mark */
        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.2);
            }
        }

        .carousel-slide {
            transition: opacity 0.5s ease-in-out;
        }

        .carousel-indicator {
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .carousel-indicator:hover {
            transform: scale(1.2);
        }

        .carousel-indicator.active {
            transform: scale(1.2);
        }

        /* Fix for button visibility */
        .slide-button {
            position: relative;
            z-index: 30;
            /* Higher z-index ensures button is clickable */
        }

        /* Line clamp for text truncation */
        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Ensure card content doesn't overlap with carousel */
        @media (max-width: 640px) {
            .carousel {
                margin-bottom: 1rem;
            }

            .carousel-slides {
                max-height: 16rem;
                /* h-64 equivalent */
            }
        }



