/* ==========================================================================
   PALMEX Jakarta Custom CSS
   ========================================================================== */

/* 1. Header Action Buttons Flex System (Desktop) */
.header-buttons-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    width: auto !important;
}

.header-buttons-grid .btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    line-height: 1 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease-in-out !important;
}

.header-buttons-grid .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15) !important;
}

/* 2. Responsive UI Mobile & Tablet Rules */
@media (max-width: 768px) {
    /* Make buttons 3 columns on Mobile UI */
    .header-buttons-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 360px !important;
        margin: 0 auto !important;
    }

    .header-buttons-grid .btn:first-child {
        grid-column: span 1 !important;
    }

    /* Premium mobile styling adjustments for buttons inside the grid */
    .header-buttons-grid .btn {
        padding: 0 4px !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 36px !important;
        min-height: 36px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        width: 100% !important;
        border-radius: 4px !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* Reset default header spacing on mobile */
    ul.header-action {
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    li.buttons-row {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
}

/* 3. Logo and Mobile Menu Button Alignment (Sejajar) */
@media (max-width: 1199px) {
    /* Completely collapse the hidden navigation column to avoid taking space */
    .header-menu-column {
        display: none !important;
    }

    /* Force middle header row to act as a single line, flex-wrap prevented */
    .ltn__header-middle-area .row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
    }

    /* Force columns to align correctly without column-wrapping side effects */
    .ltn__header-middle-area .col {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

    /* Reset logo and toggle wrapping container margins */
    .ltn__header-middle-area .site-logo-wrap {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .ltn__header-middle-area .ltn__header-options {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .ltn__header-middle-area .mobile-menu-toggle {
        margin: 0 !important;
    }
}

/* 4. Mobile Menu Overlay Backdrop Blur & Z-Index Stack */
#ltn__utilize-mobile-menu,
.ltn__utilize-mobile-menu {
    z-index: 9999999 !important;
}

.ltn__utilize-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999998 !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    background-color: rgba(0, 0, 0, 0.45) !important;
}

/* 5. Custom YouTube Thumbnail Play Cards styling and animations */
.video-thumb-container:hover .video-thumb-img {
    transform: scale(1.06) !important;
}

.video-thumb-container:hover .video-overlay {
    background: rgba(0, 0, 0, 0.15) !important;
}

.video-thumb-container:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.15) !important;
    background: #ffffff !important;
    box-shadow: 0 12px 35px rgba(134, 188, 63, 0.6) !important;
}

/* 6. Gallery and Grid Layout tweaks for Mobile UI */
@media (max-width: 768px) {
    /* Responsive height for gallery custom row on mobile (2 pictures per row) */
    .gallery-custom-row .col-6 div {
        height: 200px !important;
    }
}

/* 7. Premium Feature Grid responsive adaptivity */
@media (max-width: 991px) {
    .palmex-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 575px) {
    .palmex-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* 8. Desktop Top Bar Horizontal Single Line Alignment */
@media (min-width: 768px) {
    /* Align left and right top bar columns vertically center */
    .ltn__header-top-area .row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Force the header actions list to stay on a single horizontal line */
    ul.header-action {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 25px !important; /* Premium spacing between buttons and social section */
    }

    /* Prevent buttons-row from wrapping or taking full width */
    li.buttons-row {
        flex: 0 0 auto !important;
        width: 360px !important; /* Elegant fixed desktop width for the 2-row button grid */
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    /* Ensure social icons sit perfectly on the same line */
    li.row.social {
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 12px !important;
        list-style: none !important;
    }

    /* Remove bootstrap negative margins or pseudo classes from the social row inside list */
    li.row.social::before,
    li.row.social::after {
        display: none !important;
    }

    /* Ensure social text and icons are beautifully formatted and spaced */
    .social-text {
        margin: 0 !important;
        white-space: nowrap !important;
    }

    .icons {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
}

/* 9. Supported By Association Logos Grid (Mobile 2-column) */
@media (max-width: 768px) {
    .box-support-wrap {
        margin-bottom: 25px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .box-support-wrap .box-support {
        height: 110px !important;
        padding: 12px !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important;
    }
    
    .box-support-wrap div[style*="font-size: 14px"] {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        padding: 0 4px !important;
    }
}

/* 10. Premium Clean About Section Layout */
.about-event-wrapper {
    background: linear-gradient(135deg, #6D9F31 0%, #5b8728 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.about-event-blur-1 {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    filter: blur(10px);
}

.about-event-blur-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 260px;
    height: 260px;
    background: rgba(255, 250, 110, 0.06);
    border-radius: 50%;
    filter: blur(10px);
}

.about-event-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.about-event-header {
    text-align: center;
    margin-bottom: 35px;
}

.about-event-badge {
    display: inline-block;
    background: rgba(255, 250, 110, 0.15);
    border: 1px solid rgba(255, 250, 110, 0.3);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.about-event-title {
    color: #fff;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 800;
    margin: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.about-event-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
}

.about-event-narrative {
    flex: 1 1 54%;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-event-paragraph {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 20px;
    text-align: left;
}

.about-event-paragraph:last-child {
    margin-bottom: 0;
    margin-top: 10px;
}

.about-event-pillars {
    flex: 1 1 38%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.about-event-pillar-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.25s ease-in-out;
    backdrop-filter: blur(6px);
}

.about-event-pillar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 250, 110, 0.3);
    transform: translateX(5px);
}

.about-event-pillar-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-event-pillar-icon svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 6px rgba(255, 250, 110, 0.3));
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .about-event-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-event-narrative,
    .about-event-pillars {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .about-event-card {
        padding: 30px 20px;
    }
    
    .about-event-title {
        font-size: 24px;
    }
    
    .about-event-paragraph {
        font-size: 15px;
        text-align: justify;
    }
}



