:root {
    --accent: #0b86ff;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --highlight: #ff6b6b;
    --marquee-duration: 18s;
    --marquee-gap: 12px;
    --marquee-img-height: 22px;
    --marquee-vertical-padding: 6px;
    --marquee-radius: 6px;
}

* {
    box-sizing: border-box
}

body {
    font-family: Irish Grover, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    margin: 0;
    line-height: 1.4;
    padding: 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ================= HEADER / MARQUEE ================= */


.whatsapp-chat-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    font-size: 18px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



/* WhatsApp icon styling */
.whatsapp-chat-button img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

/* Popup container styling (hidden by default) */
.whatsapp-popup {
    width: 300px;
    padding: 20px;
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    font-family: Arial, sans-serif;
    display: none;
}

/* WhatsApp button inside popup */
.whatsapp-popup .whatsapp-start-chat {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #25D366;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
}

/* Close button styling */
.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    cursor: pointer;
    color: #999;
}


.top-header {
    position: relative;
    z-index: 40;
    box-shadow: 0px 4px 15px 0px #EB000040;
}

.header-marquee {
    position: relative;
    overflow: hidden;
    padding: var(--marquee-vertical-padding) 8px;
    height: calc(var(--marquee-img-height) + (var(--marquee-vertical-padding) * 2));
    box-sizing: content-box;
    z-index: 48;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.02));
    display: flex;
    align-items: center;
    box-shadow: 0px 4px 15px 0px #EB000040;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: var(--marquee-gap);
    will-change: transform;
    animation: marquee var(--marquee-duration) linear infinite;
    --marquee-shift: 50%;
}

.marquee-item img {
    height: var(--marquee-img-height);
    border-radius: var(--marquee-radius);
    display: block;
    filter: grayscale(.02) contrast(.98);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * var(--marquee-shift)));
    }
}

.marquee-track.paused {
    animation-play-state: paused !important;
}

/* ================= CONTENT ================= */

.content {
    max-width: 900px;
    margin: 10px auto;
    padding: 0 20px;
}

.content-image {
    display: block;
    margin: 18px auto;
    max-width: 720px;
    width: 100%;
    border-radius: 8px;
}

