/* ============================================================
   PUBLIC HOME PAGE
   ============================================================ */

/* ---------- HERO / CAROUSEL ---------- */

.hero
{
    position: relative;
    width: 100%;
    height: 420px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-dark));
}

.hero-carousel
{
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    transition: opacity 0.4s ease;
}

.hero-overlay
{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.hero-overlay h1
{
    font-size: 2.4em;
    font-weight: 700;
    margin: 0 0 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-overlay p
{
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

.hero-nav
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 1.4em;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 8px;
    transition: background 0.15s;
    backdrop-filter: blur(4px);
}

.hero-nav:hover
{
    background: rgba(255,255,255,0.35);
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }

.carousel-dots
{
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot
{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active
{
    background: #fff;
    transform: scale(1.2);
}

/* Hero placeholder (no carousel photos) */

.hero-placeholder
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    gap: 16px;
}

.hero-placeholder-logo
{
    height: 80px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.hero-placeholder h1
{
    font-size: 2.4em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ---------- HOME SECTIONS ---------- */

.home-section
{
    margin-bottom: 40px;
}

.home-section-header
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pub-primary) 8%, white), color-mix(in srgb, var(--pub-primary) 18%, white));
    border-left: 5px solid var(--pub-primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.home-section-header h2
{
    font-size: 1.5em;
    font-weight: 700;
    color: var(--pub-text);
    margin: 0;
}

.home-section-header h2 .fa-fw
{
    color: var(--pub-primary);
}

.home-section-link
{
    font-size: 0.82em;
    font-weight: 600;
    color: var(--pub-primary);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.15s;
    white-space: nowrap;
}

.home-section-link:hover
{
    color: var(--pub-primary-dark);
}

/* ---------- EVENT CARDS WITH CAROUSEL ---------- */

.evt-grid
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.evt-card
{
    display: flex;
    overflow: hidden;
}

.evt-card-body
{
    flex: 1;
    padding: 20px;
    min-width: 0;
}

.evt-carousel
{
    display: none;
    width: 220px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.evt-carousel img
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.evt-carousel-nav
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.evt-carousel:hover .evt-carousel-nav
{
    opacity: 1;
}

.evt-carousel-nav:hover
{
    background: rgba(0,0,0,0.5);
}

.evt-carousel-prev { left: 6px; }
.evt-carousel-next { right: 6px; }

.evt-carousel-dots
{
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.evt-carousel-dot
{
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.evt-carousel-dot.active
{
    background: #fff;
    transform: scale(1.2);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px)
{
    .evt-grid
    {
        grid-template-columns: 1fr;
    }

    .evt-card
    {
        flex-direction: column;
    }

    .evt-carousel
    {
        width: 100%;
        height: 200px;
    }

    .hero
    {
        height: 280px;
    }

    .hero-overlay
    {
        padding: 24px;
    }

    .hero-overlay h1
    {
        font-size: 1.6em;
    }

    .hero-placeholder h1
    {
        font-size: 1.6em;
    }

    .hero-nav
    {
        padding: 8px 10px;
        font-size: 1.1em;
    }
}
