/* ══════════════════════════════════════════
   EVENTS SECTION STYLES — events.css
   ══════════════════════════════════════════ */

.events-section {
    padding: 3vw 0;
    background-color: #fff; /* White background for the section */
}

.events-header {
    text-align: center;
    margin-bottom: 2vw;
}

.events-label {
    display: inline-block;
    font-size: 1vw;
    letter-spacing: 0.3vw;
    text-transform: uppercase;
    color: var(--theme-primary, #f1c40f);
    margin-bottom: 1vw;
    font-weight: 700;
}

.events-title {
    font-family: var(--font-heading, 'Marcellus', serif);
    font-size: clamp(1.5vw, 2.2vw, 2.5vw);
    color: var(--theme-accent, #1a1a1a);
    line-height: 1.2;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    padding: 0 1.5vw;
}

.event-card-outer {
    background: linear-gradient(to top, #faefc5 0%, #fffdf2 100%); /* Ultra-Light Golden Fade */
    padding: 0.8vw;
    border-radius: 1.5vw;
    border: 1px solid #f2e8bc; /* Very subtle border for definition */
    transition: all 0.4s ease;
    display: flex;
    box-shadow: 0 0.5vw 1.5vw rgba(0,0,0,0.03);
}

.event-card-outer:hover {
    transform: translateY(-0.8vw);
    box-shadow: 0 1.5vw 3vw rgba(0,0,0,0.12);
}

.event-card-inner {
    background: #fff;
    border-radius: 1.1vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: none; /* Borders removed */
}

.event-img-wrap {
    position: relative;
    height: 16vw;
    overflow: hidden;
    /* Match inner border radius top only */
    border-top-left-radius: 1.1vw;
    border-top-right-radius: 1.1vw;
}

/* Subtle overlay to make date pop */
.event-img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%);
    z-index: 1;
}

.event-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-img-wrap img {
    transform: scale(1.1);
}

.event-date-box {
    position: absolute;
    top: 0;
    left: 1.5vw;
    background: #fff;
    width: 3.8vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0 0 0.5vw 0.5vw;
    box-shadow: 0 0.5vw 1.5vw rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 10;
}

.event-date-day {
    padding: 0.6vw 0 0.4vw;
    font-size: 1.6vw;
    font-weight: 800;
    color: #111;
    line-height: 1;
}

.event-date-month {
    background: var(--theme-primary, #f1c40f);
    width: 100%;
    text-align: center;
    padding: 0.3vw 0;
    font-size: 0.85vw;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05vw;
}

.event-content {
    padding: 2vw 1.8vw;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    font-family: var(--font-heading, 'Marcellus', serif);
    font-size: 1.3vw;
    color: #111;
    margin-bottom: 0.8vw;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-desc {
    font-size: 0.9vw;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5vw;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: none;
}

.event-card-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6vw;
    color: #b8860b; /* Golden Dark */
    font-weight: 700;
    font-size: 0.95vw;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05vw;
    transition: all 0.3s ease;
    width: fit-content;
}

.event-card-btn:hover {
    color: #d4af37; /* Lighter Gold */
    gap: 1vw;
}

.event-card-btn svg {
    width: 1.1vw;
    height: 1.1vw;
    transition: transform 0.3s ease;
}

@media (max-width: 960px) {
    .events-section { padding: 8vw 0; }
    .events-header { margin-bottom: 6vw; }
    .events-label { font-size: 3.5vw; }
    .events-title { font-size: 8vw; }
    .events-grid {
        grid-template-columns: 1fr;
        gap: 8vw;
        padding: 0;
    }
    .event-card-outer {
        background: linear-gradient(to top, #faefc5 0%, #fffdf2 100%);
        padding: 3vw;
        border-radius: 4vw;
        border: 1px solid #f2e8bc;
    }
    .event-card-inner {
        border-radius: 2.5vw;
        border: none;
    }
    .event-img-wrap { 
        height: 55vw; 
        border-top-left-radius: 2.5vw;
        border-top-right-radius: 2.5vw;
    }
    .event-img-wrap img { object-fit: contain; background: #f9f9f9; }
    .event-date-box { 
        top: 0; 
        left: 5vw; 
        width: 14vw; 
        border-radius: 0 0 1.5vw 1.5vw;
    }
    .event-date-day { font-size: 6.5vw; padding: 2vw 0 1vw; }
    .event-date-month { font-size: 3.2vw; padding: 1.2vw 0; }
    .event-content { padding: 7vw 6vw; }
    .event-card-title { font-size: 6vw; margin-bottom: 2vw; }
    .event-card-desc { 
        font-size: 3.8vw; 
        color: #555; 
        line-height: 1.6; 
        margin-bottom: 6vw; 
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .event-card-btn { 
        font-size: 4vw; 
        gap: 2vw; 
        padding: 0;
        width: auto;
    }
    .event-card-btn svg { width: 5vw; height: 5vw; }
}

/* ════════════ LIGHTBOX (Global for Events) ════════════ */
.cp-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--theme-primary, #f1c40f);
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 960px) {
    .lightbox-close {
        font-size: 12vw;
        top: 5vw;
        right: 5vw;
    }
}

/* ════════════ PAGINATION (New Design) ════════════ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5vw;
    margin-top: 5vw;
    font-family: var(--font-primary, 'Montserrat', sans-serif);
}

.page-link {
    color: #888;
    text-decoration: none;
    font-size: 1.2vw;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5vw 0;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
}

.page-link:hover {
    color: var(--theme-accent, #002e5b);
}

.page-link.active {
    color: var(--theme-accent, #002e5b);
    font-weight: 700;
}

.page-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.8vw;
    height: 0.2vw;
    background: #d1d5db; /* Grey underline as in image */
    border-radius: 1vw;
}

.page-link.dots {
    cursor: default;
    pointer-events: none;
}

.page-link.next-text {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1vw;
    margin-left: 1vw;
    color: #9ca3af;
}

.page-link.next-text:hover {
    color: var(--theme-accent);
}

/* AJAX Loading State */
.events-grid.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (max-width: 960px) {
    .pagination {
        gap: 5vw;
        margin-top: 10vw;
    }
    .page-link {
        font-size: 5vw;
    }
    .page-link.active::after {
        width: 4vw;
        height: 0.8vw;
    }
    .page-link.next-text {
        margin-left: 3vw;
    }
}
