/* ==========================================================================
   HOMEPAGE SPECIFIC STYLES (Nikema Inspired + Emil Kowalski Polish)
   ========================================================================== */

/* ==========================================================================
   HERO SECTION (Official Parliamentary Chamber Presentation - Inspired by Reference)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #0b111e;
  background-image:
    linear-gradient(90deg, rgba(6, 12, 22, 0.94) 0%, rgba(6, 12, 22, 0.85) 32%, rgba(6, 12, 22, 0.5) 58%, rgba(6, 12, 22, 0.15) 78%, rgba(6, 12, 22, 0.45) 100%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.65) 0%, transparent 22%, transparent 78%, rgba(0, 0, 0, 0.97) 100%),
    url('../images/betara-pattern-bg.png');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  color: var(--color-white);
  display: flex;
  align-items: flex-end;
  padding-top: 130px;
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 760px;
}

.hero-welcome {
  font-family: var(--font-body, system-ui, -apple-system, sans-serif);
  font-size: clamp(0.95rem, 1vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.85rem 0;
}

.hero-name {
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 1.15rem 0;
}

.hero-role {
  font-family: var(--font-body, system-ui, -apple-system, sans-serif);
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-emerald-600);
  margin: 0;
}

@media (max-width: 900px) {
  .hero-section {
    min-height: 85vh;
    padding-top: 130px;
    padding-bottom: 4rem;
    background-position: 70% center;
    background-image:
      linear-gradient(90deg, rgba(6, 12, 22, 0.92) 0%, rgba(6, 12, 22, 0.8) 55%, rgba(6, 12, 22, 0.6) 100%),
      url('../images/betara-pattern-bg.png');
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: 80vh;
    padding-top: 120px;
    padding-bottom: 3.5rem;
    background-position: 50% center;
    background-image:
      linear-gradient(180deg, rgba(6, 12, 22, 0.8) 0%, rgba(6, 12, 22, 0.7) 40%, rgba(6, 12, 22, 0.92) 100%),
      url('../images/betara-pattern-bg.png');
  }

  .hero-welcome {
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
  }

  .hero-name {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
    margin-bottom: 0.85rem;
  }

  .hero-role {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

/* ==========================================================================
   ABOUT CENTER SECTION (Title, Text, Button, Image All Centered)
   ========================================================================== */
.about-center-section {
  position: relative;
  background: #ffffff;
  padding: 5.5rem 0 0 0;
  overflow: hidden;
  z-index: 4;
}

.about-center-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-center-title {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.about-center-text {
  max-width: 820px;
  margin: 0 auto 2.25rem auto;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.8;
  color: #4b5563;
}

.about-center-text p {
  margin-bottom: 1rem;
}

.about-center-text p:last-child {
  margin-bottom: 0;
}

.about-center-action {
  margin-bottom: 2.5rem;
}

.btn-about-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-emerald-600);
  color: #ffffff;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.65rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all var(--duration-fast, 0.2s) var(--ease-out, ease-out);
  cursor: pointer;
}

.btn-about-center:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.about-center-image-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 3.5rem;
}

.about-center-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  transition: transform var(--duration-normal, 0.3s) var(--ease-out, ease-out);
}

@media (max-width: 768px) {
  .about-center-section {
    padding: 3.5rem 0 0 0;
  }

  .about-center-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    margin-bottom: 1.25rem;
  }

  .about-center-text {
    font-size: 0.975rem;
    line-height: 1.68;
    margin-bottom: 1.75rem;
  }

  .about-center-action {
    margin-bottom: 2rem;
  }

  .btn-about-center {
    font-size: 0.8125rem;
    padding: 0.5rem 1.4rem;
  }

  .about-center-image-wrap {
    max-width: 100%;
    padding-bottom: 2rem;
  }

  .about-center-image {
    border-radius: 14px;
  }
}

/* ==========================================================================
   STATS STRIP (Sleek Modern Sample-Inspired Presentation)
   ========================================================================== */
