/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel */
.jcg-carousel-slide {
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}
.jcg-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.jcg-carousel-slide.active .slide-anim {
    animation: slideUp 0.9s ease both;
}
.jcg-carousel-slide.active .slide-anim.delay-1 { animation-delay: 0.2s; }
.jcg-carousel-slide.active .slide-anim.delay-2 { animation-delay: 0.4s; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Rich text (news body) */
.prose-jcg h2 { font-size: 1.5rem; font-weight: 700; color: #235A79; margin: 1.5rem 0 0.75rem; }
.prose-jcg h3 { font-size: 1.25rem; font-weight: 600; color: #235A79; margin: 1.25rem 0 0.5rem; }
.prose-jcg p { margin: 0.75rem 0; line-height: 1.8; }
.prose-jcg ul, .prose-jcg ol { margin: 0.75rem 0 0.75rem 1.5rem; }
.prose-jcg ul { list-style: disc; }
.prose-jcg ol { list-style: decimal; }
.prose-jcg a { color: #C13148; text-decoration: underline; }
.prose-jcg img { border-radius: 0.75rem; margin: 1rem 0; max-width: 100%; }
.prose-jcg blockquote { border-left: 4px solid #C13148; padding-left: 1rem; font-style: italic; color: #475569; margin: 1rem 0; }

/* News gallery lightbox */
.news-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
    padding: 3.5rem 4rem;
}
.news-lightbox[hidden] {
    display: none !important;
}
.news-lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 5rem);
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.news-lightbox-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.news-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.news-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.news-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}
.news-lightbox-prev { left: 1rem; }
.news-lightbox-next { right: 1rem; }
@media (max-width: 640px) {
    .news-lightbox { padding: 3.5rem 1rem; }
    .news-lightbox-nav { width: 2.5rem; height: 2.5rem; }
    .news-lightbox-prev { left: 0.5rem; }
    .news-lightbox-next { right: 0.5rem; }
}
