/*
Theme Name: Mindful Path Therapy - Multi-Page
Description: A modern, animated therapy website theme with multi-page structure, GSAP animations and responsive design
Version: 2.0.0
Author: Your Name
Text Domain: mindful-path
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@500;600;700&display=swap');

:root {
  --background: 40 33% 94%;
  --background-secondary: 195 23% 93%;
  --foreground: 0 0% 17%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 17%;
  --primary: 168 35% 36%;
  --primary-foreground: 0 0% 100%;
  --secondary: 40 33% 94%;
  --muted: 40 20% 90%;
  --muted-foreground: 0 0% 43%;
  --accent: 168 35% 36%;
  --destructive: 0 84.2% 60.2%;
  --border: 0 0% 17%;
  --input: 0 0% 90%;
  --ring: 168 35% 36%;
  --radius: 0.625rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #F6F2EA;
  overflow-x: hidden;
  color: #2C2C2C;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

/* Grain overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F6F2EA;
}

::-webkit-scrollbar-thumb {
  background: #3A7D74;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2d635c;
}

/* Page container */
.page-container {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 4rem;
}

.page-content {
  padding: 0 8vw;
  width: 100%;
}

/* Page header */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #2C2C2C;
}

.page-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #6E6E6E;
  max-width: 800px;
  margin: 0 auto;
}

/* Content sections */
.content-section {
  margin-bottom: 3rem;
  padding: 3rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 1.5rem;
}

.section-content {
  color: #2C2C2C;
  line-height: 1.8;
}

.section-content p {
  margin-bottom: 1.5rem;
}

.section-content ul,
.section-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.section-content li {
  margin-bottom: 0.75rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 1rem;
}

