/* ================================================================
   Homepage — Hero Carousel + Upcoming Events Grid
   ================================================================ */

/* ── Hero Section ─────────────────────────────────────────── */

.tam-hero {
    background: #1a1a1a;
    padding: 48px 0;
    overflow: hidden;
}

.tam-carousel-wrap {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

/* ── Carousel Container ───────────────────────────────────── */

.tam-carousel {
    overflow: hidden;
    position: relative;
}

/* ── Carousel Track (transform-based) ─────────────────────── */

.tam-carousel-track {
    display: flex;
    gap: 20px;
}

/* ── Carousel Card ────────────────────────────────────────── */

.tam-carousel-card {
    flex-shrink: 0;
    width: 360px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: scale(0.88);
    opacity: 0.5;
    text-decoration: none !important;
    display: block;
}

.tam-carousel-card.tam-carousel-active {
    transform: scale(1);
    opacity: 1;
}

.tam-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tam-carousel-placeholder {
    background: #333;
}

/* ── Card Overlay (gradient + content) ────────────────────── */

.tam-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
    display: flex;
    align-items: flex-end;
    gap: 16px;
    min-height: 200px;
}

.tam-carousel-badge {
    flex-shrink: 0;
    background: #1a6847;
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    min-width: 54px;
    line-height: 1.15;
}

.tam-carousel-badge-day {
    display: block;
    font-size: 1.7em;
    font-weight: 800;
    line-height: 1;
}

.tam-carousel-badge-month {
    display: block;
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.tam-carousel-info {
    flex: 1;
    min-width: 0;
}

.tam-carousel-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.tam-carousel-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tam-carousel-time,
.tam-carousel-location {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
}

/* ── Dots ─────────────────────────────────────────────────── */

.tam-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.tam-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tam-dot.tam-dot-active {
    background: #1a6847;
    transform: scale(1.3);
}

/* ================================================================
   Upcoming Events Grid Section
   ================================================================ */

.tam-upcoming-section {
    padding: 48px 0 60px;
}

.tam-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tam-upcoming-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 28px 0;
}

.tam-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Reuse card styles from tam-events.css */
.tam-home-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tam-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
}

.tam-home-card-image {
    display: block;
    overflow: hidden;
}

.tam-home-card-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.tam-home-card:hover .tam-home-card-image img {
    transform: scale(1.04);
}

/* ── View All Link ────────────────────────────────────────── */

.tam-upcoming-footer {
    text-align: center;
    margin-top: 32px;
}

.tam-view-all {
    display: inline-block;
    padding: 14px 36px;
    background: #1a6847;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.tam-view-all:hover {
    background: #145536;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1100px) {
    .tam-upcoming-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .tam-upcoming-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tam-hero {
        padding: 24px 0;
    }

    .tam-carousel-card {
        width: 260px;
        height: 380px;
    }

    .tam-carousel-card.tam-carousel-active {
        transform: scale(1);
    }

    .tam-carousel-card {
        transform: scale(0.85);
    }

    .tam-carousel-title {
        font-size: 1.1rem;
    }

    .tam-carousel-overlay {
        padding: 16px;
        min-height: 160px;
    }

    .tam-upcoming-grid {
        grid-template-columns: 1fr;
    }

    .tam-upcoming-heading {
        font-size: 1.4rem;
    }
}
