/*
Theme Name: Masjid Ibrahim
Theme URI: https://masjidibrahim.org/
Author: Your Name
Description: A modern, responsive and elegant WordPress theme for Masjid / Islamic centers with prayer times, announcements, newsletter, school and potluck sections.
Version: 1.0
Text Domain: masjid-ibrahim
*/

/* -------------------------------------------------------
   ROOT TOKENS
------------------------------------------------------- */

:root {
  /* Updated to match Masjid Ibrahim logo */
  --primary-green: #0b6b3f;
  --primary-green-dark: #074c33;
  --accent-gold: #d6a12c;
  --bg-body: #f6f5f2;
  --bg-card: #ffffff;
  --text-main: #222222;
  --text-muted: #6b7280;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);

  --site-max-width: 1200px;
  --site-horizontal-pad: 0.75rem;
}

/* -------------------------------------------------------
   GLOBAL RESET
------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
}

a {
  color: var(--primary-green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------
   LAYOUT WRAPPERS
------------------------------------------------------- */

/* Shared max-width wrapper */
.site-shell {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Extra top space below sticky header when needed */
.site-shell--with-top-gap {
  padding-top: 1rem;
}

/* Main two-column layout used by pages (page.php, Ramadan, etc.) */
.site-main-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
}

.site-content,
.site-sidebar {
  min-width: 0;
}

/* -------------------------------------------------------
   HEADER & NAV
------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.header-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.site-logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

.site-logo-link {
  display: inline-block;
  line-height: 1;
}

.site-logo-link img { display: block; }

.site-logo a {
  color: var(--primary-green-dark);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

/* Desktop nav centered */
.desktop-nav {
  flex: 1;
  display: none; /* shown via media query */
  justify-content: center;
}

/* Works for wp_nav_menu() and wp_page_menu() output */
.desktop-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.desktop-nav li {
  margin: 0;
  padding: 0;
  position: relative;
}

.desktop-nav li a {
  font-size: 0.95rem;
  color: #4b5563;
  text-decoration: none;
  padding-bottom: 0.35rem;
  transition: color 0.15s ease;
}

.desktop-nav li a:hover {
  color: var(--primary-green);
}

/* Active link underline */
.desktop-nav li.current-menu-item > a,
.desktop-nav li.current_page_item > a,
.desktop-nav li.current-menu-ancestor > a {
  color: var(--primary-green-dark);
  border-bottom: 2px solid var(--primary-green);
}

/* Dropdown/Submenu Styles */
.desktop-nav ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 220px;
  z-index: 1000;
}

.desktop-nav li:hover > ul,
.desktop-nav ul ul:hover {
  display: block;
}

/* Bridge the gap with invisible area */
.desktop-nav li.menu-item-has-children::after {
  content: '';
  position: absolute;
  bottom: -0.35rem;
  left: 0;
  right: 0;
  height: 0.35rem;
}

.desktop-nav ul ul li {
  display: block;
  width: 100%;
}

.desktop-nav ul ul li a {
  display: block;
  padding: 0.75rem 1.25rem;
  border-bottom: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.desktop-nav ul ul li a:hover {
  background: #f3f4f6;
  color: var(--primary-green);
}

/* Parent menu item with children indicator */
.desktop-nav li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

/* Donate pill on the right */
.header-donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--accent-gold);
  color: var(--primary-green-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  box-shadow: 0 6px 14px rgba(11,91,68,0.08);
  white-space: nowrap;
}

.header-donate-btn:hover {
  text-decoration: none;
  filter: brightness(0.98);
}

/* Header Actions (Search + Donate) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Search Toggle Button */
.search-toggle {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.search-toggle:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #fff;
}

/* Header Search Form */
.header-search-form {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 999;
}

.header-search-form .search-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Search Form Styles */
.search-form {
  width: 100%;
}

.search-form-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.search-field:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(11, 107, 63, 0.1);
}

