/* Global Section Spacing */
.section {
  padding: 7.5rem 0 5rem;
}

@media (max-width: 900px) {
  .section {
    padding-top: 11rem;
    /* Increase padding for mobile header (approx 180px) */
  }

  /* Utility classes for slogan breaks */
  .d-md-none {
    display: block;
  }

  .d-md-block {
    display: none;
  }

  .d-inline-block {
    display: inline-block;
  }
}

@media (min-width: 901px) {
  .d-md-none {
    display: none;
  }

  .d-md-block {
    display: block;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Hero Section Updates */
.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
  /* For pseudo-elements */
  background: none;
  /* Clear previous backgrounds */
}

/* Layer 1: Blurred "Extended" Background */
/* Layer 1: Sharp Person on Right + Gradient */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradient for text, Person on Right */
  /* Using separate background properties for better Safari support */
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0) 100%), url('../images/0145.webp');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-section::after {
  display: none;
  /* No longer needed */
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  /* Text on top of everything */
}

.hero-text {
  max-width: 600px;
  text-align: left;
  z-index: 10;
  color: white;
  /* Switch to white text */
}

.hero-image {
  display: none;
  /* Hide independent image */
}

/* Profile Section Background */
/* Profile Section - Background Restored */
/* Profile Section - Background Restored */
.profile-preview {
  background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../images/hero.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  padding: 5rem 0;
  position: relative;
}

@media (hover: hover) {
  .profile-preview {
    background-attachment: fixed !important;
  }
}

/* Force Image Styling */
.profile-img {
  width: 100%;
  border-radius: 12px !important;
  /* Force rounded rect, NOT circle */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Add Split Grid Layout - Specific Override */
.profile-preview .grid.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Desktop: Side by Side */
  gap: 3rem;
  align-items: center;
  /* Align centers vertically */
}

@media (max-width: 900px) {
  .profile-preview .grid.split {
    grid-template-columns: 1fr;
    /* Mobile: Stacked */
    text-align: center;
    /* Center text on mobile */
  }
}

.hero-slogan {
  margin-bottom: 2rem;
  display: block;
  /* Safer for Safari inside flex */
  width: 100%;
  max-width: 450px;
  /* Constrain width strictly */
}

.slogan-img {
  width: 100%;
  height: auto;
  display: block;
  /* Shadow is likely in the illustration, but we can add subtle one if needed */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.hero-title {
  font-size: 6rem;
  line-height: 1;
  margin-bottom: 2rem;
  font-weight: 900;
  color: white;
  /* White text */
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.4rem;
  color: white;
  /* White text */
  margin-bottom: 3rem;
  line-height: 1.8;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  background: none;
  /* Remove background box for cleaner look */
  padding: 0;
}

.hero-cta {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
}

/* Responsive Grid */
@media (max-width: 900px) {

  /* Layout Refresh: Text on Top, Photo Below CTA */
  .hero-section {
    display: block;
    padding: 0;
    min-height: 100svh;
    background-color: #f5f0ed;
    position: relative;
    overflow-x: hidden;
  }

  /* Deactivate background images on mobile */
  .hero-section::before,
  .hero-section::after {
    display: none !important;
  }

  .hero-container {
    padding-top: 4rem;
    padding-bottom: 2rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-slogan {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 2rem auto;
    padding: 0;
    display: block;
  }

  .hero-title {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: none;
  }

  .hero-lead {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: none;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
    margin-bottom: 3rem;
  }

  /* Show photo below CTA */
  .hero-photo-mobile {
    display: block;
    width: calc(100% + 3rem);
    /* Bleed out slightly to look integrated */
    margin: 0 -1.5rem;
    padding: 0;
  }

  .hero-photo-mobile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
}

/* Hide mobile-only photo on Desktop */
@media (min-width: 901px) {
  .hero-photo-mobile {
    display: none;
  }
}

/* .. other existing media queries .. */
.grid.three-col,
.grid.four-col {
  grid-template-columns: 1fr;
}

@media (min-width: 901px) {
  .grid.four-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .grid.four-col {
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 is more stable for these content-heavy cards */
  }
}

@media (min-width: 1300px) {
  .grid.four-col {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Activity & Policy Cards */
.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-color);
}

.bg-muted {
  background-color: var(--muted-bg);
}

/* SNS Section */
.sns-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sns-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.2s;
}

.sns-item:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: #f9fff9;
  /* Very light green tint */
}

/* Utility */
.text-center {
  text-align: center;
}


.mt-4 {
  margin-top: 2rem;
}

/* Footer SNS Visibility - Final Fix */
/* Footer SNS Visibility - Final Fix */
.footer-sns-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
  /* Increased gap spacing */
  margin-top: 1.5rem !important;
  margin-bottom: 2rem !important;
  /* Nuclear Option: Force full display */
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Force Parent Containers to Expand */
.site-footer,
.footer-grid,
.footer-right-col {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  contain: none !important;
  /* Disable containment */
}

/* Add extra padding to bottom to prevent cut-off */
.footer-right-col {
  padding-bottom: 2rem !important;
}

.footer-sns-item {
  display: inline-flex !important;
  align-items: center;
  color: #fff !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s;
  /* Ensure item itself doesn't have hidden overflow */
  overflow: visible !important;
  flex-shrink: 0 !important;
  /* Prevent collapsing */
}

.footer-sns-item:hover {
  opacity: 1 !important;
  text-decoration: underline !important;
}

.footer-sns-item svg {
  margin-right: 0.75rem;
  /* Ensure icons are white */
  fill: currentColor;
}