.date-content {
    padding: 20px 20px;
    background: linear-gradient(135deg, #8B3A8B 0%, #A94985 100%);
}

.date-banner {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.date-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date-boxes {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.date-box {
    background: white;
    color: #6B3A6B;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    min-width: 45px;
    text-align: center;
}

.date-separator {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.date-month {
    color: #FFD700;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-left: 0;
}

.date-right {
    text-align: center;
}

.event-title {
    color: #FFD700;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 1.5px;
}

.event-location {
    color: white;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ================= IMAGE ROW ================= */

.image-row-section {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.image-row img {
    width: 12%;
    max-width: 300px;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Box border removed */

/* Image with text wrapper */
.image-with-text {
    width: 12%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-with-text img {
    width: 100%;
}

.image-caption {
    margin-top: 8px;
    font-size: 0.85rem;
    text-align: center;
    color: #333;
    line-height: 1.3;
    font-weight: bold;
}

.image-row a:not(.fixed-size-link) {
    width: 12%;
    max-width: 300px;
    height: auto;
    display: inline-block;
    position: relative;
    border: 2px solid #b3e5fc;
    border-radius: 8px;
    padding: 2px;
    box-shadow: 0 0 8px rgba(179, 229, 252, 0.5);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.image-row a:hover,
.image-row a.fixed-size-link:hover {
    border: none !important;
    box-shadow: 0 0 20px rgba(129, 212, 250, 0.9), 0 0 40px rgba(129, 212, 250, 0.5) !important;
    transform: scale(1.1) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
    z-index: 10;
}

.image-row a:not(.fixed-size-link) img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    object-fit: contain;
}

/* Fixed size container for same-border image - 170×170px */
.image-row a.fixed-size-link {
    width: 170px !important;
    height: 170px !important;
    max-width: 170px !important;
    min-width: 170px !important;
    max-height: 170px !important;
    min-height: 170px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #b3e5fc !important;
    border-radius: 8px !important;
    padding: 0 !important;
    box-shadow: 0 0 8px rgba(179, 229, 252, 0.5) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
    position: relative !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    overflow: hidden !important;
}

.image-row a.fixed-size-link img {
    width: 166px !important;
    height: 166px !important;
    max-width: 166px !important;
    max-height: 166px !important;
    min-width: 166px !important;
    min-height: 166px !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 4px !important;
    margin: 2px !important;
    padding: 0 !important;
    transition: none !important;
    transform: none !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Clickable images: hover effect only */
.image-row img.clickable:not(.fixed-size-link img) {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-row img.clickable:not(.fixed-size-link img):hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Ensure clickable images inside fixed-size-link don't have separate hover effects */
.image-row a.fixed-size-link img.clickable {
    cursor: pointer !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
    width: 170px !important;
    height: 170px !important;
    max-width: 170px !important;
    max-height: 170px !important;
    object-fit: contain !important;
}

/* ================= VIDEO GALLERY ================= */

.section-heading {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin: 0 0 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
    animation: gradientShift 3s ease infinite;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.video-gallery-section {
    max-width: 1100px;
    margin: 0px auto;
    padding: 0 16px;
    text-align: center;
}

/* ✅ VIDEO CONTAINER – RESPONSIVE YOUTUBE EMBED */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    padding-bottom: 45%;
    /* reduced aspect ratio for shorter height */
    height: 0;
    margin: 0 auto 50px auto;
    border-radius: 20px;
    background: #000;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3),
                0 0 30px rgba(118, 75, 162, 0.2);
    border: 3px solid transparent;
    background-image: linear-gradient(#000, #000),
                      linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4),
                0 0 40px rgba(118, 75, 162, 0.3);
}

/* ✅ IFRAME STYLING */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ✅ FULL IMAGE – NO CROP */
.main-video,
.video-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* ===== Thumbnails with arrows ===== */

.thumb-nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* ✅ THUMBNAILS – 8 PER ROW × 3 ROWS */
.video-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* keep 5 per row */
    grid-auto-rows: 80px;
    /* 🔼 increased height */
    gap: 10px;
    margin: 20px 0;
    overflow: hidden;
    width: 100%;
    max-height: calc(80px * 3 + 20px);
    /* 3 rows */
}


.thumb {
    position: relative;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.3s ease;
    background: #f0f0f0;
    will-change: opacity, transform;
    contain: layout style paint;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.thumb:hover {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4),
                0 0 20px rgba(118, 75, 162, 0.3);
    z-index: 10;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* Loading placeholder for thumbnails */
.thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    z-index: 1;
}

.thumb-loading .thumb-placeholder {
    display: flex;
}

.thumb:not(.thumb-loading) .thumb-placeholder {
    display: none;
}

/* Spinner for thumbnails */
.thumb-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #b3e5fc;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.thumb-error {
    color: #999;
    font-size: 10px;
    text-align: center;
    padding: 10px;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.thumb:hover,
.thumb.active {
    opacity: 1;
    transform: scale(1.04);
}

/* Play icon on video thumbs */
.thumb .play-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
}

/* ===== LEFT / RIGHT ARROWS ===== */

.thumb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 15;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4),
                0 4px 10px rgba(0, 0, 0, 0.1);
}

.thumb-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5),
                0 6px 15px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #764ba2, #f093fb);
}

.thumb-arrow.left {
    left: -20px;
}

.thumb-arrow.right {
    right: -20px;
}

/* ================= SOCIAL ================= */

.connect-section {
    margin-top: 24px;
    font-size: 14px;
    color: #333;
}

.social-icons {
    display: flex;
    gap: 18px;
    margin-top: 8px;
}

.social-icons img {
    width: 32px;
    height: 32px;
    opacity: 0.9;
    transition: 0.3s;
}

.social-icons img:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 768px) {
    :root {
        --marquee-img-height: 18px;
        --marquee-gap: 8px;
        --marquee-vertical-padding: 4px;
    }

    .content {
        padding: 0 16px;
        margin: 8px auto;
    }

    .content-image {
        margin: 14px auto;
    }

    .date-content {
        padding: 25px 15px;
    }

    .date-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .date-boxes {
        justify-content: center;
        gap: 6px;
    }

    .date-box {
        font-size: 1.8rem;
        padding: 6px 12px;
        min-width: 50px;
    }

    .date-separator {
        font-size: 1.4rem;
    }

    .date-month {
        font-size: 0.85rem;
        text-align: center;
        margin-left: 0;
    }

    .date-right {
        text-align: center;
    }

    .event-title {
        font-size: 2rem;
    }

    .event-location {
        font-size: 1.1rem;
    }

    .image-row-section {
        padding: 15px;
    }

    .image-row {
        gap: 15px;
    }

    .image-row img,
    .image-row a,
    .image-with-text {
        width: 45%;
        max-width: 200px;
    }

    .image-row a img {
        width: 100%;
    }

    .image-caption {
        font-size: 0.75rem;
    }

    .image-row img.clickable {
        border-width: 2px;
    }



    .video-gallery-section {
        margin: 40px auto;
        padding: 0 12px;
    }

    .video-container {
        aspect-ratio: 16 / 9;
        max-width: 100%;
    }

    .video-thumbnails {
        grid-template-columns: repeat(5, 1fr);
        grid-auto-rows: 55px;
        max-height: calc(55px * 3 + 14px);
    }

    .thumb {
        height: 55px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --marquee-img-height: 16px;
        --marquee-gap: 6px;
        --marquee-vertical-padding: 3px;
    }

    body {
        font-size: 14px;
    }

    .content {
        padding: 0 12px;
        margin: 6px auto;
    }

    .content-image {
        margin: 12px auto;
        border-radius: 6px;
    }

    .date-content {
        padding: 15px 10px;
    }

    .date-banner {
        gap: 12px;
    }

    .date-boxes {
        gap: 5px;
    }

    .date-box {
        font-size: 1.3rem;
        padding: 5px 10px;
        min-width: 40px;
    }

    .date-separator {
        font-size: 1rem;
    }

    .date-month {
        font-size: 0.7rem;
    }

    .event-title {
        font-size: 1.6rem;
    }

    .event-location {
        font-size: 0.95rem;
    }

    .whatsapp-chat-button .chat-text {
        display: none;
    }

    .whatsapp-chat-button {
        padding: 12px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
    }

    .whatsapp-chat-button img {
        margin-right: 0;
        width: 26px;
        height: 26px;
    }

    .image-row-section {
        padding: 10px;
    }

    .image-row {
        gap: 10px;
    }

    .image-row img,
    .image-row a,
    .image-with-text {
        width: 90%;
        max-width: 280px;
    }

    .image-row a img {
        width: 100%;
    }

    .image-caption {
        font-size: 0.7rem;
    }

    .image-row img.clickable {
        border-width: 2px;

    }

    .video-gallery-section {
        margin: 30px auto;
        padding: 0 10px;
    }

    .video-container {
        aspect-ratio: 16 / 9;
        max-width: 100%;
        border-radius: 10px;
    }

    .video-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 50px;
        max-height: calc(50px * 3 + 12px);
        gap: 8px;
    }

    .thumb {
        height: 50px;
        border-radius: 6px;
    }

    .thumb-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .thumb-arrow.left {
        left: -10px;
    }

    .thumb-arrow.right {
        right: -10px;
    }
}

/* ================= CONTACT FOOTER ================= */

.contact-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px 25px;
    margin-top: 60px;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-left,
.footer-right {
    text-align: left;
}

.footer-left h2,
.footer-right h2 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin: 0 0 20px;
    font-weight: 700;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.95;
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-item a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .contact-info {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    .contact-footer {
        padding: 30px 20px 20px;
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    .contact-item {
        font-size: 0.85rem;
    }

    .social-icons img {
        width: 28px;
        height: 28px;
    }
}

/* ================= IMAGE MODAL ================= */

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

/* Modal loading indicator */
.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1003;
}

.modal-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #b3e5fc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1002;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #ccc;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .modal-nav {
        padding: 15px 10px;
        font-size: 24px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .modal-close {
        top: 5px;
        right: 15px;
        font-size: 28px;
    }

    .modal-nav {
        padding: 12px 8px;
        font-size: 20px;
    }

    .modal-prev {
        left: 5px;
    }

    .modal-next {
        right: 5px;
    }
}