/* ================================================= */
/* ==================== GLOBAL ===================== */
/* ================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #091916;
}

/* ================================================= */
/* ===================== FONT ====================== */
/* ================================================= */

@font-face {
    font-family: 'Riuka';
    src: url('assets/font/Riuka.ttf') format('truetype');
}

/* ================================================= */
/* ==================== NAVBAR ===================== */
/* ================================================= */

.custom-navbar {
    background-color: #FFF7E9;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
}

.custom-navbar.sticky {
    width: 90%;
    top: 15px;
    border-radius: 10px;
    background-color: rgba(255, 247, 233, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 34px;
    background-image: linear-gradient(to bottom, #CDE599, #9BCC33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    border: none;
    cursor: pointer;
}

.nav-link {
    font-weight: 550;
    font-size: 18px;
}

.nav-link.active {
    font-weight: 700;
}

/* =========================
   BUTTONS
========================= */

.button-primary {
    width: 254px;
    height: 43px;
    background-image: linear-gradient(to bottom, #ED9CB8, #F45D92);
    border: none;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    border-radius: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    text-decoration: none;
}

.button-primary:hover {
    background: #FFA8C4;
}

.button-primary:active {
    background: #FDE7EE;
}

.button-primary-center {
    width: 240px;
    height: 55px;
    background-image: linear-gradient(to bottom, #ED9CB8, #F45D92);
    border: none;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    border-radius: 12px;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-primary-center:hover {
    background: #FFA8C4;
}

.button-primary-center:active {
    background: #FDE7EE;
}

.arrow {
    margin-left: 8px;
    font-size: 16px;
}

/* ================================================= */
/* ================= HERO SECTION ================== */
/* ================================================= */

#hero-section {
    position: relative;

    width: 100%;

    min-height: auto;

    overflow: hidden;

    background: #091916;

    padding-bottom: 0;
}

/* BACKGROUND */

.hero-bg {
    position: absolute;

    top: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 100%;

    z-index: 1;
}

/* CONTENT */

.hero-content {
    position: relative;

    z-index: 5;

    padding-top: 180px;
    padding-bottom: 120px;
}

/* HERO TEXT */

.hero-text {
    max-width: 1000px;

    padding-left: 48px;
}

/* SMALL TITLE */

.hero-text h5 {
    margin-bottom: 10px;

    color: #FFE487;

    font-size: 24px;
    font-weight: 600;
}

/* TITLE */

.hero-text h1 {
    margin: 0;

    font-family: 'Riuka', serif;
    font-size: 70px;
    font-weight: 400;
    line-height: 85px;

    letter-spacing: -3px;

    background:
        linear-gradient(180deg,
            #FFE487 26.94%,
            #FFC809 68.94%);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    filter:
        drop-shadow(0 0 1px rgba(255, 228, 135, 0.45)) drop-shadow(0 2px 3px rgba(28, 28, 28, 0.28));
}

/* LINE */

.yellow-line {
    width: 90px;
    height: 5px;

    background: #FFD84D;

    border-radius: 999px;

    margin-top: 14px;
    margin-bottom: 28px;
}

/* PARAGRAPH */

.hero-text p {
    max-width: 780px;

    color: #FFF7E9;

    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

/* =========================================
   CARD CONTAINER
========================================= */

.history-card,
.history-card-full {
    width: 100%;

    height: 930px;

    border-radius: 20px;
    border: 1.5px solid rgba(205, 229, 153, 0.8);

    background: linear-gradient(
        180deg,
        rgba(8, 64, 55, 0.88) 0%,
        rgba(37, 103, 90, 0.78) 100%
    );

    backdrop-filter: blur(12px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* GAP ANTAR BIG BOX */
.history-card {
    margin-bottom: 12px;
}

/* GARIS ATAS */
.history-card::before,
.history-card-full::before {
    content: "";
    width: 78%;
    height: 2px;
    background: rgba(205, 229, 153, 0.85);

    position: absolute;
    top: 105px;
    left: 50%;
    transform: translateX(-50%);

    z-index: 3;
}

/* HAPUS GARIS BAWAH */
.history-card::after,
.history-card-full::after {
    display: none;
}

/* =========================================
   BACKGROUND LOGOS
========================================= */

/* CHRONICS */
.history-logo-top {
    position: absolute !important;

    top: 50%;
    left: 50%;

    width: 750px;
    height: auto;

    opacity: 0.1;

    transform: translate(-350px, -40%) !important;

    z-index: 1 !important;
    pointer-events: none;
}

/* INSPECTRA */
.history-logo-bottom {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 760px;
    max-width: 80%;
    height: auto;

    opacity: 0.10;
    object-fit: contain;

    transform: translate(-410px, -45%);
    z-index: 1;
    pointer-events: none;
}

/* =========================================
   SMALL TOP LOGOS
========================================= */

/* CHRONICS2 */
img.history-logo2 {
    position: absolute;
    top: 28px;
    left: 50%;

    transform: translate(-150px,-10px);

    width: 280px;
    height: auto;

    object-fit: contain;
    opacity: 1 !important;

    z-index: 5;
}

/* INSPECTRA2 */
img.history-logo3 {
    position: absolute;
    top: 24px;
    left: 50%;

    transform: translate(-50%, -10px);

    width: 180px;
    height: auto;

    object-fit: contain;
    opacity: 1;

    z-index: 5;
}

/* =========================================
   EVENT GRID
========================================= */

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 380px);

    justify-content: center;
    gap: 70px 70px;

    width: 100%;
    margin-top: 120px;

    position: relative !important;
    z-index: 4 !important;
}

/* EVENT ITEM */
.event-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 380px;
}

/* =========================================
   TITLE
========================================= */

.event-title {
    background: linear-gradient(
        180deg,
        #FFD84D 0%,
        #FFC809 100%
    );

    color: #1C1C1C;
    font-weight: 600;
    font-size: 18px;

    padding: 12px 24px;
    border-radius: 14px;

    margin-bottom: 18px;
    width: 100%;

    text-align: center;
}

/* =========================================
   PHOTO SLIDER
========================================= */

.photo-slider {
    position: relative;
    width: 380px;
    height: 220px;
    overflow: hidden;
    border-radius: 14px;
}

.photo-track {
    display: flex;
    transition: transform 0.4s ease;
}

.photo-track img {
    width: 380px;
    height: 220px;

    object-fit: cover;
    flex-shrink: 0;

    border-radius: 12px;
    display: block;
}

/* BORDER COLORS */
.history-card .photo-track img {
    border: 3px solid #FFE487;
}

.history-card-full .photo-track img {
    border: 3px solid #CDE599;
}

/* =========================================
   BUTTONS
========================================= */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    z-index: 10;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.5);
    color: white;

    font-size: 22px;
    cursor: pointer;
}

.slider-btn.left {
    left: 10px;
}

.slider-btn.right {
    right: 10px;
}

.slider-dots {
    position: static;

    display: flex;
    justify-content: center;
    gap: 8px;

    margin-top: 14px;
}
.slider-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;

    transition: all 0.3s ease;
}

/* INSPECTRA active dot jadi hijau */
.history-card-full .slider-dot.active {
    background: #CDE599;
}

.slider-dot.active {
    background: #FFD84D;
    transform: scale(1.2);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {
    .history-card,
    .history-card-full {
        min-height: auto;
        padding: 25px;
    }

    .history-card {
        margin-bottom: 20px;
    }

    .history-card::before,
    .history-card-full::before {
        top: 80px;
        width: 70%;
    }

    .event-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-top: 130px;
    }

    .event-item,
    .photo-slider {
        width: 100%;
        max-width: 340px;
    }

    .photo-track img {
        width: 340px;
        height: 200px;
    }

    .history-logo-top {
        width: 420px;
    }

    .history-logo-bottom {
        width: 480px;
    }

    img.history-logo2 {
        width: 170px;
    }

    img.history-logo3 {
        width: 140px;
    }
}

/* ================================================= */
/* ===================== FOOTER ==================== */
/* ================================================= */

#footer {
    background: #091916;
    padding: 48px 80px;
    margin-bottom: 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 52px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
}

.footer-logo {
    width: 380px;
}

.footer-desc {
    width: 580px;
    color: white;
    line-height: 32px;
}

.footer-right {
    text-align: right;
}

.footer-right h3,
.footer-right p {
    color: white;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 12px;
}

.footer-presented h4 {
    margin: 0 0 16px 0;
    color: #FFF7E9;
    font-size: 18px;
    font-weight: 600;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logos img:first-child {
    width: 42px;
}

.footer-logos img:last-child {
    width: 52px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-socials a {
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: rgba(80, 146, 132, 0.55);
    transition: transform 0.25s ease, background 0.25s ease;
}

.footer-socials a:hover {
    background: rgba(120, 190, 170, 0.75);
}

.footer-socials img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.footer-copy {
    width: 100%;
    margin-top: 28px;
    text-align: center;
    color: white;
    font-size: 14px;
}px;
}

/* ================================================= */
/* ==================== RESPONSIVE ================= */
/* ================================================= */

@media (max-width: 991px) {

    .hero-content {
        padding-top: 140px;
    }

    .hero-text {
        padding-left: 20px;
    }

    .hero-text h1 {
        font-size: 52px;
        line-height: 62px;
    }

    .history-section {
        margin-top: 160px;

        padding: 0 20px;
    }

    .history-title h2 {
        font-size: 42px;
    }

    .history-subtitle {
        font-size: 24px;
    }

    .history-card {
        flex-direction: column;
    }

    .history-divider {
        width: 100%;
        height: 2px;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-right {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 28px;
    }

    .footer-desc {
        width: 100%;
    }

    .footer-socials img {
        width: 46px;
        height: 46px;
    }
}

/* ========================= */
/* ABOUT DROPDOWN NAVBAR */
/* ========================= */

.custom-navbar .nav-item.dropdown {
    position: relative;
}

.custom-navbar .about-dropdown-toggle {
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    color: rgba(0, 0, 0, 0.65);
    font-family: 'Poppins', sans-serif;
    font-weight: 550;
    font-size: 18px;
    cursor: pointer;
}

.custom-navbar .about-dropdown-toggle:hover,
.custom-navbar .about-dropdown-toggle:focus,
.custom-navbar .about-dropdown-toggle.show,
.custom-navbar .about-dropdown-toggle.active {
    color: rgba(0, 0, 0, 0.9);
    outline: none;
    box-shadow: none;
}

.custom-navbar .about-dropdown-toggle.active {
    font-weight: 700;
}

.custom-navbar .about-dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: middle;
}

.custom-navbar .about-dropdown-menu {
    margin-top: 0 !important;
    padding: 10px;
    min-width: 220px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 247, 233, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.custom-navbar .about-dropdown-item {
    padding: 10px 14px;
    border-radius: 10px;
    color: #1C1C1C;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.custom-navbar .about-dropdown-item:hover,
.custom-navbar .about-dropdown-item:focus {
    background: rgba(205, 229, 153, 0.55);
    color: #1C1C1C;
}

@media (min-width: 992px) {
    .custom-navbar .nav-item.dropdown:hover .about-dropdown-menu,
    .custom-navbar .nav-item.dropdown:focus-within .about-dropdown-menu {
        display: block;
    }

    .custom-navbar .nav-item.dropdown .about-dropdown-menu {
        top: 100%;
        left: 0;
        transform: translateY(0);
    }

    .custom-navbar .nav-item.dropdown::after {
        content: "";
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        height: 14px;
    }
}

@media (max-width: 991px) {
    .custom-navbar {
        width: 100%;
        left: 0;
        transform: none;
    }

    .custom-navbar.sticky {
        width: calc(100% - 24px);
        left: 12px;
        transform: none;
        top: 12px;
    }

    .custom-navbar .navbar-collapse {
        margin-top: 14px;
        padding: 16px 0;
        background: #FFF7E9;
        border-radius: 0 0 14px 14px;
    }

    .custom-navbar .navbar-nav {
        gap: 8px;
        text-align: center;
    }

    .custom-navbar .nav-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .custom-navbar .nav-link,
    .custom-navbar .about-dropdown-toggle {
        font-size: 16px;
    }

    .custom-navbar .about-dropdown-toggle {
        width: 100%;
        padding: 8px 0;
        text-align: center;
    }

    .custom-navbar .about-dropdown-menu {
        width: calc(100% - 32px);
        margin: 8px auto 4px !important;
        padding: 8px;
        position: static !important;
        transform: none !important;
        text-align: center;
        border-radius: 12px;
        box-shadow: none;
        background: rgba(255, 247, 233, 0.85);
    }

    .custom-navbar .about-dropdown-item {
        padding: 10px 12px;
        font-size: 14.5px;
    }
}

@media (max-width: 430px) {
    .custom-navbar .navbar-brand {
        font-size: 22px;
    }

    .custom-navbar .navbar-brand img {
        width: 30px !important;
        margin-right: 6px !important;
    }

    .custom-navbar .navbar-brand span {
        margin-top: 6px !important;
    }
}


/* ================================================= */
/* ============ FINAL RESPONSIVE FIX =============== */
/* ================================================= */

@media (max-width: 991px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .custom-navbar {
        width: 100%;
        left: 0;
        transform: none;
    }

    .custom-navbar.sticky {
        width: calc(100% - 24px);
        left: 12px;
        top: 12px;
        transform: none;
        border-radius: 10px;
    }

    .navbar .container {
        max-width: 100%;
        padding: 0 18px;
    }

    .navbar-brand {
        font-size: 26px;
    }

    .navbar-brand img {
        width: 34px !important;
    }

    .navbar-collapse {
        margin-top: 14px;
        padding: 16px 0;
        background: #FFF7E9;
        border-radius: 0 0 14px 14px;
    }

    .navbar-nav {
        gap: 8px;
        text-align: center;
    }

    .nav-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .nav-link {
        font-size: 16px;
    }

    .button-primary {
        width: calc(100% - 32px);
        margin: 12px 16px 0;
        font-size: 16px;
        display: inline-flex;
    }

    .about-dropdown-toggle {
        width: 100%;
        padding: 8px 0;
        text-align: center;
        font-size: 16px;
    }

    .about-dropdown-menu {
        width: calc(100% - 32px);
        margin: 8px auto 4px !important;
        padding: 8px;
        position: static !important;
        transform: none !important;
        text-align: center;
        border-radius: 12px;
        box-shadow: none;
        background: rgba(255, 247, 233, 0.85);
    }

    .about-dropdown-item {
        padding: 10px 12px;
        font-size: 14.5px;
    }

    #hero-section {
        min-height: auto;
        overflow: hidden;
    }

    .hero-bg {
        width: 100%;
        height: 100%;
        min-height: 760px;
        object-fit: cover;
        object-position: top center;
    }

    .hero-content {
        padding: 140px 20px 72px;
        max-width: 100%;
    }

    .hero-text {
        max-width: 100%;
        padding-left: 0;
    }

    .hero-text h5 {
        font-size: 18px;
        line-height: 28px;
    }

    .hero-text h1 {
        font-size: 52px;
        line-height: 60px;
        letter-spacing: -1.5px;
    }

    .yellow-line {
        width: 90px;
        height: 5px;
        margin-top: 12px;
        margin-bottom: 22px;
    }

    .history-section {
        margin-top: 110px;
        padding: 0;
    }

    .history-title {
        margin-bottom: 20px;
    }

    .history-plant {
        width: 76px;
        top: -76px;
    }

    .history-card,
    .history-card-full {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 32px 22px 38px;
        border-radius: 18px;
        overflow: hidden;
    }

    .history-card::before,
    .history-card-full::before {
        top: 90px;
        width: 74%;
    }

    .event-grid {
        width: 100%;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 34px;
        margin-top: 120px;
    }

    .event-item {
        width: 100%;
        max-width: 360px;
    }

    .event-title {
        width: 100%;
        padding: 11px 16px;
        font-size: 16px;
        line-height: 23px;
    }

    .photo-slider {
        width: 100%;
        max-width: 360px;
        height: 210px;
    }

    .photo-track img {
        width: 100%;
        height: 210px;
        object-fit: cover;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .history-logo-top {
        width: 420px;
        max-width: 95%;
        transform: translate(-50%, -40%) !important;
    }

    .history-logo-bottom {
        width: 480px;
        max-width: 95%;
        transform: translate(-50%, -45%) !important;
    }

    img.history-logo2 {
        width: 180px;
        transform: translate(-50%, -10px);
    }

    img.history-logo3 {
        width: 145px;
        transform: translate(-50%, -10px);
    }

    #footer {
        padding: 40px 24px;
    }

    .footer-container {
        gap: 36px;
    }

    .footer-top {
        flex-direction: column;
        gap: 28px;
    }

    .footer-logo {
        width: 260px;
        max-width: 100%;
    }

    .footer-desc {
        width: 100%;
        font-size: 14px;
        line-height: 24px;
    }

    .footer-right {
        text-align: left;
    }

    .footer-right h3 {
        font-size: 18px;
        line-height: 28px;
    }

    .footer-right p {
        font-size: 14px;
        line-height: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .footer-socials {
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-socials a {
        width: 48px;
        height: 48px;
    }

    .footer-socials img {
        width: 26px;
        height: 26px;
    }

    .footer-copy {
        font-size: 13px;
        line-height: 20px;
    }
}

@media (max-width: 430px) {

    .navbar-brand {
        font-size: 22px;
    }

    .navbar-brand span {
        margin-top: 6px !important;
    }

    .navbar-brand img {
        width: 30px !important;
        margin-right: 6px !important;
    }

    .hero-bg {
        min-height: 660px;
    }

    .hero-content {
        padding: 120px 18px 56px;
    }

    .hero-text h5 {
        font-size: 15px;
        line-height: 22px;
    }

    .hero-text h1 {
        font-size: 38px;
        line-height: 46px;
        letter-spacing: -1px;
    }

    .yellow-line {
        width: 84px;
        height: 4px;
        margin-bottom: 18px;
    }

    .history-section {
        margin-top: 70px;
    }

    .history-card,
    .history-card-full {
        padding: 28px 16px 34px;
        border-radius: 16px;
    }

    .history-card::before,
    .history-card-full::before {
        top: 78px;
        width: 70%;
    }

    .event-grid {
        margin-top: 105px;
        gap: 30px;
    }

    .event-item {
        max-width: 320px;
    }

    .event-title {
        font-size: 14px;
        line-height: 21px;
        border-radius: 12px;
    }

    .photo-slider {
        max-width: 320px;
        height: 190px;
    }

    .photo-track img {
        height: 190px;
    }

    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .slider-btn.left {
        left: 8px;
    }

    .slider-btn.right {
        right: 8px;
    }

    img.history-logo2 {
        width: 155px;
    }

    img.history-logo3 {
        width: 125px;
    }

    #footer {
        padding: 36px 20px;
    }
}


/* ========================= */
/* FINAL FIX - ABOUT DROPDOWN CLICKABLE MOBILE */
/* ========================= */

.custom-navbar .about-dropdown-parent {
    position: relative;
}

.custom-navbar .about-dropdown-toggle,
.custom-navbar .about-dropdown-toggle:hover,
.custom-navbar .about-dropdown-toggle:focus,
.custom-navbar .about-dropdown-toggle:active,
.custom-navbar .about-dropdown-toggle.show {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    text-decoration: none !important;
}

.custom-navbar .about-dropdown-menu.show {
    display: block !important;
}

@media (min-width: 992px) {
    .custom-navbar .about-dropdown-parent:hover > .about-dropdown-menu,
    .custom-navbar .about-dropdown-parent:focus-within > .about-dropdown-menu {
        display: block !important;
    }

    .custom-navbar .about-dropdown-parent::after {
        content: "";
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        height: 14px;
    }
}

@media (max-width: 991px) {
    .custom-navbar .about-dropdown-toggle {
        width: 100% !important;
        padding: 8px 0 !important;
        text-align: center !important;
    }

    .custom-navbar .about-dropdown-menu {
        position: static !important;
        transform: none !important;
        width: calc(100% - 32px) !important;
        margin: 8px auto 4px !important;
        padding: 8px !important;
        text-align: center !important;
        border: none !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        background: rgba(255, 247, 233, 0.88) !important;
    }
}

/* ========================= */
/* FINAL FIX - OBJECTIVE/TARGET LABEL */
/* ========================= */

.history-card,
.history-card-full {
    position: relative;
}

.history-box-label {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin: 0 !important;

    min-width: 150px;
    height: 46px;
    padding: 0 24px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 18px 0 18px 0 !important;
    background: linear-gradient(180deg, #FFE487 0%, #FFC809 100%) !important;
    color: #2B2400 !important;

    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;

    z-index: 20 !important;
    box-shadow: none !important;
}

.history-card:has(.history-box-label),
.history-card-full:has(.history-box-label) {
    padding-top: 64px !important;
}

@media (max-width: 430px) {
    .history-box-label {
        min-width: 132px;
        height: 44px;
        padding: 0 18px !important;
        font-size: 16px !important;
        letter-spacing: 1.7px !important;
        border-radius: 16px 0 16px 0 !important;
    }

    .history-card:has(.history-box-label),
    .history-card-full:has(.history-box-label) {
        padding-top: 60px !important;
    }
}


/* ========================= */
/* FINAL FIX - MOBILE NAVBAR CLOSE */
/* ========================= */

.navbar-toggler {
    position: relative;
    z-index: 10001;
}

.custom-navbar .navbar-collapse {
    z-index: 10000;
}

.custom-navbar .about-dropdown-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    text-decoration: none !important;
}

.custom-navbar .about-dropdown-toggle:focus,
.custom-navbar .about-dropdown-toggle:active,
.custom-navbar .about-dropdown-toggle.show {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.custom-navbar .about-dropdown-menu.show {
    display: block !important;
}

@media (max-width: 991px) {
    .custom-navbar .navbar-collapse {
        margin-top: 14px;
        padding: 16px 0;
        background: #FFF7E9;
        border-radius: 0 0 14px 14px;
    }

    .custom-navbar .about-dropdown-menu {
        position: static !important;
        transform: none !important;
        width: calc(100% - 32px);
        margin: 8px auto 4px !important;
        padding: 8px;
        text-align: center;
        border: none !important;
        border-radius: 12px;
        box-shadow: none !important;
        background: rgba(255, 247, 233, 0.85);
    }
}
