/*
Theme Name: Rahma CC Block
Theme URI: https://rahmacc.org
Description: Custom block theme for Rahma Community Center - based on official branding.
Author: Rahma CC
Version: 0.2.0
*/

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

:root {
  --rahma-forest-green: #0d7c4e;
  --rahma-bright-green: #00ff88;
  --rahma-gold: #f5a623;
  --rahma-white: #ffffff;
  --rahma-light-gray: #f5f5f5;
  --rahma-dark-text: #2c2c2c;
}

body {
  background: var(--rahma-white);
  color: var(--rahma-dark-text);
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
}

.wp-site-blocks {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.wp-site-blocks > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Full width alignments */
.alignfull {
  margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px)) !important;
  margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px)) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* Hero Video Section */
.rahma-video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 0;
}

.rahma-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  display: block;
}

.rahma-scroll-bar {
  background: var(--rahma-forest-green);
  width: 100%;
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 !important;
}

.rahma-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--rahma-white);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rahma-scroll-indicator:hover {
  color: var(--rahma-gold);
  transform: translateY(2px);
}

.rahma-scroll-indicator svg {
  width: 28px;
  height: 28px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Header Styling */
.rahma-header {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  gap: 0 !important;
  position: relative;
  z-index: 20;
}

.rahma-header > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.rahma-header.alignfull {
  max-width: 100% !important;
  width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.rahma-header > .wp-block-group {
  margin: 0 !important;
}

.rahma-header-banner {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  line-height: 0;
  background-color: #0d7c4e;
}

.rahma-header-banner.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.rahma-header-banner img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  max-width: 100% !important;
  margin: 0 auto;
}

.rahma-header .wp-block-image + * {
  margin-top: 0 !important;
}

/* Navigation Buttons */
.rahma-header .wp-block-navigation {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.rahma-header .wp-block-navigation__responsive-container {
  display: block !important;
  width: 100% !important;
}

.rahma-header .wp-block-navigation__responsive-container.is-menu-open {
  display: block !important;
}

.rahma-header .wp-block-navigation__responsive-container-open,
.rahma-header .wp-block-navigation__toggle {
  display: none !important;
}

.rahma-header .wp-block-navigation__container {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.rahma-header .wp-block-navigation-item {
  margin: 0 !important;
}

.rahma-header .wp-block-navigation .wp-block-navigation-item__content {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 600;
  border: 2px solid transparent;
  color: var(--rahma-white) !important;
  text-decoration: none;
}

.rahma-header .wp-block-navigation .wp-block-navigation-item__content:hover {
  background: var(--rahma-gold);
  color: var(--rahma-white) !important;
  border-color: var(--rahma-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rahma-header .wp-block-navigation .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
  background: var(--rahma-gold);
  color: var(--rahma-white) !important;
  border-color: var(--rahma-gold);
}

/* Navigation Bar */
.rahma-navbar {
  background: var(--rahma-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1000;
}

.rahma-navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.rahma-navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  flex-shrink: 0;
}

.rahma-navbar-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.rahma-navbar-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rahma-forest-green);
  letter-spacing: -0.02em;
}

.rahma-navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rahma-navbar-menu a {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--rahma-dark-text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.rahma-navbar-menu a:hover {
  color: var(--rahma-forest-green);
  background-color: rgba(13, 124, 78, 0.06);
}

.rahma-navbar-menu a.rahma-navbar-donate {
  color: var(--rahma-gold);
  font-weight: 700;
  position: relative;
}

.rahma-navbar-menu a.rahma-navbar-donate::after {
  content: "";
  position: absolute;
  bottom: 0.25rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--rahma-gold);
  border-radius: 1px;
}

.rahma-navbar-menu a.rahma-navbar-donate:hover {
  color: #d4900e;
  background-color: rgba(245, 166, 35, 0.08);
}

.rahma-navbar-menu a.rahma-navbar-donate:hover::after {
  background: #d4900e;
}

.rahma-navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.rahma-navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rahma-forest-green);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.rahma-navbar-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.rahma-navbar-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.rahma-navbar-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .rahma-navbar-title {
    display: none;
  }
}

