/* ===================================
    Crafto - Green energy 
====================================== */
/* font */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200..800&display=swap");
/* variable */
:root {
  --alt-font: "Plus Jakarta Sans", sans-serif;
  --primary-font: "Plus Jakarta Sans", sans-serif;
  --base-color: #a2cc04;
  --green: #a2cc04;
  --dpkwi-red: #bb161d;
  --dark-gray: #1f2220;
  --medium-gray: #828282;
  --very-light-gray: #f7f7f7;
}
body {
  font-size: 16px;
  line-height: 28px;
}

.box-layout {
  padding: 0 40px;
}

/* header */
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu {
  width: 300px;
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
  font-size: 16px;
  color: var(--dark-gray);
  font-weight: 600;
}
.navbar
  .navbar-nav
  .dropdown.dropdown-with-icon-style02
  .dropdown-menu
  li
  a:hover,
.navbar
  .navbar-nav
  .dropdown.dropdown-with-icon-style02
  .dropdown-menu
  li.active:hover
  > a {
  background-color: var(--base-color);
  color: var(--white);
}
.navbar .navbar-nav .dropdown .dropdown-menu a i,
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a i {
  font-size: 40px;
  margin-right: 10px;
  width: 40px;
}
.navbar
  .navbar-nav
  .dropdown.dropdown-with-icon-style02
  .dropdown-menu
  li
  a:hover
  i {
  color: var(--white);
}
header .navbar-brand img {
  max-height: 78px;
}
.navbar .navbar-nav .nav-link {
  font-weight: 600;
  font-size: 18px;
}

.dropdown-menu .dropdown-item {
    white-space: normal !important;
    height: auto;
    line-height: 1.4;
}
/* button */
.btn {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0px;
}
.btn.btn-switch-text.btn-extra-large > span {
  padding: 17px 38px;
  font-size: 17px;
}
.btn.btn-switch-text.btn-large > span {
  padding: 13px 32px;
  font-size: 15px;
}
.btn.btn-switch-text.btn-medium > span {
  padding: 12px 26px;
  font-size: 14px;
}

.btn.btn-camarone {
  background-color: var(--camarone);
  color: var(--white);
}
.btn.btn-camarone:hover,
.btn.btn-camarone:active {
  background-color: transparent;
  border-color: var(--camarone);
  color: var(--camarone);
}

.btn.btn-dark-red {
  background-color: #8f080d;
  color: var(--white);
}
.btn.btn-dark-red:hover,
.btn.btn-dark-red:active {
  background-color: transparent;
  border-color: #8f080d;
  color: #8f080d;
}

.btn.btn-dpkwi-red {
  background-color: var(--dpkwi-red);
  color: var(--dark-gray);
}
.btn.btn-dpkwi-red:hover,
.btn.btn-dpkwi-red:active {
  background-color: var(--dpkwi-red);
  border-color: var(--dpkwi-red);
  color: var(--dpkwi-red);
}
/* heading */
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 25px;
}

.accordion-style-06 .accordion-item.active-accordion {
  background-image: linear-gradient(
    to bottom,
    #eff5d7,
    #f9fde8,
    #fbfcfb,
    #fdfdfd,
    #ffffff
  );
}

/* Text ellipsis utilities */
.text-ellipsis-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 2.8em; /* 2 lines * line-height */
}

.text-ellipsis-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 4.2em; /* 3 lines * line-height */
}

