/* ========================================================
   THAMARATUL-JANNAH MADRASA & EXPANSION PAGE STYLES
   Adheres to Brand Colors:
   - Primary Green: #176336 / #218348
   - Accent Gold: #F5CE29 / #D8B114
   - Warm Cream: #FAF7F0
   - Slate Heading: #182B1F
   - Mint Soft: #EAF4EE
   ======================================================== */

/* Prevent any horizontal page overflow on small devices */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative;
}

/* Base text wrapping across all cards and typography */
h1, h2, h3, h4, h5, h6, p, span, a, strong, small {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ==========================================================================
   1. TOP OPENING SECTION — "A PLACE WHERE LEARNING ALREADY BEGINS"
   ========================================================================= */
.madrasa-intro-area {
  position: relative;
  background: #FAF7F0;
  padding: 115px 0 50px;
  overflow: hidden;
  border-bottom: 1px solid rgba(23, 99, 54, 0.08);
}

.badge-operational {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(33, 131, 72, 0.12);
  color: #176336;
  border: 1px solid rgba(33, 131, 72, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: clamp(11.5px, 2.5vw, 13px);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
  max-width: 100%;
}
.badge-operational i {
  color: #218348;
  font-size: 14px;
}
.badge-operational.pulse::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #218348;
  border-radius: 50%;
  animation: pulseOperational 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseOperational {
  0% { box-shadow: 0 0 0 0 rgba(33, 131, 72, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(33, 131, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(33, 131, 72, 0); }
}

.intro-pre-tag {
  display: inline-block;
  background: #EAF4EE;
  color: #176336;
  font-size: clamp(11px, 2.5vw, 13px);
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.intro-main-title {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: clamp(26px, 5.5vw, 42px);
  font-weight: 700;
  color: #182B1F;
  line-height: 1.25;
  margin-bottom: 18px;
}

.intro-lead-text {
  font-size: clamp(15px, 3.2vw, 17px);
  line-height: 1.7;
  color: #4A5C50;
  max-width: 860px;
  margin: 0 auto 26px;
}

/* Uniform Action Buttons Below Intro Heading */
.intro-quick-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 32px !important;
}

.intro-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 250px !important;
  height: 52px !important;
  padding: 0 20px !important;
  border-radius: 50px !important;
  box-sizing: border-box !important;
  font-family: 'Quicksand', sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  letter-spacing: 0.2px !important;
  line-height: 1 !important;
  gap: 9px !important;
  box-shadow: 0 4px 14px rgba(24, 43, 31, 0.08) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.intro-action-btn i {
  font-size: 15px !important;
  flex-shrink: 0 !important;
}

.intro-action-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(24, 43, 31, 0.16) !important;
}

/* Color Variant 1: Forest Green */
.intro-action-btn.btn-theme-green {
  background: #176336 !important;
  color: #ffffff !important;
  border: 2px solid #176336 !important;
}
.intro-action-btn.btn-theme-green i {
  color: #F5CE29 !important;
}
.intro-action-btn.btn-theme-green:hover {
  background: #0F4525 !important;
  border-color: #0F4525 !important;
  color: #ffffff !important;
}

/* Color Variant 2: Clean White / Green Border */
.intro-action-btn.btn-theme-white {
  background: #ffffff !important;
  color: #176336 !important;
  border: 2px solid #176336 !important;
}
.intro-action-btn.btn-theme-white i {
  color: #176336 !important;
}
.intro-action-btn.btn-theme-white:hover {
  background: #EAF4EE !important;
  border-color: #176336 !important;
  color: #176336 !important;
}

/* Color Variant 3: Vibrant Accent Gold */
.intro-action-btn.btn-theme-gold {
  background: #F5CE29 !important;
  color: #176336 !important;
  border: 2px solid #F5CE29 !important;
}
.intro-action-btn.btn-theme-gold i {
  color: #176336 !important;
}
.intro-action-btn.btn-theme-gold:hover {
  background: #D8B114 !important;
  border-color: #D8B114 !important;
  color: #176336 !important;
}

/* Responsive Intro Hero Photo Bar */
.intro-authentic-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(24, 43, 31, 0.1);
  border: 4px solid #ffffff;
  margin-top: 15px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.intro-authentic-banner img {
  width: 100%;
  height: clamp(220px, 42vw, 400px);
  object-fit: cover;
  display: block;
}
.intro-banner-caption {
  position: absolute;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: linear-gradient(to top, rgba(10, 24, 15, 0.88) 0%, rgba(10, 24, 15, 0.45) 55%, transparent 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 0 18px 18px !important;
  padding: 36px 18px 10px !important;
  color: #ffffff !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: left !important;
  gap: 8px !important;
  box-shadow: none !important;
  z-index: 2;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.intro-banner-caption i {
  color: #F5CE29 !important;
  font-size: 14px !important;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.intro-banner-caption span {
  font-size: clamp(12.5px, 2.5vw, 14.5px) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.3px !important;
  text-align: left !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
}

/* ==========================================================================
   2. SECTION HEADINGS & COMMONS
   ========================================================================== */
.madrasa-section-title {
  margin-bottom: 36px;
}
.madrasa-section-title .pre-tag {
  display: inline-block;
  background: #EAF4EE;
  color: #176336;
  font-size: clamp(11px, 2.5vw, 13px);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.madrasa-section-title h2 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 700;
  color: #182B1F;
  margin-bottom: 14px;
  line-height: 1.3;
}
.madrasa-section-title p.lead-text {
  font-size: clamp(14px, 3vw, 16px);
  line-height: 1.65;
  color: #4A5C50;
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   3. CURRICULUM & CLASSES CARDS
   ========================================================================== */
.curriculum-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #EAF4EE;
}
.curriculum-category-header .cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cat-ecde .cat-icon {
  background: #FFF9E6;
  color: #D4A911;
}
.cat-islamic .cat-icon {
  background: #EAF4EE;
  color: #176336;
}
.curriculum-category-header h3 {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  margin: 0;
  color: #182B1F;
}

/* ==========================================================================
   MODERN COLORFUL MORPHING CARDS WITH MOVING DOTTED ORBIT
   ========================================================================== */

/* Base SVG Moving Dots Orbit */
.card-dots-orbit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.dots-rect {
  x: 2px;
  y: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  rx: 26px;
  ry: 16px;
  fill: none;
  stroke: var(--dot-color, #218348);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 0.1 13;
  animation: none !important;
  stroke-dashoffset: 0 !important;
  transition: rx 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), 
              ry 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), 
              stroke 0.3s ease, 
              stroke-width 0.3s ease;
}

/* 1. Islamic Education & Madrasa Levels Cards */
.class-program-card {
  position: relative;
  border-radius: 26px 14px 26px 14px !important;
  border: none !important;
  outline: none !important;
  padding: clamp(22px, 4.5vw, 28px) clamp(18px, 4vw, 24px) !important;
  margin-bottom: 24px;
  height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  cursor: pointer;
  z-index: 1;
}

.class-program-card > *:not(.card-dots-orbit) {
  position: relative;
  z-index: 3;
}

.class-program-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-radius: 14px 32px 14px 32px !important;
}

.class-program-card:hover .dots-rect {
  rx: 14px;
  ry: 32px;
  stroke-width: 2.8;
}

/* Theme 1: Mint & Emerald */
.class-program-card.card-theme-mint {
  --dot-color: #218348;
  background: linear-gradient(to top, rgba(33, 131, 72, 0.16) 0%, rgba(33, 131, 72, 0.04) 45%, #ffffff 100%) !important;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.95), 
              inset 0 -10px 24px rgba(33, 131, 72, 0.12), 
              0 8px 24px rgba(24, 43, 31, 0.06) !important;
}
.class-program-card.card-theme-mint:hover {
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 1), 
              inset 0 -14px 30px rgba(33, 131, 72, 0.22), 
              0 18px 36px rgba(23, 99, 54, 0.16) !important;
}

/* Theme 2: Golden Amber & Sunshine */
.class-program-card.card-theme-amber {
  --dot-color: #D4A911;
  background: linear-gradient(to top, rgba(245, 206, 41, 0.24) 0%, rgba(245, 206, 41, 0.05) 45%, #ffffff 100%) !important;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.95), 
              inset 0 -10px 24px rgba(245, 206, 41, 0.16), 
              0 8px 24px rgba(24, 43, 31, 0.06) !important;
}
.class-program-card.card-theme-amber:hover {
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 1), 
              inset 0 -14px 30px rgba(245, 206, 41, 0.28), 
              0 18px 36px rgba(212, 169, 17, 0.18) !important;
}

/* Theme 3: Sky Ocean & Cyan */
.class-program-card.card-theme-cyan {
  --dot-color: #0284C7;
  background: linear-gradient(to top, rgba(14, 165, 233, 0.18) 0%, rgba(14, 165, 233, 0.04) 45%, #ffffff 100%) !important;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.95), 
              inset 0 -10px 24px rgba(14, 165, 233, 0.14), 
              0 8px 24px rgba(24, 43, 31, 0.06) !important;
}
.class-program-card.card-theme-cyan:hover {
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 1), 
              inset 0 -14px 30px rgba(14, 165, 233, 0.25), 
              0 18px 36px rgba(2, 132, 199, 0.18) !important;
}

/* Theme 4: Violet Royal & Lilac */
.class-program-card.card-theme-purple {
  --dot-color: #9333EA;
  background: linear-gradient(to top, rgba(147, 51, 234, 0.16) 0%, rgba(147, 51, 234, 0.04) 45%, #ffffff 100%) !important;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.95), 
              inset 0 -10px 24px rgba(147, 51, 234, 0.12), 
              0 8px 24px rgba(24, 43, 31, 0.06) !important;
}
.class-program-card.card-theme-purple:hover {
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 1), 
              inset 0 -14px 30px rgba(147, 51, 234, 0.22), 
              0 18px 36px rgba(147, 51, 234, 0.16) !important;
}

/* Badges */
.class-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
  letter-spacing: 0.3px;
}
.badge-islamic {
  background: #EAF4EE;
  color: #176336;
}
.badge-amber {
  background: #FFF9E6;
  color: #8C6F00;
}
.badge-cyan {
  background: #E0F2FE;
  color: #0369A1;
}
.badge-purple {
  background: #F3E8FF;
  color: #7E22CE;
}

.class-program-card h4 {
  font-size: clamp(16.5px, 3.5vw, 19px);
  font-weight: 700;
  color: #182B1F;
  margin-bottom: 10px;
}
.class-program-card p {
  font-size: clamp(13px, 2.8vw, 14px);
  line-height: 1.6;
  color: #4D5E53;
  margin-bottom: 14px;
  flex-grow: 1;
}
.class-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed rgba(24, 43, 31, 0.12);
  padding-top: 12px;
}
.class-highlights li {
  font-size: 13px;
  color: #2A3E31;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.class-highlights li i {
  color: #218348;
}
.card-theme-amber .class-highlights li i {
  color: #D4A911;
}
.card-theme-cyan .class-highlights li i {
  color: #0284C7;
}
.card-theme-purple .class-highlights li i {
  color: #9333EA;
}

/* ==========================================================================
   4. CLASSROOM MEDIA & VIDEOS
   ========================================================================== */
.classroom-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.classroom-media-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(23, 99, 54, 0.12);
  box-shadow: 0 4px 14px rgba(24, 43, 31, 0.05);
}
.classroom-media-card img {
  width: 100%;
  height: clamp(180px, 35vw, 220px);
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  cursor: pointer;
}
.classroom-media-card:hover img {
  transform: scale(1.02);
}
.classroom-media-card video {
  width: 100%;
  height: clamp(180px, 35vw, 220px);
  object-fit: cover;
  display: block;
  background: #000000;
}
.media-caption-bar {
  padding: 12px 14px;
  background: #ffffff;
}
.media-caption-bar strong {
  display: block;
  font-size: clamp(13px, 3vw, 14.5px);
  color: #182B1F;
  margin-bottom: 2px;
}
.media-caption-bar span {
  font-size: 12px;
  color: #6C7D72;
}

/* ==========================================================================
   5. WHY EXPANSION IS NECESSARY — CARDS
   ========================================================================== */
.need-card {
  position: relative;
  border-radius: 28px 14px 28px 14px !important;
  border: none !important;
  outline: none !important;
  border-left: none !important;
  padding: clamp(22px, 4.5vw, 28px) !important;
  margin-bottom: 22px;
  height: calc(100% - 22px);
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  cursor: pointer;
  z-index: 1;
}

.need-card > *:not(.card-dots-orbit) {
  position: relative;
  z-index: 3;
}

.need-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-radius: 14px 34px 14px 34px !important;
}

