/* Imali Hub Page Layouts & Section Styles */

/* ==========================================
   1. HOMEPAGE & HERO SECTION
   ========================================== */
.hero-section {
  background: #ffffff;
  color: var(--text-main);
  padding: 100px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 64px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-content h1 span {
  color: var(--accent-color);
}

.hero-content p {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.hero-stat-item h3 {
  font-size: 32px;
  color: var(--text-dark);
  font-weight: 300;
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

.hero-stat-item h3 span {
  color: var(--accent-color);
}

.hero-stat-item p {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 0;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.illustration-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.illustration-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-details h4 {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.illustration-details p {
  font-size: 12px;
  color: #94A3B8;
  margin: 0;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-content p {
    margin: 0 auto 40px auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-illustration {
    display: none; /* Hide complex illustration on mobile for space */
  }
  
  .hero-content h1 {
    font-size: 42px;
  }
}

/* ==========================================
   HERO PHOTO STORY WIDGET (Farmer Slideshow)
   ========================================== */
.hero-photo-story {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  background: #000;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

/* Slideshow container */
.story-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Each slide */
.story-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.story-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption overlay at bottom of each slide */
.story-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 48px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, transparent 100%);
  z-index: 3;
}

.story-caption-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
}

.story-slide-caption p {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

/* Phone notification popup overlay */
.story-phone-notif {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  width: calc(100% - 32px);
  max-width: 360px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  opacity: 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  pointer-events: none;
}

.story-phone-notif.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.notif-icon-wrap {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #10B981, #059669);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.notif-body {
  flex: 1;
  overflow: hidden;
}

.notif-app {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 2px 0;
}

.notif-text {
  font-size: 12px;
  color: #f1f5f9;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dot indicators */
.story-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.story-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.story-dot.active {
  background: var(--accent-color);
  transform: scale(1.3);
}

/* Live badge top-right */
.story-live-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(6px);
  z-index: 10;
  letter-spacing: 0.3px;
}

.story-live-dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: live-pulse 1.2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}


/* ==========================================
   HUMANIZED FARMER STORY CARDS SECTION
   ========================================== */
.humanized-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.story-human-card {
  background: var(--card-bg);
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-human-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.featured-story-card {
  box-shadow: 0 16px 36px rgba(0,0,0,0.08);
  transform: translateY(-8px);
}

.featured-story-card:hover {
  transform: translateY(-14px);
}

.story-human-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.story-human-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.story-human-card:hover .story-human-img-wrap img {
  transform: scale(1.04);
}

.story-human-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.story-human-badge.approved {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.story-human-badge.community {
  background: rgba(59, 130, 246, 0.9);
  color: #fff;
}

.story-human-badge.notif {
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
}

.story-featured-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-color);
  color: var(--primary-color);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.story-human-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 0 24px;
}

.story-human-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #064E3B);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-family-heading);
}

.group-avatar {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.story-human-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.story-human-location {
  font-size: 11px;
  color: var(--text-light);
  margin: 2px 0 0 0;
  display: flex;
  align-items: center;
  gap: 3px;
}

.story-human-quote {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.5;
  padding: 0 24px;
  margin: 16px 0;
}

.story-human-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
}

.amount-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.amount-value {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
}

/* Realistic notification card UI */
.realistic-notif-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin: 0 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.realistic-notif-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.rn-icon {
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rn-app {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rn-time {
  font-size: 10px;
  color: var(--text-light);
}

.rn-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px 0;
}

.rn-body {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* story notif padding bottom for card 3 */
.story-human-card:last-child {
  padding-bottom: 16px;
}

@media (max-width: 900px) {
  .humanized-story-grid {
    grid-template-columns: 1fr;
  }
  .featured-story-card {
    transform: none;
  }
}


/* ==========================================
   2. STATISTICS & PARTNERS SECTIONS
   ========================================== */
.stats-bar-section {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0;
}

.partners-title {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.partners-logos-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-light);
  filter: grayscale(1);
  opacity: 0.6;
  transition: var(--transition-fast);
}

.partner-logo-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

.partner-logo-item svg {
  fill: currentColor;
}

/* ==========================================
   3. MARKETPLACE (SEARCH & FILTERS)
   ========================================== */
.marketplace-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 48px 0;
}

@media (max-width: 992px) {
  .marketplace-layout {
    grid-template-columns: 1fr;
  }
}

.filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.marketplace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.bank-dir-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08) !important;
  border-color: var(--primary-color) !important;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
}

.search-input-wrapper input {
  padding-right: 48px;
  padding-left: 16px;
  border-radius: 100px; /* Apple-style pill search bar */
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-btn:hover {
  background: var(--secondary-color);
}

.loans-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 32px 0;
  transition: transform 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  gap: 40px;
}

.loan-row:last-child {
  border-bottom: none;
}

.loan-row:hover {
  transform: translateY(-2px);
}

.loan-row-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.loan-row-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.bank-logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #f5f5f7;
  border: 1px solid #e5e5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #1d1d1f;
}

.bank-row-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.bank-row-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #86868b;
}

.loan-row-title {
  font-size: 18px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 16px;
}

.loan-row-reqs {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.loan-row-reqs span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4b4b4d;
}

.loan-row-right {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-left: 32px;
  border-left: 1px solid var(--border-color);
}

.row-metric {
  display: flex;
  flex-direction: column;
}

.row-metric p {
  font-size: 11px;
  color: #86868b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.row-metric h4 {
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 300;
  font-family: 'Inter', sans-serif;
}

.row-metric h4 span {
  font-size: 13px;
  color: #86868b;
  font-weight: 500;
}

.loan-row-action {
  margin-left: 16px;
}