.stats-strip {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.75rem 0;
  color: #0c2b2f;
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.stat-item {
  position: relative;
  padding: 0.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.stat-item:first-child {
  padding-left: 0.5rem;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background: #e5e9f0;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  color: #2e2e2e;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.3;
  margin-bottom: 1.35rem;
  display: block;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 1.85vw, 1.85rem);
  font-weight: 800;
  color: #0c2b2f;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (max-width: 992px) {
  .stats-strip {
    padding: 1.5rem 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0;
  }

  .stat-item:nth-child(odd)::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 0;
    height: 70%;
    width: 1px;
    background: #e5e9f0;
  }

  .stat-item:nth-child(even)::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .stats-strip {
    padding: 1.35rem 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .stat-item {
    padding: 0 0 1rem 0;
    border-bottom: 1px solid #e5e9f0;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stat-item::after {
    display: none !important;
  }
}



/* ==========================================================================
   FULL-BLEED QUOTE BANNER (Nikema Style)
   ========================================================================== */
.quote-banner-section {
  position: relative;
  background: var(--color-emerald-600);
  color: var(--color-white);
  padding: var(--space-20) 0;
  background-image: linear-gradient(#022924, #022924),
    url('../images/wavy-background.webp');
  background-size: 100% auto;
  background-blend-mode: multiply;
  background-repeat: no-repeat;
  text-align: center;
}

.quote-banner-content {
  max-width: 860px;
  margin: 0 auto;
}

.quote-symbol {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.75vw, 2.15rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.quote-author {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-emerald-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   LEGISLATIVE AFFAIRS & IMPACT SECTION (Brand Green Tint Layout)
   ========================================================================== */
.legislative-impact-section {
  padding: 5.5rem 0;
  background-color: #e7ffef;
  border-top: 1px solid rgba(0, 149, 56, 0.08);
  border-bottom: 1px solid rgba(0, 149, 56, 0.08);
}

.legislative-impact-header {
  max-width: 880px;
  margin-bottom: 3rem;
  text-align: left;
}

.legislative-impact-title {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: #001507;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.legislative-impact-desc {
  font-size: 1.0625rem;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
}

.legislative-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.impact-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
}

.impact-card-image-wrap {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  background: #e5e7eb;
}

.impact-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.impact-card-body {
  padding: 2rem 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.impact-card-title {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #003816;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.impact-card-text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.impact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-emerald-600);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--duration-fast, 0.2s) var(--ease-out, ease-out);
  width: fit-content;
}

.impact-arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-fast, 0.2s) var(--ease-out, ease-out);
}

.impact-card-link:hover {
  color: var(--color-emerald-700);
}

.impact-card-link:hover .impact-arrow-icon {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .legislative-impact-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .impact-card-image-wrap {
    height: 220px;
  }

  .legislative-impact-section {
    padding: 4rem 0;
  }
}

/* ==========================================================================
   EDITORIAL NEWS SECTION
   ========================================================================== */
.home-news-section {
  padding: 5.5rem 0 5rem 0;
  background: #ffffff;
}

.section-header-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-header-center .section-title {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  text-align: center;
}

.section-header-center .section-description {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: clamp(0.95rem, 1.1vw, 1.125rem);
  color: #6b7280;
  line-height: 1.6;
  margin: 0 auto;
  text-align: center;
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-bottom: 3.5rem;
}

.news-editorial-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-fast, 0.2s) ease;
}

.news-editorial-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 1.15rem;
}

.news-editorial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-editorial-date {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  color: #383a3f;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.news-editorial-title {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: #111827;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-editorial-card:hover .news-editorial-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-editorial-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.news-editorial-tag {
  display: inline-block;
  background: rgba(0, 149, 57, 0.186);
  color: #007a2d;
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.news-editorial-readtime {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.news-editorial-readtime svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-badges-row,
  .hero-cta-group {
    justify-content: center;
  }

  .hero-quote-box {
    border-left: none;
    border-top: 2px solid var(--color-red-600);
    padding-left: 0;
    padding-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-floating-badge {
    left: 1rem;
  }

  .home-news-grid,
  .endorsements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 3rem 0 2rem;
  }

  .hero-portrait-img {
    height: 400px;
  }

  .home-news-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.25rem;
    padding-bottom: 1rem;
    /* hide scrollbar but keep scrollability */
    scrollbar-width: none;
  }

  .home-news-grid::-webkit-scrollbar {
    display: none;
  }

  .home-news-grid .news-editorial-card {
    flex: 0 0 80vw;
    max-width: 320px;
    scroll-snap-align: start;
  }

  .endorsements-grid {
    grid-template-columns: 1fr;
  }
}