/* General Body and Font Styles */

:root {
    /* KAMCUP Brand Colors (Original) */
    --kamcup-primary: #cb2786; /* Merah Muda Keunguan */
    --kamcup-secondary: #00617a; /* Biru Kehijauan Tua */
    --kamcup-accent: #f4b704; /* Kuning Cerah */

    /* Bale by BTN Brand Colors */
    --bale-primary: #2966b1; /* BTN Blue */
    --bale-accent: #ee1d23; /* BTN Red */

    /* Combined Palette for Kamcup X Bale - **UPDATED FOR MORE BALE PRESENCE** */
    --collab-primary: var(
        --bale-primary
    ); /* BTN Blue remains primary structural */
    --collab-secondary: var(
        --kamcup-secondary
    ); /* Kamcup secondary for depth */
    --collab-accent: var(
        --bale-accent
    ); /* **UPDATED: Bale Red for main actions & emphasis!** */
    --collab-highlight: var(
        --kamcup-accent
    ); /* Kamcup accent for strong highlights (e.g. text emphasis) */
    --collab-cta-kamcup: var(
        --kamcup-primary
    ); /* **NEW: Kamcup Primary for specific Kamcup-focused CTAs** */

    /* Custom color for all buttons and the "PARTNER & SPONSOR KAMI" section downwards */
    --custom-blue: #0f62ff;
    --custom-blue-darken: #004ac2; /* A darker shade for hover effects */

    /* Specific color for box shadow */
    --shadow-color-cf2585: #cf2585;

    --text-dark: #212529;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --light-bg: #f8f9fa;
    --dark-bg-overlay: rgba(
        41,
        102,
        177,
        0.85
    ); /* Increased opacity for BTN Blue overlay */

    /* Old style colors for reference / integration (now mostly superseded by collab colors) */
    --old-text-color: #0c2c5a; /* Specific color from old style, now generally covered by --text-dark or --collab-primary */
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    color: var(--text-dark);
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Wrapper utama untuk memastikan footer berada di bawah */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Memastikan wrapper mengambil setidaknya 100% dari tinggi layar */
}

/* Konten bisa berkembang tapi tetap memberi ruang untuk footer */
.content {
    flex-grow: 1; /* Konten akan mengisi ruang yang tersisa */
}

/* Hero Section */
.hero-section {
    position: relative;
    color: var(--text-light);
    text-align: center;
}

.hero-section .navbar-brand {
    color: var(--text-light);
    font-weight: bold;
}

.hero-section .nav-link {
    color: rgba(
        255,
        255,
        255,
        0.95
    ) !important; /* Even more opaque for better visibility */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.hero-section .nav-link.active,
.hero-section .nav-link:hover {
    color: var(
        --collab-highlight
    ) !important; /* Kamcup accent for active/hover */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* Stronger glow on hover */
}

.hero-section .btn-outline-light {
    border-color: var(--text-light);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.hero-section .btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(
        --collab-primary
    ); /* **UPDATED: Text color to BTN Blue for contrast** */
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
}

.hero-content {
    padding-top: 100px;
    padding-bottom: 80px;
}

.hero-content .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.8rem); /* Slightly larger title */
    font-weight: 800; /* Bolder title */
    color: var(--text-light);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5); /* More prominent shadow */
}

.hero-content .hero-description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 2vw, 1.35rem); /* Slightly larger description */
    line-height: 1.8;
}

.hero-content .hero-description strong {
    color: var(--collab-highlight); /* Kamcup accent for emphasis */
}

/* Updated hero button styling */
.hero-content .hero-btn {
    background-color: var(
        --custom-blue
    ); /* All buttons now use this custom blue */
    border-color: var(--custom-blue);
    color: var(--text-light); /* White font for all buttons */
    font-weight: bold;
    padding: 1.2rem 3rem;
    font-size: 1.25rem; /* Slightly larger button */
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); /* Stronger shadow */
    border-radius: 8px !important; /* Smaller border-radius */
}

.hero-content .hero-btn:hover {
    background-color: var(
        --custom-blue-darken
    ); /* Darken custom blue on hover */
    border-color: var(--custom-blue-darken);
    color: var(--text-light);
    transform: translateY(-4px); /* More lift effect on hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Section Titles */
.section-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Larger font size */
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px; /* More space for underline */
    margin-bottom: 35px; /* More space below title */
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90px; /* Longer underline */
    height: 6px; /* Thicker underline */
    background-color: var(
        --collab-primary
    ); /* **UPDATED: BTN Blue for underline** */
    border-radius: 3px;
}

