:root {
    --bg-primary: #FFFBF5;
    --bg-secondary: #F0EBE3;
    --accent: #C9A961;
    --text-main: #3D3D3D;
    --text-muted: #7A7A7A;
    --white: #FFFBF5;
    --border: #EDE7DC;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.5;
}

/* Banner */
.banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Layout */
.container-main {
    min-width: 65%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 75px 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}


@media (min-width: 1024px) {
    .container-main {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .sidebar {
        position: sticky;
        top: 32px;
    }


}

h2 {
    font-size: 2.25rem;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Event Cards */
.event-card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .event-card {
        flex-direction: row;
    }
    .event-image {
        width: 33%;
    }


}

.event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (min-width: 640px) {
    .event-image img {
        height: 100%;
    }
}

.event-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.date-badge {
    background-color: var(--accent);
    color: var(--white);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    min-width: 50px;
}

.date-badge .day { font-size: 1.25rem; font-weight: bold; display: block; }
.date-badge .month { font-size: 0.875rem; text-transform: uppercase; }

.event-title { font-size: 1.5rem; margin: 0; color: var(--text-main); }
.event-time { color: var(--text-muted); display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }

/* News Section */
.news-box {
    background-color: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.news-item {
    display: block;
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: inherit;
    transition: opacity 0.2s;
}

.news-item:last-child { border-bottom: none; }
.news-item:hover { opacity: 0.8; }

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 8px;

}

.news-title {
    font-size: 1.25rem;
    margin: 0 0 4px 0;
    color: var(--text-main);
}

.news-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--accent);
    color: var(--white);
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    margin-top: 24px;
    transition: box-shadow 0.2s;
}

.btn:hover { box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4); }

svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }


#home-news-items {
    display: flex;
    flex-direction: column;
}

/* Ensure the button doesn't hug the last item too closely */
.news-box .btn {
    margin-top: 10px;
}

.pinned-badge {
    margin-right: 10px; /* Only pushes the calendar if the badge exists */
}

.news-item:hover .read-more-home {
    text-decoration: underline;
    opacity: 0.8;
}