.need-card:hover .dots-rect {
  rx: 14px;
  ry: 34px;
  stroke-width: 2.8;
}

.need-card .need-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  transition: transform 0.35s ease;
}

.need-card:hover .need-icon {
  transform: scale(1.1) rotate(4deg);
}

/* Need Theme 1: Vibrant Orange */
.need-card.need-theme-orange {
  --dot-color: #EA580C;
  background: linear-gradient(to top, rgba(234, 88, 12, 0.16) 0%, rgba(234, 88, 12, 0.03) 45%, #ffffff 100%) !important;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.95), 
              inset 0 -10px 24px rgba(234, 88, 12, 0.12), 
              0 8px 24px rgba(24, 43, 31, 0.06) !important;
}
.need-card.need-theme-orange:hover {
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 1), 
              inset 0 -14px 30px rgba(234, 88, 12, 0.22), 
              0 18px 36px rgba(234, 88, 12, 0.16) !important;
}
.need-card.need-theme-orange .need-icon {
  background: #FFEDD5;
  color: #C2410C;
}

/* Need Theme 2: Warm Coral / Crimson */
.need-card.need-theme-coral {
  --dot-color: #E11D48;
  background: linear-gradient(to top, rgba(225, 29, 72, 0.15) 0%, rgba(225, 29, 72, 0.03) 45%, #ffffff 100%) !important;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.95), 
              inset 0 -10px 24px rgba(225, 29, 72, 0.12), 
              0 8px 24px rgba(24, 43, 31, 0.06) !important;
}
.need-card.need-theme-coral:hover {
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 1), 
              inset 0 -14px 30px rgba(225, 29, 72, 0.22), 
              0 18px 36px rgba(225, 29, 72, 0.16) !important;
}
.need-card.need-theme-coral .need-icon {
  background: #FFE4E6;
  color: #BE123C;
}