/* Text gradient color */
.text-gradient-light-green-white {
  background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, #ebf6ee 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Text custom color */
.text-dpkwi-red {
  color: var(--dpkwi-red);
}
/* Background color */
.bg-dpkwi-red {
  background-color: var(--dpkwi-red);
}

.bg-light-green {
  background-color: #c4e7cc;
}
.bg-very-light-green {
  background-color: #ebf3ed;
}
/* Transparent background color */
.bg-gradient-green-transparent {
  background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, #ebf3ed 100%);
}

.bg-gradient-green-to-yellow {
  background: linear-gradient(to right, #a2cc04, #bfcc04, #f5e803);
}

.bg-gradient-top-black {
  background-image: linear-gradient(
    to top,
    #000000,
    #00000093,
    #00000055,
    #00000030,
    #00000000
  );
}

.bg-dpkwi-red {
  background-color: #ba1319;
}

.bg-very-dark-gray {
  background-color: #09090b;
}

.right-210px {
  right: 210px;
}
.right-210px {
  right: 300px;
}

/* page title */
.page-title-large h1 {
  font-size: 4.2rem;
  line-height: 4rem;
}
.page-title-large h2 {
  font-size: 18px;
}

/* Border color */
.border-color-dark-green {
  border-color: var(--green);
}

.border-color-dpkwi-red {
  border-color: var(--dpkwi-red) !important;
}
/* Subcribe style 02 */
.newsletter-style-02 .btn:hover {
  background-color: var(--very-light-gray);
}
.newsletter-style-02 .btn {
  height: 85%;
  margin: 4px;
  padding: 5px 20px 5px;
}
.newsletter-style-02 input {
  padding-right: 75px !important;
}

/* Custom styling for form dropdowns to match contact form style */
.contact-form-style-03 select.form-select {
  padding: 0.375rem 2.25rem 0.375rem 0;
  background-position: right 0.25rem center;
  background-size: 16px 12px;
  border: 0;
  border-bottom: 1px solid var(--dark-gray);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
}

.contact-form-style-03 select.form-select:focus {
  border: 0;
  border-bottom: 1px solid #c2c2c2;
  box-shadow: none;
  outline: 0;
}

/* Fix for dropdown icon when form-icon is present */
.position-relative .form-icon + select.form-select {
  padding-right: 3rem;
}

/* Custom styling for radio buttons */
.radio-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-top: 8px;
}

.custom-radio {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  user-select: none;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.custom-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: transparent;
  border: 1px solid var(--dark-gray);
  border-radius: 50%;
  transform: translateY(-50%);
}

.custom-radio:hover input ~ .radio-checkmark {
  background-color: rgba(162, 204, 4, 0.1);
}

.custom-radio input:checked ~ .radio-checkmark {
  border-color: var(--base-color);
  border-width: 1px;
}

.radio-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-radio input:checked ~ .radio-checkmark:after {
  display: block;
}

.custom-radio .radio-checkmark:after {
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--base-color);
  transform: translate(-50%, -50%);
}

.blog-image-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3; 
    border-radius: 5px 5px 0 0; 
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.popular-post-sidebar figure {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 15px;
}

.popular-post-sidebar figure a,
.popular-post-sidebar figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.small-placeholder {
    font-size: 14px !important;
}
.small-placeholder::placeholder {
    font-size: 14px !important;
}

@media (max-width: 767px) {
    .small-placeholder {
        font-size: 13px !important;
    }
    .small-placeholder::placeholder {
        font-size: 13px !important;
    }
}

/* Height */
.half-screen {
  height: 100vh;
}
/* Will change */
.animation-rotation {
  -webkit-animation: rotation 2.5s infinite linear;
  animation: rotation 2.5s infinite linear;
}
/* footer */
footer .footer-logo img {
  max-height: 43px;
  width: auto;
}
footer a:hover {
  color: var(--white);
}
footer ul li {
  margin-bottom: 2px;
}
@media (min-width: 1400px) {
  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 1320px;
  }
}
@media (max-width: 1600px) {
  /* Font size */
  .fs-80 {
    font-size: 4rem;
    line-height: 4rem;
  }
}
@media (max-width: 1199px) {
  .navbar .navbar-nav .nav-link {
    font-size: 16px;
    padding: 10px 10px;
  }
}
@media (max-width: 991px) {
  /* Background image */
  .md-background-position-top-center {
    background-position: top center !important;
  }
  .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu {
    padding-bottom: 15px;
  }
}
@media (max-width: 767px) {
  /* Background image */
  .sm-background-position-top-center {
    background-position: top center !important;
  }
}

.shop-sidebar .shop-filter li a.active .product-cb {
    border-color: var(--dark-gray);
}

.shop-sidebar .shop-filter li a.active .product-cb:after {
    opacity: 1;
}

.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 77, 77, .7);
    transition: all .4s;
    z-index: 1050;
}

/* State saat modal aktif (dipicu oleh :target) */
.modal:target {
    visibility: visible;
    opacity: 1;
}

/* Kontainer konten di dalam modal */
.modal__content {
    position: relative;
    width: 800px;
    max-width: 90%;
    background: #fff;
    border-radius: 6px;
    /* Mencegah konten keluar dari sudut rounded */
    overflow: hidden; 
}

