/*
 * CLEANED AND REFACTORED CSS (Orange Primary Theme)
 * =================================================
 * Table of Contents:
 * 1. Root Variables & Colors
 * 2. Global Utilities & Base Styles
 * 3. Buttons & CTAs
 * 4. Card & Hover Effects
 * 5. Sidebar Navigation
 * 6. Content Cards (Header & Body)
 * 7. Content Typography (Global)
 * 8. Ratings & Gallery
 * 9. Accordion & FAQ Styles
 * 10. Utilities & Specific Components
 * 11. Loader Overlay & Keyframes
 * 12. Responsive Design & Media Queries
 */

/* =========================================
 * 1. ROOT VARIABLES & COLORS 🎨
 * ========================================= */
:root {
    /* --- Primary Colors (Orange Palette) --- */
    --color-primary-orange: #fd7e14; /* Standard Orange */
    --color-dark-orange: #e86c0a; /* Darker Orange for Hover/Gradients */
    --color-light-orange: #ffe5d0; /* Lightest Orange for Backgrounds/Active states */
    --color-soft-orange: #fff4e6; /* Very soft orange for light backgrounds */
    --color-accent-gold: #fcb900; /* Gold Accent for Gallery/Ratings */
    --color-orange-legacy: #ff6600; /* Original legacy orange */

    /* --- Grayscale/Text Colors --- */
    --color-black: #000;
    --color-dark: #212529;
    --color-gray: #6c757d;
    --color-light-gray: #f8f9fa;
    --color-white: #fff;

    /* --- Spacing & Radius --- */
    --border-radius-lg: 0.75rem;
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);

    /* --- Transitions --- */
    --transition-fast: all 0.2s ease-in-out;
    --transition-default: all 0.3s ease-in-out;
}

/* =========================================
 * 2. GLOBAL UTILITIES & BASE STYLES 🌐
 * ========================================= */
body {
    background-color: var(--color-light-gray);
    font-family: 'Poppins', sans-serif;
    color: var(--color-dark);
}

.section {
    padding: 60px 0;
}

/* --- Gradient Backgrounds --- */
.bg-gradient-info {
    background-image: linear-gradient(135deg, #17a2b8, #138496);
}

.card-header-gradient {
    background-image: linear-gradient(135deg, var(--color-primary-orange), var(--color-dark-orange));
    border-bottom: none;
    position: relative;
}

/* --- Utility Class --- */
.text-orange {
    color: var(--color-primary-orange) !important;
}

.border-orange {
    border-color: var(--color-primary-orange) !important;
}

/* =========================================
 * 3. BUTTONS & CTAS 👆
 * ========================================= */
.btn-primary-orange {
    background-color: var(--color-primary-orange);
    border-color: var(--color-primary-orange);
    color: var(--color-white);
    transition: var(--transition-fast);
}

.btn-primary-orange:hover,
.btn-primary-orange:focus {
    background-color: var(--color-dark-orange);
    border-color: var(--color-dark-orange);
    color: var(--color-white);
}

/* Scroll To Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--color-dark-orange);
    color: var(--color-white);
    border: none;
    box-shadow: var(--box-shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    background-color: var(--color-primary-orange);
}

/* =========================================
 * 4. CARD & HOVER EFFECTS ✨
 * ========================================= */
.info-card {
    transition: var(--transition-default);
    /* overflow: hidden; */
}

/* Icon Wrapper Styles for Centering (NEW/IMPROVED) */
.icon-circle-fixed {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.icon-circle-large {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    flex-shrink: 0;
}

/* Fix Ikon Styling di dalam kontainer lingkaran */
.icon-circle-fixed i,
.icon-circle-large i,
.icon-wrapper i {
    /* Mencegah ikon terpotong vertikal */
    line-height: 1;
}

/* Ikon Wrapper di Header Utama (IMPROVED) */
.card-header-gradient .icon-wrapper {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    /* Override font size bawaan fs-1 yang mungkin terlalu besar */
}
.card-header-gradient .icon-wrapper .bi {
    font-size: 2.5rem !important;
}


/* =========================================
 * 5. SIDEBAR NAVIGATION 🧭 (General Sidebar Sticky)
 * ========================================= */
.sidebar-sticky {
    position: sticky;
    top: 100px; /* Jarak dari atas */
}

/* Contact List Styles */
.contact-list .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 10px;
    background-color: var(--color-light-gray);
    color: var(--color-dark);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.contact-list .contact-item:hover {
    background-color: #e9ecef;
}

.contact-list .contact-item .icon-wrapper {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-list .contact-item.phone .icon-wrapper {
    background-color: #007bff;
}

.contact-list .contact-item.email .icon-wrapper {
    background-color: #dc3545;
}

.contact-list .contact-item.whatsapp .icon-wrapper {
    background-color: #25d366;
}

.contact-list .contact-item .btn-copy-contact {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-gray);
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-fast);
    padding: 5px;
    font-size: 1.1rem;
}

.contact-list .contact-item:hover .btn-copy-contact,
.contact-list .contact-item .btn-copy-contact.copied {
    opacity: 1;
}

.contact-list .contact-item .btn-copy-contact.copied i {
    color: green;
}


/* =========================================
 * 6. CONTENT CARDS (Header & Body) 📑
 * ========================================= */
.section-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.description-box h4,
.additional-info h4 {
    border-bottom: 2px solid var(--color-soft-orange);
    padding-bottom: 5px;
}

/* --- List Item Style --- */
.info-item {
    transition: transform 0.2s ease-in-out;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1) !important;
}