.search-submit {
  background: var(--primary-green);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.search-submit:hover {
  background: var(--primary-green-dark);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Hamburger toggle */
.menu-toggle {
  background: transparent;
  border: none;
  color: #111827;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Show desktop nav on wider screens */
@media (min-width: 960px) {
  .desktop-nav {
    display: flex !important;
  }

  .menu-toggle {
    display: none;
  }
}

/* -------------------------------------------------------
   MOBILE MENU
------------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--primary-green);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem 2rem;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-menu nav ul,
.mobile-menu .mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
}

.mobile-menu nav li {
  margin-bottom: 1.2rem;
}

.mobile-menu nav a {
  color: #fff;
  font-size: 1.5rem;
}

.mobile-menu nav li.current-menu-item a,
.mobile-menu nav li.current_page_item a {
  border-bottom: 2px solid #fff;
  padding-bottom: 0.1rem;
}

.menu-contact {
  margin-top: auto;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 1rem;
}

/* -------------------------------------------------------
   NEWSLETTER BAR
------------------------------------------------------- */

.home-newsletter-bar {
  width: 100%;
  max-width: 1200px;
  margin: 3.5rem auto 2.5rem auto;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 32px rgba(15,23,42,0.10);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.home-newsletter-bar .newsletter-text {
  flex: 1;
  min-width: 200px;
}

.home-newsletter-bar .newsletter-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #1e293b;
}

.home-newsletter-bar .newsletter-text p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

.home-newsletter-bar .newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  max-width: 500px;
  align-items: center;
}

.home-newsletter-bar .newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  font-size: 1.1rem;
  background: #f8fafc;
}

.home-newsletter-bar .newsletter-form button {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  background: #0b6b3f;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.home-newsletter-bar .newsletter-form button:hover {
  background: #074c33;
}

/* Newsletter bar mobile responsive */
@media (max-width: 768px) {
  .home-newsletter-bar {
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
    margin: 2rem auto;
    max-width: calc(100% - 2rem);
    text-align: center;
  }

  .home-newsletter-bar .newsletter-text h2 {
    font-size: 1.5rem;
  }

  .home-newsletter-bar .newsletter-text p {
    font-size: 0.9rem;
  }

  .home-newsletter-bar .newsletter-form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .home-newsletter-bar .newsletter-form input[type="email"] {
    width: 100%;
  }

  .home-newsletter-bar .newsletter-form button {
    width: 100%;
  }
}

/* -------------------------------------------------------
   BUTTONS
------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-green);
  color: #ffffff;
  border-color: transparent;
}

.btn-outline-light {
  background: transparent;
  border-color: #e5e7eb;
  color: #f9fafb;
}

.btn-ghost-light,
.btn-ghost-dark {
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  font-size: 0.9rem;
}

.btn-ghost-light {
  border-color: rgba(15, 23, 42, 0.18);
  color: #111827;
}

.btn-ghost-dark {
  border-color: rgba(0, 0, 0, 0.4);
  color: #111827;
}

/* -------------------------------------------------------
   HOME HERO
------------------------------------------------------- */

/* Full-width dark bar behind the hero card */
.home-hero-wrap {
  background: #1a4d2e;
  padding: 1.5rem 0;
  scroll-margin-top: 80px;
}

/* Hero card - stacked layout with site-shell padding */
.home-hero-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  gap: 1.5rem;
}

/* Full-width banner section */
.home-hero-banner {
  position: relative;
  width: 100%;
  height: 720px;
  overflow: hidden;
}

/* Banner carousel */
.hero-banner-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-banner-carousel .carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-banner-carousel .carousel-slide.active {
  opacity: 1;
}

.hero-banner-carousel .carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-banner-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.carousel-dot.active {
  opacity: 1;
}

/* Horizontal prayer widget section */
.home-hero-widget {
  width: 100%;
  background: transparent;
  overflow: hidden;
}

.prayer-widget-horizontal {
  width: 100%;
  height: 580px;
  border: none;
  display: block;
}

/* OLD LEFT hero block - kept for backwards compatibility */
.home-hero-left {
  position: relative;
  min-height: 360px;
}

.home-hero-photo {
  position: absolute;
  inset: 0;
  background: url('images/hero-masjid.jpg') center/cover no-repeat;
}

.home-hero-overlay {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2.8rem;
  max-width: 80%;
  color: #f9fafb;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-hero-overlay h1 {
.home-list-card .thumb {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #f3f4f6;
}
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* RIGHT hero column */
.home-hero-right {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.hero-right-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.22);
  padding: 1.3rem 1.5rem;
}