/* Updated see all button styling */
.see-all-btn {
    border-color: var(--custom-blue); /* All buttons now use this custom blue */
    background-color: var(--custom-blue);
    color: var(--text-light); /* White font for all buttons */
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px !important; /* Smaller border-radius */
}

.see-all-btn:hover {
    background-color: var(
        --custom-blue-darken
    ); /* Darken custom blue on hover */
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(15, 98, 255, 0.4); /* Shadow using custom blue */
}

/* Article Cards - UNCHANGED AS REQUESTED */
.article-text {
    color: var(--old-text-color);
}

.card-hover-zoom {
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
    box-shadow: 8px 8px 0px 0px var(--shadow-color-cf2585);
}

.card-hover-zoom:hover {
    transform: scale(1.05);
    z-index: 999;
}

.article-card-title-color {
    color: #cf2585;
}

.article-card-description-color {
    color: #cf2585;
}

.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid var(--light-bg);
    border-radius: 0.8rem;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.25) !important;
    border-color: var(--collab-primary);
}

.article-card .card-body {
    padding: 1.75rem;
}

.article-card .card-title {
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
    color: var(--text-dark);
    font-weight: 700;
}

.article-card .short-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article-card .short-description strong {
    color: var(--collab-accent);
}

.article-card .stretched-link {
    color: var(--collab-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.article-card .stretched-link:hover {
    color: #1a4f8c;
}

/* Event Status Badge - UNCHANGED AS REQUESTED */
.event-status-badge {
    padding: 0.3em 0.6em;
    border-radius: 0.3em;
    font-weight: 600;
    font-size: 0.85em;
    display: inline-block;
    margin-top: 5px;
    white-space: nowrap;
}

.status-completed {
    background-color: #dc3545;
    color: white;
}

.status-ongoing {
    background-color: #ffc107;
    color: #212529;
}

.status-registration {
    background-color: #28a745;
    color: white;
}

/* Event Cards - UNCHANGED AS REQUESTED */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid var(--light-bg);
    border-radius: 0.8rem;
    box-shadow: 8px 8px 0px 0px var(--shadow-color-cf2585);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.25) !important;
    border-color: var(--collab-accent);
}

.event-card .card-body {
    padding: 1rem;
}

.event-card .card-title {
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
    color: var(--text-dark);
    font-weight: 700;
}

.event-card .card-text i {
    color: var(--collab-primary);
    margin-right: 8px;
}

.event-card .short-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-card .short-description strong {
    color: var(--collab-cta-kamcup);
}
.event-card .stretched-link {
    color: var(--collab-cta-kamcup);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.event-card .stretched-link:hover {
    color: #a4206e;
}

/* Bootstrap Carousel Control Overrides for Articles - UNCHANGED AS REQUESTED */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(41, 102, 177, 0.7);
    border-radius: 50%;
    height: 40px;
    width: 40px;
    z-index: 10;
}

.carousel-control-prev {
    left: -50px;
}

.carousel-control-next {
    right: -50px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    background-size: 100% 100%;
}

@media (max-width: 768px) {
    .carousel-control-prev {
        left: 0;
    }

    .carousel-control-next {
        right: 0;
    }
    .card {
        height: fit-content;
    }
}

.carousel-inner,
.carousel-item {
    overflow: visible !important;
}

/* Custom Pagination Styles */
.pagination {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-link {
    border-radius: 50%;
    padding: 10px 15px;
    color: var(--text-dark);
    background-color: transparent;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--light-bg);
    border-color: var(--collab-primary);
}

/* Active page with custom color */
.pagination .page-item.active .page-link {
    background-color: var(--collab-primary);
    border-color: var(--collab-primary);
    color: var(--text-light);
}

.pagination .page-item.disabled .page-link {
    color: #aaa;
    pointer-events: none;
}

/* Sponsor Section Header */
.sponsor-section-header {
    background-color: var(--collab-primary);
    padding: 2.2rem;
    border-radius: 15px;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
}

.sponsor-section-header p {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
}

/* Styles for PARTNER & SPONSOR KAMI section and below */
.partner-sponsor-section-wrapper {
    background-color: var(--custom-blue);
}

.partner-sponsor-section {
    padding: 50px 0;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.partner-sponsor-section .container {
    padding-left: 15px;
    padding-right: 15px;
}

.partner-sponsor-header {
    margin-bottom: 0 !important;
    background-color: transparent;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px;
}

.section-title-no-margin-bottom {
    margin-bottom: 0 !important;
    color: white;
    padding-bottom: 0 !important;
}

.section-title-no-margin-bottom::after {
    content: none;
}

/* Gallery Carousel */
.carousel-container {
    max-width: 1200px;
    margin: 0px auto;
    padding: 20px;
    text-align: center;
}

.carousel-title {
    text-align: left;
    font-size: 36px;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--old-text-color);
}