/* Need Theme 3: Indigo / Royal Blue */
.need-card.need-theme-indigo {
  --dot-color: #4F46E5;
  background: linear-gradient(to top, rgba(79, 70, 229, 0.15) 0%, rgba(79, 70, 229, 0.03) 45%, #ffffff 100%) !important;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.95), 
              inset 0 -10px 24px rgba(79, 70, 229, 0.12), 
              0 8px 24px rgba(24, 43, 31, 0.06) !important;
}
.need-card.need-theme-indigo:hover {
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 1), 
              inset 0 -14px 30px rgba(79, 70, 229, 0.22), 
              0 18px 36px rgba(79, 70, 229, 0.16) !important;
}
.need-card.need-theme-indigo .need-icon {
  background: #EEF2FF;
  color: #4338CA;
}

/* Need Theme 4: Forest Emerald */
.need-card.need-theme-emerald {
  --dot-color: #059669;
  background: linear-gradient(to top, rgba(5, 150, 105, 0.16) 0%, rgba(5, 150, 105, 0.03) 45%, #ffffff 100%) !important;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.95), 
              inset 0 -10px 24px rgba(5, 150, 105, 0.12), 
              0 8px 24px rgba(24, 43, 31, 0.06) !important;
}
.need-card.need-theme-emerald:hover {
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 1), 
              inset 0 -14px 30px rgba(5, 150, 105, 0.22), 
              0 18px 36px rgba(5, 150, 105, 0.16) !important;
}
.need-card.need-theme-emerald .need-icon {
  background: #D1FAE5;
  color: #047857;
}