@media (max-width: 768px) {
  .rahma-navbar-inner {
    padding: 0 1rem;
    height: 60px;
  }

  .rahma-navbar-logo img {
    width: 40px;
    height: 40px;
  }

  .rahma-navbar-toggle {
    display: flex;
  }

  .rahma-navbar-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--rahma-white);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .rahma-navbar-menu.is-open {
    max-height: 400px;
  }

  .rahma-navbar-menu a {
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--rahma-light-gray);
  }

  .rahma-navbar-menu a.rahma-navbar-donate {
    border-bottom: 1px solid var(--rahma-light-gray);
  }

  .rahma-navbar-menu a.rahma-navbar-donate::after {
    display: none;
  }
}

/* Navigation Button Styling */
.rahma-nav-buttons {
  display: flex !important;
}

.rahma-nav-buttons .wp-block-navigation__responsive-container {
  display: flex !important;
  position: static !important;
}

.rahma-nav-buttons .wp-block-navigation__responsive-container-open {
  display: none !important;
}

.rahma-nav-buttons .wp-block-navigation__responsive-container-content {
  display: flex !important;
  position: static !important;
}

.rahma-nav-buttons .wp-block-navigation__container {
  display: flex !important;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.rahma-nav-buttons .wp-block-navigation-item a {
  background: transparent;
  border: 2px solid var(--rahma-white);
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  color: var(--rahma-white) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.rahma-nav-buttons .wp-block-navigation-item a:hover {
  background: var(--rahma-white);
  color: var(--rahma-forest-green) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Sub Navigation */
.rahma-subnav {
  background: #f7f3ec;
  border-top: 1px solid #e1d8cc;
  border-bottom: 1px solid #e1d8cc;
  padding: 0.75rem 2rem;
  position: relative;
  z-index: 10;
}

.rahma-subnav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.rahma-subnav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--rahma-white);
  border: 2px solid var(--rahma-forest-green);
  flex-shrink: 0;
}

.rahma-subnav-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.rahma-subnav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
}

.rahma-subnav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--rahma-forest-green);
  background: var(--rahma-white);
  border: 2px solid var(--rahma-forest-green);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rahma-subnav-links a:hover {
  background: var(--rahma-forest-green);
  color: var(--rahma-white);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .rahma-subnav {
    padding: 0.75rem 1rem;
  }

  .rahma-subnav-inner {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .rahma-video-hero {
    height: 45vh;
  }

  .rahma-hero-video {
    object-position: center top;
  }
}

@media (max-width: 600px) {
  .rahma-footer {
    padding-bottom: 6rem !important;
  }
}

.rahma-notify-popup {
  z-index: 0;
}

/* Navigation */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: var(--rahma-white);
}

.wp-block-navigation .wp-block-navigation-item a {
  color: var(--rahma-white);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item a:hover {
  color: var(--rahma-gold);
}

/* Hero Section */
.rahma-hero {
  background: linear-gradient(135deg, #0d7c4e 0%, #0a5c39 100%);
  border-radius: 0;
  padding: 4rem 3rem !important;
  margin-top: 0 !important;
  margin-bottom: 3rem !important;
  position: relative;
  overflow: hidden;
  color: var(--rahma-white);
}

.rahma-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.1) 100%);
  pointer-events: none;
}

.rahma-donate-hero {
  background: linear-gradient(135deg, #0d7c4e 0%, #0a5c39 100%);
  text-align: center;
  padding-top: 6rem !important;
}

.rahma-donate-hero::before {
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.1) 100%);
}

.rahma-donate-hero .wp-block-paragraph {
  margin-left: auto;
  margin-right: auto;
}

.rahma-hero .wp-block-heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--rahma-white);
  margin-bottom: 1.5rem !important;
  margin-top: 0 !important;
}

.rahma-hero .wp-block-paragraph {
  color: var(--rahma-white);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  max-width: 900px;
}

.rahma-hero .wp-block-buttons {
  margin-top: 2rem !important;
  gap: 1rem;
}

.rahma-hero .wp-block-buttons .wp-block-button__link {
  border-radius: 4px;
  padding: 14px 32px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.rahma-hero .wp-block-button.has-gold-background-color .wp-block-button__link:hover {
  background: #d68d1b !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

/* Section Styling */
.rahma-section {
  padding: 4rem 2rem !important;
}

.rahma-section h2 {
  font-family: "Montserrat", sans-serif;
  color: var(--rahma-forest-green);
  font-weight: 700;
  margin-bottom: 2.5rem !important;
  margin-top: 0 !important;
  position: relative;
  padding-bottom: 0.75rem;
}

.rahma-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--rahma-gold);
}

