.gradient-header {
    background-image: url("images/custom/bg.jpg");
    background-size: cover;
    background-position: center;
    padding: 2rem 0 4rem 0;
    position: relative;

    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0 4rem 0;
    position: relative;*/
}

.gradient-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 30, 30, 0.55) 0%,
        rgba(30, 30, 30, 0.65) 100%
    ), rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
    pointer-events: none;
}

/* Pastikan konten di dalam .gradient-header berada di atas overlay */
.gradient-header > * {
    position: relative;
    z-index: 2;
}

.main-container {
    padding: 0;
}

.content-section {
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    padding: 0 0px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.page-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.course-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: white;
    color: #ff5421;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.results-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.search-filter-section {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 25px;
    width: 300px;
    backdrop-filter: blur(10px);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.theme-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: #667eea;
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #667eea;
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.sticky {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* bayangan bawah */
}

/* Kontainer Utama untuk Kartu */
.cards-container {
    display: flex;

    flex-wrap: wrap; /* Agar kartu pindah baris di layar kecil */
    gap: 2rem 2rem; /* Jarak antar kartu */
    justify-content: center;
    max-width: 1270px;
    position: relative;
    z-index: 2; /* pastikan card di atas overlay */
}

/* Gaya untuk Setiap Kartu */
.course-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 350px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Kontainer Gambar */
.card-image-container {
    position: relative;
    overflow: hidden; /* Pastikan gambar yang membesar tidak keluar dari wadahnya */
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Memastikan gambar mengisi area tanpa distorsi */
    display: block;
    transition: transform 0.3s ease-in-out;
}

/* Efek zoom pada gambar saat kursor di atas kartu */
.course-card:hover .card-image {
    transform: scale(1.05); /* Memperbesar gambar sedikit */
}

.category-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: #f9683a;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Konten di Bawah Gambar */
.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Membuat konten mengisi ruang yang tersisa */
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 1rem;
}

.card-meta i {
    font-size: 15px;
    color: #ff5421;
    margin-right: 5px;
}

.date-meta i {
    font-size: 15px;
    color: #ff5421;
    margin-left: 2px;
}

.user-count {
    display: flex;
    align-items: center;
    gap: 0.2rem; /* Jarak antara ikon dan teks */
}