/* Prayer card in hero */
.hero-prayer-panel {
  background: linear-gradient(180deg, var(--primary-green), var(--primary-green-dark));
  color: #f9fafb;
}

.hero-prayer-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-prayer-title {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  opacity: 0.9;
}

.hero-prayer-masjid {
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-prayer-timestamp {
  text-align: right;
  font-size: 0.78rem;
  opacity: 0.9;
}

.hero-prayer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.hero-prayer-cell {
  background: rgba(15,23,42,0.6);
  border-radius: 0.55rem;
  padding: 0.35rem 0.45rem;
  text-align: center;
}

.hero-prayer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.hero-prayer-time {
  font-size: 1rem;
  font-weight: 600;
}

.hero-prayer-iqamah {
  font-size: 0.65rem;
  opacity: 0.85;
}

.hero-prayer-jummas {
  margin-top: 0.6rem;
  font-size: 0.8rem;
}

/* Newsletter card */
.hero-newsletter-panel {
  background: #ffffff;
  color: #111827;
}

.hero-newsletter-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.hero-newsletter-panel p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.hero-newsletter-form .mc4wp-form,
.hero-newsletter-form form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* -------------------------------------------------------
   HOME MAIN LAYOUT & CAROUSELS
------------------------------------------------------- */

.home-main-wrap {
  max-width: 100%;
  margin: 0 auto 2rem;
  padding: 0;
  scroll-margin-top: 80px;
}

.home-main-single {
  /* actual width controlled by site-shell */
}

/* Section header spacing */
.home-section-block {
  margin-bottom: 1rem;
  scroll-margin-top: 80px;
}

.home-section-top-padding {
  margin-top: 1.5rem;
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.home-section-title {
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
}

.home-section-subtitle {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: #6b7280;
}

/* ---- CAROUSELS ---- */

.home-carousel {
  margin-top: 1rem;
  overflow: hidden;
}

.home-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
}

.home-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.home-carousel-track::-webkit-scrollbar-track {
  background: transparent;
}

.home-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.9);
  border-radius: 999px;
}

/* Cards inside carousels */
.home-carousel-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  flex: 0 0 320px;
  scroll-snap-align: start;
}

/* -------------------------------------------------------
   ANNOUNCEMENTS GRID (Card Style)
   ------------------------------------------------------- */
.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.announcement-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.announcement-card:hover {
  box-shadow: 0 4px 16px rgba(11, 107, 63, 0.2);
  transform: translateY(-4px);
}

.announcement-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e8f5f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.announcement-icon-wrapper svg {
  width: 45px;
  height: 45px;
  stroke: var(--primary-green);
}

.announcement-title {
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-weight: 600;
}

.announcement-excerpt {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.announcement-learn-more {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--primary-green);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: auto;
}

.announcement-learn-more:hover {
  background: #094d2e;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .announcements-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .announcement-card {
    padding: 1.5rem;
  }
}

/* -------------------------------------------------------
   HOME LIST GRID (Services on Homepage)
   ------------------------------------------------------- */
.home-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.home-list-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
  min-height: auto;
}

.home-list-card .thumb {
  width: 100%;
  height: 160px;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #f3f4f6;
}

.home-list-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-list-card h3 {
  margin: 0 0 0.25rem 0;
}

