/* ===== SOCIAL IMPACT - OPTIMIZED ===== */
.social-impact-section {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: #ffffff;
  color: #2c3e50;
  line-height: 1.6;
}

/* ===== HERO SECTION ===== */
.social-impact-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #1a3c3b;
  overflow: hidden;
}

.social-impact-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.social-impact-hero .hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.social-impact-hero .background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 60, 59, 0.4) 0%,
    rgba(33, 133, 118, 0.4) 100%
  );
}

.social-impact-hero .foundation-container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
  padding: 0 40px;
  text-align: center;
}

.social-impact-hero .foundation-header {
  margin-bottom: 60px;
}

.social-impact-hero .foundation-title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.social-impact-hero .foundation-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.social-impact-hero .foundation-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  padding: 35px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.social-impact-hero .stat-card {
  text-align: center;
  min-width: 160px;
}

.social-impact-hero .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.social-impact-hero .stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ===== IMPACT AREAS ===== */
.social-impact-areas {
  padding: 5rem 40px;
  background: #f9fafa;
}

.social-impact-areas .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.social-impact-areas .section-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1d5d5b;
  margin: 0 0 1rem 0;
}

.social-impact-areas .section-subtitle {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.social-impact-areas .impact-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== MOBILE LAYOUT ===== */
.social-impact-areas .impact-cards-mobile {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-impact-areas .expandable-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.social-impact-areas .expandable-card:hover {
  border-color: #218576;
  box-shadow: 0 8px 30px rgba(33, 133, 118, 0.1);
}

.social-impact-areas .expandable-card.active {
  border-color: #218576;
  box-shadow: 0 12px 40px rgba(33, 133, 118, 0.15);
}

/* Mobile Card Header */
.social-impact-areas .card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
  background: #ffffff;
  transition: background 0.3s ease;
}

.social-impact-areas .expandable-card.active .card-header {
  background: rgba(33, 133, 118, 0.05);
}

.social-impact-areas .card-icon {
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  background: rgba(33, 133, 118, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #218576;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.social-impact-areas .expandable-card.active .card-icon {
  background: #218576;
  color: #ffffff;
  transform: scale(1.05);
}

.social-impact-areas .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1d5d5b;
  margin: 0;
  flex: 1;
  text-align: left;
  transition: color 0.3s ease;
}

.social-impact-areas .expandable-card.active .card-title {
  color: #218576;
}

.social-impact-areas .card-toggle {
  font-size: 1.2rem;
  font-weight: 300;
  color: #9ca3af;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-impact-areas .expandable-card.active .card-toggle {
  color: #218576;
  transform: rotate(180deg);
}

/* Mobile Card Content */
.social-impact-areas .card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-impact-areas .expandable-card.active .card-content {
  max-height: 400px;
}

.social-impact-areas .card-description {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  padding: 0 20px 20px 20px;
}

/* Mobile Card Stats */
.social-impact-areas .card-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 20px 20px;
}

.social-impact-areas .stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(33, 133, 118, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(33, 133, 118, 0.1);
  transition: all 0.3s ease;
}

.social-impact-areas .stat-item:hover {
  background: rgba(33, 133, 118, 0.1);
  transform: translateX(4px);
}

.social-impact-areas .stat-bullet {
  width: 36px;
  height: 36px;
  background: #218576;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.social-impact-areas .stat-content {
  flex: 1;
}

.social-impact-areas .stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #218576;
  line-height: 1;
  margin-bottom: 3px;
}

