/*
Theme Name: Sai Prema Nilayam Theme
Author: Antigravity
Description: Custom theme for Sai Prema Nilayam based on Prototype 2
Version: 1.1
*/

:root {
    --primary: #44233B;
    /* Deep Purple / Eggplant */
    --secondary: #7E4555;
    /* Mauve / Deep Rose */
    --accent: #E5B299;
    /* Soft Peach/Gold Accent */
    --bg-light: #FDF6F0;
    /* Cream / Off-white (lighter than Vihara specific for readability) */
    --bg-peach: #FFEFE2;
    /* Vihara Peach Background */
    --text-dark: #694C5C;
    /* Dark Mauve for text */
    --text-light: #FFF0E3;
    /* Cream text for dark backgrounds */
    --white: #ffffff;

    --font-heading: 'Lora', serif;
    --font-body: 'Poppins', sans-serif;

    --shadow: 0 10px 30px rgba(68, 35, 59, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: var(--font-heading);
    /* Vihara uses serif for buttons often or poppins */
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--text-light);
    border: 2px solid var(--secondary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-outline-dark:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/* Typography Helpers */
.sc-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.sc-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.flower-divider {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 10px 0 30px;
}

.section {
    padding: 80px 0;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-contacts span {
    margin-right: 20px;
}

/* Header */
.site-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 50px;
}

.brand-info .site-title {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1;
}

.site-subtitle {
    font-size: 0.85rem;
    color: var(--secondary);
    font-style: italic;
    font-family: var(--font-heading);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link,
.nav-list a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--primary);
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    background-image: url('assets/images/hero-new.png');
    /* Using new hero image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(68, 35, 59, 0.6);
    /* Purple overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
}

.hero-decoration {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.8;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 5px;
}

.hero-title {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    font-family: var(--font-heading);
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Welcome Section */
.welcome-section {
    background-color: var(--bg-peach);
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--bg-peach);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--secondary);
}

/* Schedule / Weekly Activities */