@media (max-width: 900px) {
  .loan-row {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 24px;
  }
  .loan-row-right {
    padding-left: 0;
    border-left: none;
    border-top: 1px dashed var(--border-color);
    padding-top: 24px;
    justify-content: space-between;
  }
  .loan-row-action {
    margin-left: 0;
    width: 100%;
    margin-top: 16px;
  }
  .loan-row-right {
    flex-wrap: wrap;
  }
}


/* ==========================================
   4. DASHBOARDS LAYOUT
   ========================================== */
.dashboard-container {
  padding: 40px 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.user-meta h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.user-meta p {
  font-size: 13px;
  color: var(--text-light);
}

/* Dashboard Cards Grid (Stats Counters) */
.analytics-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.counter-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.counter-info h4 {
  font-size: 13px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.counter-info h2 {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
}

.counter-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-card.accent-active .counter-icon {
  background-color: var(--accent-light);
  color: var(--accent-color);
}

/* Two Column Citizen Dashboard layout */
.dashboard-grid-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

@media (max-width: 992px) {
  .dashboard-grid-two-col {
    grid-template-columns: 1fr;
  }
}

.application-history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-history-card {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-history-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.app-history-info p {
  font-size: 13px;
  color: var(--text-light);
}

.app-history-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Recommendations Sidebar */
.recommendations-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rec-card {
  border-left: 4px solid var(--accent-color);
  padding: 16px;
  background-color: var(--bg-color);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-card h4 {
  font-size: 14px;
}

.rec-card p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.rec-match {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-color);
}

/* Application Status Timeline Tracker */
.timeline-tracker {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 32px 0;
  padding: 0 16px;
}

.timeline-tracker::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 32px;
  right: 32px;
  height: 4px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
  text-align: center;
  flex: 1;
}

.step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--border-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  transition: var(--transition-normal);
  border: 4px solid var(--card-bg);
}

.timeline-step.active .step-node {
  background-color: var(--accent-color);
  color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-step.completed .step-node {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  max-width: 100px;
}

.timeline-step.active .step-label {
  color: var(--text-dark);
  font-weight: 700;
}

@media (max-width: 576px) {
  .timeline-tracker {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-left: 24px;
  }
  
  .timeline-tracker::before {
    top: 16px;
    left: 38px;
    width: 4px;
    height: calc(100% - 32px);
  }
  
  .timeline-step {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }
  
  .step-label {
    max-width: 100%;
  }
}

/* ==========================================
   5. FINANCIAL LITERACY CENTER
   ========================================== */
.literacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-banner {
  height: 160px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.article-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.5px;
}

.article-body h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-dark);
}

.article-body p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #4b4b4d; /* Soft dark gray for high readability */
  line-height: 1.6;
  letter-spacing: -0.1px;
}

/* ==========================================
   6. DEVELOPER API SANDBOX & DOCUMENTATION
   ========================================== */
.api-docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 40px 0;
}

.api-sidebar {
  border-right: 1px solid var(--border-color);
  padding-right: 16px;
}

.api-sidebar h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.api-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.api-sidebar a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  color: var(--text-light);
}

.api-sidebar a:hover, .api-sidebar a.active {
  background-color: var(--bg-color);
  color: var(--primary-color);
  font-weight: 600;
}

.api-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.api-route-block {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: var(--card-bg);
}

.api-route-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.api-method {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-get {
  background-color: #EFF6FF;
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.method-post {
  background-color: #ECFDF5;
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.method-put {
  background-color: #FFFBEB;
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.method-delete {
  background-color: #FEF2F2;
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.api-path {
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.api-route-body {
  padding: 20px;
}

.api-route-body h5 {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.api-route-body pre {
  background-color: var(--primary-color);
  color: #E2E8F0;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  font-family: monospace;
  font-size: 13px;
  overflow-x: auto;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .api-docs-layout {
    grid-template-columns: 1fr;
  }
  
  .api-sidebar {
    display: none;
  }
}

/* ==========================================
   7. SANDBOX SIMULATOR GRAPHICAL INTERFACES
   ========================================== */
.sandbox-simulator-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .sandbox-simulator-layout {
    grid-template-columns: 1fr;
  }
}

.phone-shell {
  background-color: #0F172A;
  border: 12px solid #334155;
  border-radius: 36px;
  height: 520px;
  width: 280px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-premium);
}

.phone-screen {
  background-color: #FFFFFF;
  border-radius: 12px;
  flex: 1;
  padding: 16px;
  font-family: monospace;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #000;
}

.phone-screen-text {
  white-space: pre-wrap;
  line-height: 1.4;
}

.phone-input-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.phone-input-bar input {
  font-family: monospace;
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  flex: 1;
  outline: none;
}

.phone-home-button {
  width: 48px;
  height: 8px;
  border-radius: 4px;
  background-color: #475569;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.chart-wrapper {
  margin-top: 16px;
  height: 200px;
}
.chart-svg {
  width: 100%;
  height: 100%;
}

/* ==========================================
   FEATURES PAGE STYLES
   ========================================== */
.feature-row {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
}

.feature-row-reverse {
  flex-direction: row-reverse;
}

.feature-visual {
  flex: 1;
}

.feature-visual-box {
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--box-shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-content {
  flex: 1;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
}

.feature-content h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--text-main);
  line-height: 1.2;
}

.feature-content p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .feature-row, .feature-row-reverse {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
  }
}

/* ==========================================
   FEATURED PARTNER SECTION STYLES
========================================== */
.interactive-image-container:hover img {
  transform: scale(1.03);
}

.interactive-image-container:hover .image-overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(10, 25, 47, 0.98) 100%) !important;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    opacity: 1;
  }
}

