/* public/css/event-details.css */
@import url('variables.css');

.editorial-blog-main {
    background-color: #FAFAFC;
    min-height: 100vh;
    padding-top: 140px; /* Fix the navbar overlap */
}

/* --- Left Sidebar (Sticky Meta) --- */
.editorial-sidebar {
    position: sticky;
    top: 120px;
    padding-right: 20px;
}
.editorial-back-link {
    display: inline-block;
    color: #999;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}
.editorial-back-link:hover {
    color: #111;
}
.editorial-back-link i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}
.editorial-back-link:hover i {
    transform: translateX(-4px);
}
.editorial-date {
    font-family: var(--font-secondary);
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.editorial-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 500;
    color: #111;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}
.editorial-divider {
    width: 60px;
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.editorial-share span {
    display: block;
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.share-links {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}
.share-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}
.share-links a:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Bottom Related Carousel --- */
.bottom-related-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.bottom-related-section h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: #111;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}
.related-carousel-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 30px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: thin;
}
.related-carousel-wrapper::-webkit-scrollbar {
    height: 8px;
}
.related-carousel-wrapper::-webkit-scrollbar-thumb {
    background: #e0d9cf; 
    border-radius: 10px;
}

.bottom-related-card {
    scroll-snap-align: start;
    flex: 0 0 calc(33.333% - 20px);
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
@media (max-width: 992px) {
    .bottom-related-card { flex: 0 0 calc(50% - 15px); }
}
@media (max-width: 576px) {
    .bottom-related-card { flex: 0 0 calc(85%); }
}

.bottom-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.bottom-related-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1.25rem;
}
.bottom-related-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: #111;
    line-height: 1.4;
    margin: 0;
}

/* --- Right Content Area --- */
.editorial-content-wrapper {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
}

.editorial-featured-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}
.editorial-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.editorial-body {
    padding: 0 40px 60px;
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
}
.editorial-body h2, .editorial-body h3 {
    font-family: var(--font-primary);
    color: #111;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.editorial-body h2 { font-size: 2rem; }
.editorial-body h3 { font-size: 1.5rem; }
.editorial-body p { margin-bottom: 1.5rem; }
.editorial-body img { 
    border-radius: 10px; 
    margin: 30px 0; 
    width: 100%; 
}

/* Responsive */
@media (max-width: 991px) {
    .editorial-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 50px;
    }
    .editorial-body {
        padding: 0 20px 40px;
    }
}
.event-gallery-section {
    padding: 80px 0;
    background-color: #F5F1EB; /* A slightly different beige */
}
.event-gallery-swiper {
    padding: 10px; /* Add padding to see shadows */
}
.event-gallery-swiper .swiper-slide {
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.event-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.event-gallery-swiper .swiper-slide a:hover img {
    transform: scale(1.05);
}

/* Custom Swiper Navigation Arrows */
.event-gallery-section .swiper-button-next,
.event-gallery-section .swiper-button-prev {
    color: var(--heading-color);
    background-color: rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}
.event-gallery-section .swiper-button-next::after,
.event-gallery-section .swiper-button-prev::after {
    font-size: 20px;
    font-weight: 900;
}

/* Fancybox Customization */
.fancybox__toolbar {
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}