.need-card h5 {
  font-size: clamp(16px, 3.5vw, 17.5px);
  font-weight: 700;
  color: #182B1F;
  margin-bottom: 8px;
}
.need-card p {
  font-size: clamp(13px, 2.8vw, 14px);
  color: #4D5E53;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   6. PROJECT IDENTIFICATION CARD
   ========================================================================== */
.project-meta-card {
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(20px, 5vw, 28px);
  border: 1px solid rgba(23, 99, 54, 0.12);
  box-shadow: 0 8px 24px rgba(24, 43, 31, 0.06);
}
.project-meta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F0F4F1;
}
.meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.meta-item .meta-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #EAF4EE;
  color: #176336;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.meta-item .meta-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #7A8B80;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.meta-item .meta-value {
  font-size: clamp(13.5px, 3vw, 15px);
  font-weight: 700;
  color: #182B1F;
}

/* ==========================================================================
   7. GREEN SHAPES & BANNERS — STRICT TEXT VISIBILITY (WHITE OR YELLOW ONLY)
   ========================================================================== */
.milestones-stat-banner {
  background: linear-gradient(135deg, #176336 0%, #0F4525 100%) !important;
  color: #ffffff !important;
  border-radius: 20px;
  padding: clamp(22px, 5vw, 36px);
  margin-bottom: 36px;
  border: 2px solid #F5CE29;
  box-shadow: 0 12px 30px rgba(23, 99, 54, 0.2);
}

/* Explicit rule: ensure all text, paragraphs, headings in green banner are white or yellow */
.milestones-stat-banner,
.milestones-stat-banner p,
.milestones-stat-banner span,
.milestones-stat-banner div,
.milestones-stat-banner h1,
.milestones-stat-banner h2,
.milestones-stat-banner h3,
.milestones-stat-banner h4,
.milestones-stat-banner h5,
.milestones-stat-banner h6 {
  color: #ffffff !important;
}

.milestones-stat-banner .stat-label {
  font-size: clamp(11.5px, 2.5vw, 13.5px);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #F5CE29 !important;
  font-weight: 800;
  margin-bottom: 6px;
}

.milestones-stat-banner .stat-number {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: clamp(26px, 6vw, 42px);
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.15;
  margin-bottom: 12px;
}

/* USER REQUIREMENT: Text near footer info must be crisp white */
.milestones-stat-banner .milestones-highlight-text {
  font-size: clamp(13.5px, 2.8vw, 15px);
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

.milestone-item-row {
  background: rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.milestone-item-row .milestone-desc {
  font-size: clamp(13px, 2.8vw, 14.5px);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.milestone-item-row .milestone-desc i {
  color: #F5CE29 !important;
  font-size: 15px;
  flex-shrink: 0;
}
.milestone-item-row .milestone-amount {
  font-size: clamp(14px, 3.2vw, 16.5px);
  font-weight: 800;
  color: #F5CE29 !important;
  white-space: nowrap;
}

/* Construction Gallery Grid */
.construction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.construction-thumb-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(23, 99, 54, 0.12);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.construction-thumb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(24, 43, 31, 0.1);
  border-color: #218348;
}
.construction-thumb-card img {
  width: 100%;
  height: clamp(160px, 32vw, 190px);
  object-fit: cover;
  display: block;
}
.construction-thumb-card .thumb-caption {
  padding: 10px 12px;
  background: #ffffff;
}
.construction-thumb-card .thumb-caption h6 {
  font-size: 13px;
  font-weight: 700;
  color: #182B1F;
  margin: 0 0 2px 0;
  line-height: 1.3;
}
.construction-thumb-card .thumb-caption small {
  font-size: 11px;
  color: #6A7B70;
}
.thumb-zoom-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(23, 99, 54, 0.88);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0.9;
}

/* ==========================================================================
   8. ARCHITECTURAL RENDERS & BLUEPRINTS
   ========================================================================== */
.render-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(23, 99, 54, 0.12);
  box-shadow: 0 6px 20px rgba(24, 43, 31, 0.06);
  margin-bottom: 20px;
}
.render-card img {
  width: 100%;
  height: clamp(200px, 36vw, 260px);
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.render-card .render-info {
  padding: 16px;
}
.render-card .render-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: #176336;
  background: #EAF4EE;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.render-card h5 {
  font-size: clamp(16px, 3.5vw, 18px);
  font-weight: 700;
  color: #182B1F;
  margin-bottom: 6px;
}
.render-card p {
  font-size: clamp(12.5px, 2.6vw, 13.5px);
  color: #55665B;
  margin: 0;
}

.blueprint-showcase-box {
  background: #ffffff;
  border-radius: 18px;
  border: 2px dashed rgba(23, 99, 54, 0.25);
  padding: clamp(16px, 4vw, 24px);
  text-align: center;
  margin-top: 24px;
}
.blueprint-showcase-box img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

/* ==========================================================================
   9. FINANCIAL REQUIREMENTS & TABLES (MOBILE-OPTIMIZED)
   ========================================================================== */
.target-counter-box {
  background: #FAF7F0;
  border-radius: 16px;
  padding: clamp(18px, 4vw, 24px);
  text-align: center;
  border: 1px solid rgba(23, 99, 54, 0.15);
}
.target-counter-box .target-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #176336;
  margin-bottom: 6px;
}
.target-counter-box .target-val {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: clamp(24px, 5.5vw, 36px);
  font-weight: 700;
  color: #176336;
  line-height: 1.2;
}
.target-counter-box .target-sub {
  font-size: 12.5px;
  color: #6C7D72;
  margin-top: 6px;
}

