/* ==========================================================================
   Sejdah Foundation - Premium Modern Design Stylesheet (style.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans:ital,wght@0,400..700;1,400..700&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Bornomala';
  src: url('https://banglawebfonts.pages.dev/fonts/bornomala/bornomala-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bornomala';
  src: url('https://banglawebfonts.pages.dev/fonts/bornomala/bornomala-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html, body, #sejdah-homepage, p, h1, h2, h3, h4, h5, h6, a, span, button, input, textarea, select, label {
  font-family: 'Bornomala', 'Hind Siliguri', 'Ubuntu Sans', 'UbuntuSans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- Dynamic Transitions & Theme Variables --- */
:root,
#sejdah-homepage {
  --primary-gradient: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  --accent-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --white-glass: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(255, 255, 255, 0.4);
  --shadow-premium: 0 10px 30px -10px rgba(6, 78, 59, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-hover-premium: 0 25px 50px -12px rgba(2, 44, 34, 0.22);
}

/* Global Container */
.sjd-container,
#sejdah-homepage .sjd-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .sjd-container,
  #sejdah-homepage .sjd-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* --- Layout & Typography Utilities --- */
#sejdah-homepage .sjd-section-padding {
  padding: 120px 0;
}

#sejdah-homepage .sjd-text-center {
  text-align: center;
}

#sejdah-homepage .sjd-section-title {
  font-size: 2.75rem;
  background: linear-gradient(135deg, #064e3b 0%, #115e59 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

#sejdah-homepage .sjd-section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 60px auto;
  line-height: 1.7;
}

/* --- HERO & QUICK DONATE --- */
#sejdah-homepage .sjd-hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(2, 44, 34, 0.96) 0%, rgba(6, 95, 70, 0.92) 100%),
    url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=1470&auto=format&fit=crop') no-repeat center center/cover;
  color: white;
  padding: 220px 0 140px 0;
  overflow: hidden;
}

/* Add custom modern shape separator at bottom of Hero section */
#sejdah-homepage .sjd-hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: #f8fafc;
  clip-path: ellipse(60% 40px at 50% 40px);
}

#sejdah-homepage .sjd-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 10;
}

#sejdah-homepage .sjd-hero-content {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#sejdah-homepage .sjd-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(217, 119, 6, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#sejdah-homepage .sjd-hero-title {
  color: #ffffff;
  font-size: 3.75rem;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 24px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

#sejdah-homepage .sjd-hero-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.35rem;
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 400;
}

#sejdah-homepage .sjd-hero-buttons {
  display: flex;
  gap: 20px;
}

#sejdah-homepage .sjd-btn-white-outline,
.sjd-btn-white-outline {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

#sejdah-homepage .sjd-btn-white-outline:hover,
#sejdah-homepage .sjd-btn-white-outline:focus,
#sejdah-homepage .sjd-btn-white-outline:active,
.sjd-btn-white-outline:hover,
.sjd-btn-white-outline:focus,
.sjd-btn-white-outline:active {
  background-color: #ffffff !important;
  color: #064e3b !important;
  border-color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Quick Donate Widget - Redesigned as modern glassmorphism */
#sejdah-homepage .sjd-donate-widget {
  background: var(--white-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px 30px;
  color: var(--text-dark);
  box-shadow: var(--shadow-premium);
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#sejdah-homepage .sjd-widget-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 24px;
  text-align: center;
}

#sejdah-homepage .sjd-tab-header {
  display: flex;
  border-radius: 12px;
  background-color: rgba(6, 78, 59, 0.06);
  padding: 6px;
  margin-bottom: 24px;
  border: 1px solid rgba(6, 78, 59, 0.04);
}

#sejdah-homepage .sjd-tab-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-muted);
  transition: var(--transition);
}

#sejdah-homepage .sjd-tab-btn.active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(6, 78, 59, 0.2);
}

#sejdah-homepage .sjd-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

