/* =====================================================
   GOLAN EVENT - BLOCKSY CARD (ISOLATED FOR EVENT ONLY)
===================================================== */

/* 1. Container Utama Event Card */
article.entry-card.type-event,
article.entry-card.event {
    --ge-ink: #14233b;
    --ge-blue: #2f6fe4;
    --ge-ease: cubic-bezier(0.22, 1, 0.36, 1);

    display: flex !important;
    flex-direction: column !important;
}

/* 2. Media Image Container (Khusus Event) */
article.entry-card.type-event .ct-media-container,
article.entry-card.event .ct-media-container {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    isolation: isolate !important;
    border: 1px solid rgba(20, 35, 59, 0.16) !important;
    border-radius: 12px !important;
    background: #000 !important;
    transition: border-color 0.35s ease, box-shadow 0.35s ease !important;
}

article.entry-card.type-event .ct-media-container img,
article.entry-card.event .ct-media-container img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.9 !important;
    transition: transform 0.8s var(--ge-ease), opacity 0.3s ease !important;
}

/* 3. Architectural Grid Lines Overlay (Khusus Event) */
article.entry-card.type-event .ct-media-container::before,
article.entry-card.event .ct-media-container::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    pointer-events: none !important;

    background-image: 
        /* 2 Garis Vertikal */
        linear-gradient(to right, 
            transparent calc(33.33% - 0.5px), 
            rgba(255, 255, 255, 0.2) calc(33.33% - 0.5px), 
            rgba(255, 255, 255, 0.2) calc(33.33% + 0.5px), 
            transparent calc(33.33% + 0.5px), 
            transparent calc(66.66% - 0.5px), 
            rgba(255, 255, 255, 0.2) calc(66.66% - 0.5px), 
            rgba(255, 255, 255, 0.2) calc(66.66% + 0.5px), 
            transparent calc(66.66% + 0.5px)
        ),
        /* 2 Garis Horizontal */
        linear-gradient(to bottom, 
            transparent 15%, 
            rgba(255, 255, 255, 0.2) 15%, 
            rgba(255, 255, 255, 0.2) calc(15% + 1px), 
            transparent calc(15% + 1px), 
            transparent 85%, 
            rgba(255, 255, 255, 0.2) 85%, 
            rgba(255, 255, 255, 0.2) calc(85% + 1px), 
            transparent calc(85% + 1px)
        ) !important;

    transition: opacity 0.4s ease !important;
}

/* Hover State Container & Gambar */
article.entry-card.type-event:hover .ct-media-container,
article.entry-card.event:hover .ct-media-container {
    border-color: rgba(47, 111, 228, 0.5) !important;
    box-shadow: 0 4px 20px -2px rgba(20, 35, 59, 0.08) !important;
}

article.entry-card.type-event:hover .ct-media-container img,
article.entry-card.event:hover .ct-media-container img {
    transform: scale(1.03) !important;
    opacity: 1 !important;
}

article.entry-card.type-event:hover .ct-media-container::before,
article.entry-card.event:hover .ct-media-container::before {
    opacity: 0.8 !important;
}

/* 4. Title & Meta (Khusus Event) */
article.entry-card.type-event .entry-title,
article.entry-card.event .entry-title {
    text-wrap: balance;
}

/* 5. Read More Button Custom (Khusus Event) */
article.entry-card.type-event .entry-button,
article.entry-card.event .entry-button {
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    width: fit-content !important;
    
    margin-top: auto !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding-top: 16px !important;
    padding-bottom: 4px !important;
    
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--ge-ink) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    transition: color 0.25s ease !important;
}

article.entry-card.type-event .entry-button svg,
article.entry-card.event .entry-button svg {
    display: none !important;
}

article.entry-card.type-event .entry-button::after,
article.entry-card.event .entry-button::after {
    content: "" !important;
    flex: none !important;
    width: 36px !important;
    height: 36px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(20, 35, 59, 0.28) !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: 50% 50% !important;
    background-size: 14px 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314233b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, background-position 0.35s var(--ge-ease) !important;
}

/* Hover State Tombol (Khusus Event) */
article.entry-card.type-event .entry-button:hover,
article.entry-card.event .entry-button:hover {
    color: var(--ge-blue) !important;
    background: transparent !important;
}

article.entry-card.type-event .entry-button:hover::after,
article.entry-card.event .entry-button:hover::after {
    background-color: var(--ge-blue) !important;
    border-color: var(--ge-blue) !important;
    background-position: 56% 44% !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") !important;
}


/* =====================================================
   GOLAN EVENT — REGISTRATION STATUS BADGE
   (Mendukung Card Archive & Related Posts)
===================================================== */

article.entry-card.type-event .ge-event-status,
article.entry-card.event .ge-event-status,
div.type-event .ge-event-status,
div.type-event .ct-media-container .ge-event-status {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 5 !important;

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

    padding: 7px 10px !important;
    border: 1px solid rgba(20, 35, 59, 0.16) !important;
    border-radius: 6px !important;

    background: #fff !important;
    color: #14233b !important;

    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;

    box-shadow: none !important;
    pointer-events: none !important;
}

/* Open */
article.entry-card.type-event .ge-event-status--open,
article.entry-card.event .ge-event-status--open,
div.type-event .ge-event-status--open,
div.type-event .ct-media-container .ge-event-status--open {
    background: #fff !important;
    color: #14233b !important;
}

/* Closed */
article.entry-card.type-event .ge-event-status--closed,
article.entry-card.event .ge-event-status--closed,
div.type-event .ge-event-status--closed,
div.type-event .ct-media-container .ge-event-status--closed {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    border-color: rgba(20, 35, 59, 0.12) !important;
}