.carousel-subtitle {
    text-align: left;
    color: var(--old-text-color);
    margin-bottom: 30px;
    margin-bottom: 20px;
}

.carousel {
    padding-top: 30px;
    position: relative;
    height: 480px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.carousel-images {
    position: relative;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
}

.image-item {
    position: absolute;
    width: 50%;
    height: 480px;
    left: 25%;
    padding: 10px;
    background-color: #ecbf00;
    transition: all 0.5s ease;
    cursor: pointer;
    transform-style: preserve-3d;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Add border-radius here */
    border-radius: 8px; /* Added border-radius for gallery cards */
}

.image-item img {
    width: 100%;
    height: calc(100% - 50px);
    object-fit: cover;
}

.image-item h1 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ecbf00;
    color: var(--old-text-color);
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

.image-item.active {
    z-index: 10;
    opacity: 1;
    transform: translateX(0) scale(1);
}

.image-item.prev {
    z-index: 5;
    opacity: 1;
    transform: translateX(-20%) scale(0.85);
}

.image-item.next {
    z-index: 5;
    opacity: 1;
    transform: translateX(20%) scale(0.85);
}

.image-item.prev-hidden {
    z-index: 4;
    opacity: 1;
    transform: translateX(-40%) scale(0.7);
}

.image-item.next-hidden {
    z-index: 4;
    opacity: 1;
    transform: translateX(40%) scale(0.7);
}

.image-item.hidden {
    opacity: 0;
    transform: translateX(-200%) scale(0.7);
}

.nav-button {
    /* Changed from .carousel-button to .nav-button as per your HTML */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.left {
    left: 7%;
}

.right {
    right: 7%;
}

.image-description {
    margin-top: 20px;
    padding: 10px;
    font-size: 16px;
    color: #333;
}

.lihat-semua-btn:hover {
    background-color: #0c2c5a !important;
    color: white !important;
    border-color: #0c2c5a !important;
}

@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }

    .image-item {
        height: 300px;
        width: 80%;
        left: 10%;
    }

    .image-item img {
        height: calc(100% - 50px);
    }
    .image-item img {
        object-fit: contain; /* Keep this as contain for gallery images unless you specifically want fill */
    }
}

/* Sponsor Boxes */
.sponsor-box {
    background-color: var(--text-light);
    border: 2px solid var(--collab-primary);
    border-radius: 0.8rem;
    box-shadow: 0 0.15rem 0.6rem rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease,
        box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 170px; /* Base height for larger screens */
    padding: 18px;
}

.sponsor-box img {
    max-width: 95%;
    max-height: 85%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.sponsor-box:hover img {
    filter: grayscale(0%);
}

.sponsor-xxl img {
    max-height: 120px;
}
.sponsor-xl img {
    max-height: 90px;
}
.sponsor-l img {
    max-height: 70px;
}
.sponsor-ms img {
    max-height: 60px;
}

.sponsor-box:hover {
    transform: translateY(-7px);
    border-color: var(--collab-accent);
    box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.2);
}
.sponsor-box p {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 10px;
}

/* Navbar */
.navbar {
    background-color: var(--collab-primary);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: background-color 0.3s ease;
    min-height: 100px;
    display: flex;
    align-items: center;
}

/* Brand Logo (Gambar Logo) */
.navbar-brand .brand-logo {
    height: 90px;
    width: auto;
    object-fit: cover; /* Perubahan: Mengisi wadah dan memotong jika perlu */
    margin-right: 10px;
}

/* Responsive Adjustments untuk navbar dan logo */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        min-height: 60px; /* Minimal tinggi navbar di mobile */
    }
    .navbar-brand .brand-logo {
        height: 60px; /* Logo lebih kecil di mobile */
        width: auto;
        object-fit: fill; /* Perubahan di sini */
    }
    /* ... (pastikan .navbar-collapse memiliki padding yang cukup) ... */
    .navbar-collapse {
        /* ... (kode yang sudah ada) ... */
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Small devices (landscape phones, portrait tablets, 576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        min-height: 65px;
    }
    .navbar-brand .brand-logo {
        height: 70px; /* Lebih besar dari mobile kecil, tapi masih kecil dari desktop */
        width: auto;
        object-fit: fill; /* Perubahan di sini */
    }
}