#sejdah-homepage .sjd-amount-btn {
  padding: 12px 6px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border: 2px solid rgba(6, 78, 59, 0.1);
  border-radius: 12px;
  background-color: white;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

#sejdah-homepage .sjd-amount-btn:hover,
#sejdah-homepage .sjd-amount-btn.active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.15);
}

#sejdah-homepage .sjd-custom-amount-wrapper {
  margin-bottom: 20px;
  display: none;
}

#sejdah-homepage .sjd-custom-amount-wrapper.show {
  display: block;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#sejdah-homepage .sjd-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

#sejdah-homepage .sjd-input-currency {
  position: absolute;
  left: 16px;
  font-weight: 700;
  color: var(--primary);
}

#sejdah-homepage .sjd-input-field {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 1.1rem;
  border: 2px solid rgba(6, 78, 59, 0.12);
  border-radius: 12px;
  outline: none;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.9);
}

#sejdah-homepage .sjd-input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.1);
  background-color: white;
}

#sejdah-homepage .sjd-widget-input-wrapper {
  margin-bottom: 20px;
}

#sejdah-homepage .sjd-widget-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.05rem;
  border: 2px solid rgba(6, 78, 59, 0.12);
  border-radius: 12px;
  outline: none;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.9);
}

#sejdah-homepage .sjd-widget-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.1);
  background-color: white;
}

#sejdah-homepage .sjd-anonymous-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 24px;
  user-select: none;
}

#sejdah-homepage .sjd-anonymous-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

#sejdah-homepage .sjd-btn-donate-submit {
  width: 100%;
  background: var(--accent-gradient);
  color: white;
  font-size: 1.2rem;
  padding: 16px;
  border-radius: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
  transition: var(--transition);
}

#sejdah-homepage .sjd-btn-donate-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.35);
}

#sejdah-homepage .sjd-payment-badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  opacity: 0.8;
}

#sejdah-homepage .sjd-payment-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- 2. Stats Section --- */
#sejdah-homepage .sjd-stats-section {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 20;
  margin-top: -30px;
}

#sejdah-homepage .sjd-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

#sejdah-homepage .sjd-stat-card {
  background: white;
  border-radius: 20px;
  padding: 35px 24px;
  box-shadow: var(--shadow-premium);
  transition: var(--transition);
  border: 1px solid rgba(6, 78, 59, 0.03);
  text-align: center;
}

#sejdah-homepage .sjd-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover-premium);
}

#sejdah-homepage .sjd-stat-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background-color: rgba(6, 78, 59, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--primary);
  transition: var(--transition);
}

#sejdah-homepage .sjd-stat-card:hover .sjd-stat-icon-wrapper {
  background-color: var(--primary);
  color: white;
  transform: rotateY(180deg);
}

#sejdah-homepage .sjd-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

#sejdah-homepage .sjd-stat-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* --- 3. Core Initiatives Section (Projects) --- */
#sejdah-homepage .sjd-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

#sejdah-homepage .sjd-project-card {
  background-color: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: none !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#sejdah-homepage .sjd-project-card:hover {
  box-shadow: var(--shadow-premium) !important;
  transform: none !important;
}

#sejdah-homepage .sjd-project-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

#sejdah-homepage .sjd-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none !important;
  transform: none !important;
}

#sejdah-homepage .sjd-project-card:hover .sjd-project-img {
  transform: none !important;
}

#sejdah-homepage .sjd-project-cat {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#sejdah-homepage .sjd-project-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#sejdah-homepage .sjd-project-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.4;
}

#sejdah-homepage .sjd-project-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.7;
}

#sejdah-homepage .sjd-project-btn-donate {
  width: 100%;
  text-align: center;
  background-color: var(--primary);
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  transition: var(--transition);
}

#sejdah-homepage .sjd-project-btn-donate:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(15, 118, 110, 0.2);
}

