:root {
  /* Color Palette */
  --color-bg: #fcfaf6;
  --color-green: #0f4a47;
  --color-green-light: #166460;
  --color-green-dark: #0a312f;
  --color-gold: #cda45e;
  --color-gold-hover: #b8904e;
  --color-crimson: #8b0000;
  --color-crimson-hover: #700000;
  --color-text: #2b3a39;
  --color-text-muted: #5e6f6d;
  --color-card-bg: #ffffff;
  --color-border: #e8e4db;
  
  /* Fonts */
  --font-title: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 74, 71, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 74, 71, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 74, 71, 0.15);
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 90px; /* Space for mobile floating bar */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 40px;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header styling */
.header {
  background-color: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-logo {
  height: 50px;
  width: auto;
}

.logo-text {
  height: 25px;
  width: auto;
  display: none; /* Show only on tablets and up */
}

@media (min-width: 480px) {
  .logo-text {
    display: block;
  }
}

/* Live stream badge */
.live-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ffebeb;
  border: 1px solid #ffd1d1;
  padding: 6px 14px;
  border-radius: 50px;
}

.live-pulse {
  width: 10px;
  height: 10px;
  background-color: #ff3b30;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

.live-text {
  color: #ff3b30;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
}

/* Live broadcast video section */
.live-section {
  padding: 25px 0 15px 0;
}

.stream-card {
  background-color: var(--color-green);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.stream-ratio-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #000;
}

.stream-ratio-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.stream-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 15px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Donation Ticker Bar */
.ticker-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-green-dark);
  border-block: 2px solid var(--color-gold);
  margin-bottom: 35px;
  overflow: hidden;
  padding: 8px 0;
}

.ticker-title {
  color: var(--color-gold);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  text-align: center;
  z-index: 2;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  height: 24px;
}

.ticker {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  padding-left: 20px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
}

.ticker-item strong {
  color: var(--color-gold);
  font-weight: 700;
  margin: 0 6px;
}

.ticker-msg {
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  font-size: 0.85rem;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Main Grid Layout */
.main-content {
  padding-bottom: 60px;
}

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

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

/* Cards style */
.info-card, .donation-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.info-card h1 {
  font-family: var(--font-title);
  color: var(--color-green);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.highlight-text {
  font-size: 1.15rem;
  color: var(--color-green-light);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}

.info-card p {
  color: var(--color-text-muted);
  margin-bottom: 15px;
  line-height: 1.7;
}

/* Gallery Slider Styles */
.gallery-wrapper {
  margin-top: 30px;
}

.section-title {
  font-family: var(--font-title);
  color: var(--color-green);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.gallery-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  background-color: #000;
  aspect-ratio: 16/10;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: 1;
}

.gallery-slide.active {
  opacity: 1;
  z-index: 2;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
}

.dot.active {
  background-color: var(--color-gold);
  transform: scale(1.2);
}

/* Donation Form Card */
.donation-card {
  border-top: 5px solid var(--color-green);
}

.card-title {
  font-family: var(--font-title);
  color: var(--color-green);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.card-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-green);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: #fcfcf9;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  transition: var(--transition-fast);
  outline: none;
}
.form-group textarea {
  resize: none;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
  border-color: var(--color-green-light);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 100, 96, 0.1);
}

/* Form Validation Hints & Errors */
.field-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 5px;
}

.field-error {
  display: block;
  font-size: 0.85rem;
  color: var(--color-crimson);
  margin-top: 6px;
  font-weight: 500;
}

/* Amount Presets Grid */
.amount-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.preset-btn {
  background-color: #f4f2ea;
  border: 1.5px solid transparent;
  color: var(--color-green);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.preset-btn:hover {
  background-color: var(--color-border);
}

.preset-btn.active {
  background-color: var(--color-green);
  color: white;
}

/* Custom amount field */
.custom-amount-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-amount-wrapper input {
  padding-right: 40px !important;
  font-weight: 700;
  font-size: 1.2rem !important;
  color: var(--color-green) !important;
  text-align: center;
}

.custom-amount-wrapper .currency-symbol {
  position: absolute;
  right: 18px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  background-color: var(--color-crimson);
  color: white;
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 15px 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  background-color: var(--color-crimson-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn.loading {
  background-color: var(--color-text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Sticky Action Bar (Mobile Footer) */
.sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
  z-index: 90;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05);
}

.sticky-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.whatsapp-sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  height: 48px;
}

.whatsapp-sticky-btn:hover {
  background-color: #20ba5a;
}

.icon-whatsapp {
  width: 20px;
  height: 20px;
}

.cta-sticky-btn {
  background-color: var(--color-crimson);
  color: white;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(139, 0, 0, 0.15);
  height: 48px;
}

.cta-sticky-btn:hover {
  background-color: var(--color-crimson-hover);
}

/* Hide sticky bar on large screens since form is visible */
@media (min-width: 992px) {
  .sticky-action-bar {
    display: none;
  }
}

/* Modal / Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 74, 71, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-card {
  background-color: white;
  border-radius: 20px;
  padding: 35px 30px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .success-card {
  transform: translateY(0);
}

.success-icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: #e6f7ed;
  color: #2ec4b6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.icon-success {
  width: 36px;
  height: 36px;
}

.success-card h3 {
  font-family: var(--font-title);
  color: var(--color-green);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.success-card p {
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.success-card strong {
  color: var(--color-crimson);
  font-size: 1.1rem;
}

.modal-sub {
  color: var(--color-text-muted) !important;
  font-size: 0.85rem !important;
  margin-bottom: 25px !important;
}

.close-modal-btn {
  width: 100%;
  background-color: var(--color-green);
  color: white;
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-modal-btn:hover {
  background-color: var(--color-green-light);
}

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

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}
