/*--------------------------------------------------------------
# Welcome One
--------------------------------------------------------------*/
.welcome-one {
    position: relative;
    display: block;
    padding: 120px 0px 90px;
    z-index: 1;
}

.welcome-one__single {
    position: relative;
    display: block;
    margin-bottom: 30px;
}

.welcome-one__img {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    z-index: 1;
}

.welcome-one__img::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--finris-black);
    opacity: 0;
    transition: background-color 0.5s ease;
    transition: all 0.5s ease;
    z-index: 1;
}

.welcome-one__single:hover .welcome-one__img::before {
    opacity: .50;
}

.welcome-one__img img {
    width: 100%;
    border-radius: 10px;
    transform: scale3d(1, 1, 1);
    transition: transform 1s ease-in-out;
}

.welcome-one__single:hover .welcome-one__img img {
    transform: scale(1.05) rotate(0deg);
}

.welcome-one__content {
    position: relative;
    display: flex;
    /*tambahan */
    justify-content: center;
    /*end of tambahan */
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: var(--finris-white);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05);
    /* padding: 20px 0px 20px; */
    /* padding: 10px 0px 10px; */
    padding: 0px 0px 0px;
    border-radius: 10px;
    /* margin-left: 18px;
    margin-right: 18px; */
    /* margin-top: -40px; */
    margin-top: -15px;
    z-index: 2;
    border: 2px solid brown;
    /* Atau gunakan kode warna coklat lainnya */
}

.welcome-one__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    /* background-color: var(--finris-base); */
    background-color: transparent;
    border-radius: 5px;
    z-index: 1;
}

.welcome-one__icon::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    /* background-color: var(--finris-black); */
    background-color: var(--finris-gray);
    border-radius: 5px;
    opacity: 0;
    transform: perspective(400px) scaleX(0);
    transform-origin: center;
    transition: all 500ms ease;
}

/* .welcome-one__single:hover .welcome-one__icon::before {
    opacity: 0.5;
    transform: perspective(400px) scaleX(1.0);
    transition-delay: 200ms;
} */

/* 
.welcome-one__content:hover {
    opacity: 0.5;
    color: var(--finris-base);
    transform: perspective(400px) scaleX(1.0);
    transition-delay: 200ms;
} */

.welcome-one__icon span {
    position: relative;
    display: inline-block;
    font-size: 25px;
    color: var(--finris-white);
    transition: all 500ms linear;
    transition-delay: 0.1s;
    transform: scale(1);
}

.welcome-one__single:hover .welcome-one__icon span {
    color: var(--finris-white);
    transform: scale(.9);
}

.welcome-one__title {
    /* font-size: 24px; */
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 34px;
}

.welcome-one__title a {
    color: var(--finris-black);
}

.welcome-one__title a:hover {
    color: var(--finris-base);
}


/* Styling untuk memastikan Ikon dan Teks berada dalam satu baris */
.welcome-item__wrapper {
    /* Mengaktifkan Flexbox untuk tata letak satu baris */
    display: flex;
    /* Meratakan item secara vertikal di tengah */
    /* align-items: flex-start;  */
    align-items: center;
}

/* Styling untuk Ikon */
.welcome-item__wrapper .welcome-one__icon {
    /* Tetapkan ikon agar tidak menyusut dan menjaga jarak */
    flex-shrink: 0;
    margin-right: 2px;
    /* Beri jarak antara ikon dan teks */
    /*margin-right: 20px; /* Beri jarak antara ikon dan teks */
    /* Anda mungkin ingin menyesuaikan lebar/ukuran ikon di sini */
}

/* Styling untuk Judul Teks */
.welcome-item__wrapper .welcome-one__title {
    /* Biarkan teks mengisi sisa ruang yang tersedia dan melipat */
    flex-grow: 1;
    /* Hapus margin-top atau padding-top default dari h3 agar sejajar dengan ikon */
    margin-top: 0;
    /* Pastikan tidak ada margin yang mengganggu */
    padding-top: 0;
}

/* Pastikan elemen <a> di dalamnya juga di-flex atau block agar melipat dengan benar */
.welcome-item__wrapper .welcome-one__title a {
    display: block;
    line-height: 1.3;
    /* Sesuaikan baris teks agar tidak terlalu rapat */
}

/*--------------------------------------------------------------

/* ========================================================= */
/* MODULE GRID CSS (H1 - H10)              */
/* ========================================================= */

/* CONTAINER UTAMA (Default: Tampil sebagai Flex) */
.main-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* MOBILE DROPDOWN (Default: Sembunyi) */
.mobile-module-dropdown-wrapper {
    display: none;
    padding: 15px 10px;
}

/* CONTAINER BARIS (H1-H6 dan H7-H10) */
.row-container {
    display: grid;
    gap: 5px;
    padding: 0 10px;
}

/* BARIS 1: 6 Kolom */
.row-1-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* BARIS 2: 4 Kolom (GRID DEFAULT - Di bawah 1200px) */
.row-7-10 {
    display: grid;
    gap: 15px;
    padding: 0 10px;
    grid-template-columns: repeat(4, 1fr);
}