/* --- 4. Monthly Partner & Volunteer (CTA) Section --- */
#sejdah-homepage .sjd-cta-section,
.sjd-cta-section {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%) !important;
  color: #ffffff !important;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#sejdah-homepage .sjd-cta-section .sjd-section-title,
.sjd-cta-section .sjd-section-title,
.sjd-cta-section h2 {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}

#sejdah-homepage .sjd-cta-section .sjd-section-subtitle,
.sjd-cta-section .sjd-section-subtitle {
  color: #e2e8f0 !important;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Decorative background glowing spots for CTA */
#sejdah-homepage .sjd-cta-section::before,
.sjd-cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(217, 119, 6, 0.15);
  border-radius: 50%;
  filter: blur(80px);
}

#sejdah-homepage .sjd-cta-grid,
.sjd-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 10;
}

#sejdah-homepage .sjd-cta-card,
.sjd-cta-card {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px;
  padding: 45px 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: none !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#sejdah-homepage .sjd-cta-card:hover,
.sjd-cta-card:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: none !important;
}

#sejdah-homepage .sjd-cta-title,
.sjd-cta-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 14px;
  color: #fbbf24 !important;
}

#sejdah-homepage .sjd-cta-desc,
.sjd-cta-desc {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #f1f5f9 !important;
  opacity: 0.95;
  line-height: 1.7;
}

.sjd-cta-section .sjd-btn,
.sjd-cta-section .sjd-btn-primary {
  color: #ffffff !important;
}

.sjd-cta-section .sjd-btn-white-outline {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.sjd-cta-section .sjd-btn-white-outline:hover,
.sjd-cta-section .sjd-btn-white-outline:focus,
.sjd-cta-section .sjd-btn-white-outline:active {
  background-color: #ffffff !important;
  color: #064e3b !important;
  border-color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* --- 5. Media Gallery & Audit Report Section --- */
#sejdah-homepage .sjd-media-section {
  background-color: #f8fafc;
}

#sejdah-homepage .sjd-media-grid {
  display: block;
}

#sejdah-homepage .sjd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

#sejdah-homepage .sjd-gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 200px;
  box-shadow: var(--shadow-premium);
  transition: none !important;
}

#sejdah-homepage .sjd-gallery-item:hover {
  box-shadow: var(--shadow-premium) !important;
  transform: none !important;
}

#sejdah-homepage .sjd-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none !important;
  transform: none !important;
}

#sejdah-homepage .sjd-gallery-item:hover .sjd-gallery-img {
  transform: none !important;
}

#sejdah-homepage .sjd-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(2, 44, 34, 0.9));
  padding: 20px;
  color: white;
  font-size: 1rem;
  font-weight: 700;
}

#sejdah-homepage .sjd-audit-card {
  background-color: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#sejdah-homepage .sjd-audit-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 14px;
}

#sejdah-homepage .sjd-audit-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

#sejdah-homepage .sjd-pdf-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 28px;
  font-size: 1rem;
}

/* --- 6. FAQ Accordion Section --- */
#sejdah-homepage .sjd-faq-list {
  max-width: 850px;
  margin: 0 auto;
}

#sejdah-homepage .sjd-faq-item {
  background-color: white;
  border: 1px solid rgba(6, 78, 59, 0.08);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition);
}

#sejdah-homepage .sjd-faq-item:hover {
  border-color: rgba(6, 78, 59, 0.2);
  transform: translateY(-2px);
}

#sejdah-homepage .sjd-faq-question-btn {
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

#sejdah-homepage .sjd-faq-question-btn:hover {
  background-color: rgba(6, 78, 59, 0.03);
}

#sejdah-homepage .sjd-faq-arrow {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  transition: var(--transition);
}

#sejdah-homepage .sjd-faq-item.active .sjd-faq-arrow {
  transform: rotate(180deg);
}

#sejdah-homepage .sjd-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 28px;
  color: var(--text-dark);
  font-size: 1.05rem;
  border-top: 1px solid transparent;
  line-height: 1.7;
}