.rahma-section h2.has-text-align-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.rahma-section .wp-block-columns {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.rahma-section .wp-block-column {
  margin-bottom: 2rem;
}

/* Card Styling */
.wp-block-columns {
  align-items: stretch !important;
}

.wp-block-columns .wp-block-column {
  display: flex !important;
  flex-direction: column;
  align-self: stretch !important;
}

.wp-block-columns .wp-block-column.is-vertically-aligned-top {
  align-self: stretch !important;
}

.wp-block-columns .wp-block-column > .wp-block-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rahma-card {
  border-radius: 8px;
  border: 2px solid var(--rahma-forest-green);
  padding: 2rem !important;
  background: var(--rahma-white);
  box-shadow: 0 2px 8px rgba(13, 124, 78, 0.1);
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  text-align: center;
  justify-content: center;
  height: 100%;
}

.rahma-card:hover {
  box-shadow: 0 4px 16px rgba(13, 124, 78, 0.2);
  transform: translateY(-4px);
}

.rahma-card h3 {
  color: var(--rahma-forest-green);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem !important;
  margin-top: 0 !important;
  font-size: 1.4rem;
  text-align: center;
}

.rahma-card p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
  flex-grow: 1;
  text-align: center;
}

.rahma-card-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin-top: 0.5rem !important;
  margin-right: auto !important;
  margin-bottom: 1rem !important;
  margin-left: auto !important;
  padding: 0 !important;
  object-fit: contain;
}

/* Donate Card Grid */
.rahma-donate-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.rahma-donate-card {
  flex: 0 0 250px;
  background: var(--rahma-white);
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rahma-donate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.rahma-donate-card--preferred {
  border-color: var(--rahma-forest-green);
  border-width: 2px;
}

.rahma-donate-card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rahma-forest-green);
  color: var(--rahma-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rahma-donate-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--rahma-forest-green);
}

.rahma-donate-card-icon svg {
  width: 100%;
  height: 100%;
}

.rahma-donate-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rahma-forest-green);
  margin: 0 0 0.75rem 0;
}

