:root {
    /* Primary Color (Hijau - Fokus/Aksi) */
    --primary: #1C855C;
    --primary-light: #2ECC71;

    /* Secondary Color (Kuning - Aksen/Pendukung) */
    --secondary: #FFC700;
    --secondary-light: #FFDA33;

    /* Dark Colors (Teks & Background Gelap) */
    --dark: #000000;
    --dark-lightest: #1a1a1a;

    /* Light Colors (Background Terang) */
    --white: #fff;
    --white-darkest: #f1f1f1;

    /* Neutral Colors (Teks Sekunder) */
    --grey: #666666;
    --light-grey: #888888;
    --font-1: "Poppins", sans-serif;

    --transition: all 0.2s ease;
    --shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
    --layer-color: linear-gradient(0deg,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0.9));
}

* {
    font-family: var(--font-1);
}

/* Utilities (kebutuhan yang berdiri sendiri tanpa section) */
.fab-wa {
    width: 64px;
    height: 64px;
    object-fit: contain;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    line-height: normal !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0;
}

.btn-custom {
    padding: 15px 30px;
    border: 1px solid transparent;
    background-color: var(--primary);
    color: var(--white);
    transition: var(--transition);
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.btn-custom:hover {
    color: var(--white);
    filter: brightness(0.8);
}

.mb-32 {
    margin-bottom: 32px;
}

/* End Utilities */

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid #2b2b2b;
}

.navbar-logo {
    width: auto;
    height: 50px;
    object-fit: contain;
}

.navbar-scrolled {
    background: rgba(43, 43, 43, 0.9) !important;
    backdrop-filter: blur(8px);
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500 !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

/* End Navbar */

/* Footer */
.footer {
    padding-top: 50px;
    margin-top: 56px;
    background: var(--dark);
}

.footer-logo {
    width: auto;
    height: 50px;
    object-fit: contain;
}

.footer .btn-custom {
    margin-top: 28px;
}

.footer .col-md-6 .footer-icon {
    margin-right: 14px;
    font-size: 18px;
    color: var(--primary);
}

.footer-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 14px;
}

.footer .col-md-6 .media {
    margin-bottom: 8px;
}

.footer .col-lg-3 .footer-social-container {
    margin-right: 15px;
    padding: 8px 8px;
    border-radius: 50px;
    display: flex;
    place-items: center;
}

.footer-social-container img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footer-social-container.ig {
    background-color: #c300c7;
}

.footer-social-container.fb {
    background-color: #003ace;
}

.footer-social-container.yt {
    background-color: #ff0000;
}

.footer-social-container.link {
    background-color: #1f3a99;
}

.footer .footer-container {
    background-color: var(--dark);
    padding-top: 16px;
    padding-bottom: 16px;
    margin-top: 58px;
}

/* End Footer */

/* Chat bot */
.chatBotTrigger {
    cursor: pointer;
}

#chatbotContainer {
    transform-origin: bottom right;
    width: 350px;
    padding: 0px;
    position: fixed;
    z-index: 2147483646;
    background: none;
    bottom: 0;
    right: 16px;
    visibility: visible;
    transform: scale(0);
    transition: all 500ms ease;
}

#chatbotContainer.active {
    transform: scale(1);
}

#chatbotContainer .card {
    border-radius: 12px;
}

.cb-card-opening {
    transform-origin: bottom right;
    transition: all 500ms ease;
    transform: scale(0);
    height: 0;
    margin-bottom: 120px;
}

.cb-card-opening.active {
    transform: scale(1);
    height: 385px;
}

.cb-logo {
    width: 48px;
    height: auto;
    object-fit: contain;
}

.cb-close {
    background-color: #f7f7f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: all 200ms ease;
}

.cb-close:hover {
    background-color: #e7e7e7;
}

.cb-card-conversation {
    transform-origin: bottom right;
    transition: all 500ms ease;
    transform: scale(0);
    margin-bottom: 0;
    height: 0;
}

.cb-card-conversation.active {
    transform: scale(1);
    height: 460px;
    margin-bottom: 120px;
}

.cb-card-conversation .card-body {
    height: 65vh;
    overflow-y: scroll;
}

.cb-logo-chat {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.chat-container {
    margin-bottom: 16px;
}

.chat-container .chat-text {
    font-size: 16px;
    line-height: normal;
    font-family: 'Poppins', sans-serif;
    border-radius: 3pt;
    clear: both;
    display: block;
    line-height: 15pt;
    margin: 4pt 0;
    max-width: 95%;
    padding: 6pt 9pt;
    color: var(--black-v2) !important;
}

.chat-container.user .chat-text {
    margin-left: auto;
    max-width: 85%;
    width: fit-content;
}

.chat-text.aiga {
    background-color: #f5f5f5;
    color: var(--black-v2) !important;
}

.chat-text.user {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

.chat-container.button .btn {
    font-size: 14px;
    margin-bottom: 8px;
}

/* End Chat bot */

@media (max-width: 767.98px) {

    /* Utilites */
    .fab-wa {
        width: 48px;
        height: 48px;
        right: 8px;
        bottom: 8px;
    }

    #chatbotContainer {
        background: #0000002b !important;
        width: 100%;
        bottom: 0;
        top: auto;
        right: 0;
        height: 100%;
    }

    .cb-card-opening,
    .cb-card-conversation {
        margin-bottom: 0;
        position: absolute;
        bottom: 8px;
        left: 4px;
        right: 4px;
    }

    .cb-card-conversation.active {
        height: 90vh;
        margin-bottom: 0;
    }

    .cb-card-conversation .card-body {
        height: 90vh;
    }

    /* End Utilities */

    /* Navbar */
    .navbar {
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar-logo {
        margin: 0;
    }

    .nav-item:last-of-type {
        margin-bottom: 0;
    }

    /* End Navbar */
}

@media (max-width: 997.98px) {

    /* Utilities */
    #layoutDefault,
    #layoutDefault_footer {
        overflow-x: hidden;
    }

    /* End Utilities */

    /* Navbar */
    .navbar {
        background-color: rgba(43, 43, 43, 0.9) !important;
        backdrop-filter: blur(8px);
    }
}

@media (min-width: 768px) and (max-width: 998px) {

    /* Utilities */
    .fab-wa {
        width: 48px;
        height: 48px;
    }

    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* End Utilities */

    /* Navbar */
    .navbar {
        background-color: rgba(43, 43, 43, 0.9) !important;
        backdrop-filter: blur(8px);
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar-logo {
        margin: 0;
    }

    .nav-item {
        margin-bottom: 16px;
    }

    .nav-item:last-of-type {
        margin-bottom: 0;
    }

    /* End Navbar */
}