.card-content {
  color: #6E6E6E;
  line-height: 1.6;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.team-member {
  text-align: center;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid #3A7D74;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 0.5rem;
}

.team-role {
  color: #3A7D74;
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-bio {
  color: #6E6E6E;
  line-height: 1.6;
}

/* Responsive typography */
.heading-1 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.heading-2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.heading-3 {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.2;
}

.body-text {
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.65;
}

/* Button styles */
.btn-primary {
  background-color: #3A7D74;
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #2d635c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 125, 116, 0.25);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: #3A7D74;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 2px solid #3A7D74;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #3A7D74;
  color: white;
  transform: translateY(-2px);
}

/* Utility classes */
.text-primary { color: #3A7D74; }
.text-charcoal { color: #2C2C2C; }
.text-warm-gray { color: #6E6E6E; }
.bg-paper { background-color: #F6F2EA; }
.bg-mist { background-color: #F0F4F3; }
.bg-primary { background-color: #3A7D74; }
.bg-white { background-color: #ffffff; }

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Form inputs */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(44, 44, 44, 0.12);
  border-radius: 12px;
  background: white;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #2C2C2C;
  transition: all 0.3s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: #3A7D74;
  box-shadow: 0 0 0 3px rgba(58, 125, 116, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Book archive grid — fixed 3 columns, empty slots reserved */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* Mobile responsive */
@media (max-width: 768px) {
  .page-container {
    padding-top: 80px;
  }
  
  .page-content {
    padding: 0 1rem;
  }
  
  .page-header {
    padding: 1.5rem 0;
  }
  
  .content-section {
    padding: 2rem 1.5rem;
  }
  
  .cards-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}


/* Additional utility classes for header and footer */
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }
.z-40 { z-index: 40; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.flex { display: flex; }
.hidden { display: none; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.p-2 { padding: 0.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.h-full { height: 100%; }
.mt-4 { margin-top: 1rem; }
.flex-col { flex-direction: column; }
.border-t { border-top-width: 1px; }
.opacity-0 { opacity: 0; }
.pointer-events-none { pointer-events: none; }
.transition-all { transition-property: all; }
.duration-500 { transition-duration: 500ms; }
.bg-transparent { background-color: transparent; }
.bg-paper { background-color: #F6F2EA; }
.text-charcoal { color: #2C2C2C; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-bold { font-weight: 700; }
.font-heading { font-family: 'Montserrat', sans-serif; }
.hover\:text-primary:hover { color: #3A7D74; }
.hover\:text-charcoal:hover { color: #2C2C2C; }
.transition-colors { transition-property: color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }

/* Responsive utilities */
@media (min-width: 769px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
}

@media (max-width: 768px) {
  .md\:flex { display: none; }
  .md\:hidden { display: block; }
  .md\:flex-row { flex-direction: column; }
}

/* Vignette overlay */
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 60%, rgba(0,0,0,0.04) 100%);
  z-index: 5;
}

/* Section base */
.section-pinned {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.section-flowing {
  position: relative;
  width: 100%;
  padding: 8vh 0;
  min-height: 80vh;
}

/* Label uppercase */
.label-upper {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6E6E6E;
}

/* Card shadow */
.card-shadow {
  box-shadow: 0 22px 55px rgba(0,0,0,0.10);
}

/* Ensure hero buttons are always visible and not overridden by WP block styles */
.hero-section .btn-primary,
.hero-section .btn-secondary {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}
/* Event Styles */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.event-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.event-thumbnail {
    height: 200px;
    overflow: hidden;
}

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

.event-card:hover .event-thumbnail img {
    transform: scale(1.05);
}

.event-card .event-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-header {
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #3A7D74;
}

.event-card .event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6E6E6E;
    padding: 0.75rem 1rem;
    background: #F6F2EA;
    border-radius: 0.5rem;
}

.event-card .event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-card .event-meta .material-icons {
    font-size: 1rem;
    color: #3A7D74;
    flex-shrink: 0;
}

.event-status {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-upcoming {
    background-color: rgba(58, 125, 116, 0.1);
    color: #3A7D74;
}

.status-ongoing {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ff9800;
}

.status-completed {
    background-color: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

.status-cancelled {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.status-open_registration {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.event-excerpt {
    color: #6E6E6E;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.event-footer {
    margin-top: auto;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3A7D74;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Single Event Styles — 3-column layout */
.event-single-layout {
    display: grid;
    grid-template-columns: 380px 1fr 300px;
    gap: 2.5rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* LEFT column: event image */
.event-col-image {
    position: static;
}

.event-col-image img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: block;
}

.event-image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image-placeholder .material-icons {
    font-size: 4rem;
    color: #3A7D74;
    opacity: 0.4;
}

/* MIDDLE column: title + content */
.event-col-content {
    min-width: 0;
}

.event-single-title {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.event-single-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #2C2C2C;
}

.event-single-body > * {
    margin-bottom: 1.25rem;
}

.event-single-body > *:last-child {
    margin-bottom: 0;
}

.event-single-body h2,
.event-single-body h3,
.event-single-body h4 {
    font-weight: 700;
    color: #2C2C2C;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.event-single-body h2 { font-size: 1.35rem; }
.event-single-body h3 { font-size: 1.15rem; }

.event-single-body ul,
.event-single-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.event-single-body li {
    margin-bottom: 0.4rem;
}

.event-single-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
    margin: 1rem 0;
}

/* RIGHT column: sidebar */
.event-col-sidebar {
    position: sticky;
    top: 120px;
    background: #e8f4f2;
    border-radius: 0.75rem;
    padding: 1.75rem;
}

.event-sidebar-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(58, 125, 116, 0.2);
}

.event-sidebar-meta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.event-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.event-sidebar-item .material-icons {
    font-size: 1.25rem;
    color: #3A7D74;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.event-sidebar-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.event-sidebar-item strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2C2C2C;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.event-sidebar-item span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #444;
    line-height: 1.4;
    word-break: break-word;
}

/* Register button */
.event-sidebar-register {
    margin-top: 1.75rem;
}

.btn-register {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    background-color: #3A7D74;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-register:hover {
    background-color: #2d635c;
    transform: translateY(-1px);
    color: white;
}

.btn-register-disabled {
    background-color: #b0b0b0;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

.btn-register-disabled:hover {
    background-color: #b0b0b0;
    transform: none;
}

/* Post navigation below the article */
.event-post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.event-post-nav .nav-previous,
.event-post-nav .nav-next {
    flex: 1;
}

.event-post-nav .nav-center {
    flex: 0 0 auto;
}

.event-post-nav .nav-next {
    text-align: right;
}

.event-post-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #3A7D74;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.event-post-nav a:hover {
    gap: 0.7rem;
}

/* Responsive: tablet */
@media (max-width: 1024px) {
    .event-single-layout {
        grid-template-columns: 300px 1fr 260px;
        gap: 1.5rem;
    }
}

/* Responsive: mobile */
@media (max-width: 768px) {
    .event-single-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-col-image {
        position: static;
        max-width: 300px;
    }

    .event-col-sidebar {
        position: static;
    }

    .event-post-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .event-post-nav .nav-previous,
    .event-post-nav .nav-next {
        text-align: center;
    }
}

/* No events message */
.no-events {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.no-events p {
    font-size: 1.125rem;
    color: #6E6E6E;
}

/* Responsive event styles */
@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-thumbnail {
        height: 180px;
    }
    
    .event-card .event-content {
        padding: 1.25rem;
    }
}

/* Event Archive Grid */
.event-archive-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.event-archive-grid::-webkit-scrollbar {
    display: none;
}

.event-archive-grid::-webkit-scrollbar-track {
    background: transparent;
}

.event-archive-grid::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

.event-archive-card {
    flex: 1 1 calc(25% - 1.125rem);
    max-width: calc(25% - 1.125rem);
    min-width: 280px;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.event-archive-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.event-archive-image a {
    display: block;
}

.event-archive-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 320px;
    border-radius: 0.5rem;
    display: block;
    margin: 0 auto;
}

.event-archive-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-archive-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.event-archive-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-archive-title a:hover {
    color: #3A7D74;
}

.event-archive-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(44, 44, 44, 0.08);
    font-size: 0.85rem;
    color: #555;
}

.event-archive-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.event-archive-meta-item .material-icons {
    font-size: 1rem;
    color: #3A7D74;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.event-archive-meta-item span {
    line-height: 1.5;
    word-break: break-word;
}

.event-archive-status {
    margin-bottom: 0.75rem;
}

.event-archive-excerpt {
    color: #6E6E6E;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-archive-excerpt p {
    margin: 0;
}

.event-archive-footer {
    margin-top: auto;
}

.event-archive-btn {
    align-self: stretch;
    text-align: center;
    justify-content: center;
}

.event-archive-pagination {
    margin-top: 3rem;
    text-align: center;
}

@media (max-width: 768px) {
    .event-archive-grid {
        gap: 1rem;
    }

    .event-archive-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .event-archive-image img {
        max-height: 220px;
    }
}

/* Event Shortcode Styles */
.upcoming-events-shortcode {
    margin: 2rem 0;
}

.upcoming-events-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 1.5rem;
}

.upcoming-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.upcoming-event-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upcoming-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.upcoming-event-thumbnail {
    height: 180px;
    overflow: hidden;
}

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

.upcoming-event-card:hover .upcoming-event-thumbnail img {
    transform: scale(1.05);
}

.upcoming-event-content {
    padding: 1.25rem;
}

.upcoming-event-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.upcoming-event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.upcoming-event-title a:hover {
    color: #3A7D74;
}

.upcoming-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #6E6E6E;
    margin-bottom: 0.75rem;
}

.upcoming-event-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.upcoming-event-meta .material-icons {
    font-size: 1rem;
    opacity: 0.7;
}

.upcoming-event-excerpt {
    font-size: 0.9375rem;
    color: #6E6E6E;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.upcoming-event-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.upcoming-event-actions .btn-primary,
.upcoming-event-actions .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.no-upcoming-events {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.no-upcoming-events p {
    color: #6E6E6E;
    font-style: italic;
}

/* Event Countdown Styles */
.event-countdown {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #3A7D74 0%, #2d635c 100%);
    border-radius: 1rem;
    color: white;
    margin: 1.5rem 0;
}

.countdown-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: white;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Responsive shortcode styles */
@media (max-width: 768px) {
    .upcoming-events-grid {
        grid-template-columns: 1fr;
    }
    
    .upcoming-event-thumbnail {
        height: 160px;
    }
    
    .countdown-timer {
        gap: 0.75rem;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
}
/* Events Page Styles */
.event-date-small {
    font-size: 0.875rem;
    color: #6E6E6E;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.event-date-small .material-icons {
    font-size: 1rem;
    opacity: 0.7;
}

/* Archive page improvements */
.archive .page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #F6F2EA 0%, #F0F4F3 100%);
    margin-bottom: 3rem;
}

.archive .page-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.archive .archive-description {
    font-size: 1.125rem;
    color: #6E6E6E;
    max-width: 800px;
    margin: 0 auto;
}

/* Event archive filter styles */
.event-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2C2C2C;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(44, 44, 44, 0.12);
    border-radius: 0.5rem;
    background: white;
    font-size: 0.875rem;
    color: #2C2C2C;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #3A7D74;
    box-shadow: 0 0 0 3px rgba(58, 125, 116, 0.1);
}

.filter-button {
    align-self: flex-end;
    padding: 0.5rem 1.5rem;
    background: #3A7D74;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-button:hover {
    background: #2d635c;
}

/* Event status badges in lists */
.event-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge-upcoming {
    background-color: rgba(58, 125, 116, 0.1);
    color: #3A7D74;
}

.status-badge-ongoing {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ff9800;
}

.status-badge-completed {
    background-color: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

.status-badge-cancelled {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* Event calendar view */
.event-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(44, 44, 44, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 2rem 0;
}

.calendar-day {
    background: white;
    padding: 1rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.calendar-day-header {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6E6E6E;
    margin-bottom: 0.5rem;
    text-align: center;
}

.calendar-day.today {
    background: #F6F2EA;
}

.calendar-day.has-events {
    background: rgba(58, 125, 116, 0.05);
}

.calendar-event {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: #3A7D74;
    color: white;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.calendar-event:hover {
    opacity: 0.9;
}

/* Responsive event calendar */
@media (max-width: 768px) {
    .event-calendar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .event-calendar {
        grid-template-columns: 1fr;
    }
}
/* Event status badges for archive view */
.event-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-status-badge.status-upcoming {
    background-color: rgba(58, 125, 116, 0.1);
    color: #3A7D74;
}

.event-status-badge.status-ongoing {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ff9800;
}

.event-status-badge.status-completed {
    background-color: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

.event-status-badge.status-cancelled {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.event-status-badge.status-open_registration {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

/* Event meta in archive cards */
.event-meta-simple .material-icons {
    font-size: 1rem;
    opacity: 0.7;
    vertical-align: middle;
}

/* Ensure book-grid works for events too */
.book-grid .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-grid .card .card-content {
    flex-grow: 1;
    margin-bottom: 1rem;
}