body {
    font-family: "Open Sans", sans-serif;
    /* background-image: url("/assets/images/background/bg.jpg"); */
    background-size: cover;
    /* background-repeat: repeat-y; */
}
.section-slider{
    margin-top: 100px;
}
@media (max-width: 768px) {
    .section-slider{
        margin-top: 80px;
    }
    .container {
        --bs-gutter-x: 1.5rem !important;;
        --bs-gutter-y: 0 !important;;
        width: 100% !important;
        padding-right: calc(var(--bs-gutter-x)* .5) !important;
        padding-left: calc(var(--bs-gutter-x)* .5) !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
    .navbar {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
}
.carousel {
    margin-bottom: 1.5rem!important;
}
#section-detail-0{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}


/* Dropdown */
.custom-dropdown {
    max-width: 300px;
    margin: 20px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-toggle {
    background-color: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    width: fit-content;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
}

/* Styles untuk toggle layout */
.layout-toggle {
    position: sticky;
    top: 10px;
    z-index: 100;
    margin-right: 15px;
}

.layout-toggle .btn-group {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.layout-toggle .btn {
    padding: 0.375rem 0.75rem;
}

/* Animasi transisi saat ganti layout */
.category-content .col-lg-6 {
    transition: all 0.3s ease;
}

/* Pengaturan font size saat grid view (2 card per row) */
.grid-layout .category-content .col-lg-6 h4 {
    font-size: 0.9rem !important;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.grid-layout .category-content .col-lg-6 .card-text,
.grid-layout .category-content .col-lg-6 .text-muted,
.grid-layout .category-content .col-lg-6 .fw-bold {
    font-size: 0.8rem !important;
}

.grid-layout .category-content .col-lg-6 .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* Pengaturan font size saat list view (1 card per row) */
.list-layout .category-content .col-lg-6 h4 {
    font-size: 1rem !important;
    line-height: 1.4;
}

.list-layout .category-content .col-lg-6 .card-text,
.list-layout .category-content .col-lg-6 .text-muted,
.list-layout .category-content .col-lg-6 .fw-bold {
    font-size: 0.9rem !important;
}

/* Media queries agar toggle view hanya muncul di mobile */
@media (min-width: 769px) {
    .layout-toggle {
        display: none !important;
    }
}

/* Responsif styling untuk list-view di mobile */
@media (max-width: 768px) {
    .list-layout .category-content .card {
        padding: 1rem !important;
    }

    .grid-layout .category-content .card {
        padding: 0.75rem !important;
    }

    .grid-layout .category-content .card .card-img-container {
        height: 100px;
    }

    .grid-layout .category-content .card img {
        height: 100%;
    }

    /* Khusus untuk col-6 dalam grid layout */
    .grid-layout .category-content .col-6 .card-img-container img {
        max-height: 100px;
        object-fit: contain;
    }
    .carousel {
        margin-bottom: 0.8rem!important;
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: #333;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.dropdown-item .icon {
    color: #ff1493;
    margin-right: 10px;
}

.dropdown-item .arrow {
    color: #888;
}

.dropdown-item span {
    margin-right: 20px;
}

/* Section */
.section-0 {
    background-color: #f8f9fa;
    padding-top: 50px;
    padding-bottom: 50px;
}

.section-1 {
    background-color: #fff;
    padding-top: 50px;
    padding-bottom: 50px;
}

.section-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.section-title {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 15px;
}

/* Button */
.btn {
    border-radius: 10px;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.categories-container-img {
    padding: 10px;
    background-color: #fff;
    width: 75px;
    aspect-ratio: 1;
    border-radius: 50%;
}

/* Card */
.card {
    border-radius: 15px;
    background-color: #f8f9fa;
    border: none;
    margin-bottom: 20px;
    overflow: hidden;
}

.card h4 {
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
}

.card-img-container {
    position: relative;
    width: 150px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
    background-color: #000;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card:hover .card-img-container {
    transform: rotate(-3deg);
}

.card-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Product */
.title-product {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.description-product {
    text-align: justify;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.image-product {
    width: 100%;
    border-radius: 10px;
}

.price-product i {
    margin-right: 5px;
}

/* Carousel */
.carousel {
    margin-bottom: 3rem;
}

.carousel-item {
    height: 300px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.carousel-control-prev,
.carousel-control-next {
    display: none;
}

.carousel-indicators {
    margin-bottom: 1rem;
}

/* About */
.image-profile {
    border-radius: 50%;
    width: 200px;
    height: 200px;
}

.text-h4 {
    margin-top: 30px;
    font-size: 2.125rem !important;
    font-weight: 700 !important;
    line-height: 2.5rem !important;
    letter-spacing: 0.00735em;
}

.text-h5 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2rem;
    letter-spacing: normal;
}

.social-media {
    margin-top: 20px;
}

.social-media i {
    /* color: #0c68df !important; */
    font-size: 2.5rem;
    margin-right: 1rem;
}

.footer {
    margin-top: 50px;
    text-align: center;
}

/* Footer */
.footer p {
    font-size: 0.9rem;
    line-height: 0.5rem;
}

/* Video */
.description-video {
    text-align: justify;
    /* margin-top: 30px; */
    font-size: 1.125rem;
    line-height: 1.5;
}

.trailer iframe {
    margin-top: 50px;
    border-radius: 15px;
    width: 100%;
    height: 650px;
}

.lock-product {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 20px;
    background-color: #f8f9fa;
    padding-top: 30px;
    padding-bottom: 20px;
    text-align: center;
}

/* Lock */
#lock {
    font-size: 3rem;
    /* color: #0c68df; */
    margin-bottom: 15px;
}

.lock-product p {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
}

/* Question */
.question {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.answer {
    text-align: justify;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 95%;
    height: 85%;
    max-width: 1200px;
    max-height: 900px;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    background: red;
    color: white;
    border: none;
    padding: 5px 15px;
}

.popup iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .dropdown-toggle {
        display: none;
    }

    .btn {
        margin-bottom: 20px;
    }

    .container {
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }

    .section-title {
        font-weight: 700;
        font-size: 1.4rem;
    }

    .card {
        padding: 1rem !important;
    }

    .card-content-wrapper {
        flex-direction: column;
    }

    .card-img-container {
        margin-top: 20px;
        height: 200px;
        margin-bottom: 1.5rem;
    }

    .carousel-item {
        height: 150px;
    }

    .image-card {
        display: flex;
        justify-content: center;
    }

    .text-h4 {
        font-size: 1.7rem !important;
    }

    .text-h5 {
        font-size: 1rem;
    }

    .image-profile {
        margin-top: 20px;
    }

    .social-media {
        margin-bottom: 20px;
    }

    .title-product {
        font-size: 2rem;
    }

    .description-product {
        font-size: 1.1rem;
    }

    .image-product {
        display: none;
    }

    .trailer iframe {
        margin-top: 30px;
        height: 300px;
    }

    .question {
        font-size: 1rem;
    }

    .answer {
        font-size: 0.9rem;
    }
}

.category-item p {
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  @media (max-width: 767px) {
    .category-item p {
      font-size: 12px;
    }
  }
  
  @media (max-width: 480px) {
    .category-item p {
      font-size: 11px;
    }
  }
  .category-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .category-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 10px;
    padding: 10px 0;
  }
  
  @media (max-width: 480px) {
    .category-slider {
      gap: 6px;
    }
  }

  .category-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .category-item {
    flex: 0 0 auto;
    width: calc(10% - 12px); /* 10 items visible with gap */
    text-align: center;
  }

  .categories-container-img {
    width: 100%;
    max-width: 80px;
    margin: 0 auto;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  @media (max-width: 767px) {
    .categories-container-img {
      max-width: 60px;
    }
  }
  
  @media (max-width: 480px) {
    .categories-container-img {
      max-width: 50px;
    }
  }

  .categories-container-img:hover, 
  .categories-container-img:active {
    transform: scale(1.05);
  }

  .categories-container-img img {
    object-fit: cover;
    height: 100%;
  }

  /* Responsive adjustments */
  @media (max-width: 1400px) {
    .category-item {
      width: calc(12.5% - 12px); /* 8 items on large screens */
    }
  }
  
  @media (max-width: 1200px) {
    .category-item {
      width: calc(16.666% - 12px); /* 6 items on medium-large screens */
    }
  }
  
  @media (max-width: 991px) {
    .category-item {
      width: calc(20% - 12px); /* 5 items on medium screens */
    }
  }

  @media (max-width: 767px) {
    .category-item {
      width: calc(20% - 10px); /* 5 items on small screens */
    }
  }

  @media (max-width: 480px) {
    .category-item {
      width: calc(20% - 8px); /* 5 items on extra small screens */
    }
  }
  .card-content-wrapper h4 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.5em * 2); /* Tinggi line-height × jumlah baris */
    line-height: 1.5;
    margin-bottom: 10px;
  }
  
  /* Membatasi subtitle (card-text) menjadi 4 baris */
  .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.5em * 4); /* Tinggi line-height × jumlah baris */
    line-height: 1.5;
  }