/*
 * Events archive and single event styles.
 */

.ev-featured-section,
.ev-grid-section {
    background: #f8fafc;
}

.ev-featured-section {
    padding: 60px 0 0;
}

.ev-featured-label {
    margin: 0 0 16px;
    color: var(--dch-red);
    font-size: var(--text-xs);
    font-weight: var(--dch-font-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ev-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--dch-shadow-card);
    border: 1px solid var(--dch-border);
}

.ev-featured-card__img,
.ev-card__img {
    position: relative;
}

.ev-featured-card__img img,
.ev-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ev-featured-card__img {
    min-height: 280px;
}

.ev-featured-card__body {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ev-featured-card__body h2 {
    font-size: var(--text-2xl);
    font-weight: var(--dch-font-bold);
    color: var(--dch-navy);
    line-height: var(--dch-leading-tight);
    margin-bottom: 14px;
}

.ev-featured-card__body p {
    font-size: var(--text-base);
    color: #475569;
    line-height: var(--dch-leading-relaxed);
    margin-bottom: 24px;
}

.ev-badge,
.dch-widget-event-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--dch-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
}

.ev-badge--standalone {
    background: #64748b;
}

.ev-badge--company {
    background: #0891b2;
}

.ev-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 0.83rem;
    color: var(--dch-text-muted);
}

.ev-meta i {
    margin-right: 5px;
    color: var(--dch-navy);
}

.ev-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dch-navy);
    transition: gap 0.2s ease;
}

.ev-link:hover {
    gap: 10px;
}

.ev-link i {
    font-size: 0.8rem;
}

.ev-grid-section {
    padding: 60px 0 80px;
}

.ev-grid-section h2 {
    margin: 0;
    color: var(--dch-navy);
    font-size: var(--text-3xl);
    font-weight: var(--dch-font-extrabold);
}

.ev-grid-section h2 span {
    display: block;
    width: 40px;
    height: 3px;
    margin-top: 8px;
    border-radius: 2px;
    background: var(--dch-red);
}

.ev-grid {
    display: grid;
    grid-template-columns: repeat(var(--dch-events-columns, 3), minmax(0, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.ev-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--dch-border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ev-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.ev-card__img {
    height: 210px;
    overflow: hidden;
}

.ev-card__img img {
    transition: transform 0.4s ease;
}

.ev-card:hover .ev-card__img img {
    transform: scale(1.04);
}

.ev-card__body {
    padding: 22px 24px 20px;
}

.ev-card__body h3 {
    font-size: var(--text-lg);
    font-weight: var(--dch-font-bold);
    color: var(--dch-navy);
    line-height: var(--dch-leading-snug);
    margin-bottom: 10px;
}

.ev-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    color: var(--dch-text-muted);
}

.ev-card-meta i {
    margin-right: 5px;
    width: 14px;
    color: var(--dch-navy);
}

.ev-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dch-red);
    transition: gap 0.2s ease;
}

.ev-card__link:hover {
    gap: 9px;
    color: var(--dch-red);
}

.ev-card__link i {
    font-size: 0.8rem;
}

.event-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2.5rem;
    padding: 3rem 0;
}

.event-overview {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--dch-shadow-card);
    margin-bottom: 2rem;
}

.event-sidebar .sidebar-widget {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--dch-shadow-card);
}

.event-overview h2 {
    position: relative;
    margin: 0 0 1rem;
    padding-bottom: 12px;
    font-size: var(--text-4xl);
    font-weight: var(--dch-font-extrabold);
    color: var(--dch-navy);
}

.event-overview h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--dch-red);
    border-radius: 2px;
}

.event-overview p {
    font-size: var(--text-base);
    color: #475569;
    line-height: var(--dch-leading-relaxed);
    margin-bottom: 1rem;
}

.event-gallery-section {
    margin-top: 2.5rem;
}

.event-gallery-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    font-size: var(--text-2xl);
    font-weight: var(--dch-font-bold);
    color: var(--dch-navy);
}

.event-gallery-section h3 i {
    color: var(--dch-red);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(38, 57, 151, 0.6), transparent);
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__overlay i {
    color: #ffffff;
    font-size: 1.5rem;
}

.sidebar-event-card {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #cfd1d0;
    transition: all 0.2s ease;
}

.sidebar-event-card:hover {
    transform: translateX(5px);
}

.sidebar-event-card:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.sidebar-event-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-event-info h4 {
    margin-bottom: 4px;
    font-size: var(--text-sm);
    line-height: var(--dch-leading-snug);
    font-weight: var(--dch-font-bold);
    color: var(--dch-navy);
}

.sidebar-event-info h4 a {
    color: inherit;
    transition: color 0.2s ease;
}

.sidebar-event-info h4 a:hover {
    color: var(--dch-red);
}

.sidebar-event-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--dch-text-muted);
}

.ev-meta--hero {
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
}

.ev-meta--hero span {
    color: rgba(255, 255, 255, 0.95);
}

.ev-meta--hero i {
    color: var(--dch-red);
}

@media (max-width: 900px) {
    .ev-featured-card,
    .event-main-layout {
        grid-template-columns: 1fr;
    }

    .ev-featured-card__img {
        min-height: 240px;
    }

    .ev-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ev-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