.social-impact-areas .stat-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== DESKTOP LAYOUT ===== */
@media (min-width: 1025px) {
  /* Hide mobile cards */
  .social-impact-areas .impact-cards-mobile {
    display: none;
  }

  /* Show desktop layout */
  .social-impact-areas .impact-selector-desktop {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .social-impact-areas .impact-details-desktop {
    display: block;
    width: 100%;
  }

  .social-impact-areas .impact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 35px;
    align-items: stretch;
    min-height: 380px;
  }

  /* Desktop Selector Cards */
  .social-impact-areas .selector-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    height: 80px;
    min-width: 0;
    flex-shrink: 0;
  }

  .social-impact-areas .selector-card:hover {
    border-color: #218576;
    box-shadow: 0 6px 20px rgba(33, 133, 118, 0.1);
    transform: translateX(4px);
  }

  .social-impact-areas .selector-card.active {
    background: rgba(33, 133, 118, 0.05);
    border-color: #218576;
    box-shadow: 0 8px 25px rgba(33, 133, 118, 0.15);
  }

  .social-impact-areas .selector-card .card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    flex-shrink: 0;
  }

  .social-impact-areas .selector-card.active .card-icon {
    background: #218576;
    color: #ffffff;
    transform: scale(1.05);
  }

  .social-impact-areas .card-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .social-impact-areas .selector-card .card-title {
    font-size: 1.1rem;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .social-impact-areas .selector-card.active .card-title {
    color: #218576;
  }

  .social-impact-areas .card-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  /* Desktop Details Panel */
  .social-impact-areas .impact-details-desktop {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
    height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
  }

  .social-impact-areas .detail-content {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
  }

  .social-impact-areas .detail-content.active {
    display: block;
  }

  /* Desktop Detail Backgrounds - OPTIMIZED */
  .social-impact-areas .detail-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .social-impact-areas .detail-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    /* Critical: Prevent image loading glitches */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .social-impact-areas .detail-background .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      135deg,
      rgba(26, 60, 59, 0.4) 0%,
      rgba(33, 133, 118, 0.4) 100%
    );
  }

  .social-impact-areas .detail-main {
    padding: 40px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: white;
  }

  .social-impact-areas .detail-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 30px 0;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }

  .social-impact-areas .detail-description strong {
    color: #ffffff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
  }

  /* Desktop Detail Stats */
  .social-impact-areas .detail-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
  }

  .social-impact-areas .detail-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
  }

  .social-impact-areas .detail-stat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
  }

  .social-impact-areas .detail-stat .stat-bullet {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #218576;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .social-impact-areas .detail-stat .stat-content {
    flex: 1;
  }

  .social-impact-areas .detail-stat .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }

  .social-impact-areas .detail-stat .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}