.financial-table-responsive {
  width: 100% !important;
  border-radius: 14px;
  border: 1px solid rgba(23, 99, 54, 0.12);
  background: #ffffff;
  overflow: hidden;
}
.financial-table {
  width: 100% !important;
  margin: 0;
  border-collapse: collapse;
}
.financial-table th {
  background: #176336;
  color: #ffffff !important;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.financial-table td {
  padding: 12px 14px;
  font-size: 13.5px;
  color: #2A3E31;
  border-bottom: 1px solid #EEF3EF;
}
.financial-table tr:hover td {
  background: #FAF7F0;
}
.financial-table .row-total td {
  background: #FFF9E6;
  font-weight: 800;
  color: #176336;
  font-size: clamp(14px, 3.2vw, 16px);
  border-top: 2px solid #F5CE29;
}

/* Mobile Card-Style Transformation (No Horizontal Scrolling) */
@media (max-width: 767px) {
  .financial-table-responsive {
    border: none !important;
    background: transparent !important;
    overflow: visible !important;
  }
  
  .financial-table,
  .financial-table tbody {
    display: block !important;
    width: 100% !important;
  }

  .financial-table thead {
    display: none !important; /* Hide standard headers on mobile */
  }

  .financial-table tr {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid rgba(23, 99, 54, 0.15) !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
    padding: 14px 16px !important;
    box-shadow: 0 4px 12px rgba(24, 43, 31, 0.04) !important;
  }

  .financial-table tr td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
  }

  /* Phase Badge at Top */
  .financial-table tr td.col-phase {
    display: inline-block !important;
    width: auto !important;
    background: #EAF4EE !important;
    color: #176336 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
  }

  /* Description & Works */
  .financial-table tr td.col-desc {
    margin-bottom: 10px !important;
  }
  .financial-table tr td.col-desc strong {
    display: block !important;
    font-size: 15px !important;
    color: #182B1F !important;
    margin-bottom: 4px !important;
  }
  .financial-table tr td.col-desc small {
    display: block !important;
    font-size: 12.5px !important;
    color: #5A6D60 !important;
    line-height: 1.45 !important;
  }

  /* Amount at Bottom */
  .financial-table tr td.col-amount {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 10px !important;
    border-top: 1px dashed rgba(23, 99, 54, 0.12) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #176336 !important;
  }
  .financial-table tr td.col-amount::before {
    content: "Estimated Cost:";
    font-size: 12px;
    font-weight: 600;
    color: #6C7D72;
  }

  /* Special Treatment for Total Row */
  .financial-table tr.row-total {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CD 100%) !important;
    border: 2px solid #F5CE29 !important;
    padding: 16px !important;
  }
  .financial-table tr.row-total td {
    display: block !important;
    text-align: center !important;
  }
  .financial-table tr.row-total td.col-total-label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #856404 !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
  }
  .financial-table tr.row-total td.col-total-val {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #176336 !important;
    border: none !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   BLINKING IMPORTANT PROPOSAL NAVIGATION LINK (Yellow -> Green -> Black)
   ========================================================================== */
@keyframes proposalColorBlink {
  0%, 100% {
    color: #176336 !important; /* Brand Deep Green */
    text-shadow: 0 0 3px rgba(23, 99, 54, 0.3);
  }
  33% {
    color: #D4A911 !important; /* Vibrant Warm Yellow */
    text-shadow: 0 0 5px rgba(245, 206, 41, 0.5);
  }
  66% {
    color: #000000 !important; /* Bold Solid Black */
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  }
}

@keyframes proposalBadgeBlink {
  0%, 100% {
    background-color: #176336 !important;
    color: #ffffff !important;
  }
  33% {
    background-color: #F5CE29 !important;
    color: #182B1F !important;
  }
  66% {
    background-color: #000000 !important;
    color: #ffffff !important;
  }
}

.nav-proposal-blink,
.nav-proposal-blink span,
.nav-proposal-blink i {
  animation: proposalColorBlink 2.2s infinite ease-in-out !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
}

.mobile-nav-link.nav-proposal-blink {
  background: rgba(245, 206, 41, 0.14) !important;
  border: 1.5px dashed #D4A911 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  margin: 6px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.proposal-important-badge {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 20px !important;
  margin-left: auto !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  animation: proposalBadgeBlink 2.2s infinite ease-in-out !important;
}

.nav-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  animation: proposalBadgeBlink 2.2s infinite ease-in-out !important;
}

