/**
 * Category Su Kien (Event) Styles
 * Custom styles for event category template
 */

/* Event Filter Tabs */
.event-filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 0;
}

.event-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-tab:hover {
    background: #fff5f0;
    border-color: #ff6b35;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.event-tab.active {
    background: linear-gradient(135deg, #ff6b35 0%, #fc9837 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.event-tab i {
    font-size: 16px;
}

/* Events Timeline (Upcoming Events) */
.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.event-timeline-item {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.event-timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.event-date-badge {
    flex-shrink: 0;
    width: 70px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35 0%, #fc9837 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.event-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

.event-content {
    flex: 1;
    display: flex;
    gap: 20px;
}

.event-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-timeline-item:hover .event-thumbnail img {
    transform: scale(1.05);
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.event-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #ff6b35;
}

.event-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 13px;
    color: #64748b;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-type-badge {
    display: inline-flex;
    padding: 4px 10px;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.event-excerpt {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.event-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ff6b35;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.event-read-more:hover {
    gap: 8px;
}

.event-read-more i {
    font-size: 12px;
}

/* Events Grid */
#allEventsGrid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

#allEventsGrid .cat_grid_item {
    width: 100%;
}

#allEventsGrid .cat_grid_item > .responsive_thumb {
    width: 100% !important;
    margin: 0 !important;
}

/* Event Services Highlight */
.event-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.service-highlight-card {
    background: white;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35 0%, #fc9837 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.service-highlight-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.service-highlight-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ff6b35;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 8px;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.section-title i {
    color: #ff6b35;
    font-size: 22px;
}

/* Category Banner */
.category_banner_wrap {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category_banner_wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* Category Section Spacing */
.cat_section {
    margin-bottom: 50px;
}

.cat_section:last-child {
    margin-bottom: 30px;
}

/* SEO Content */
.seo-content {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}

.seo-content h2,
.seo-content h3 {
    color: #1e293b;
    margin-bottom: 15px;
}

.seo-content p {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    #allEventsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .event-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .event-filter-tabs {
        flex-direction: column;
    }

    .event-tab {
        width: 100%;
        justify-content: center;
    }

    .event-timeline-item {
        flex-direction: column;
    }

    .event-date-badge {
        width: 60px;
        height: 70px;
    }

    .event-day {
        font-size: 24px;
    }

    .event-content {
        flex-direction: column;
    }

    .event-thumbnail {
        width: 100%;
        height: 200px;
    }

    #allEventsGrid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .event-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .cat_section {
        margin-bottom: 40px;
    }

    .seo-content {
        padding: 20px;
        font-size: 14px;
    }
}