/* Weekly Activities Grid Layout */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.activity-card {
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

/* Card 1: Daily Schedule (Cream/Beige) */
.daily-card {
    background-color: var(--bg-light);
    border: 2px solid rgba(229, 178, 153, 0.3);
    /* faint accent border */
}

.card-icon {
    margin-bottom: 20px;
    color: var(--secondary);
}

.activity-list {
    text-align: left;
    width: 100%;
}

.activity-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.activity-list .bullet {
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 0;
    margin-right: 15px;
}

/* Card 2: Saturday Gathering (Peach) */
.saturday-card {
    background-color: var(--bg-peach);
}

.timeline-list {
    text-align: left;
    width: 100%;
    position: relative;
    z-index: 2;
}

.timeline-list li {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.timeline-list .time {
    font-weight: 700;
    color: var(--primary);
    min-width: 85px;
    flex-shrink: 0;
}

.timeline-list .act {
    color: var(--text-dark);
}

.flower-decor {
    position: absolute;
    font-size: 2rem;
    color: var(--secondary);
    opacity: 0.2;
    z-index: 1;
}

.flower-decor.top-right {
    top: 15px;
    right: 15px;
    transform: rotate(15deg);
}

.flower-decor.bottom-left {
    bottom: 15px;
    left: 15px;
    transform: rotate(-15deg);
}

/* Card 3: Featured Speaker (Dark Purple) */
.featured-card {
    background-color: var(--primary);
    color: var(--text-light);
}

.featured-card h3 {
    color: var(--text-light);
    margin-top: 15px;
}

.featured-tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.speaker-info {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.om-bg {
    position: absolute;
    bottom: -30px;
    right: -20px;
    font-size: 12rem;
    color: white;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}


.schedule-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.schedule-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.schedule-info h3 {
    font-size: 1.8rem;
}

.schedule-timeline {
    border-left: 2px solid var(--bg-peach);
    padding-left: 20px;
}

.time-slot {
    margin-bottom: 20px;
    position: relative;
}

.time-slot::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
}

.time-slot .time {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
}

.time-slot .activity {
    font-size: 1.1rem;
    color: var(--primary);
}

.schedule-card-highlight {
    background: var(--primary);
    color: var(--text-light);
    padding: 40px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.schedule-card-highlight::after {
    content: 'ॐ';
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 10rem;
    opacity: 0.05;
    color: var(--white);
}

.schedule-card-highlight h3 {
    color: var(--text-light);
}

.schedule-card-highlight .tag {
    display: inline-block;
    background: var(--secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.schedule-card-highlight p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Videos Section */
.dark-section {
    background-color: var(--primary);
    color: var(--text-light);
}

.dark-section .sc-title {
    color: var(--text-light);
}

.dark-section .sc-subtitle {
    color: var(--accent);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-item h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 15px;
    font-family: var(--font-body);
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-frame iframe,
.video-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.video-frame a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.video-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
    z-index: 2;
    pointer-events: none;
}

.play-button {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.video-item:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--white);
    color: var(--secondary);
}

/* Updates */
.updates-section {
    background-color: var(--bg-light);
}

.updates-flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.update-box {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 30px;
    border-top: 4px solid var(--secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.update-box .tag {
    font-size: 0.8rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.update-box h3 {
    font-size: 1.4rem;
    margin: 10px 0;
}

/* Footer */
.site-footer {
    background-color: #003366;
    /* Deep Blue */
    color: var(--white);
    padding: 60px 0 20px;
    border-top: 5px solid #FF8C00;
    /* Orange Border */
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
    /* Adjusted for newsletter/map */
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Footer Col 1: Brand */
.footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 20px;
}

.footer-logo {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}

.footer-org-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.footer-org-sub {
    font-size: 0.85rem;
    color: #BDC3C7;
    /* Light gray */
    margin-bottom: 15px;
    line-height: 1.4;
}

.footer-nonprofit {
    font-size: 0.8rem;
    color: #BDC3C7;
    margin-top: 5px;
}

/* Footer Headings */
.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    width: 100%;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #BDC3C7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #FF8C00;
    /* Orange hover */
    padding-left: 5px;
}

/* Footer Contact & Map */
.footer-contact-info p {
    margin-bottom: 10px;
    color: #BDC3C7;
}

.footer-mini-map {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-mini-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Newsletter Styles */
.newsletter-form {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.newsletter-input::placeholder {
    color: #BDC3C7;
}

.newsletter-btn {
    padding: 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #95A5A6;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo-container {
        align-items: center;
        text-align: center;
    }

    .footer-heading {
        width: 100%;
        border-bottom: none;
        text-decoration: underline;
    }
}

@media (max-width: 768px) {

    .schedule-container,
    .schedule-row {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }
}

/* Content Rows (About Page) */
.content-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.content-text,
.content-image {
    flex: 1;
    min-width: 300px;
}

.content-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-wrapper {
    background: var(--bg-peach);
    padding: 40px;
    border-radius: var(--radius);
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-family: var(--font-body);
    margin-bottom: 20px;
}

.contact-form-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.phone-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-row {
        flex-direction: column !important;
        /* Force stack on mobile */
        gap: 30px;
    }
}

/* Gallery & Past Events Styles (Synced) */
:root {
    --transition: all 0.3s ease;
    /* Ensure transition var exists */
}

.gallery-section {
    background-color: var(--white);
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 1;
    /* Square thumbnails */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
}

.gallery-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

.gallery-card-wrapper {
    cursor: pointer;
}

.gallery-name-below {
    text-align: center;
    margin-top: 12px;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.35;
    transition: var(--transition);
}

.gallery-card-wrapper:hover .gallery-item {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-card-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card-wrapper:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-card-wrapper:hover .gallery-name-below {
    color: var(--secondary);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: var(--font-heading);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--secondary);
}

/* Slideshow Controls */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1001;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Schedule Sections */
.prayer-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.prayer-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.prayer-time {
    font-weight: 600;
    color: var(--primary-color);
}

.schedule-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.schedule-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.schedule-time {
    font-weight: 600;
    color: var(--primary-color);
}


/* Upcoming Events Section (4-column Grid) */

.upcoming-events-section {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid #eee;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.events-header h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.event-column-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.event-column-card:last-child {
    border-right: none;
    padding-right: 0;
}

.event-date-large {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.event-month-year {
    font-size: 1rem;
    color: #888;
    font-style: italic;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.event-tag {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
    margin-bottom: 15px;
    display: block;
}

.event-title-link {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: var(--primary);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 20px;
    display: block;
    font-weight: 500;
    transition: color 0.3s;
}

.event-title-link:hover {
    color: var(--accent);
}

.event-speakers {
    font-size: 0.9rem;
    color: #666;
    margin-top: auto;
    /* Push to bottom if content varies */
    margin-bottom: 20px;
    font-style: italic;
}

.event-speakers strong {
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 5px;
    font-style: normal;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 4px;
}

.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-column-card:hover .event-image-container img {
    transform: scale(1.05);
}

/* Responsive adjustments for 4-col grid */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .event-column-card {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
    }

    .event-column-card:last-child,
    .event-column-card:nth-last-child(2) {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-column-card {
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
    }

    .event-column-card:last-child {
        border-bottom: none;
    }

    .event-column-card:last-child {
        border-bottom: none;
    }

    .event-date-large {
        font-size: 3rem;
    }
}


/* Calendar Page Styles */
.calendar-section {
    padding: 60px 0;
    background-color: var(--white);
}

.calendar-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
}

.calendar-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin: 0;
}

.calendar-nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.calendar-day-header {
    background-color: #eee;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-cell {
    min-height: 120px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    position: relative;
    background-color: white;
}

.calendar-cell:nth-child(7n) {
    border-right: none;
}

.calendar-cell.inactive {
    background-color: #fcece4;
    /* Light peach for empty cells */
}

.day-number {
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
    color: #444;
}

.event-block {
    display: block;
    font-size: 0.75rem;
    padding: 4px 6px;
    margin-bottom: 4px;
    border-radius: 3px;
    text-decoration: none;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s;
}

.event-block:hover {
    opacity: 0.8;
}

.event-orange {
    background-color: var(--secondary);
    /* Peach/Orange-ish */
    color: white !important;
}

.event-blue {
    background-color: var(--primary);
    /* Deep Blue/Purple */
    color: white !important;
}

.highlight-cell-header {
    background-color: var(--secondary) !important;
    color: white !important;
}

@media (max-width: 768px) {
    .calendar-grid {
        display: flex;
        flex-direction: column;
    }

    .calendar-day-header {
        display: none;
    }

    .calendar-cell {
        min-height: auto;
        border-right: none;
    }

    .calendar-cell.inactive {
        display: none;
    }
}