@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* VARIABLES */
:root {
  --c-dark: #212529;
  --c-brand: #be8314;
  --c-brand-light: #ffffffe5;
  --c-brand-rgb: rgb(20, 190, 71);
  --c-body: #4b4946;
  --font-base: "generalsans", sans-serif;
  --box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.08);
  --transition: alll 0.5s ease;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  /* Cegah isi tumpah kiri/kanan */
  box-sizing: border-box;
  width: 100%;
  color: var(--c-body);
}

h1,
h2,
h3,
h4,
h5,
h6 .h1,
.h2,
.h3,
.h4,
h5,
.h6 {
  font-weight: 600;
  color: var(--c-white);
}

a {
  text-decoration: none;
  color: var(--c-brand);
  transition: var(--transition);
}

a:hover {
  color: var(--c-brand-light);
}


/* Mega Menu Styling */
.navbar {
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transform: translateY(0) !important;
  transition: transform 0.4s ease-in-out;
  background: linear-gradient(to bottom, rgba(55, 82, 40, 0.7), transparent);
}

.navbar.nav-open {
  background: white !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.navbar.nav-open .nav-link {
  color: #000 !important;
}

.navbar.nav-open .navbar-brand img {
  filter: brightness(0);
}

.navbar.scrolled {
  background: white !important;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar-hide {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease-in-out;
}

.navbar-show {
  transform: translateY(0) !important;
  transition: transform 0.3s ease-in-out;
}

.navbar-brand img {
  width: auto;
  height: 5vh;
  margin-left: 50%;
  object-fit: contain;
}

.navbar-collapse {
  padding-right: 2rem;
}

.navbar-nav {
  padding-right: 2rem;
}

.nav-link {
  color: #adacac !important;
  text-shadow: #000;
  font-weight: 500;
  padding: 0.75rem 1rem;
}

.nav-item {
  position: relative;
}

.dropdown-mega {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100vw;
  background: #fff;
  padding: 2rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  z-index: 999;
  border-top: 3px solid #00a896;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  display: block;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dropdown-trigger.open .dropdown-mega {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-mega .container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  justify-content: center;
}

.mega-column {
  flex: 1;
  min-width: 200px;
  padding: 0 1rem;
}

.mega-column h6 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.mega-column p {
  font-size: 0.9rem;
  color: #444;
}

.mega-column ul {
  list-style: none;
  padding-left: 0;
}

.mega-column ul li {
  margin-bottom: 0.5rem;
}

.mega-column ul li a {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
}

.mega-column ul li a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  .navbar-brand img {
    margin-left: 0;
  }

  .dropdown-mega {
    top: 65px;
    padding: 1.5rem 1rem;
  }

  .dropdown-mega .container {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }

  .mega-column {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
  }

  .mega-column:last-child {
    border-bottom: none;
  }
}

@media (max-width: 991px) {
  .navbar-brand img {
    margin-left: 0;
  }

  .dropdown-mega {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    background: #f9f9f9;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    display: block;
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .dropdown-trigger.open .dropdown-mega {
    max-height: 800px;
  }

  .dropdown-mega .container {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .mega-column {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    text-align: center;
  }

  .mega-column:last-child {
    border-bottom: none;
  }

  .mega-column ul {
    text-align: center;
  }

  .navbar-brand img {
    width: auto;
    height: 3vh;
    margin-left: 20%;
    object-fit: contain;
  }
}

/* Footer */
footer {
  background-color: #0F6C50;
  color: #ffffff;
  padding: 40px 20px;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  color: orange;
}

.social-icons a {
  margin-right: 15px;
  color: #ffffff;
  font-size: 20px;
}

.social-icons a:hover {
  color: orange;
}

.menu-list a {
  display: block;
  margin-bottom: 10px;
}

.subscribe input {
  margin-bottom: 10px;
}

.img-logo {
  width: 245px;
  height: auto;
}

.btn-info {
  background-color: #17a2b8;        /* Warna biru khas info */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;              /* Sudut membulat */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Bayangan ala card */
  transition: all 0.3s ease;
  font-weight: 500;
  text-transform: capitalize;
  display: inline-block;
  width: 100%;                      /* Jika ingin tombol selebar form */
  text-align: center;
}

.btn-info:hover {
  background-color: #138496;        /* Warna saat hover */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);  /* Bayangan saat hover */
  transform: translateY(-2px);      /* Sedikit naik saat hover */
}

/* konten tentang Epic */
.custom-bg {
  background-color: rgba(244, 255, 252, 1);
}

.summary-title {
  font-size: 12px;
  font-weight: bold;
  color: rgba(9, 92, 66, 1);
  position: relative;
  padding-left: 20px;
}

.summary-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background-color: rgba(9, 92, 66, 1);
}

.main-title {
  font-size: 28px;
  font-weight: bold;
}

.main-title span {
  color: rgba(9, 92, 66, 1);
}

.description {
  color: rgba(0, 0, 0, 0.8);
  text-align: justify;
}

@media (max-width: 768px) {
  .summary-title {
    text-align: center;
    padding-left: 0;
  }

  .description {
    padding: 0 16px;
  }

  ul.description {
    padding-left: 50px;
  }

  .summary-title::before {
    display: none;
  }

  .main-title {
    text-align: center;
    font-size: 22px;
  }

  .description {
    padding: 0 16px;
  }
}

/* Konten Kemitraan */
.partner-title {
  font-size: 19px;
  font-weight: normal;
  color: rgba(9, 92, 66, 1);
  position: relative;
  padding-left: 20px;
  display: inline-block;
}

.partner-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 2px;
  background-color: rgba(9, 92, 66, 1);
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.mitra-title span {
  font: bold;
  color: rgba(9, 92, 66, 1);
}

.logo-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-direction: row;
  transition: margin 0.3s ease;
}

.logo-block:not(.active) {
  margin-right: 20px;
}

.logo-card {
  position: relative;
  width: 128px;
  height: 128px;
  transition: transform 0.4s ease;
}

.logo-card.active {
  transform: translateX(-10px);
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.see-more {
  font-size: 12px;
  position: absolute;
  top: -16px;
  right: -16px;
  background-color: rgba(9, 92, 66, 1);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.hover-text {
  position: absolute;
  top: -14px;
  right: -80px;
  font-size: 12px;
  color: rgba(9, 92, 66, 1);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.logo-card:hover .hover-text {
  opacity: 1;
  transform: translateX(0);
}

.logo-description {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  text-align: justify;
  color: rgba(0, 0, 0, 0.8);
  max-width: 300px;
  display: none;
}

.logo-description.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.logo-description.fade-out {
  opacity: 0 !important;
  transform: translateY(10px) !important;
}

@media (max-width: 768px) {
  .logo-block {
    flex-direction: column;
    align-items: center;
  }

  .logo-description {
    max-width: 100%;
    text-align: center;
  }
}

/* konten visi&misi nilai inti */
    /* Sidebar */
    .sidebar-card {
      background-color: rgba(9, 92, 66, 1);
      width: 438px;
      height: 390px;
      border-radius: 21px;
      color: white;
      padding: 30px;
    }

    .sidebar-title {
      font-size: 25px;
      font-weight: bold;
      text-align: center;
      margin-bottom: 30px;
    }

    .sidebar-link {
      font-size: 17px;
      text-decoration: underline;
      cursor: pointer;
      margin-bottom: 15px;
      display: block;
    }

    .logo-company {
      opacity: 0.6;
      width: 100%;
      max-width: 200px;
      margin-top: 10px;
    }

    /* Content */
    .content-area {
      margin-left: 40px;
      position: relative;
    }

    .section-title {
      font-size: 18px;
      font-weight: bold;
      color: rgba(9, 92, 66, 1);
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
    }

    .section-title::before {
      content: "";
      width: 30px;
      height: 2px;
      background-color: rgba(9, 92, 66, 1);
    }

    .content-title {
      font-size: 28px;
      font-weight: bold;
      color: rgba(0, 0, 0, 1);
      margin-bottom: 15px;
    }

    .content-paragraph {
      font-size: 17px;
      text-align: justify;
      color: rgba(0, 0, 0, 0.8);
      margin-bottom: 30px;
    }

    .content-list {
      font-size: 19px;
      text-align: justify;
      color: rgba(0, 0, 0, 0.8);
    }

    /* Nilai nilai style */
    .nilai-point {
      font-weight: bold;
      color: rgba(9, 92, 66, 1);
    }

    .nilai-description {
      color: rgba(0, 0, 0, 0.8);
      font-weight: normal;
    }

    /* Fade Animation */
    .fade {
      opacity: 0;
      transition: opacity 0.5s ease;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }

    .fade.show {
      opacity: 1;
      position: relative;
    }

    @media (max-width: 768px) {
  .sidebar-card {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
  }

  .sidebar-title {
    font-size: 22px;
  }

  .sidebar-link {
    font-size: 16px;
  }

  .logo-company {
    margin-top: 40px;
    max-width: 150px;
  }

  .content-area {
    margin-left: 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .content-title {
    font-size: 24px;
  }

  .content-paragraph,
  .content-list {
    font-size: 18px;
  }

  .section-title {
    font-size: 16px;
  }

  .nilai-point {
    display: inline-block;
    margin-bottom: 5px;
  }
}