/* ===== LAPTOP SCREEN FIXES ===== */
@media (max-width: 1300px) and (max-height: 690px),
  (max-width: 1265px) and (max-height: 585px) {
  .social-impact-hero {
    min-height: 100vh;
  }

  .social-impact-hero .foundation-container,
  .social-impact-areas .impact-container,
  .social-impact-quote .quote-container {
    max-width: 1000px;
  }

  .social-impact-areas .impact-container {
    min-height: 360px;
    gap: 25px;
    align-items: stretch;
  }

  .social-impact-areas .impact-selector-desktop {
    height: 95%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .social-impact-areas .detail-stats {
    max-width: 280px;
    max-height: 190px;
  }

  .social-impact-areas .selector-card {
    height: calc(25% - 10px);
    padding: 14px 16px;
    margin: 0;
    min-height: 70px;
    max-height: 85px;
  }

  .social-impact-areas .selector-card .card-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .social-impact-areas .selector-card .card-title {
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .social-impact-areas .card-subtitle {
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .social-impact-areas .impact-details-desktop {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
    overflow: hidden;
  }

  .social-impact-areas .detail-main {
    height: 100%;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    box-sizing: border-box;
  }

  .social-impact-areas .detail-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .social-impact-areas .detail-stats {
    gap: 10px;
    max-height: 160px;
    overflow: hidden;
  }

  .social-impact-areas .detail-stat {
    padding: 12px 16px;
    gap: 14px;
    margin: 0;
    min-height: 50px;
  }

  .social-impact-areas .detail-stat .stat-bullet {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .social-impact-areas .detail-stat .stat-content {
    min-width: 0;
  }

  .social-impact-areas .detail-stat .stat-value {
    font-size: 1.15rem;
    line-height: 1;
    margin-bottom: 3px;
  }

  .social-impact-areas .detail-stat .stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.4px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ===== MEDIUM LAPTOPS ===== */
@media (min-width: 1025px) and (max-width: 1400px) and (max-height: 800px) {
  .social-impact-areas .impact-container {
    min-height: 380px;
  }

  .social-impact-areas .selector-card {
    height: calc(25% - 12px);
    padding: 16px 18px;
  }

  .social-impact-areas .impact-details-desktop {
    height: 380px;
  }

  .social-impact-areas .detail-main {
    padding: 30px 35px;
    gap: 25px;
  }

  .social-impact-areas .detail-description {
    font-size: 1rem;
    max-height: 65px;
    -webkit-line-clamp: 2;
  }
}

/* ===== LEADERSHIP QUOTE ===== */
.social-impact-quote {
  padding: 5rem 40px;
  position: relative;
  background: #1d5d5b;
  overflow: hidden;
}

.social-impact-quote .quote-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.social-impact-quote .quote-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  /* Critical: Prevent image loading glitches */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.social-impact-quote .quote-background .background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 60, 59, 0.7) 0%,
    rgba(33, 133, 118, 0.7) 100%
  );
}

.social-impact-quote .quote-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 50px;
}

.social-impact-quote .quote-text {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 30px 0;
  font-style: italic;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.social-impact-quote .quote-author {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.social-impact-areas .detail-content {
  animation: fadeIn 0.3s ease forwards;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
  .social-impact-hero {
    min-height: 100vh;
  }

  .social-impact-hero .foundation-title {
    font-size: 2.2rem;
  }

  .social-impact-hero .foundation-subtitle {
    font-size: 1.1rem;
  }

  .social-impact-hero .foundation-stats {
    gap: 40px;
    padding: 25px;
  }

  .social-impact-areas,
  .social-impact-quote {
    padding: 4rem 30px;
  }

  .social-impact-areas .impact-cards-mobile {
    max-width: 700px;
  }

  .social-impact-quote .quote-text {
    font-size: 1.4rem;
    padding: 0;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .social-impact-hero,
  .social-impact-areas,
  .social-impact-quote {
    padding: 3rem 20px;
  }

  .social-impact-hero {
    min-height: 95vh !important;
  }

  .social-impact-hero .foundation-title {
    font-size: 3rem !important;
  }

  .social-impact-hero .foundation-subtitle {
    font-size: 1rem;
  }

  .social-impact-hero .foundation-stats {
    flex-direction: column;
    gap: 25px;
    padding: 25px 20px;
  }

  .social-impact-hero .stat-number {
    font-size: 2rem;
  }

  .social-impact-areas .section-title {
    font-size: 1.6rem;
  }

  .social-impact-areas .impact-cards-mobile {
    max-width: 500px;
  }

  .social-impact-areas .card-header {
    padding: 18px;
  }

  .social-impact-areas .card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .social-impact-areas .card-title {
    font-size: 1rem;
  }

  .social-impact-areas .card-description {
    font-size: 0.95rem;
    padding: 0 18px 18px 18px;
  }

  .social-impact-areas .card-stats {
    gap: 10px;
    padding: 0 16px 16px 16px;
  }

  .social-impact-areas .stat-item {
    padding: 14px 16px;
    gap: 14px;
    border-radius: 10px;
  }

  .social-impact-areas .stat-bullet {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .social-impact-quote .quote-container {
    padding: 30px 20px;
  }

  .social-impact-quote .quote-text {
    font-size: 1.2rem;
    padding: 0;
  }
}

/* Large Desktop */
@media (min-width: 1905px) {
  .social-impact-hero .foundation-container,
  .social-impact-areas .impact-container,
  .social-impact-quote .quote-container {
    max-width: 1600px;
  }
  .social-impact-areas .impact-selector-desktop {
    height: 600px !important;
  }

  .social-impact-hero .foundation-title {
    font-size: 3rem;
  }

  .social-impact-areas .section-title {
    font-size: 2.5rem;
  }

  .social-impact-areas .impact-container {
    gap: 40px;
    min-height: 600px;
  }

  .social-impact-areas .selector-card {
    height: 142px;
    padding: 22px 24px;
  }

  .social-impact-areas .selector-card .card-icon {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }

  .social-impact-areas .selector-card .card-title {
    font-size: 1.2rem;
  }

  .social-impact-areas .card-subtitle {
    font-size: 0.95rem;
  }

  .social-impact-areas .impact-details-desktop {
    height: 600px;
  }

  .social-impact-areas .detail-main {
    padding: 45px;
  }

  .social-impact-areas .detail-description {
    font-size: 1.2rem;
    margin-bottom: 35px;
  }

  .social-impact-areas .detail-stats {
    gap: 15px;
  }

  .social-impact-areas .detail-stat {
    padding: 18px 22px;
  }

  .social-impact-areas .detail-stat .stat-bullet {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .social-impact-areas .detail-stat .stat-value {
    font-size: 1.5rem;
  }

  .social-impact-quote .quote-text {
    font-size: 1.8rem;
  }
}

/* Phone-specific adjustments */
@media (max-width: 480px) {
  .social-impact-hero .foundation-title {
    font-size: 1.6rem;
  }

  .social-impact-hero .foundation-stats {
    padding: 20px 15px;
  }

  .social-impact-hero .stat-number {
    font-size: 1.8rem;
  }

  .social-impact-hero .stat-label {
    font-size: 0.8rem;
  }

  .social-impact-areas .card-header {
    padding: 16px;
    gap: 12px;
  }

  .social-impact-areas .card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .social-impact-areas .card-title {
    font-size: 0.95rem;
  }

  .social-impact-areas .card-description {
    font-size: 0.9rem;
    padding: 0 16px 16px 16px;
  }

  .social-impact-areas .stat-bullet {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .social-impact-quote .quote-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .social-impact-hero {
    min-height: 95vh;
  }

  .social-impact-hero .foundation-container {
    padding: 0 20px;
  }

  .social-impact-hero .foundation-title {
    font-size: 1.8rem;
  }

  .social-impact-areas,
  .social-impact-quote {
    padding: 2.5rem 15px;
  }

  .social-impact-quote .quote-container {
    padding: 25px 15px;
  }
}

@media (max-width: 480px) and (orientation: landscape) {
  .social-impact-hero {
    min-height: 80vh;
  }
}

/* ===== FIXES FOR DOUBLE LAYOUT ===== */
@media (max-width: 1024px) {
  .social-impact-areas .impact-selector-desktop,
  .social-impact-areas .impact-details-desktop {
    display: none !important;
  }

  .social-impact-areas .impact-cards-mobile {
    display: flex !important;
  }
}

@media (min-width: 1025px) {
  .social-impact-areas .impact-cards-mobile {
    display: none !important;
  }

  .social-impact-areas .impact-selector-desktop,
  .social-impact-areas .impact-details-desktop {
    display: flex !important;
  }

  .social-impact-areas .impact-details-desktop {
    display: block !important;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* Prevent image loading glitches */
.detail-background img,
.quote-background img,
.hero-background img {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Smooth transitions */
.selector-card,
.expandable-card,
.detail-stat,
.stat-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

/* Font smoothing */
.detail-description,
.quote-text,
.foundation-title,
.foundation-subtitle {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Better focus states */
.selector-card:focus,
.expandable-card .card-header:focus {
  outline: 2px solid #218576;
  outline-offset: 2px;
}
