/* ================================= */
/* STYLES FOR INDEX.HTML MAIN CONTENT */
/* ================================= */

/* =================================
    ANIMASI & STRUKTUR DASAR KONTEN
================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    flex: 1 1 340px;
    min-width: 0;
    max-width: 100%;
    align-self: flex-start;
}

.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

/* =================================
    TIPOGRAFI KONTEN UTAMA
================================= */
h1,
h2,
h3,
h4 {
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--header-bg);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

body.dark h1 {
    color: var(--nav-text-color);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    color: var(--nav-bg);
    border-bottom: 2px solid var(--header-bg);
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

body.dark h2 {
    color: var(--font);
    border-bottom-color: var(--nav-bg);
}

main>.center-column>p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
    padding: 0 1rem;
    color: var(--text-color);
}

/* =================================
    CONTAINER EVENT & BANNER
================================= */
.event-item-container {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    overflow: hidden;
}

.event-item-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 0 25px var(--header-bg);
    background: linear-gradient(145deg, var(--card-bg), rgba(255, 255, 255, 0.05));
}

body.dark .event-item-container {
    border-color: rgba(255, 255, 255, 0.1);
}

section {
    place-items: center;
}

.banner-strip {
    background: var(--section-bg);
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.banner-strip:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.banner-strip img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.banner-strip:hover img {
    transform: scale(1.05);
}

.event-description {
    text-align: left;
    padding: 0 8px;
}

.event-description h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.25rem;
    color: var(--header-bg);
    font-weight: 700;
    text-align: left;
    transition: color 0.3s ease;
}

.event-description p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-color);
    opacity: 0.9;
    text-align: left;
}

.event-description p:last-child {
    margin-bottom: 0;
}

body.dark .event-description h3 {
    color: var(--font);
}

/* =================================
    ARCHIVE SECTION (BANNER GRID) - UPDATED
================================= */
.banner-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 4px 4px 12px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--nav-bg) rgba(0, 0, 0, 0.05);
    width: 100%;
}

.banner-grid::-webkit-scrollbar {
    height: 8px;
}

.banner-grid::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.banner-grid::-webkit-scrollbar-thumb {
    background-color: var(--nav-bg);
    border-radius: 10px;
}

.event-sub-item {
    flex: 0 0 48%;
    max-width: 280px;
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
}

.event-sub-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 0 15px var(--header-bg);
}

/* Link hanya pada h3 dan img */
.event-sub-item h3 a,
.event-sub-item .banner-strip a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.event-sub-item h3 a:hover,
.event-sub-item .banner-strip a:hover {
    color: var(--header-bg);
}

.event-sub-item .banner-strip {
    width: 100%;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.event-sub-item .banner-strip img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-sub-item .banner-strip a:hover img {
    transform: scale(1.05);
}

.event-sub-item .event-description {
    padding: 12px;
    margin-top: -10px;
    position: relative;
    z-index: 2;
    background-color: var(--card-bg);
    border-radius: 0 0 16px 16px;
}

.event-sub-item .event-description p {
    font-weight: 400;
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-color);
}

/* =================================
    RESPONSIVE UNTUK MAIN CONTENT
================================= */
@media (max-width: 1024px) {
    .center-column {
        padding: 0 2vw;
    }
}

@media (max-width: 600px) {
    main>.center-column>p {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .event-description h3 {
        font-size: 1.1rem;
    }

    .event-description p {
        font-size: 0.95rem;
    }

    .banner-grid {
        grid-template-columns: 1fr;
    }

    .event-sub-item {
        flex-basis: 75%;
    }
}

@media (max-width: 400px) {
    .event-sub-item {
        flex-basis: 85%;
    }
}

/* Ganti .sidebar-ad-container dengan kelas pembungkus iklanmu yang sebenarnya */
.sidebar-ad-container {
  min-width: 250px;
  width: 100%; /* Atau lebar lain yang sesuai */
}