.card-price {
    font-weight: 700;
    color: #343a40;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #343a40;
    margin: 0 0 0 0;
    line-height: 1.4;
    flex-grow: 1; /* Mendorong footer ke bawah */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Mendorong footer ke bagian bawah */
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.apply-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title:hover {
    color: #f9683a;
}

.apply-link i {
    margin-left: 0.25rem;
}

.card-title h3 {
    margin-bottom: 0;
}

.error-not-found img {
    width: 100%;
    max-width: 100px;
    margin: 0 auto;
    display: block;
}

.container-img-notfound {
    width: 35%; /* Lebar 80% dari halaman */
    max-width: 900px; /* Tapi jangan lebih lebar dari 900px */
    margin: 0 auto; /* Trik untuk membuat container berada di tengah */
    padding: 0px;
    margin-top: -12rem;
}

/* Container utama untuk navigasi pagination */
.my-pagination-nav {
    display: flex;
    justify-content: center; /* Posisikan pagination di tengah */
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

/* Styling untuk list <ul> */
.my-pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.375rem; /* Sedikit lengkungan di sudut */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Tambahkan sedikit bayangan */
}

/* Styling untuk setiap link dan span di dalam <li> */
.my-page-link {
    position: relative;
    display: block;
    padding: 0.75rem 1rem; /* Ukuran tombol lebih nyaman */
    color: #f9683a; /* Warna teks biru */
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out; /* Animasi halus saat hover */
}

/* Hover effect untuk link yang aktif */
.my-page-item:not(.active):not(.disabled) .my-page-link:hover {
    z-index: 2;
    color: #f9683a;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Menghilangkan border ganda antar item */
.my-page-item:not(:first-child) .my-page-link {
    margin-left: -1px;
}

/* Sudut lengkung untuk item pertama dan terakhir */
.my-page-item:first-child .my-page-link {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.my-page-item:last-child .my-page-link {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Style untuk halaman yang sedang aktif */
.my-page-item.active .my-page-link {
    z-index: 3;
    color: #fff; /* Teks  */
    background-color: #f9683a; /* Latar  */
    border-color: #f9683a;
    cursor: default;
}

/* Style untuk tombol yang non-aktif (disabled) */
.my-page-item.disabled .my-page-link {
    color: #6c757d; /* Warna abu-abu */
    pointer-events: none; /* Non-aktifkan klik */
    background-color: #fff;
    border-color: #dee2e6;
}

.header-container-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Memastikan kontainer menggunakan lebar penuh */
}

.title-badge-section {
    align-items: center; /* Menyejajarkan judul dan lencana secara vertikal */
    gap: 15px; /* Memberi sedikit ruang antara judul dan lencana */
    width: 40%; /* Memastikan kontainer judul dan lencana menggunakan lebar penuh */
}

.page-title-detail {
    margin: 0; /* Menghapus margin default dari h1 */
    color: white;
    font-size: 2rem;
    font-weight: 700;
        word-wrap: break-word;
        overflow-wrap: break-word;
    hyphens: auto;
}

.video-section {
    display: flex;
    justify-content: end;
    width: 50%; /* Memastikan video section menggunakan lebar penuh */
}

.video-container {
    position: relative;
    width: 100%;
    /* Rasio 16:9 */
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.divider {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    z-index: 10;
}

.divider-card {
    border-top: 2px solid rgba(55, 50, 50, 0.201);
    margin-bottom: 3px;
    z-index: 10;
}

/* ======================= 1. Landing Page Styling =======================  */

/* ===========> A. Hero Section <=========== */


/* ===========> B. About Section <=========== */

.about-section {
    margin: 6rem 0;
}

/* --- About Section Styling --- */
.about-section .container {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.image-collage {
    flex: 1;
    position: relative;
    min-height: 550px;
    min-width: 450px;
}

.content-about {
    flex: 1;
}

/* --- Image Collage Styling --- */
.image-collage img {
    position: absolute;

    object-fit: cover;
}

.about-image-1 {
    /* Banana */
    width: 25%;
    height: auto;
    top: 0;
    left: 0;
    z-index: 5;
    animation: floating 3.5s ease-in-out infinite;
}

.about-image-2 {
    /* Zinc */
    width: 25%;
    height: auto;
    top: 5%;
    right: 0;
    z-index: 6;
    animation: floating2 2.8s ease-in-out infinite;
}

.about-image-3 {
    /* Teacher */
    width: 95%;
    height: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
}

.about-image-4 {
    /* Fruits */
    width: 25%;
    height: auto;
    top: 50%;
    right: 10%;
    z-index: 6;
    animation: floatingY 2.8s ease-in-out infinite;
}

.about-image-5 {
    /* Vitamin */
    width: 25%;
    height: auto;
    top: 50%;
    right: 70%;
    z-index: 6;
    animation: floatingY 3.5s ease-in-out infinite;
}

.sec-title3 .title {
    font-size: 2.5rem !important;
    line-height: 46px;
    font-weight: 700 !important;
    color: #031a3d;
}

/* Animasi floating untuk gambar pisang dan zinc */
@keyframes floating {
    0% {
        transform: translateY(0px) rotate(-5deg);
    }
    50% {
        transform: translateY(-24px) rotate(7deg);
    }
    100% {
        transform: translateY(0px) rotate(-5deg);
    }
}

@keyframes floating2 {
    0% {
        transform: translateY(0px) rotate(5deg);
    }
    50% {
        transform: translateY(-18px) rotate(-8deg);
    }
    100% {
        transform: translateY(0px) rotate(5deg);
    }
}

@keyframes floatingY {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-24px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* --- Content Styling --- */
.pill {
    display: inline-block;
    padding: 6px 16px;
    background-color: #fff0e6;
    color: #ff5421;
    font-size: 18px;
    font-weight: 500;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.content-about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #031a3d;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.content .description {
    color: #696969;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* --- Features List Styling --- */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 20px;
    transition: transform 0.85s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s,
        border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    box-shadow: 0px 20px 70px 0px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.feature-description {
    margin-bottom: 0;
}

.icon-container {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-container.pink {
    background-color: #fef1f2;
}

.icon-container.pink svg {
    color: #f16179;
}

.icon-container.blue {
    background-color: #e8f1ff;
}

.icon-container.blue svg {
    color: #457ef1;
}

.feature-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--paragraph-color);
    line-height: 1.6;
}

/* --- CTA Button Styling --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 28px;
    background-image: linear-gradient(to right, #ff8a5b, #ff5421);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 84, 33, 0.18),
        0 2px 8px rgba(255, 138, 91, 0.12);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 84, 33, 0.22),
        0 2px 8px rgba(255, 138, 91, 0.18);
    color: #fff;
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

.post-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.post-info i {
    margin-right: 0.25rem;
}

.edukasi-img {
    width: 100%;
    max-width: 1280px;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

#rs-popular-courses {
    background-image: url("/landing/images/custom/food1.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0px -600px;
    z-index: 0;
    position: relative;
}

#rs-popular-courses::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 30, 0.8); /* overlay gelap, bisa diubah opacity */
    z-index: 1;
    pointer-events: none;
}

.sec-title3 {
    z-index: 2 !important; /* pastikan judul di atas overlay */
    position: relative !important;
    color: white !important;
}

.image-part img {
    width: 100% !important;
    max-width: 1280px;
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

@media (max-width: 1280px) {
    .about-section .container {
        display: flex;
        align-items: center;
        gap: 5rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 4vw; /* Tambahkan padding untuk ruang di sisi */
    }
}

/* Media query untuk layar max 991px */
@media (max-width: 991px) {
    .content-about {
        margin: 0 4vw; /* Mengurangi margin untuk layar kecil */
    }

    .pill {
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 220px;
        width: 100%;
    }

        .pill.w-300 {
        max-width: 300px !important;

    }

    .cta-button {
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 220px;
    }

    .container .text-center .cta-button {
        padding: 14px 8px;
    }

    .about-section .container {
        flex-direction: column;
        gap: 2rem; /* beri jarak vertikal */
        align-items: center; /* opsional: agar konten rata tengah */
    }

    .header-container-detail {
        flex-direction: column;
        align-items: stretch;
    }

    .video-section {
        display: flex;
        justify-content: end;
        width: 100%; /* Memastikan video section menggunakan lebar penuh */
        margin-top: 1rem; /* Memberi jarak antara judul dan video */
    }
    .title-badge-section {
        align-items: center; /* Menyejajarkan judul dan lencana secara vertikal */
        gap: 15px; /* Memberi sedikit ruang antara judul dan lencana */
        width: 100%; /* Memastikan kontainer judul dan lencana menggunakan lebar penuh */
    }

    #image-container {
        display: none; /* Sembunyikan gambar samping pada layar kecil */
    }
}

/* Media query untuk layar kecil */
@media (max-width: 768px) {
    /* ABOUT SECTION */

    /* Hide complex collage on small mobile screens for a cleaner look */
    .image-collage {
        display: none;
    }

    .pill {
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 220px;
        width: 100%;
    }



    .cta-button {
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 220px;
    }

    /* ABOUT SECTION [END] */

    .intro-section .intro-tabs .tab-btns {
        width: 100% !important;
        margin: 0 0 0 0 !important;
    }
    .page-title {
        font-size: 2rem;
    }

    .controls-section {
        flex-direction: column;
        align-items: center;
    }

    .search-filter-section {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box input {
        width: 100%;
    }

    .container-img-notfound {
        width: 60%; /* Lebar 60% dari halaman */
        max-width: 900px; /* Tapi jangan lebih lebar dari 900px */
        margin: 0 auto; /* Trik untuk membuat container berada di tengah */
        padding: 0px;
        margin-top: -2rem;
    }

    .header-container-detail {
        flex-direction: column;
        align-items: stretch;
    }

    .video-section {
        display: flex;
        justify-content: end;
        width: 100%; /* Memastikan video section menggunakan lebar penuh */
        margin-top: 1rem; /* Memberi jarak antara judul dan video */
    }
    .title-badge-section {
        align-items: center; /* Menyejajarkan judul dan lencana secara vertikal */
        gap: 15px; /* Memberi sedikit ruang antara judul dan lencana */
        width: 100%; /* Memastikan kontainer judul dan lencana menggunakan lebar penuh */
    }
}

.meta-part {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 1.2rem 0 0;
    padding: 1.2rem 0 0;
    font-size: 14px;
    border-top: 1px solid #f4f0f0;
}

.meta-part .user {
    display: inline-block;
    margin-right: 8px;
    color: #363636;
}

.meta-part .user i {
    color: #ff5421;
    font-size: 16px;
    margin-right: 5px;
}

.meta-part .user a {
    color: #363636;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.meta-part .user a:hover {
    color: #ff5421;
}

.meta-part .user a::after {
    content: "\f054";
    font-family: fontawesome;
    font-size: 12px;
    position: relative;
    right: 0px;
    top: 0px;
    display: inline-block;
    margin-left: 3px;
}

.about-header {
    background-image: url("images/custom/bg.jpg");
    background-size: cover;
    background-position: center;
    padding: 2rem 0 4rem 0;
    position: relative;
    height: 550px;

    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0 4rem 0;
    position: relative;*/
}

.about-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 30, 30, 0.55) 0%,
        rgba(30, 30, 30, 0.65) 100%
    ), rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
    pointer-events: none;
}

/* Pastikan konten di dalam .about-header berada di atas overlay */
.about-header > * {
    position: relative;
    z-index: 2;
}