/* ==========================================================================
   10. SUPPORT & DONATION CARD (GREEN SHAPE — ALL TEXT WHITE/YELLOW)
   ========================================================================== */
.donation-card-modern {
  background: linear-gradient(145deg, #176336 0%, #0D3E21 100%) !important;
  color: #ffffff !important;
  border-radius: 20px;
  padding: clamp(22px, 5vw, 38px);
  border: 2px solid #F5CE29;
  box-shadow: 0 16px 40px rgba(23, 99, 54, 0.25);
  position: relative;
  overflow: hidden;
}
/* ==========================================================================
   10. SUPPORT & DONATION CARD — FLAWLESS UI REDESIGN
   ========================================================================== */
.donation-card-modern {
  background: linear-gradient(145deg, #176336 0%, #0D3E21 100%) !important;
  color: #ffffff !important;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 44px);
  border: 2px solid #F5CE29;
  box-shadow: 0 20px 48px rgba(23, 99, 54, 0.3);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.donation-card-modern,
.donation-card-modern h2,
.donation-card-modern p,
.donation-card-modern span,
.donation-card-modern strong {
  color: #ffffff !important;
}

/* Beautiful Glassmorphism Payment Tiles */
.mpesa-payment-tile {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(245, 206, 41, 0.35) !important;
  border-radius: 18px !important;
  padding: clamp(18px, 4vw, 24px) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease !important;
}
.mpesa-payment-tile:hover {
  border-color: #F5CE29 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-2px);
}

.mpesa-payment-tile .tile-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  padding-bottom: 12px !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.mpesa-logo-badge {
  background: #00A859 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.6px !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  display: inline-block !important;
  line-height: 1.2 !important;
}
.mpesa-logo-badge.bg-gold {
  background: #D4A911 !important;
}

.tile-tag {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  color: #F5CE29 !important;
  text-transform: uppercase !important;
}

.tile-badge-status {
  font-size: 11.5px !important;
  color: #9DE7B4 !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-left: auto !important;
}

.mpesa-payment-tile .tile-body {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.tile-field-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.tile-field-meta .tile-label {
  font-size: 12px !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  margin: 0 !important;
}

.tile-field-meta .tile-code {
  font-family: 'Fredoka', 'Quicksand', monospace, sans-serif !important;
  font-size: clamp(22px, 3.2vw, 30px) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 1.5px !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

/* Explicit Button Styling (Overrides global button { width: 100% } firmly) */
.mpesa-copy-btn,
button.mpesa-copy-btn,
.btn-copy-field,
button.btn-copy-field {
  width: auto !important;
  max-width: fit-content !important;
  min-width: 135px !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  background: #F5CE29 !important;
  color: #176336 !important;
  border: none !important;
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.mpesa-copy-btn:hover,
.btn-copy-field:hover {
  background: #ffffff !important;
  color: #176336 !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
}
.mpesa-copy-btn.copied,
.btn-copy-field.copied {
  background: #218348 !important;
  color: #ffffff !important;
}

/* Step-by-step instructions strip inside donation card */
.mpesa-steps-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 12px !important;
  background: rgba(0, 0, 0, 0.22) !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.step-strip-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: #ffffff !important;
}
.step-strip-item .step-num {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #F5CE29 !important;
  color: #176336 !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* Verified Account Information Box */
.verified-account-box {
  text-align: center !important;
  padding: 18px 20px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
}
.verified-account-box p {
  font-size: clamp(13px, 2.7vw, 14.5px) !important;
  color: #ffffff !important;
  margin: 0 0 16px 0 !important;
}
.verified-account-box p strong {
  color: #F5CE29 !important;
}

/* ==========================================================================
   11. SADAQAH JARIYAH & APPEAL
   ========================================================================== */
.sadaqah-card {
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid rgba(23, 99, 54, 0.12);
  box-shadow: 0 10px 30px rgba(24, 43, 31, 0.06);
  text-align: center;
}
.hadith-quote-mark {
  font-size: clamp(28px, 6vw, 36px);
  color: #F5CE29;
  margin-bottom: 10px;
}
.hadith-text {
  font-size: clamp(16px, 3.8vw, 20px);
  font-style: italic;
  line-height: 1.6;
  color: #182B1F;
  margin-bottom: 14px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.hadith-ref {
  font-size: 13px;
  font-weight: 700;
  color: #176336;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  display: inline-block;
  background: #EAF4EE;
  padding: 4px 12px;
  border-radius: 20px;
}
.sadaqah-reflection {
  font-size: clamp(13.5px, 2.8vw, 15.5px);
  line-height: 1.65;
  color: #4D5E53;
  max-width: 800px;
  margin: 0 auto;
}

.appeal-banner {
  background: linear-gradient(135deg, #FAF7F0 0%, #EAF4EE 100%);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 40px);
  border: 2px solid rgba(33, 131, 72, 0.2);
  text-align: center;
}
.appeal-banner h3 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: clamp(22px, 5vw, 30px);
  color: #182B1F;
  margin-bottom: 14px;
}
.appeal-banner p {
  font-size: clamp(14px, 3vw, 16px);
  line-height: 1.7;
  color: #384A3E;
  max-width: 760px;
  margin: 0 auto 20px;
}

/* Green Badge on Appeal Banner: Text MUST be white and yellow */
.appeal-target-badge {
  display: inline-block;
  background: #176336 !important;
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: clamp(14px, 3.2vw, 16.5px);
  font-weight: 800;
  margin-bottom: 20px;
  border: 1px solid #F5CE29;
  max-width: 100%;
}
.appeal-target-badge span {
  color: #F5CE29 !important;
}

/* ==========================================================================
   12. CONTACT CARD
   ========================================================================== */
.contact-official-card {
  background: #ffffff;
  border-radius: 18px;
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid rgba(23, 99, 54, 0.12);
  box-shadow: 0 6px 20px rgba(24, 43, 31, 0.05);
}
.contact-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #FAF7F0;
  color: #182B1F;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(13px, 2.8vw, 14.5px);
  margin-bottom: 8px;
  border: 1px solid rgba(23, 99, 54, 0.08);
}
.contact-item-link i {
  color: #218348;
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* ==========================================================================
   13. LIGHTBOX MODAL
   ========================================================================== */
.tj-lightbox-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 25, 18, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tj-lightbox-modal.is-active {
  display: flex;
}
.tj-lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tj-lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.tj-lightbox-caption {
  color: #ffffff;
  margin-top: 12px;
  font-size: clamp(12px, 2.6vw, 14px);
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 16px;
  border-radius: 20px;
  max-width: 650px;
}
.tj-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #ffffff;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tj-lightbox-close:hover {
  background: #F5CE29;
  color: #176336;
}

/* ==========================================================================
   14. MOBILE SPECIFIC OVERRIDES (SCREEN <= 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .madrasa-intro-area {
    padding: 95px 0 35px;
  }
  .intro-quick-actions {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .intro-action-btn {
    width: 100% !important;
    max-width: 320px !important;
    height: 50px !important;
  }
  .milestone-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }
  .mpesa-payment-tile .tile-body {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .mpesa-payment-tile .tile-field-meta {
    text-align: center !important;
  }
  .mpesa-copy-btn,
  button.mpesa-copy-btn,
  .btn-copy-field,
  button.btn-copy-field {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   PROPOSAL DOWNLOAD BUTTONS & PROPOSED DESIGN BADGE
   ========================================================================== */
.proposal-btn-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.proposal-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 10px 22px !important;
  min-height: 52px !important;
  text-align: left !important;
  line-height: 1.2 !important;
  width: auto !important;
  max-width: fit-content !important;
  flex: 0 0 auto !important;
}

.proposal-action-btn i {
  font-size: 18px !important;
  flex-shrink: 0 !important;
}

.proposal-action-btn .btn-double-line {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
}

.proposal-action-btn .btn-double-line span {
  display: block !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.2px !important;
}

@media (max-width: 576px) {
  .proposal-btn-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .proposal-action-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 8px !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 7px !important;
  }
  .proposal-action-btn i {
    font-size: 15px !important;
  }
  .proposal-action-btn .btn-double-line span {
    font-size: 12px !important;
  }
}

/* Proposed Building Design Warning Badge (2 Lines) */
.proposed-badge-warning {
  display: inline-block !important;
  background: #FFF3CD !important;
  color: #856404 !important;
  border: 1px solid #FFEBAA !important;
  border-radius: 16px !important;
  padding: 10px 20px !important;
  line-height: 1.35 !important;
  max-width: 95% !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 12px rgba(245, 206, 41, 0.15) !important;
}

.proposed-badge-warning .badge-line-primary {
  display: block !important;
  font-weight: 800 !important;
  font-size: clamp(12.5px, 3.2vw, 14px) !important;
  color: #856404 !important;
}

.proposed-badge-warning .badge-line-sub {
  display: block !important;
  font-size: clamp(11px, 2.7vw, 12px) !important;
  font-weight: 600 !important;
  color: #997404 !important;
  margin-top: 2px !important;
}