/* ITEM MODUL */
.module-item {
    padding: 0 !important;
}

/* STYLING KONTEN KARTU */
.welcome-one__single_custom {
    background-color: var(--finris-white);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid brown;
    border-radius: 10px;
    padding: 5px 5px;

    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* STYLING TULISAN */
.welcome-one__title_custom {
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.welcome-one__title_custom a {
    color: var(--finris-black);
    text-decoration: none;
    font-size: 11px;
    display: block;
    white-space: normal;
}


/* ========================================================= */
/* RESPONSIVITAS KHUSUS DESKTOP (min-width: 1201px) */
/* ========================================================= */
@media (min-width: 1201px) {
    .row-7-10 {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 15px;
        grid-template-columns: none;
    }

    .row-7-10 .module-item:nth-child(1) {
        flex: 0 0 auto;
        min-width: 350px;
    }

    .row-7-10 .module-item:nth-child(n+2) {
        flex: 1;
        min-width: auto;
        max-width: none;
    }

    /* >>> PERUBAHAN: Hapus overflow: hidden dan text-overflow: ellipsis */
    .welcome-one__title_custom a {
        white-space: nowrap;
        /* Teks tetap 1 baris */
        /* Hapus overflow: hidden; untuk membiarkan teks keluar */
        /* Hapus text-overflow: ellipsis; */
    }
}


/* ========================================================= */
/* RESPONSIVITAS UMUM (di bawah 1200px)                    */
/* ========================================================= */

/* Layar Menengah ke Bawah (max-width: 1200px) */
@media (max-width: 1200px) {

    .row-1-6 {
        grid-template-columns: repeat(4, 1fr);
    }

    .row-7-10 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .welcome-one__title_custom a {
        white-space: normal;
        font-size: 12px;
    }

    .welcome-one__title_custom {
        font-size: 11px;
    }
}

/* Tablet / Ponsel Landscape (max-width: 768px) */
@media (max-width: 768px) {

    .main-grid-wrapper {
        display: none !important;
    }

    .mobile-module-dropdown-wrapper {
        display: block;
    }

    .module-item {
        margin-bottom: 0px;
    }

    .row-container {
        gap: 0px;
        padding: 0 5px;
    }

    .main-grid-wrapper {
        gap: 0px;
    }

    .mobile-module-dropdown-wrapper .dropdown-item {
        /* Ukuran Teks Kecil dan Rapi */
        font-size: 13px;
        padding: 8px 15px;
        line-height: 1.3;
        color: #333;

        /* >>> PERBAIKAN UTAMA UNTUK MENGIZINKAN WRAP <<< */
        white-space: normal !important;
        height: auto !important;
    }

    /* Opsional: Pastikan elemen <li> diizinkan untuk menampung konten yang melipat */
    .mobile-module-dropdown-wrapper .dropdown-menu li {
        white-space: normal !important;
        overflow: visible !important;
    }
}

/* Ponsel Portrait (max-width: 576px) */
@media (max-width: 576px) {
    /* Aturan grid tidak diperlukan di sini karena sudah disembunyikan di 768px */
}

/* Ponsel Sangat Kecil (max-width: 400px) */
@media (max-width: 400px) {
    /* Aturan grid tidak diperlukan di sini karena sudah disembunyikan di 768px */
}

CSS
/* ========================================================= */
/* CUSTOM STYLING: MOBILE DROPDOWN MENU */
/* Diterapkan pada media query untuk memastikan mobile-only */
/* ========================================================= */

.mobile-module-dropdown-wrapper .dropdown-menu {
    /* Mengganti warna background default */
    background-color: #f8f8f8;
    /* Warna abu-abu muda/off-white */
    border: 1px solid #a91b24;
    /* Border warna tema (cokelat/merah tua) */
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Memastikan menu dropdown memenuhi lebar w-100 */
    padding: 5px 0;
}

.mobile-module-dropdown-wrapper .dropdown-item {
    /* Ukuran Teks Kecil dan Rapi */
    font-size: 13px;
    padding: 8px 15px;
    /* Padding yang lebih baik */
    line-height: 1.3;
    color: #333;
    /* Warna teks gelap */
    transition: background-color 0.2s, color 0.2s;
}

/* Hover State (Sesuai Tema) */
.mobile-module-dropdown-wrapper .dropdown-item:hover,
.mobile-module-dropdown-wrapper .dropdown-item:focus {
    /* Warna hover dari tema Anda */
    background-color: #a91b24;
    color: #ffffff;
    /* Teks putih saat di-hover */
}

/* Active State (Jika Anda menggunakan JS untuk menandai item aktif) */
.mobile-module-dropdown-wrapper .dropdown-item.active {
    background-color: #7b1419 !important;
    /* Warna yang sedikit lebih gelap */
    color: #ffffff !important;
    font-weight: bold;
}

/* Jika Anda ingin menambahkan pemisah visual antara H6 dan H7 (opsional) */
/* .mobile-module-dropdown-wrapper .dropdown-menu li:nth-child(6) {
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
    padding-bottom: 5px;
} */


/*--------------------------------------------------------------
# End
--------------------------------------------------------------*/