/* Tombol close */
.modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #585858;
    text-decoration: none;
    font-size: 28px;
    line-height: 1;
    z-index: 10;
}

/* === BAGIAN INTI: LAYOUT FLEXBOX === */

/* Wrapper untuk kolom gambar dan teks */
.modal__body {
    display: flex;
    flex-direction: row; /* Berdampingan di desktop */
}

/* Kolom gambar di sebelah kiri */
.modal__image {
    flex: 0 0 40%; /* Tidak tumbuh, tidak menyusut, lebar dasar 40% */
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.modal__text {
    flex: 1 1 60%;
    padding: 2.5rem;
}

.modal__detail-row {
    display: flex;
    justify-content: space-between;
}
.modal__detail-label {
    flex-basis: 40%;
    text-align: left;
    font-weight: 500;
    color: #111;
}
.modal__detail-value {
    flex-basis: 100%;
    color: #666;
}
.separator {
    border-bottom: 1px solid #eee;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .modal__body {
        flex-direction: column; /* Ubah arah menjadi tumpukan vertikal */
    }

    .modal__image {
        min-height: 250px; /* Sesuaikan tinggi gambar untuk mobile */
    }

    .modal__text {
        padding: 1.5rem; /* Kurangi padding di mobile */
    }
}

/* Profile Dropdown Styles */
  .profile-button {
      display: flex;
      align-items: center;
      gap: 10px;
      background: white;
      padding: 6px 15px 6px 6px;
      border-radius: 25px;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
      border: 2px solid transparent;
  }

  .profile-button:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      border-color: var(--base-color);
  }

  .profile-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--base-color);
  }

  .profile-name {
      font-weight: 600;
      color: #333;
      font-size: 14px;
  }

  .profile-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      margin-top: 12px;
      background: white;
      border-radius: 16px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
      width: 280px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      z-index: 9999;
  }

  .profile-dropdown.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
  }

  .dropdown-header {
      padding: 24px;
      text-align: center;
      border-bottom: 1px solid #f0f0f0;
  }

  .dropdown-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      margin: 0 auto 12px;
      object-fit: cover;
      border: 3px solid var(--base-color);
  }

  .dropdown-username {
      font-size: 18px;
      font-weight: 600;
      color: #333;
  }

  .profile-dropdown .dropdown-menu {
      list-style: none;
      padding: 8px 0;
      margin: 0;
      display: block !important; /* Override Bootstrap's display: none */
      position: static !important; /* Override Bootstrap's positioning */
      float: none !important;
      min-width: auto !important;
      border: none !important;
      box-shadow: none !important;
  }

  .dropdown-item {
      padding: 0;
  }

  .dropdown-item a {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 14px 24px;
      text-decoration: none;
      color: #555;
      font-size: 15px;
      transition: all 0.2s ease;
  }

  .dropdown-item a:hover {
      background: #f8f9fa;
      color: var(--base-color);
  }

  .dropdown-item.logout a {
      color: #dc3545;
  }

  .dropdown-item.logout a:hover {
      background: #fff5f5;
      color: #dc3545;
  }

  .dropdown-item i {
      width: 20px;
      font-size: 18px;
      text-align: center;
  }

  .header-icon.profile-wrapper {
      position: relative;
  }

  .profile-menu-list {
    padding: 20px;
    margin-bottom: 0px;
  }

  /* efek gradient fade separator */
  .separator-gradient-fade-left {
      position: relative;
      overflow: visible;
  }

  .separator-gradient-fade-left-slider {
      position: relative;
      overflow: visible;
  }

  .separator-gradient-fade-left::before {
      content: "";
      position: absolute;
      top: 0;
      right: -2px; 
      width: 45px;
      height: 100%;
      background: linear-gradient(to left, #a6d100 8%, rgba(157, 193, 37, 0) 100%);
      z-index: 5;
      pointer-events: none;
  }

  .separator-gradient-fade-left-slider::before {
      content: "";
      position: absolute;
      top: 0;
      right: -20px; 
      width: 45px;
      height: 100%;
      background: linear-gradient(to left, #a6d100 8%, rgba(157, 193, 37, 0) 100%);
      z-index: 5;
      pointer-events: none;
  }

  .separator-gradient-fade-right {
      position: relative;
      overflow: visible;
  }

  .separator-gradient-fade-right-slider {
      position: relative;
      overflow: visible;
  }

  .separator-gradient-fade-right::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0px; 
      width: 108px;
      height: 100%;
      background: #2596be;
      background: linear-gradient(
        to right,
        /* #a6d100 0%, */
        rgba(164, 209, 20, 1) 0%, 
        rgba(164, 209, 20, 1) 10%,
        rgba(164, 209, 20, 0.95) 18%,
        rgba(164, 209, 20, 0.85) 26%,
        rgba(164, 209, 20, 0.70) 35%,
        rgba(164, 209, 20, 0.50) 48%,
        rgba(164, 209, 20, 0.30) 62%,
        rgba(164, 209, 20, 0.12) 78%,
        rgba(164, 209, 20, 0) 100%
      );
      z-index: 5;
      pointer-events: none;
  }

  .separator-gradient-fade-right-slider::before {
      content: "";
      position: absolute;
      top: 0;
      left: -2px;
      width: 220px;
      height: 100%;
      background: #A5D10C;
      background: linear-gradient(
        to right,
        /* #a6d100 0%, */
        rgba(165, 209, 12, 1) 0%, 
        rgba(165, 209, 12, 1) 10%,
        rgba(165, 209, 12, 0.95) 18%,
        rgba(165, 209, 12, 0.85) 26%,
        rgba(165, 209, 12, 0.70) 35%,
        rgba(165, 209, 12, 0.50) 48%,
        rgba(165, 209, 12, 0.30) 62%,
        rgba(165, 209, 12, 0.12) 78%,
        rgba(165, 209, 12, 0) 100%
      );
      z-index: 6;
      pointer-events: none;
  }

  @media (max-width: 991px) {
      .separator-gradient-fade-left::before {
          display: none;
      }
  }

  @media (max-width: 767px) {
      .separator-gradient-fade-right::before {
          display: none;
      }
  }

  @media (max-width: 991px) {
      .separator-gradient-fade-right-slider::before {
          display: none;
      }
  }

  @media (max-width: 767px) {
      .profile-dropdown {
          right: -10px;
          width: 260px;
      }
  }

  /* tampilan disabled tag a */
  a.disabled {
    pointer-events: none;   
    color: #999 !important; 
    cursor: not-allowed;    
    text-decoration: none;  
}

.box-gray-shadow-quadruple-large,
.box-gray-shadow-quadruple-large-hover:hover {
  -webkit-box-shadow: 0 20px 60px rgb(255, 255, 255);
  box-shadow: 0 20px 60px rgba(155, 205, 38, 0.114);
  -webkit-transition: all 350ms cubic-bezier(0.37, 0, 0.63, 1);
  transition: all 350ms cubic-bezier(0.37, 0, 0.63, 1);
}

@media (max-width: 767.98px) {
    .btn-responsive-mobile {
        padding: 16px 26px !important; 
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

/* card consent agreement */
.card-image-section {
    height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

/* Overlay untuk kontras */
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.1)
    );
}

/* Judul */
.card-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-weight: 700;
    font-size: 22px;
    padding: 20px 24px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.card-content-section {
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.consent-list {
    max-height: 220px;
    overflow-y: auto;
}

.form-check-input {
    cursor: pointer;
}

/* Wrapper */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Hide native checkbox */
.custom-checkbox-input {
    display: none;
}

/* Label */
.custom-checkbox-label {
    position: relative;
    padding-left: 36px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Box */
.custom-checkbox-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #cfd8dc;
    background: #fff;
    transition: all 0.2s ease;
}

/* Check icon */
.custom-checkbox-label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.15s ease;
}

/* Checked state */
.custom-checkbox-input:checked + .custom-checkbox-label::before {
    background: #b7db4f; /* samakan dengan button */
    border-color: #b7db4f;
}

.custom-checkbox-input:checked + .custom-checkbox-label::after {
    transform: rotate(-45deg) scale(1);
}

/* Hover */
.custom-checkbox-label:hover::before {
    border-color: #9ccc3c;
}

/* Focus (accessibility) */
.custom-checkbox-input:focus + .custom-checkbox-label::before {
    box-shadow: 0 0 0 3px rgba(183, 219, 79, 0.35);
}

.navbar-toggler span.navbar-toggler-line {
    pointer-events: none;
}