/* =========================================
 * 7. CONTENT TYPOGRAPHY (Global) 🖋️
 * ========================================= */
.content-body p,
.content-wrapper p,
.info-item .content-wrapper p {
    margin-bottom: 0.5rem;
}

/* =========================================
 * 8. RATINGS & GALLERY ⭐️ (N/A)
 * ========================================= */
/* ... (empty section) */

/* =========================================
 * 9. ACCORDION & FAQ STYLES ❓ (N/A)
 * ========================================= */
/* ... (empty section) */

/* =========================================
 * 10. UTILITIES & SPECIFIC COMPONENTS 🧩
 * ========================================= */

/* Custom Pills/Tabs Navigation */
.tab-wrapper {
    position: relative;
    overflow: hidden;
    /* border-bottom: 1px solid #dee2e6; */
}

/* Container untuk scrolling */
.scrollable-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap; /* Penting */
}

.custom-pills {
    border-bottom: none;
    padding-bottom: 5px;
    /* Optional: Hide scrollbar in some browsers */
    scrollbar-width: none; /* Firefox */
}

.custom-pills::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.custom-pills .nav-item {
    flex-shrink: 0; /* Mencegah tab mengecil */
}

.custom-pills .nav-link {
    color: var(--color-dark);
    background-color: var(--color-light-gray);
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius-lg);
    margin-right: 8px;
    padding: 10px 15px;
    transition: var(--transition-fast);
    font-weight: 500;
}

.custom-pills .nav-link:hover {
    border-color: var(--color-primary-orange);
    color: var(--color-primary-orange);
}

.custom-pills .nav-link.active {
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    border-color: var(--color-dark-orange);
    box-shadow: var(--box-shadow-sm);
}

.custom-pills .nav-link.active:hover {
    background-color: var(--color-dark-orange);
    border-color: var(--color-dark-orange);
    color: var(--color-white);
}

.scrollable-content {
    max-height: 500px; /* Batasi tinggi konten tab */
    overflow-y: auto;
    padding-right: 15px; /* Memberi ruang untuk scrollbar */
}

/* Custom Toast Notification */
.custom-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: var(--box-shadow-md);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.custom-toast.toast-success {
    background-color: #28a745;
}

.custom-toast.toast-error {
    background-color: #dc3545;
}

/* =========================================
 * 11. LOADER OVERLAY & KEYFRAMES (N/A)
 * ========================================= */
/* ... (empty section) */

/* =========================================
 * 12. RESPONSIVE DESIGN & MEDIA QUERIES 📱
 * ========================================= */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .sidebar-sticky {
        position: static;
        top: auto;
        padding-top: 20px;
    }

    .card-header-gradient h1 {
        font-size: 1.8rem !important;
    }

    /* Tab navigation always shows scroll */
    .tab-navigation {
        overflow-x: auto;
    }

    .scrollable-content {
        max-height: 400px;
    }

    /* Fix table responsiveness for content-body */
    .content-body,
    .content-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Tabel tampil sebagai block agar scroll horizontal aktif */
    .content-body table,
    .content-wrapper table {
        display: block;
        width: 100%;
        overflow-x: auto;
        border-collapse: collapse;
    }

    /* Sel tabel boleh membungkus teks, tidak meledak */
    .content-body table th,
    .content-body table td,
    .content-wrapper table th,
    .content-wrapper table td {
        white-space: normal; /* batal nowrap */
        word-break: break-word; /* teks panjang pecah rapi */
        padding: 8px;
    }
}

/* Mobile Portrait (max-width: 576px) */
@media (max-width: 576px) {
    .section {
        padding: 30px 0;
    }

    .card-header-gradient {
        padding: 1rem !important;
    }

    .card-header-gradient .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    .card-header-gradient .icon-wrapper .bi {
        font-size: 2rem !important;
    }

    .card-header-gradient h1 {
        font-size: 1.4rem !important;
    }

    .tab-content {
        padding: 1rem !important;
    }

    .scrollable-content {
        max-height: 350px;
    }
}