/* Medium devices (tablets, large phones, 768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        min-height: 75px;
    }
    .navbar-brand .brand-logo {
        height: 80px; /* Mendekati ukuran desktop penuh */
        width: auto;
        object-fit: fill; /* Perubahan di sini */
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar {
        padding-top: 0.5rem; /* Kembali ke padding kecil */
        padding-bottom: 0.5rem;
        min-height: 100px; /* Atur min-height untuk menampung logo 90px + padding */
    }
    .navbar-brand .brand-logo {
        height: 90px; /* Ukuran penuh 90px untuk desktop */
        width: auto;
        object-fit: fill; /* Perubahan di sini */
    }
    /* Pastikan nav-link punya padding yang cukup */
    .nav-link {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

/* Responsive Adjustments (bagian ini sudah ada di kode Anda, hanya memastikan urutan benar) */
/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-content {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    .hero-content .hero-title {
        font-size: 2.2rem; /* Smaller for very small screens */
        margin-bottom: 1.5rem;
    }
    .hero-content .hero-description {
        font-size: 0.95rem;
        padding: 0 15px; /* Add horizontal padding for text */
    }
    .hero-content .hero-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }

    .navbar-brand .brand-name {
        font-size: 1.2rem !important;
    }
    .navbar-toggler {
        margin-right: 15px; /* Space from edge */
    }
    .navbar-collapse {
        background-color: var(
            --collab-primary
        ); /* Dark background for collapsed menu */
        border-radius: 0.5rem;
        margin-top: 10px;
        padding: 15px;
    }
    .navbar-nav .nav-item {
        margin-bottom: 10px;
    }
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    .navbar-nav .btn-outline-light {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 10px;
    }

    .section-title {
        font-size: 1.6rem;
        text-align: center; /* Center title on small screens */
        padding-bottom: 10px;
    }
    .section-title::after {
        left: 50%; /* Center underline */
        transform: translateX(-50%);
        width: 70px; /* Shorter underline */
        height: 4px; /* Thinner underline */
    }

    /* Adjust for registration cards to be one column on very small screens */
    .row.row-cols-1.row-cols-md-3.g-4 > .col {
        flex: 0 0 auto;
        width: 100%;
    }
    .card.h-100.border-0.rounded-4 {
        height: auto !important; /* Allow card height to adjust */
    }

    /* Adjust partner/sponsor header and button */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column; /* Stack header and button vertically */
        align-items: center;
        text-align: center;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 .section-title {
        margin-bottom: 20px; /* Space below title when stacked */
        text-align: center;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 .btn {
        width: 80%; /* Make button wider */
        max-width: 300px; /* Prevent button from becoming too wide */
    }

    .sponsor-section-header {
        padding: 1.5rem;
        border-radius: 10px;
    }
    .sponsor-section-header p {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .sponsor-box {
        height: auto; /* Allow height to adjust */
        min-height: 120px; /* Minimum height for small screens */
        padding: 10px;
    }
    .sponsor-xxl img,
    .sponsor-xl img,
    .sponsor-l img,
    .sponsor-ms img {
        max-height: 50px; /* Smaller max height for images on very small screens */
    }
    .sponsor-box p {
        font-size: 0.9rem;
        margin-top: 5px;
    }
}

/* Small devices (landscape phones, portrait tablets, 576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content {
        padding-top: 90px;
        padding-bottom: 70px;
    }
    .hero-content .hero-title {
        font-size: 2.8rem;
    }
    .hero-content .hero-description {
        font-size: 1.05rem;
    }
    .hero-content .hero-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    .section-title::after {
        width: 80px;
        height: 5px;
    }

    /* Registration cards - two columns */
    .row.row-cols-1.row-cols-md-3.g-4 > .col {
        flex: 0 0 auto;
        width: 50%;
    }

    /* Partner/Sponsor header and button */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column; /* Stack header and button vertically */
        align-items: center;
        text-align: center;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 .section-title {
        margin-bottom: 20px; /* Space below title when stacked */
        text-align: center;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 .btn {
        width: 70%; /* Make button wider */
        max-width: 350px;
    }

    .sponsor-section-header p {
        font-size: 1.5rem;
    }
    .sponsor-box {
        height: auto;
        min-height: 140px;
    }
    .sponsor-xxl img,
    .sponsor-xl img,
    .sponsor-l img,
    .sponsor-ms img {
        max-height: 60px;
    }
}

/* Medium devices (tablets, large phones, 768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    .hero-content .hero-title {
        font-size: 3.5rem;
    }
    .hero-content .hero-description {
        font-size: 1.2rem;
    }
    .hero-content .hero-btn {
        padding: 1.1rem 2.2rem;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
    .section-title::after {
        width: 90px;
        height: 6px;
    }

    /* Registration cards - three columns on medium screens */
    .row.row-cols-1.row-cols-md-3.g-4 > .col {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    /* Partner/Sponsor header and button in one row */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 .section-title {
        margin-bottom: 0;
    }

    .sponsor-section-header p {
        font-size: 1.8rem;
    }
    .sponsor-box {
        height: 170px; /* Original height for medium screens */
    }
    .sponsor-xxl img {
        max-height: 100px;
    }
    .sponsor-xl img {
        max-height: 80px;
    }
    .sponsor-l img {
        max-height: 65px;
    }
    .sponsor-ms img {
        max-height: 55px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-content {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    .hero-content .hero-title {
        font-size: 4.8rem;
    }
    .hero-content .hero-description {
        font-size: 1.35rem;
    }
    .hero-content .hero-btn {
        padding: 1.2rem 3rem;
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    /* Registration cards - three columns on large screens and up */
    .row.row-cols-1.row-cols-md-3.g-4 > .col {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    /* Partner/Sponsor header and button in one row (default) */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 .section-title {
        margin-bottom: 0;
    }

    .sponsor-section-header p {
        font-size: 2rem;
    }
    .sponsor-box {
        height: 170px;
    }
    /* Specific heights for sponsor images */
    .sponsor-xxl img {
        max-height: 120px;
    }
    .sponsor-xl img {
        max-height: 90px;
    }
    .sponsor-l img {
        max-height: 70px;
    }
    .sponsor-ms img {
        max-height: 60px;
    }
}

/* --- Button Border Radius Adjustments --- */

/* For "JELAJAHI PROMO & EVENT" button */
.hero-content .hero-btn {
    border-radius: 8px !important; /* Smaller border-radius */
}

/* For "Lihat semuanya" buttons */
.lihat-semua-btn,
.see-all-btn {
    /* Both classes apply to "Lihat semuanya" buttons */
    border-radius: 8px !important; /* Smaller border-radius */
}

/* For "MINAT JADI PARTNER?" button */
.container-fluid.py-5 .btn {
    border-radius: 8px !important; /* Smaller border-radius */
}

/* Also apply to the "DAFTAR SEKARANG", "JADI TUAN RUMAH", "BERI DONASI" buttons */
/* The existing rule for .card a.btn already applies to these */
.card a.btn {
    border-radius: 8px !important; /* Apply smaller border-radius here as well */
}
@media (max-width: 767.98px) {
    /* Untuk ukuran layar di bawah tablet (mobile) */
    /* Menargetkan div container sebelum "Materi Promosi BY" */
    .container.py-5.mt-md-5 {
        margin-top: 8.5rem !important; /* Tambahkan jarak sesuai keinginan, misal 3.5rem atau 4rem */
    }
}

/* Dropdown menu Hover di navbar */
@media (min-width: 992px) {
    .dropdown-hover:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .dropdown-hover > .dropdown-toggle::after {
        transform: rotate(-180deg);
    }
}

.dropdown-menu {
    transition: all 0.2s ease-in-out;
}

.dropdown-menu .dropdown-item {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--kamcup-primary);
    color: #ffffff;
}

/* Chatbot Widget Styles */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: "Poppins", sans-serif;
}

/* Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0f62ff, #1976d2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(15, 98, 255, 0.3);
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.chatbot-toggle i {
    color: white;
    font-size: 24px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f4b704;
    color: #212529;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Chatbot Container */
.chatbot-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-sizing: border-box;
}

.chatbot-container.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, #0f62ff, #1976d2);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Messages */
.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
    gap: 10px;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #0f62ff, #1976d2);
    color: white;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: #f4b704;
    color: #212529;
}

.message-content {
    max-width: 250px;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.4;
    font-size: 14px;
}

.bot-message .message-content {
    background: white;
    border: 1px solid #e9ecef;
    margin-right: auto;
}

.user-message .message-content {
    background: #0f62ff;
    color: white;
    margin-left: auto;
}

/* Input */
.chatbot-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chatbot-input .input-group {
    display: flex;
    gap: 10px;
}

.chatbot-input .form-control {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
}

.chatbot-input .form-control:focus {
    border-color: #0f62ff;
    box-shadow: 0 0 0 2px rgba(15, 98, 255, 0.2);
    outline: none;
}

.chatbot-input .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f62ff;
    color: white;
    border: none;
}

.chatbot-input .btn:hover {
    background: #1976d2;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 15px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c757d;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}
.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar */
.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        width: 90vw;
        height: 450px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
    }

    .chatbot-toggle i {
        font-size: 22px;
    }
      .promo-title {
        padding: 15px; /* Padding khusus untuk layar kecil */
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 95vw;
        height: 400px;
        z-index: 10000;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
    }
}
