/*
Theme Name: ISKCON RR Nagar
Theme URI: https://iskconrrnagar.org
Description: Official theme for ISKCON Rajarajeshwari Nagar, Bengaluru. Faithful WordPress port of the React/Vite design.
Author: ISKCON RR Nagar Dev Team
Version: 1.0.0
Tags: spiritual, religious, temple, responsive, custom-menu
Text Domain: iskcon-rrnagar
*/

/* =============================================
   GOOGLE FONTS & DESIGN TOKENS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;800&family=Inter:wght@300;400;600&display=swap');

:root {
    --color-primary: #DC143C;
    --color-primary-dark: #A80F2E;
    --color-gold: #D4AF37;
    --color-text: #333333;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F9F9F9;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section-padding {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background-color: var(--color-primary);
    color: #fff !important;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
    color: #fff !important;
}

.btn-large {
    font-size: 1.2rem;
    padding: 1rem 3rem;
    border-radius: 50px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes marquee-lr {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    white-space: nowrap;
    animation: marquee-lr 30s linear infinite;
    display: inline-block;
}

@keyframes ken-burns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.15) translate(2%, -2%);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}

.ken-burns-effect {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: ken-burns 20s ease-in-out infinite alternate;
    transform-origin: center center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}


/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
    background-color: #333;
    color: #fff;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-address a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.top-bar-address a:hover {
    color: var(--color-gold);
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-social span {
    color: #ccc;
}

.top-bar-social a {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.2s;
}

.top-bar-social a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* =============================================
   MANTRA MARQUEE BANNER
   ============================================= */
.mantra-banner {
    background-color: var(--color-gold);
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.4rem 0;
    font-family: var(--font-heading);
    font-weight: 700;
    border-bottom: 1px solid #b89530;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* =============================================
   MAIN HEADER & NAV
   ============================================= */
.site-header {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    height: 90px;
    width: auto;
}

.logo-link {
    display: inline-block;
    line-height: 0;
}

/* Desktop Nav */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.desktop-nav a {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
    font-family: var(--font-body);
}

.desktop-nav a:hover,
.desktop-nav .current-menu-item>a,
.desktop-nav .current_page_item>a {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 4px;
}

.search-toggle:hover {
    color: var(--color-primary);
}

/* Mobile hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    background: #fff;
    border-top: 1px solid #eee;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem 1.25rem;
}

.mobile-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.mobile-nav a:hover {
    color: var(--color-primary);
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .top-bar-address .full-address {
        display: none;
    }

    .top-bar-address .short-address {
        display: inline;
    }

    .site-logo {
        height: 70px;
    }
}

@media (min-width: 601px) {
    .top-bar-address .short-address {
        display: none;
    }
}

/* =============================================
   HERO CAROUSEL
   ============================================= */
.hero-carousel {
    position: relative;
    height: 700px;
    overflow: hidden;
    color: #fff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero-slide-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out 0.5s;
}

.hero-slide-content p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2.5rem;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out 0.8s;
}

.hero-slide-content .btn {
    opacity: 0;
    transition: opacity 1s ease-out 1s, background-color 0.3s, transform 0.2s;
}