.rahma-donate-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.rahma-donate-card-content p {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.rahma-donate-card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--rahma-forest-green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rahma-donate-card-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.rahma-donate-card:has(.rahma-donate-card-link),
.rahma-donate-card--clickable {
  cursor: pointer;
}

.rahma-donate-card:has(.rahma-donate-card-link):hover .rahma-donate-card-link {
  color: var(--rahma-gold);
  text-decoration: underline;
}

@media (max-width: 800px) {
  .rahma-donate-card {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (max-width: 540px) {
  .rahma-donate-card {
    flex: 1 1 100%;
    padding: 1.5rem 1.25rem;
  }
}

.rahma-donate-other {
  text-align: center;
}

.rahma-donate-other .rahma-card {
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
}

.rahma-form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #f5f5f5;
  color: var(--rahma-dark-text);
  font-weight: 600;
  text-align: left;
}

.rahma-form-status.is-success {
  background: #e7f7ee;
  color: #0d7c4e;
}

.rahma-form-status.is-error {
  background: #fdecea;
  color: #b3261e;
}

.rahma-generic-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rahma-generic-form label {
  font-weight: 600;
  color: var(--rahma-dark-text);
}

.rahma-generic-form input[type="text"],
.rahma-generic-form input[type="email"],
.rahma-generic-form input[type="number"],
.rahma-generic-form select,
.rahma-generic-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
}

.rahma-generic-form textarea {
  resize: vertical;
}

.rahma-generic-form button[type="submit"] {
  align-self: flex-start;
  background: var(--rahma-forest-green);
  color: var(--rahma-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rahma-generic-form button[type="submit"]:hover {
  background: #0a5c39;
  transform: translateY(-1px);
}

/* Ensure columns have equal heights */
.wp-block-columns.are-vertically-aligned-top {
  align-items: stretch;
}

.wp-block-column {
  display: flex;
  flex-direction: column;
}

/* Footer Styling */
.rahma-footer {
  background: var(--rahma-forest-green);
  color: var(--rahma-white);
  padding: 3rem 2rem !important;
}

.rahma-footer .wp-block-columns {
  margin-bottom: 0 !important;
}

.rahma-footer .wp-block-column {
  padding: 0 1rem;
}

.rahma-footer a {
  color: var(--rahma-white);
  transition: color 0.3s ease;
  text-decoration: none;
}

.rahma-footer a:hover {
  color: var(--rahma-gold);
  text-decoration: underline;
}

.rahma-footer h3,
.rahma-footer h4 {
  color: var(--rahma-white);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem !important;
  margin-top: 0 !important;
}

.rahma-footer ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.rahma-footer ul li {
  margin-bottom: 0.5rem;
}

.rahma-footer .wp-block-separator {
  margin: 2rem auto !important;
  opacity: 0.3;
}

.rahma-footer p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Button Styling */
.wp-block-button__link {
  background: var(--rahma-gold);
  color: var(--rahma-white);
  border-radius: 4px;
  padding: 14px 32px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
}

.wp-block-button__link:hover {
  background: #d68d1b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--rahma-gold);
  color: var(--rahma-gold);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--rahma-gold);
  color: var(--rahma-white);
  transform: translateY(-2px);
}

/* Green Button Variant */
.has-forest-green-background-color {
  background-color: var(--rahma-forest-green) !important;
}

.has-forest-green-background-color:hover {
  background-color: #0a5c39 !important;
}

/* Accent Elements */
.accent-line {
  width: 60px;
  height: 3px;
  background: var(--rahma-gold);
  margin: 1rem 0;
}

/* Image Styling */
.wp-block-image img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Custom Form Template Integration */
.custom-form-container,
.success-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.custom-form-container h1,
.success-page-container h1 {
  font-family: "Montserrat", sans-serif;
  color: var(--rahma-forest-green);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.custom-form-container h2,
.success-page-container h2 {
  font-family: "Montserrat", sans-serif;
  color: var(--rahma-forest-green);
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.custom-form-container .form-section {
  background: var(--rahma-white);
  border: 2px solid var(--rahma-forest-green);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(13, 124, 78, 0.1);
}

.custom-form-container button[type="submit"],
.custom-form-container .pricing-option-btn,
.success-page-container .btn {
  background: var(--rahma-gold);
  color: var(--rahma-white);
  border: none;
  border-radius: 4px;
  padding: 14px 32px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-form-container button[type="submit"]:hover,
.custom-form-container .pricing-option-btn:hover,
.success-page-container .btn:hover {
  background: #d68d1b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.custom-form-container input[type="text"],
.custom-form-container input[type="email"],
.custom-form-container input[type="tel"],
.custom-form-container select,
.custom-form-container textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  background: white;
  transition: border-color 0.3s ease;
}

.custom-form-container input:focus,
.custom-form-container select:focus,
.custom-form-container textarea:focus {
  outline: none;
  border-color: var(--rahma-forest-green);
  box-shadow: 0 0 0 3px rgba(13, 124, 78, 0.1);
}

.custom-form-container label {
  color: var(--rahma-forest-green);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

/* Success page styling */
.success-icon {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon .checkmark {
  display: inline-block;
  width: 80px;
  height: 80px;
  line-height: 80px;
  background: var(--rahma-forest-green);
  color: white;
  border-radius: 50%;
  font-size: 3rem;
}

.order-summary,
.next-steps,
.contact-info {
  background: var(--rahma-white);
  border: 2px solid var(--rahma-forest-green);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(13, 124, 78, 0.1);
}

/* Buttons spacing */
.wp-block-buttons {
  gap: 1rem !important;
}

.wp-block-buttons .wp-block-button {
  margin: 0 !important;
}

/* Columns spacing */
.wp-block-columns {
  gap: 2rem;
}

/* Responsive */
@media (max-width: 782px) {
  .rahma-video-hero {
    height: 70vh;
  }
  
  .rahma-scroll-bar {
    padding: 1rem 0;
  }
  
  .rahma-scroll-indicator {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }
  
  .rahma-scroll-indicator svg {
    width: 24px;
    height: 24px;
  }
  
  .rahma-hero {
    padding: 2.5rem 1.5rem !important;
  }
  
  .rahma-section {
    padding: 2.5rem 1.5rem !important;
  }
  
  .rahma-card {
    padding: 1.5rem !important;
  }
  
  .rahma-footer {
    padding: 2rem 1.5rem !important;
  }
  
  .rahma-footer .wp-block-column {
    padding: 1rem 0;
  }
  
}

@media (min-width: 783px) and (max-width: 1200px) {
  .rahma-hero {
    padding: 3.5rem 2.5rem !important;
  }
}

/* Events Accordion */
.rahma-events-accordion {
  max-width: 1000px;
  margin: 0 auto;
}

.rahma-events-year {
  margin-bottom: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--rahma-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.rahma-events-year summary {
  padding: 1rem 1.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--rahma-forest-green);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.rahma-events-year summary::-webkit-details-marker {
  display: none;
}

.rahma-events-year summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rahma-gold);
  transition: transform 0.2s ease;
}

.rahma-events-year[open] summary::after {
  content: "−";
}

.rahma-events-year summary:hover {
  background-color: rgba(13, 124, 78, 0.05);
}

.rahma-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(13, 124, 78, 0.03);
}

.rahma-event-card {
  display: block;
  background: var(--rahma-white);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rahma-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.rahma-event-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.rahma-event-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rahma-forest-green) 0%, #0a5c39 100%);
  color: var(--rahma-white);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
}

.rahma-event-title {
  display: block;
  padding: 0.75rem 1rem;
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rahma-dark-text);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .rahma-events-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }

  .rahma-event-card img,
  .rahma-event-placeholder {
    height: 140px;
  }

  .rahma-event-title {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .rahma-events-year summary {
    font-size: 1.1rem;
    padding: 0.875rem 1.25rem;
  }
}

/* Notification Popup */
.rahma-notify-popup {
  position: fixed;
  bottom: 20px;
  right: 90px;
  z-index: 30;
  font-family: 'Open Sans', sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.rahma-notify-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.rahma-notify-toggle {
  padding: 0.875rem 1.5rem;
  border-radius: 8px 8px 0 0;
  background: var(--rahma-forest-green);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.rahma-notify-toggle:hover {
  background: #0a5c39;
}

.rahma-notify-toggle-text {
  display: inline;
}

.rahma-notify-icon-bell {
  display: none;
}

.rahma-notify-popup.is-open .rahma-notify-toggle {
  opacity: 0;
  pointer-events: none;
}

.rahma-notify-panel {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 400px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.25s ease;
  overflow: hidden;
  margin-bottom: 0;
}

.rahma-notify-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.rahma-notify-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.rahma-notify-close svg {
  width: 18px;
  height: 18px;
  color: white;
}

.rahma-notify-popup.is-open .rahma-notify-panel {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.rahma-notify-header {
  background: var(--rahma-forest-green);
  color: white;
  padding: 1rem 1.5rem 1.25rem;
}

.rahma-notify-header h3 {
  margin: 0 0 0.5rem 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.rahma-notify-header p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

.rahma-notify-form {
  padding: 1.25rem 1.5rem 1.5rem;
}

.rahma-notify-form *,
.rahma-notify-form *::before,
.rahma-notify-form *::after {
  box-sizing: border-box;
}

.rahma-notify-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.rahma-notify-field {
  margin-bottom: 1rem;
}

.rahma-notify-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
}

.rahma-notify-field input,
.rahma-notify-field select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.rahma-notify-field input:focus,
.rahma-notify-field select:focus {
  outline: none;
  border-color: var(--rahma-forest-green);
}

.rahma-notify-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--rahma-gold);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

.rahma-notify-submit:hover {
  background: #d68d1b;
}

/* Mobile: show icon instead of text */
@media (max-width: 600px) {
  .rahma-notify-popup {
    bottom: 20px;
    right: 80px;
  }

  .rahma-notify-toggle {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
  }

  .rahma-notify-toggle-text {
    display: none;
  }

  .rahma-notify-icon-bell {
    display: block;
    width: 26px;
    height: 26px;
  }

  .rahma-notify-panel {
    width: calc(100vw - 30px);
    right: -65px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .rahma-notify-row {
    grid-template-columns: 1fr;
  }
}