.home-list-card .excerpt {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.home-list-card .card-cta {
  margin-top: 0.6rem;
  margin-left: auto;
}

/* Responsive: switch to multi-column grid on wider viewports */
@media (min-width: 900px) {
  .home-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .home-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: stack thumbnail above content for narrow screens */
@media (max-width: 700px) {
  .home-list-card {
    flex-direction: column;
    align-items: stretch;
  }

  .home-list-card .thumb {
    width: 100%;
    height: 200px;
    flex: 0 0 auto;
  }

  .home-list-card .card-cta {
    margin-left: 0;
    text-align: right;
  }
}

/* Limit excerpt length visually */
.home-list-card .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stronger CTA button styling inside cards */
.home-list-card .card-cta .btn {
  background: var(--primary-green);
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(11,91,68,0.12);
}

/* Improve focus outline for accessibility */
.home-list-card .card-cta .btn:focus,
.home-list-card .card-cta .btn:active {
  outline: 3px solid rgba(11,91,68,0.14);
  outline-offset: 2px;
}

/* Archive list (used by announcement archive) */
.archive-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.archive-list-grid article.info-card {
  display: block;
}

/* Read more inline link style used in announcement/service lists */
.read-more-link {
  color: var(--primary-green);
  font-weight: 600;
  text-decoration: none;
}
.read-more-link:hover {
  text-decoration: underline;
}

.archive-list-grid article .info-card img {
  max-width: 100%;
  height: auto;
}

.pagination {
  margin-top: 1.25rem;
  text-align: center;
}

.home-announcement-card h3,
.home-service-item h3 {
  margin: 0 0 0.3rem;
}

.home-announcement-card h3 a {
  color: inherit;
  text-decoration: none;
}

.home-announcement-card h3 a:hover {
  text-decoration: underline;
}

.home-announcement-meta {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

/* Carousel arrows */
.home-carousel-arrows {
  display: flex;
  gap: 0.35rem;
}

.home-carousel-arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Lower two-up: School + Potluck */
.home-lower-two-up {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.home-card-muted {
  border-radius: 1rem;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  color: #111827;
}

.home-card-school {
  background: #f1e5f5;
}

.home-card-potluck {
  background: #f3d59a;
}

.home-card-muted ul {
  margin: 0.4rem 0 0.6rem 1.2rem;
  padding: 0;
}

.home-card-cta {
  margin-top: 0.6rem;
}

/* -------------------------------------------------------
   GENERIC SECTION & CONTENT STYLES
------------------------------------------------------- */

section {
  scroll-margin-top: 70px;
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}

.section-muted {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Carded content on pages */

.content-area {
  background: var(--bg-card);
  border-radius: 1.1rem;
  box-shadow: var(--shadow-soft);

  /* keep card the same width as footer CTAs */
  max-width: var(--site-max-width);
  margin: 1.25rem auto 0;                /* center it, reduced */
  padding: 1rem var(--site-horizontal-pad);
}

.content-area h1,
.content-area h2,
.content-area h3 {
  margin-top: 0;
}

/* -------------------------------------------------------
   NEWSLETTER SECTION (if used outside hero)
------------------------------------------------------- */

.newsletter-section {
  margin: 2rem 0;
  background: var(--primary-green);
  color: #fff;
  border-radius: 1.2rem;
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow-soft);
}

.newsletter-section h2 {
  margin: 0 0 0.5rem;
}

.newsletter-section p {
  margin: 0 0 0.75rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.newsletter-form input[type=email] {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: none;
}

.newsletter-form button {
  border-radius: 999px;
  border: none;
  padding: 0.65rem 1.4rem;
  background: #f9fafb;
  color: var(--primary-green);
  font-weight: 600;
  cursor: pointer;
}

/* -------------------------------------------------------
   SHORTCODE CARDS (weekend school & potluck)
------------------------------------------------------- */

.info-card {
  background: var(--bg-card);
  border-radius: 1.1rem;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  margin: 2rem 0 0;
}

.info-card h2 {
  margin-top: 0;
}

.info-card ul {
  margin: 0.5rem 0 0 1.2rem;
}

/* -------------------------------------------------------
   FOOTER CTA ROW + FOOTER
------------------------------------------------------- */

.footer-cta-section {
  /* match the same width + gutters as the main site shell */
  max-width: var(--site-max-width);
  margin: 2rem auto 0;                   /* smaller vertical gap above CTAs */
  padding: 0 var(--site-horizontal-pad);   /* small left/right white space */
}

.footer-cta-row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer-cta-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-cta {
  position: relative;
  min-height: 170px;
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
}

.footer-cta-inner {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1.6rem;
}

.footer-cta-title {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.footer-cta-btn {
  display: inline-block;
  border-bottom: 1px solid #fff;
  padding-bottom: 0.05rem;
  font-size: 0.95rem;
  color: #fff;
}

/* Backgrounds for CTA cards */
.footer-cta-halaqa {
  background-image: url('images/cta-halaqa.jpg');
}

.footer-cta-support {
  background-image: url('images/cta-support.jpg');
}

.footer-cta-imam {
  background-image: url('images/cta-imam.jpg');
}

/* Footer Info Section */
.footer-info-section {
  background: #1a4d2e;
  color: #e5e7eb;
  padding: 3rem 1rem 2rem;
  margin-top: 2rem;
}

.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  margin-top: 0;
}

/* Quick Links */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Contact Info */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-icon {
  flex-shrink: 0;
  color: #d6a12c;
  margin-top: 0.2rem;
}

.footer-contact-item p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.footer-contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Social Media */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--primary-green);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Footer bottom bar */
.site-footer-bottom {
  background: var(--primary-green);
  color: #e5e7eb;
  padding: 1.5rem 1rem;
}

.site-footer-bottom .copyright {
  text-align: center;
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.95;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-info-section {
    padding: 2rem 1rem 1.5rem;
  }
}

/* -------------------------------------------------------
   SIDEBAR PRAYER WIDGET (inner pages)
------------------------------------------------------- */

.prayer-widget {
  background: var(--bg-card);
  border-radius: 1.1rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.prayer-widget-header {
  background: var(--primary-green);
  color: #fff;
  padding: 1rem 1.2rem;
}

.prayer-widget-header .top-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.9;
}

.prayer-widget-header h3 {
  margin: 0.4rem 0 0.2rem;
  font-size: 1.05rem;
}

.prayer-widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.9rem 1rem 0.7rem;
}

.prayer-card {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 0.4rem 0.45rem;
  text-align: center;
}

.prayer-card h4 {
  margin: 0;
  font-size: 0.7rem;
  color: var(--primary-green);
}

.prayer-card .time {
  font-size: 0.9rem;
  font-weight: 600;
}

.prayer-card .iqamah {
  font-size: 0.65rem;
  opacity: 0.85;
}

.prayer-widget-jumma {
  padding: 0 1rem 1rem;
}

.jumma-box {
  background: #ecfdf3;
  border-radius: 0.6rem;
  padding: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  color: var(--primary-green-dark);
  text-align: center;
}

/* -------------------------------------------------------
   RAMADAN CALENDAR PAGE
------------------------------------------------------- */

.ramadan-calendar {
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 1.2rem;
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-soft);
}

.ramadan-calendar h1 {
  margin-top: 0;
}

.ramadan-calendar table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ramadan-calendar th,
.ramadan-calendar td {
  border: 1px solid #e5e7eb;
  padding: 0.35rem 0.4rem;
  text-align: center;
}

.ramadan-calendar th {
  background: #f9fafb;
}

/* -------------------------------------------------------
   CONTACT PAGE
------------------------------------------------------- */

.contact-page-wrap {
  background: #fff;
  padding: 3rem 0 0;
}

.contact-page-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--site-horizontal-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 2rem;
  align-items: stretch;
}

/* Left info panel */
.contact-left {
  color: var(--text-main, #222);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-info-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  background: #e8f5f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-block h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
}

.contact-info-block p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
}

.contact-info-block a {
  color: #6b7280;
  text-decoration: none;
}

.contact-info-block a:hover {
  color: #0b6b3f;
  text-decoration: underline;
}

/* Optional: contact form spacing */
.contact-form-block {
  margin-top: 2rem;
}

/* Right map panel */
.contact-right {
  background: #fff;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact-map-wrapper {
  width: 100%;
  flex: 1;
  display: flex;
  position: relative;
}

.contact-map-wrapper iframe {
  border-radius: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

/* -------------------------------------------------------
   RESPONSIVE TWEAKS
------------------------------------------------------- */

@media (max-width: 960px) {
  /* Hero */
  .home-hero-banner {
    height: 350px;
  }

  .prayer-widget-horizontal {
    height: 280px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  /* Main columns on pages */
  .site-main-wrapper {
    grid-template-columns: 1fr;
  }

  /* Carousels: wider cards on mobile */
  .home-carousel-card {
    flex: 0 0 85%;
  }

  .home-lower-two-up {
    grid-template-columns: 1fr;
  }

  /* Contact page */
  .contact-page-inner {
    grid-template-columns: 1fr;
  }

  .contact-left {
    padding-right: 0;
    margin-bottom: 1.5rem;
  }

  .contact-right {
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .contact-map-wrapper {
    min-height: 260px;
  }
}

/* ================================
   INNER PAGE LAYOUT TWEAKS
   — keep content + CTAs aligned
   ================================ */

/* Constrain the main content cards on standard pages
   (Prayer Timings, Events, generic pages using page.php) */

/* Constrain the Ramadan calendar card the same way */
.page-template-ramadan-calendar .ramadan-calendar {
  max-width: var(--site-max-width);
  margin: 2.5rem auto 0;
  padding: 1.6rem var(--site-horizontal-pad);
}

/* Contact page wrapper should also match the shell width */
.page-template-contact .contact-page-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 3rem var(--site-horizontal-pad) 3rem;
}

/* Slightly tighter gap between inner-page content and CTA tiles */
.page .footer-cta-section {
  margin-top: 1.75rem;
}

/* Align "No content found" block with main layout + CTAs */
.no-results.not-found {
  max-width: var(--site-max-width);          /* same width as CTAs */
  margin: 2rem auto 0;                       /* centered */
  padding: 0 var(--site-horizontal-pad);     /* same side gutters */
}

/* Make the inner content look like a regular card */
.no-results.not-found .page-content {
  background: var(--bg-card);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.7rem;
  font-size: 0.98rem;
}

/* ---------- 1. Generic inner-page shell for main content ---------- */

/* Any top-level white panel right under the header should use the same
   width + side gutters as the footer CTAs (1200px + small padding) */

body:not(.home) .page-header,
body:not(.home) .site-main > .content-area,
body:not(.home) .site-main > .no-results,
body:not(.home) .site-main > .entry-content,
body:not(.home) .site-main > section.no-results {
  max-width: var(--site-max-width);
  margin: 2.5rem auto 0;               /* center + a bit of gap below nav */
  padding: 0 var(--site-horizontal-pad);
}

/* For the "No content found" block specifically, make it look like
   one of your white cards (like the single announcement page). */
body:not(.home) .site-main > .no-results .page-content,
body:not(.home) .site-main > section.no-results .page-content {
  background: var(--bg-card);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.7rem;
}

/* Fallback for themes that output 'No content found.' as a bare <p> 
   directly in <main> (your second screenshot case). */
body:not(.home) .site-main > p:only-child {
  max-width: var(--site-max-width);
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.7rem;
  background: var(--bg-card);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-soft);
}

/* Make sure the 3 footer CTAs are using the same shell */
.footer-cta-section {
  max-width: var(--site-max-width);
  margin: 2.5rem auto 0;
  padding: 0 var(--site-horizontal-pad);
}

/* POTLUCK PAGE */
.page-header-centered {
  text-align: center;
  margin-bottom: 3rem;
}

.page-subtitle {
  max-width: 680px;
  margin: 0.75rem auto 0;
  color: #6b7280;
  font-size: 1.05rem;
}

.potluck-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .potluck-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.potluck-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.potluck-card h2 {
  margin-bottom: 1rem;
}

/* -------------------------------------------------------
   SERVICES PAGE: CARD GRID LAYOUT
   ------------------------------------------------------- */

.services-hero {
  text-align: center;
  padding: 3rem 0.75rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f5f0 100%);
}

.services-hero h1 {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
}

.services-hero .subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(11, 107, 63, 0.2);
  transform: translateY(-4px);
}

