html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: #333;
    background-color: white;
    overflow-x: hidden;
    touch-action: pan-y;
}

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

/* === HERO SECTION === */
.hero-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    color: white;
    margin-bottom: 40px;
    margin-top: 100px;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease-in-out;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 1;
}

.hero-bg.fade-out {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
    z-index: 2;
    top: 0;
    left: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    max-width: 600px;
    text-align: center !important;
}

.hero-title {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    color: white;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: white;
}

.hero-section,
.hero-bg,
.hero-overlay {
    max-width: 100vw;
    overflow-x: hidden;
}

.btn-explore {
    background-color: #dc3545;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-explore:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.hero-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-pagination .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.hero-pagination .dot.active {
    background-color: white;
}

.card-event {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.card-event-header {
    padding: 15px;
    color: white;
    position: relative;
    min-height: 100px;
    height: 160px;
    flex-shrink: 0;
}

.card-event-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 70%);
}

.card-event-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/modules/landing/teams/gradient-bg.png"),
        rgba(182, 22, 20, 0.85);
    background-blend-mode: multiply;
    z-index: 1;
}

.card-event-header img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.card-event-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tag-event {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #1e54b7;
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-top-right-radius: 4px;
    z-index: 2;
}

.session-event-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.date-event-time {
    color: #b61614;
    font-weight: 400;
    font-size: 0.75rem;
    margin-bottom: 3px;
}

.location-event {
    font-size: 0.75rem;
    color: #929292;
    margin-bottom: 30px;
}

.status-event {
    font-size: 0.8rem;
    color: #4f5eeb;
    font-weight: 200;
    margin-top: auto;
}

/* Media queries untuk responsive breakpoints */
@media (max-width: 1199.98px) {
    .card-event {
        max-width: 260px;
    }

    .card-event-header {
        height: 110px;
    }
}

@media (max-width: 991.98px) {
    .card-event {
        max-width: 240px;
    }

    .card-event-header {
        height: 100px;
    }
}

@media (max-width: 767.98px) {
    .card-event {
        max-width: 300px;
    }

    .card-event-header {
        height: 120px;
    }

    .card-event-body {
        padding: 12px;
    }

    .session-event-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .card-event {
        max-width: 100%;
        min-width: 280px;
    }

    .card-event-header {
        height: 100px;
    }

    .card-event-body {
        padding: 12px;
    }

    .tag-event {
        font-size: 0.7rem;
    }

    .session-event-title {
        font-size: 0.85rem;
    }

    .date-event-time {
        font-size: 0.8rem;
    }

    .location-event,
    .status-event {
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.card-gradient-red {
    /* Base gradient merah */
    background: linear-gradient(to right, #8b0000, #dc143c);
    border: none !important;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card-gradient-red:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.card-gradient-red .card-body {
    /* Layer 1: Event background dengan gradient overlay */
    background: linear-gradient(
            to top,
            rgba(139, 0, 0, 0),
            rgba(220, 20, 60, 1)
        ),
        url("/modules/landing/teams/Motif2.png") no-repeat center center;
    background-size: cover;
    position: relative;
}

.card-gradient-red .card-body::before {
    /* Layer 2: Pattern overlay */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/modules/landing/teams/gradient-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.card-gradient-red .card-body > * {
    position: relative;
    z-index: 1;
}

/* Text styling untuk kontras yang baik */
.card-gradient-red .card-title,
.card-gradient-red p {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-gradient-red p {
    opacity: 0.9;
}

.card-gradient-red .card-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.25rem;
}

/* Button styling untuk glassmorphism effect */
.card-gradient-red .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-gradient-red .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-1px);
}

.card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link-wrapper * {
    color: inherit;
}

.card-link-wrapper:hover .card-event {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.filter-container {
    max-width: 1500px !important;
    margin: 0 auto;
    padding: 0 15px;
}

.filter-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 50px;
}
