﻿:root {
    --primary: #760e26;
}

body {
    margin: 0;
    background: #f8f8f8;
    color: #333;
}


.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    color: var(--primary);
    border-left: 5px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 1.5rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.event-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .event-card:hover {
        transform: scale(1.03);
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }

    .event-card::after {
        content: "";
        position: absolute;
        width: 0;
        height: 3px;
        left: 0;
        bottom: 0;
        background-color: var(--primary);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .event-card:hover::after {
        width: 100%;
    }

.event-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-content {
    padding: 1rem 1.2rem;
}

.event-date {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color:#760e26;
}

.event-title:hover {
    color:#760e26;
}

.event-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }
}

.btn-primary.mb-3 {
    border: 1px solid #760e26;
    color: #760e26;
    background-color: #fff;
    font-weight: bold;
    transition: all 0.3s;
}

    .btn-primary.mb-3:hover {
        background-color: #760e26;
        color: #fff;
    }

    .btn-primary.mb-3:focus,
    .btn-primary.mb-3:focus-visible {
        outline: 3px solid #760e26;
        outline-offset: 2px;
    }

.event-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 5px;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