.service-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e8f5f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon-wrapper img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.service-icon-wrapper svg {
  width: 45px;
  height: 45px;
  fill: var(--primary-green);
}

.service-title {
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-excerpt {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.service-details {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.service-learn-more {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--primary-green);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: auto;
}

.service-learn-more:hover {
  background: #094d2e;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .services-hero h1 {
    font-size: 2rem;
  }
  
  .services-hero .subtitle {
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .service-card {
    padding: 1.5rem;
  }

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.services-detail {
  display: none;
}

.services-detail.active {
  display: block;
}

.services-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .services-icon-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

.service-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.8rem;
  background: #ffffff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  min-height: 160px;
}

/* Ensure the service icon buttons are consistent width and centered */
.services-icon-grid {
  max-width: var(--site-max-width);
  margin: 0 auto 2rem;
  padding: 0 var(--site-horizontal-pad);
  justify-items: center;
}

.service-icon-btn {
  width: 100%;
  max-width: 170px;
}

.service-icon-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(11, 91, 68, 0.15);
  transform: translateY(-2px);
}

.service-icon-btn.active {
  border-color: var(--primary-green);
  background: #f0fdf9;
}

.service-icon-btn-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* If the icon is an uploaded image (img tag), make it consistent */
.service-icon-btn-icon img,
.service-icon-btn .thumb img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.4rem;
}