#sejdah-homepage .sjd-faq-item.active .sjd-faq-answer {
  border-color: rgba(0, 0, 0, 0.05);
  padding-top: 20px;
  padding-bottom: 24px;
}

/* --- Premium Modal (Volunteer Form) Styling --- */
.sjd-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.sjd-modal.show {
  display: flex !important;
}
.sjd-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
}
.sjd-modal-container {
  position: relative;
  background: #ffffff !important;
  border-radius: 5px !important;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid #e2e8f0;
  z-index: 1000000 !important;
  animation: sjdModalPopIn 0.25s ease-out;
}

@keyframes sjdModalPopIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sjd-modal-header {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sjd-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}
.sjd-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: var(--transition);
}
.sjd-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}
.sjd-modal-body {
  padding: 24px;
  background: #ffffff;
}
.sjd-form-group {
  margin-bottom: 16px;
}
.sjd-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.sjd-form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 5px !important;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: var(--transition);
}
.sjd-form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.15);
}

/* --- Keyframes for Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Media Queries (Responsive Design) --- */
@media (max-width: 1024px) {
  #sejdah-homepage .sjd-hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  #sejdah-homepage .sjd-hero-content {
    text-align: center;
  }

  #sejdah-homepage .sjd-badge {
    margin-left: auto;
    margin-right: auto;
  }

  #sejdah-homepage .sjd-hero-title {
    font-size: 2.25rem;
    line-height: 1.35;
  }

  #sejdah-homepage .sjd-section-title {
    font-size: 2rem;
    line-height: 1.35;
  }

  #sejdah-homepage .sjd-hero-buttons {
    justify-content: center;
  }

  #sejdah-homepage .sjd-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #sejdah-homepage .sjd-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #sejdah-homepage .sjd-cta-grid {
    grid-template-columns: 1fr;
  }

  #sejdah-homepage .sjd-media-grid {
    grid-template-columns: 1fr;
  }

  #sejdah-homepage .sjd-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #sejdah-homepage .sjd-hero-section {
    padding: 160px 0 80px 0;
  }

  #sejdah-homepage .sjd-section-padding {
    padding: 60px 0;
  }

  #sejdah-homepage .sjd-hero-title {
    font-size: 1.85rem;
    line-height: 1.35;
  }

  #sejdah-homepage .sjd-hero-desc {
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
  }

  #sejdah-homepage .sjd-section-title {
    font-size: 1.75rem;
    line-height: 1.35;
  }

  #sejdah-homepage .sjd-section-subtitle {
    margin-bottom: 35px;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  #sejdah-homepage .sjd-project-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  #sejdah-homepage .sjd-project-desc {
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
  }

  #sejdah-homepage .sjd-cta-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  #sejdah-homepage .sjd-cta-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
  }

  #sejdah-homepage .sjd-widget-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
  }

  #sejdah-homepage .sjd-form-label {
    font-size: 0.85rem;
  }

  #sejdah-homepage .sjd-donate-widget {
    padding: 30px 20px;
  }

  #sejdah-homepage .sjd-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  #sejdah-homepage .sjd-stat-card {
    padding: 20px 10px;
    border-radius: 16px;
  }

  #sejdah-homepage .sjd-stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  #sejdah-homepage .sjd-stat-icon-wrapper svg {
    width: 24px;
    height: 24px;
  }

  #sejdah-homepage .sjd-stat-number {
    font-size: 1.45rem;
    margin-bottom: 4px;
  }

  #sejdah-homepage .sjd-stat-label {
    font-size: 0.85rem;
  }

  #sejdah-homepage .sjd-projects-grid {
    grid-template-columns: 1fr;
  }

  #sejdah-homepage .sjd-gallery-grid {
    grid-template-columns: 1fr;
  }

  #sejdah-homepage .sjd-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sjd-logo-subtitle {
  font-family: 'Bornomala', 'Inter', sans-serif !important;
}
