/* =========================================================
   Events — aligned with Media / Blog / content pages
   Fonts: Cormorant Garamond, Quattrocento Sans, Source Sans Pro
   Palette: #2c3e50, #333, #666, #f8f8f8, #f9f9f9, white
   ========================================================= */

/* ---------- List ---------- */
.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 40px;
    position: relative;
    z-index: 2;
    background-color: #fff;
    min-height: 100vh;
}

.events-title {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: #2c3e50;
    letter-spacing: 0.01em;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 20px 0;
}

.event-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.event-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-image {
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card-title {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 1rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.event-card-title a {
    color: #333;
    text-decoration: none;
}

.event-card-title a:hover {
    color: #2c3e50;
}

.event-meta {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.event-meta span {
    display: block;
    margin-bottom: 4px;
}

.event-meta i {
    margin-right: 6px;
    width: 14px;
    color: #2c3e50;
}

.event-excerpt {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #666;
}

.read-more,
.event-back-link {
    display: inline-block;
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    position: relative;
    margin-top: auto;
}

.read-more::after,
.event-back-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #2c3e50;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.read-more:hover::after,
.event-back-link:hover::after {
    transform: scaleX(1);
}

.no-events {
    grid-column: 1 / -1;
    text-align: center;
    font-family: 'Source Sans Pro', sans-serif;
    color: #999;
    padding: 60px 20px;
    font-size: 1.1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-bottom: 40px;
}

.page-link {
    color: #2c3e50;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #2c3e50;
    border-radius: 4px;
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #2c3e50;
    color: #fff;
}

.current-page {
    color: #666;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
}

/* ---------- Detail ---------- */
.event-detail {
    width: 100%;
    padding-top: 100px;
    padding-bottom: 60px;
    background: #fff;
    overflow: hidden;
}

.event-header {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 40px 24px;
    text-align: center;
    background: #f9f9f9;
    box-sizing: border-box;
}

.event-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #2c3e50;
}

.event-detail-title {
    margin: 0 0 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #2c3e50;
    line-height: 1.2;
}

.event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.event-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.event-detail-meta i {
    color: #2c3e50;
    font-size: 0.85rem;
}

.responsive-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.event-introduction,
.section-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
    box-sizing: border-box;
}

.post-featured-image,
.section-image {
    width: 50%;
    min-width: 0;
    background: #f5f5f5;
}

.post-featured-image img,
.section-image img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    max-height: 560px;
    object-fit: cover;
}

.section-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    padding: 40px 44px;
    background: #f8f8f8;
    box-sizing: border-box;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    color: #555;
    text-align: left;
}

.section-text p {
    margin: 0 0 1em;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.section-text-only,
.event-summary-alone {
    width: auto;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 36px 40px;
    background: #f8f8f8;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    color: #555;
}

.post-section {
    margin-bottom: 70px;
}

.section-title {
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 400;
    color: #2c3e50;
    text-align: center;
}

/* ---------- Media sections ---------- */
.event-media-section {
    padding: 70px 20px;
    box-sizing: border-box;
}

.event-video-section {
    background: #f9f9f9;
}

.event-gallery-section {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.media-section-heading {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.media-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #2c3e50;
}

.media-section-heading h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #2c3e50;
}

.heading-line {
    width: 48px;
    height: 1px;
    margin: 18px auto 0;
    background: #2c3e50;
}

/* Videos */
.event-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.event-video-card {
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.video-frame {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.video-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    object-fit: contain;
}

.event-video-card h3 {
    margin: 0;
    padding: 16px 18px;
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #333;
    text-align: center;
}

/* Gallery carousel */
.event-carousel {
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-viewport {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.carousel-track {
    position: relative;
    min-height: 520px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.carousel-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: contain;
    background: #f5f5f5;
}

.carousel-slide figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 40px 60px 20px;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.75), transparent);
    color: #fff;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-align: center;
}

.carousel-button {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #2c3e50;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: #2c3e50;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s ease, color 0.25s ease;
}

.carousel-button:hover {
    background: #2c3e50;
    color: #fff;
}

.carousel-button-prev {
    left: 16px;
}

.carousel-button-next {
    right: 16px;
}

.carousel-counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #2c3e50;
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    border-radius: 4px;
}

.counter-separator {
    margin: 0 4px;
    opacity: 0.55;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #2c3e50;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-dot.is-active {
    background: #2c3e50;
    transform: scale(1.2);
}

/* Share / footer */
.social-sharing {
    max-width: 900px;
    margin: 50px auto 0;
    padding: 30px 24px;
    box-sizing: border-box;
    border-top: 1px solid #eee;
}

.social-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-buttons h3 {
    margin: 0;
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #f9f9f9;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.share-buttons a:hover {
    background: #2c3e50;
    color: #fff;
}

.share-buttons i {
    font-size: 1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-video-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
    }

    .carousel-track,
    .carousel-slide img {
        min-height: auto;
        height: 420px;
    }
}

@media (max-width: 768px) {
    .event-detail {
        padding-top: 80px;
    }

    .event-header {
        margin-bottom: 30px;
        padding: 28px 20px;
    }

    .event-detail-title {
        font-size: 1.85rem;
    }

    .event-detail-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .event-detail-meta span {
        justify-content: flex-start;
    }

    .event-introduction,
    .section-wrapper {
        display: block;
        margin-bottom: 40px;
        padding: 0 16px;
    }

    .post-featured-image,
    .section-image {
        width: 100%;
    }

    .post-featured-image img,
    .section-image img {
        min-height: 0;
        max-height: 360px;
    }

    .section-text {
        width: 100%;
        padding: 28px 22px;
    }

    .section-text-only,
    .event-summary-alone {
        margin: 0 16px 36px;
        padding: 24px 20px;
    }

    .post-section {
        margin-bottom: 45px;
    }

    .section-title {
        padding: 0 16px;
        font-size: 1.5rem;
        text-align: left;
    }

    .event-media-section {
        padding: 50px 16px;
    }

    .carousel-track,
    .carousel-slide img {
        height: 320px;
    }

    .carousel-button {
        width: 38px;
        height: 38px;
    }

    .carousel-button-prev {
        left: 10px;
    }

    .carousel-button-next {
        right: 10px;
    }

    .carousel-slide figcaption {
        padding: 36px 40px 14px;
        font-size: 0.85rem;
    }

    .social-sharing {
        margin-top: 30px;
        padding: 24px 16px;
    }

    .social-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .carousel-track,
    .carousel-slide img {
        height: 260px;
    }
}