.service-icon-btn-label {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* Detail card alignment */
.services-content {
  margin-top: 1rem;
}

.services-detail {
  display: none;
  max-width: var(--site-max-width);
  margin: 0 auto 1.5rem;
  padding: 0 var(--site-horizontal-pad);
}

.services-detail .entry-content img {
  max-width: 100%;
  height: auto;
}

.services-detail.active {
  display: block;
}

.service-icon-btn-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.card-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* EVENT DETAILS */
.potluck-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.potluck-detail:last-child {
  border-bottom: none;
}

.potluck-detail .label {
  color: #6b7280;
  font-weight: 500;
}

.potluck-detail .value {
  font-weight: 600;
}

/* FORM */
.potluck-form .form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .potluck-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.form-field input,
.form-field textarea {
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
}

.form-field textarea {
  min-height: 90px;
  resize: vertical;
}

.btn-full {
  width: 100%;
  margin-top: 0.75rem;
}

/* -------------------------------------------------------
   SEARCH RESULTS PAGE
------------------------------------------------------- */

.search-results-page {
  padding: 3rem 0;
  background: #fafbfa;
}

.search-header {
  text-align: center;
  margin-bottom: 3rem;
}

.search-header .page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 1.5rem;
}

.search-header .page-title span {
  color: var(--primary-green);
}