.hero-slide.active .hero-slide-content h1,
.hero-slide.active .hero-slide-content p,
.hero-slide.active .hero-slide-content .btn {
    opacity: 1;
    transform: translateY(0);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-btn-prev {
    left: 2rem;
}

.carousel-btn-next {
    right: 2rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 0;
}

.carousel-dot.active {
    background: var(--color-primary);
}

@media (max-width: 600px) {
    .hero-carousel {
        height: 500px;
    }

    .carousel-btn {
        display: none;
    }
}

/* =============================================
   PAGE HEADER BANNER
   ============================================= */
.page-hero-banner {
    background-color: var(--color-primary-dark);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}

.page-hero-banner h1 {
    color: #fff;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-hero-banner p {
    margin-top: 0.75rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* =============================================
   HOME PAGE: SECTIONS
   ============================================= */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

/* Founder Acharya */
.founder-section {
    background-color: var(--color-bg-alt);
    padding: 4rem 0;
    text-align: center;
}

.founder-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.founder-img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid var(--color-primary);
    flex-shrink: 0;
}

.founder-text {
    max-width: 600px;
    text-align: left;
}

.founder-subtitle {
    color: var(--color-primary);
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-top: 0.5rem;
}

/* History Section */
.history-section {
    padding: 4rem 0;
}

.history-inner {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.history-img-wrap {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.history-text {
    flex: 1;
    min-width: 300px;
}

.history-text p {
    color: #444;
    margin-bottom: 1rem;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-page-content {
    padding: 4rem 0;
}

.about-page-content section {
    margin-bottom: 3rem;
}

.lead-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.scripture-quote {
    padding: 1.5rem;
    background-color: var(--color-bg-alt);
    border-left: 4px solid var(--color-primary);
    font-style: italic;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.sankirtana-inner {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.sankirtana-text {
    flex: 1;
    min-width: 300px;
}

.sankirtana-img {
    flex: 1;
    min-width: 300px;
}

.sankirtana-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* =============================================
   CLASSES & EVENTS PAGE
   ============================================= */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.program-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.program-card-img {
    height: 200px;
    background: linear-gradient(135deg, #ffe5ec, #fff0cc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    overflow: hidden;
}

.program-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-card-body h3 {
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.program-time {
    display: inline-block;
    background: #fff0f0;
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.program-card-body p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =============================================
   YATRAS PAGE
   ============================================= */
.yatras-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.yatras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.yatra-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.yatra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.yatra-card-img {
    height: 200px;
    overflow: hidden;
}

.yatra-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.yatra-card:hover .yatra-card-img img {
    transform: scale(1.05);
}

.yatra-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.yatra-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.yatra-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.yatra-date svg {
    width: 16px;
    height: 16px;
}

.yatra-card-body p {
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.yatra-card-body .btn {
    display: block;
    text-align: center;
}

/* =============================================
   DONATIONS PAGE
   ============================================= */
.donations-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
    padding: 4rem 0;
}

.donations-left {
    flex: 1.5;
    min-width: 320px;
}

.donations-left h2 {
    margin-bottom: 1rem;
}

.donations-left>p {
    margin-bottom: 1rem;
    color: #444;
    line-height: 1.8;
}

.donations-left ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    color: #555;
}

.donations-left ul li {
    margin-bottom: 0.5rem;
}

.donate-online-box {
    padding: 2rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.donate-online-box p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.donate-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #888;
}

.donations-right {
    flex: 1;
    min-width: 300px;
}

.qr-card {
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 12px;
    background: #fafafa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.qr-card h3 {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.qr-code-img {
    width: 100%;
    max-width: 280px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin: 0 auto 1rem;
}

.qr-trust-name {
    font-weight: bold;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.qr-hint {
    font-size: 0.9rem;
    color: #666;
}

.bank-details {
    margin-top: 2rem;
    text-align: left;
    border-top: 1px dashed #ddd;
    padding-top: 1.5rem;
}

.bank-details h4 {
    margin-bottom: 1rem;
    color: #333;
}

.bank-row {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.bank-row span {
    display: block;
    color: #888;
    font-weight: bold;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    padding: 4rem 0;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    margin-bottom: 0.5rem;
}

.contact-info>p {
    margin: 1rem 0 2rem;
    color: #555;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item p,
.contact-item a {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--color-primary);
}

.contact-form-wrap {
    flex: 1.5;
    min-width: 300px;
}

.contact-form {
    background: #f9f9f9;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-submit-btn svg {
    width: 16px;
    height: 16px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 3.5rem 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-col h3 {
    color: var(--color-gold);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #444;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-col p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul a {
    color: #ccc;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--color-gold);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    color: #ccc;
    font-size: 0.95rem;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-gold);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.footer-social a {
    color: #ccc;
    transition: color 0.3s, transform 0.2s;
    display: inline-flex;
}

.footer-social a:hover {
    color: var(--color-gold);
    transform: scale(1.15);
}

.footer-social svg {
    width: 22px;
    height: 22px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: #888;
}

/* =============================================
   WORDPRESS NATIVE CLASSES
   ============================================= */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.wp-caption,
.wp-caption-text,
.gallery-caption,
.bypostauthor {
    /* WP defaults */
}

/* =============================================
   CLASSES & EVENTS TABLE (Gutenberg Block)
   ============================================= */
.classes-events-container {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.classes-events-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    border: 1px solid rgba(220, 20, 60, 0.05); /* very subtle var(--color-primary) border */
}

.classes-events-table table {
    width: 100%;
    margin: 0;
}

.classes-events-table tbody tr {
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.classes-events-table tbody tr:hover {
    background-color: rgba(255, 240, 243, 0.4); /* subtle reddish hover */
    transform: scale(1.002);
}

.classes-events-table tbody tr:last-child {
    border-bottom: none;
}

.classes-events-table td {
    padding: 1.25rem;
    vertical-align: top;
    color: #444;
}

/* Col 1 styling */
.classes-events-table td:first-child strong {
    color: var(--color-primary);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Links inside the table */
.classes-events-table td a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    word-break: break-all;
}

.classes-events-table td a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .classes-events-table td {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
    }
    .classes-events-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 8px;
        background: #fff;
    }
/* =============================================
   CLASSES & EVENTS IMAGE CARDS
   ============================================= */
.events-card-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 2rem 0;
    max-width: 1300px;
    margin: 0 auto;
}

.event-card-modern {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.event-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.12);
}

.event-card-modern .event-image {
    width: 100%;
    height: 140px;
    margin: 0;
    overflow: hidden;
}

.event-card-modern .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card-modern:hover .event-image img {
    transform: scale(1.08);
}

.event-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-title {
    font-size: 1.1rem !important;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 0.5rem !important;
    line-height: 1.3;
}

.event-time {
    display: inline-flex;
    background: #fff0f0;
    color: var(--color-primary);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    align-self: flex-start;
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.08);
}

.event-desc {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.event-action {
    margin-top: auto;
}

.event-action .wp-block-button__link {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-primary);
    color: white !important;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
    font-size: 0.85rem;
}

.event-action .wp-block-button__link:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.3);
    transform: translateY(-2px);
}

.special-event {
    border: 2px solid var(--color-gold);
    background: linear-gradient(to bottom, #fff, #fffbf0);
}

.special-event .event-action .wp-block-button__link {
    background: var(--color-gold) !important;
    color: #333 !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.special-event .event-action .wp-block-button__link:hover {
    background: #e6c200 !important;
}
}

/* =============================================
   CUSTOM HORIZONTAL SCROLL GALLERY
   ============================================= */
.iskcon-scroll-gallery {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 1.5rem !important;
    padding-bottom: 2rem !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) #f0f0f0;
}

.iskcon-scroll-gallery::-webkit-scrollbar {
    height: 8px;
}

.iskcon-scroll-gallery::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.iskcon-scroll-gallery::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.iskcon-scroll-gallery .wp-block-image {
    flex: 0 0 auto !important;
    width: 320px !important;
    margin: 0 !important;
    scroll-snap-align: start;
}

.iskcon-scroll-gallery .wp-block-image img {
    height: 220px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}