.search-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.search-result-item {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.search-result-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.search-result-thumbnail {
  flex-shrink: 0;
  width: 180px;
}

.search-result-thumbnail img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.search-result-content {
  flex: 1;
}

.search-result-header {
  margin-bottom: 0.75rem;
}

.search-result-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.search-result-title a {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-result-title a:hover {
  color: var(--primary-green);
}

.search-result-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.search-result-meta .post-type {
  background: #e6f4ea;
  color: var(--primary-green);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: capitalize;
}

.search-result-excerpt {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.search-result-excerpt p {
  margin: 0;
}

.no-results {
  background: #fff;
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.no-results h2 {
  font-size: 1.75rem;
  color: #374151;
  margin-bottom: 1rem;
}

.no-results p {
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination .page-numbers {
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-result-item {
    flex-direction: column;
  }
  
  .search-result-thumbnail {
    width: 100%;
  }
  
  .search-result-thumbnail img {
    height: 200px;
  }
  
  .header-actions {
    gap: 0.5rem;
  }
  
  .search-toggle {
    width: 32px;
    height: 32px;
  }
}
/* -------------------------------------------------------
   EVENTS & PROGRAMS PAGES
------------------------------------------------------- */

.page-content-wrapper {
  max-width: 100%;
  width: 100%;
}

.events-grid,
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

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

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

.event-card-image,
.program-card-image {
  height: 200px;
  overflow: hidden;
}

.event-card-image img,
.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.event-card-content,
.program-card-content {
  padding: 1.5rem;
}

.event-card h3,
.program-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.event-card h3 a,
.program-card h3 a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.event-card h3 a:hover,
.program-card h3 a:hover {
  color: var(--primary-green);
}

.event-meta,
.program-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.event-date {
  display: inline-block;
  background: var(--primary-green);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.btn-outline {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary-green);
  color: white;
  text-decoration: none;
}

.past-event {
  opacity: 0.8;
}

.past-event .event-date {
  background: #9ca3af;
}

.past-event .btn-outline {
  border-color: #9ca3af;
  color: #6b7280;
}

.past-event .btn-outline:hover {
  background: #9ca3af;
  color: white;
}

/* Event and Program Hero Images */
.event-hero-image,
.program-hero-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.event-meta-box,
.program-meta-box {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-content,
.program-content {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  line-height: 1.7;
}

.event-content h2,
.program-content h2 {
  color: var(--primary-green);
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.event-content h3,
.program-content h3 {
  color: var(--primary-green-dark);
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.event-content p,
.program-content p {
  margin-bottom: 1rem;
}

.event-content ul,
.program-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.event-content li,
.program-content li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .events-grid,
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .event-hero-image,
  .program-hero-image {
    height: 250px;
  }
}