/* ========================================
   About Page Styles - Senior Level
   ======================================== */

/* Base Styles & Performance */
* {
  box-sizing: border-box;
}

/* Smooth scrolling for entire page */
html {
  scroll-behavior: smooth;
}

/* Prevent layout shift */
body {
  overflow-x: hidden;
  background: linear-gradient(135deg, #d0e8ff 0%, #e0f2ff 100%);
  min-height: 100vh;
}

/* Accessibility - Focus states */
*:focus-visible {
  outline: 2px solid #14497c;
  outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hero Section with Video Background */
.about-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* İçeriği dikeyde sona yasla */
  overflow: hidden;
  padding-bottom: clamp(6rem, 12vh, 9rem); /* Alttan boşluk ekle */
}

.about-hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.about-hero-video-background iframe,
.about-hero-video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
  .about-hero-video-background iframe,
  .about-hero-video-background video {
    height: 56.25vw;
  }
}

@media (max-aspect-ratio: 16/9) {
  .about-hero-video-background iframe,
  .about-hero-video-background video {
    width: 177.78vh;
  }
}

.about-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: var(--hero-text-max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hero-gap);
}

.about-hero__subtitle {
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: var(--hero-subtitle-weight);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--hero-subtitle-line-height);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  margin-bottom: 0;
  letter-spacing: 0;
  text-align: center;
  text-align-last: center;
  text-transform: uppercase;
}

.about-hero__title {
  /* Slightly larger hero title for better emphasis */
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: var(--hero-title-weight);
  color: #ffffff;
  line-height: var(--hero-title-line-height);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: var(--hero-letter-spacing);
}



.about-hero__nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  flex-wrap: nowrap;
  justify-content: center;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  overflow-x: hidden; /* Masaüstünde kaydırma çubuğunu gizle */
  padding: 0 clamp(0.5rem, 2vw, 1.25rem);
  -webkit-overflow-scrolling: touch; /* transform kaldırıldı */
}

/*
  Bu stiller home.css dosyasından kopyalanmıştır.
  Böylece Index.cshtml ve About.cshtml sayfalarındaki linkler aynı görünür.
*/
.contents-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: clamp(1.05rem, 3vw, 1.35rem);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  min-width: 130px;
  height: auto;
  flex: 0 1 170px;
}

.contents-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.contents-icon {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contents-item:hover .contents-icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.contents-icon i {
  font-size: 1.3rem;
  color: #ffffff;
}

.contents-text {
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}

@media (max-width: 768px) {
  .about-hero {
    height: auto;
    min-height: auto;
    min-height: 100vh; /* Mobil için tam ekran yüksekliği */
    padding: 0 clamp(1rem, 5vw, 1.75rem); /* Dikey padding'i kaldır */
  }

  .about-hero__title {
    font-size: clamp(1rem, 4.5vw, 1.3rem);
    margin-bottom: 0;
  }

  .about-hero__subtitle {
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    margin-bottom: clamp(0.4rem, 1.2vw, 0.7rem);
  }

  .about-hero__nav {
    gap: clamp(0.75rem, 2.5vw, 1rem); /* Navigasyon elemanları arası boşluğu ayarla */
    margin-top: clamp(0.5rem, 1.5vw, 1rem); /* Navigasyonun üst boşluğunu azalt */
    transform: translateY(0);
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    -webkit-overflow-scrolling: touch;
    width: 100%; /* Navigasyonun tam genişlikte olmasını ve tüm elemanları kaydırılabilir yapmasını sağlar */
  }

  .contents-item {
    min-width: 120px; /* Kartların minimum genişliğini ayarla */
    height: auto;
    padding: 0.8rem 0.65rem; /* Kartların iç boşluğunu ayarla */
    font-size: 0.82rem; /* Kart içindeki metin boyutunu küçült */
    scroll-snap-align: start;
  }

  .contents-icon {
    width: 32px; /* İkon boyutunu küçült */
    height: 32px;
    margin-bottom: 0.35rem;
  }

  .contents-icon i {
    font-size: 1rem; /* İkon font boyutunu küçült */
  }

  .contents-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .about-hero__nav {
    gap: clamp(0.9rem, 3vw, 1.2rem);
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    transform: translateY(0); /* Dikey kaydırmayı sıfırla */
    padding: 0 clamp(0.65rem, 3vw, 1rem);
  }

}

/* Remove old navigation styles - now handled in hero section */

/* Content Sections */
.content-section {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.5rem, 1.5vw, 1rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow-x: hidden;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  background: transparent;
}

.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-section .container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 1.5vw, 1rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
  padding: 0 clamp(0.5rem, 1.5vw, 1rem);
}

.section-header h2 {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: #14497c;
  margin-bottom: clamp(0.5rem, 1.2vw, 0.75rem);
  word-wrap: break-word;
  hyphens: auto;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #14497c, #0f3a64);
  transition: width 0.6s ease-out 0.3s;
}

.content-section.visible .section-header h2:after {
  width: 60px;
}

.section-subtitle {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: #666;
  word-wrap: break-word;
  hyphens: auto;
  text-align: center;
}

/* Loading State */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #14497c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Overview Section */
.about-overview-section {
  background: linear-gradient(135deg, #eaf4ff 0%, #dfefff 100%);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.5rem, 1.5vw, 1rem);
}

.overview-content {
  max-width: 1200px;
  margin: 0 auto;
}

.overview-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  background: #f3f7ff;
  border-radius: 16px;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.overview-intro p {
  background: #f3f7ff;
  padding: clamp(0.85rem, 1.8vw, 1.25rem);
  border-radius: 8px;
  box-shadow: none;
  position: relative;
  overflow: visible;
  transition: none;
  color: #000;
  text-align: center;
}

.overview-intro p::before,
.overview-intro p::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #14497c, #0f3a64);
}

.overview-intro p::before {
  left: 0;
}

.overview-intro p::after {
  right: 0;
}

.overview-intro p:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 73, 124, 0.12);
}

.overview-components h3 {
  color: #14497c;
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  margin-bottom: clamp(0.85rem, 1.8vw, 1.15rem);
  text-align: center;
  font-weight: 700;
}

.components-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: clamp(1rem, 1.5vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  width: min(100%, 1280px);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .components-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .components-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .components-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

.component-card {
  background: linear-gradient(135deg, #1a3f6b 0%, #2d5a8c 100%);
  border: none;
  border-radius: 16px;
  padding: clamp(1.1rem, 1.8vw, 1.6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1rem, 1.8vw, 1.25rem);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(20, 73, 124, 0.25);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFadeIn 0.6s ease-out forwards;
}

.component-card:nth-child(1) { animation-delay: 0.1s; }
.component-card:nth-child(2) { animation-delay: 0.2s; }
.component-card:nth-child(3) { animation-delay: 0.3s; }
.component-card:nth-child(4) { animation-delay: 0.4s; }
.component-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideUpFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.component-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.component-card:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: all 0.6s ease;
  transform: scale(0);
  z-index: 0;
}

.component-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(20, 73, 124, 0.35);
  background: linear-gradient(135deg, #2d5a8c 0%, #3d6fa3 100%);
}

.component-card:hover:before {
  opacity: 1;
}

.component-card:hover:after {
  opacity: 1;
  transform: scale(1);
}

.component-card p {
  color: #ffffff;
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  line-height: 1.7;
  margin: 0;
  word-wrap: break-word;
  hyphens: auto;
  position: relative;
  z-index: 1;
  font-weight: 500;
  transition: color 0.3s ease;
  text-align: left;
}

.component-card:hover p {
  color: #e8f4ff;
}

.component-icon {
  flex-shrink: 0;
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.component-icon:before {
  content: '';
  position: absolute;
  inset: -3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  animation: rotate 3s linear infinite;
  animation-play-state: paused;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.component-card:hover .component-icon {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.3);
}

.component-card:hover .component-icon:before {
  opacity: 1;
  animation-play-state: running;
}

.component-icon i {
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  transition: all 0.5s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.component-card:hover .component-icon i {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
  .component-card {
    padding: 1.5rem;
    flex-direction: row; /* Kart içeriğini yatay hizala */
    align-items: center; /* İçeriği dikeyde ortala */
    text-align: left; /* Metni sola yasla */
    gap: 1rem; /* İkon ve metin arasına boşluk ekle */
    padding: 1rem;
  }

  .component-icon {
    width: 70px;
    height: 70px;
  }

  .component-icon i {
    font-size: 2rem;
  }

  .component-card p {
    text-align: left; /* Paragraf metnini sola yasla */
  }

  .overview-intro {
    grid-template-columns: 1fr;
  }
}

/* Outputs Section */
.about-outputs-section {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.5rem, 1.5vw, 1rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(234, 246, 255, 0.85) 0%, rgba(222, 239, 255, 0.95) 100%);
}

.about-outputs-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.about-outputs-video-background iframe,
.about-outputs-video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
  .about-outputs-video-background iframe,
  .about-outputs-video-background video {
    height: 56.25vw;
  }
}

@media (max-aspect-ratio: 16/9) {
  .about-outputs-video-background iframe,
  .about-outputs-video-background video {
    width: 177.78vh;
  }
}

.about-outputs-section .container {
  position: relative;
  z-index: 2;
}

.about-outputs-section .section-header h2 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.about-outputs-section .section-header h2:after {
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.5));
}

.outputs-content {
  max-width: 1200px;
  margin: 0 auto;
}

.output-main {
  background: linear-gradient(135deg, #14497c 0%, #0f3a64 100%);
  color: white;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: 12px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 4px 20px rgba(20, 73, 124, 0.25);
  text-align: center;
}

.output-main h3 {
  color: #ffffff;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.output-main p {
  color: #f2f7ff;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 980px;
  opacity: 0.95;
  text-align: center;
}

.outputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(336px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  justify-content: center;
  align-items: start;
}

.output-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: auto;
  align-self: flex-start;
  width: 100%;
  max-width: 420px;
  background: #f4f8ff;
  border: 2px solid #e8f4ff;
  border-radius: 12px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease-out forwards;
  cursor: pointer;
  text-align: center;
}

.output-column:nth-child(1) { animation-delay: 0.2s; }
.output-column:nth-child(2) { animation-delay: 0.4s; }
.output-column:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.output-column:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(20, 73, 124, 0.2);
  border-color: #14497c;
}

.output-column:hover .output-number {
  transform: translateX(-50%) scale(1.1) rotate(360deg);
}

.output-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(40px, 7vw, 55px);
  height: clamp(40px, 7vw, 55px);
  background: linear-gradient(135deg, #14497c, #0f3a64);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(20, 73, 124, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 3px solid white;
}

.output-column h4 {
  color: #14497c;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(0.85rem, 1.8vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  /* Keep list starts aligned across cards without visibly shifting titles */
  min-height: clamp(2.6rem, 4vw, 3.2rem);
}

.output-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: none;
  overflow: visible;
  transition: padding 0.25s ease;
  opacity: 1;
}

.output-list li {
  padding: clamp(0.45rem, 1vw, 0.7rem) 0;
  color: #111111;
  font-size: clamp(0.72rem, 1.4vw, 0.84rem);
  line-height: 1.45;
  position: relative;
  border-bottom: 1px solid #f5f5f5;
  word-wrap: break-word;
  hyphens: auto;
  text-align: center;
}

.output-column.is-open .output-list {
  max-height: none;
  opacity: 1;
  padding-top: clamp(0.35rem, 1vw, 0.6rem);
  padding-bottom: clamp(0.35rem, 1vw, 0.6rem);
}

/* Keep closed height consistent across columns */
.output-column:not(.is-open) .output-list {
  padding-top: clamp(0.35rem, 1vw, 0.6rem);
  padding-bottom: clamp(0.35rem, 1vw, 0.6rem);
}

.output-list li:last-child {
  border-bottom: none;
}

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

/* Basins Section */
.about-basins-section {
  background: #e1e1e1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.5rem, 1.5vw, 1rem);
}

.basins-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  width: 100%;
  max-width: 1400px;
  height: auto;
}

@media (min-width: 1025px) {
  .basins-content {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 1024px) {
  .basins-content {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
  }
  
  .map-container {
    order: 1;
  }
  
  .basin-info {
    order: 2;
  }
}

.map-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  padding: clamp(1rem, 2vw, 2rem);
  transition: all 0.4s ease;
}

.basins-content > .map-container {
  display: flex;
  align-items: stretch;
}

.map-container:hover {
  transform: translateY(-4px);
}

#svg-map-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: visible;
}

#svg-map-container svg {
  width: 100%;
  height: auto;
  display: block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  transition: transform 0.4s ease;
}

#svg-map-container:hover svg {
  transform: scale(1.02);
}

#svg-map-container svg path {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  transform-origin: center;
}

#svg-map-container svg path[data-basin] {
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#svg-map-container svg path[data-basin]:hover {
  opacity: 0.85 !important;
  filter: brightness(1.25) saturate(1.1) drop-shadow(0 4px 12px rgba(20, 73, 124, 0.4)) !important;
  stroke: #14497c !important;
  stroke-width: 2.5 !important;
  transform: scale(1.05);
  animation: pulse 0.6s ease-in-out;
}

#svg-map-container svg path[data-basin].active {
  opacity: 1 !important;
  filter: brightness(1.35) saturate(1.3) drop-shadow(0 6px 16px rgba(20, 73, 124, 0.5)) !important;
  stroke: #14497c !important;
  stroke-width: 3.5 !important;
  transform: scale(1.08);
  animation: activeGlow 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes activeGlow {
  0%, 100% {
    filter: brightness(1.35) saturate(1.3) drop-shadow(0 6px 16px rgba(20, 73, 124, 0.5));
  }
  50% {
    filter: brightness(1.4) saturate(1.4) drop-shadow(0 8px 20px rgba(20, 73, 124, 0.6));
  }
}

.basin-info {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(20, 73, 124, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border: 2px solid #e8f4ff;
  transition: all 0.4s ease;
  animation: fadeIn 0.5s ease-in-out;
  color: #000;
}

/* Layout for bilingual basin info (TR + EN) */
.basin-languages {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 720px) {
  .basin-languages {
    flex-direction: row;
    align-items: flex-start;
  }

  .basin-lang {
    flex: 1 1 0;
  }
}

.basin-lang p {
  margin-bottom: 1rem;
  color: #000;
}

.basin-info:hover {
  box-shadow: 0 8px 32px rgba(20, 73, 124, 0.18);
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.basin-info h3 {
  color: #14497c;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
}

.basin-info h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #14497c, #0f3a64);
  border-radius: 2px;
}

.basin-info p {
  color: #000;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
}

.basin-info .basin-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  margin-top: 1.5rem;
}

@media (min-width: 481px) {
  .basin-info .basin-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

.basin-stat {
  background: white;
  padding: clamp(0.85rem, 1.8vw, 1.15rem);
  border-radius: 10px;
  text-align: center;
  border: 2px solid #e8f4ff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.basin-stat:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #14497c, #0f3a64);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.basin-stat:hover {
  border-color: #14497c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 73, 124, 0.15);
}

.basin-stat:hover:before {
  transform: scaleX(1);
}

.basin-stat strong {
  display: block;
  color: #14497c;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.basin-stat span {
  color: #333;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
}

.select-basin-text {
  text-align: left;
  text-justify: inter-word;
  color: #999;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Partners Section */
.about-partners-section {
  background: linear-gradient(135deg, #edf5ff 0%, #d9ebff 100%);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.5rem, 1.5vw, 1rem);
  min-height: auto;
}

.main-stakeholders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  width: 100%;
}

.stakeholder-card {
  background: #f3f7ff;
  color: #000;
  border-radius: 10px;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 2px 12px rgba(20, 73, 124, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid #e8f4ff;
  border-top: 4px solid #14497c;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stakeholder-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 73, 124, 0.15);
  border-top-color: #0f3a64;
}

.stakeholder-card.main-card {
  background: #f3f7ff;
}

.stakeholder-icon {
  width: clamp(35px, 6vw, 50px);
  height: clamp(35px, 6vw, 50px);
  background: linear-gradient(135deg, #14497c, #0f3a64);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(0.5rem, 1.2vw, 0.75rem);
  box-shadow: 0 2px 8px rgba(20, 73, 124, 0.2);
  flex-shrink: 0;
}

.stakeholder-icon i {
  color: white;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.stakeholder-card h3 {
  color: #14497c;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  margin-bottom: clamp(0.4rem, 0.9vw, 0.6rem);
  font-weight: 700;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
}

.stakeholder-card p {
  color: #000;
  line-height: 1.4;
  font-size: clamp(0.75rem, 1.6vw, 0.85rem);
  word-wrap: break-word;
  hyphens: auto;
  margin: 0;
}

.ministry-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  width: 100%;
}

.ministry-group {
  background: #f3f7ff;
  color: #000;
  border-radius: 10px;
  padding: clamp(0.85rem, 1.8vw, 1.25rem);
  box-shadow: 0 2px 12px rgba(20, 73, 124, 0.08);
  transition: all 0.3s ease;
  border: 2px solid #e8f4ff;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.ministry-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 73, 124, 0.15);
  border-color: #14497c;
}

.ministry-header {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.5vw, 0.85rem);
  margin-bottom: clamp(0.75rem, 1.8vw, 1rem);
  padding-bottom: clamp(0.65rem, 1.5vw, 0.85rem);
  border-bottom: 2px solid #e8f4ff;
}

.ministry-icon {
  width: clamp(32px, 6vw, 42px);
  height: clamp(32px, 6vw, 42px);
  background: #14497c;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ministry-icon i {
  color: white;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
}

.ministry-header h3 {
  color: #14497c;
  font-size: clamp(0.85rem, 1.9vw, 1rem);
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  word-wrap: break-word;
  hyphens: auto;
}

.stakeholder-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stakeholder-list li {
  padding: clamp(0.45rem, 1.2vw, 0.6rem) 0;
  padding-left: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #555;
  line-height: 1.5;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f5f5f5;
  font-size: clamp(0.75rem, 1.7vw, 0.85rem);
  word-wrap: break-word;
  hyphens: auto;
}

.stakeholder-list li:last-child {
  border-bottom: none;
}

.stakeholder-list li:before {
  content: "\2022";
  position: absolute;
  left: clamp(0.25rem, 0.9vw, 0.4rem);
  color: #14497c;
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  line-height: 1;
  top: clamp(0.45rem, 1.2vw, 0.6rem);
}

.stakeholder-list li:hover {
  padding-left: clamp(1.3rem, 2.8vw, 1.75rem);
  color: #14497c;
  background: #f8fbff;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .main-stakeholders {
    grid-template-columns: 1fr;
  }
  
  .ministry-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-partners-section {
    padding: 1.5rem 0.5rem;
  }
  
  .stakeholder-card {
    padding: 0.85rem;
  }
  
  .ministry-group {
    padding: 0.75rem;
  }
  
  .stakeholder-list li {
    padding-left: 1rem;
  }
  
  .stakeholder-list li:before {
    left: 0.15rem;
  }
}

/* Glossary Section */
.content-section.about-glossary-section {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.5rem, 1.5vw, 1rem);
  min-height: 100vh;
  background: linear-gradient(135deg, #e6f4ff 0%, #d6e9ff 100%);
  position: relative;
  overflow: hidden;
}

.about-glossary-section::before,
.about-glossary-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.about-glossary-section::before {
  top: -20%;
  right: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
}

.about-glossary-section::after {
  bottom: -20%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(113, 173, 255, 0.2) 0%, transparent 85%);
}

.about-glossary-section .section-header h2,
.about-glossary-section .section-subtitle {
  color: #0f3a64;
  position: relative;
  z-index: 1;
}

.about-glossary-section .section-header h2:after {
  background: linear-gradient(90deg, rgba(20, 73, 124, 0.4), rgba(20, 73, 124, 0.2));
}

.about-glossary-section .container {
  position: relative;
  z-index: 1;
}

.glossary-controls {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.search-box input {
  width: 100%;
  padding: clamp(0.5rem, 1.5vw, 0.75rem) 1rem clamp(0.5rem, 1.5vw, 0.75rem) clamp(2.5rem, 5vw, 3rem);
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  transition: all 0.3s ease;
  background: white;
}

.search-box input:hover {
  border-color: #14497c;
}

.search-box input:focus {
  outline: none;
  border-color: #14497c;
  box-shadow: 0 0 0 4px rgba(20, 73, 124, 0.1);
  transform: scale(1.02);
}

.search-box input::placeholder {
  color: #999;
  transition: color 0.3s ease;
}

.search-box input:focus::placeholder {
  color: #ccc;
}

.definitions-grid-interactive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(0.75rem, 1.5vw, 1rem);
  width: 100%;
}

/* Staggered animation for glossary cards */
.definition-card-interactive {
  animation: fadeInScale 0.5s ease-out backwards;
}

.definition-card-interactive:nth-child(1) { animation-delay: 0.05s; }
.definition-card-interactive:nth-child(2) { animation-delay: 0.1s; }
.definition-card-interactive:nth-child(3) { animation-delay: 0.15s; }
.definition-card-interactive:nth-child(4) { animation-delay: 0.2s; }
.definition-card-interactive:nth-child(5) { animation-delay: 0.25s; }
.definition-card-interactive:nth-child(6) { animation-delay: 0.3s; }
.definition-card-interactive:nth-child(7) { animation-delay: 0.35s; }
.definition-card-interactive:nth-child(8) { animation-delay: 0.4s; }
.definition-card-interactive:nth-child(9) { animation-delay: 0.45s; }
.definition-card-interactive:nth-child(10) { animation-delay: 0.5s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .definitions-grid-interactive {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .definitions-grid-interactive {
    grid-template-columns: 1fr;
  }
}

.definition-card-interactive {
  background: #f3f7ff;
  border-radius: 10px;
  padding: clamp(0.75rem, 1.5vw, 1rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  border: 2px solid #e8f4ff;
  width: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  min-height: 160px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000;
}

.definition-card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(20, 73, 124, 0.12);
  border-color: #14497c;
}

.definition-card-interactive.active {
  border-color: #14497c;
  background: #f8fbff;
  box-shadow: 0 6px 20px rgba(20, 73, 124, 0.15);
}

.definition-icon-circle {
  width: clamp(35px, 6vw, 45px);
  height: clamp(35px, 6vw, 45px);
  background: linear-gradient(135deg, #14497c, #0f3a64);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.definition-card-interactive:hover .definition-icon-circle {
  transform: rotate(360deg);
}

.definition-icon-circle i {
  color: white;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.definition-header-interactive {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(1.25rem, 2.5vw, 1.75rem);
}

.definition-header-interactive h3 {
  color: #14497c;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: clamp(0.4rem, 1vw, 0.6rem);
  font-weight: 700;
  line-height: 1.3;
  word-wrap: break-word;
  hyphens: auto;
  flex: 1;
  text-align: center;
}

.definition-header-interactive:after {
  content: '+';
  font-size: 1.5rem;
  color: #14497c;
  font-weight: 700;
  transition: transform 0.3s ease;
  position: absolute;
  top: 50%;
  right: clamp(0.35rem, 2vw, 0.75rem);
  transform: translateY(-50%);
}

.definition-card-interactive.active .definition-header-interactive:after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.definition-content-interactive {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.definition-card-interactive.active .definition-content-interactive {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.5rem;
}

.definition-content-interactive p {
  color: #000;
  line-height: 1.6;
  margin: 0;
  font-size: clamp(0.8rem, 1.7vw, 0.9rem);
  word-wrap: break-word;
  hyphens: auto;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 1600px) {
  .slide {
    width: 320px;
    height: 213px;
  }
  
  .slide.active {
    width: 720px;
    height: 480px;
  }
  
  .slide.neighbor {
    width: 380px;
    height: 253px;
  }
}

@media (max-width: 1400px) {
  .slide {
    width: 280px;
    height: 187px;
  }
  
  .slide.active {
    width: 600px;
    height: 400px;
  }
  
  .slide.neighbor {
    width: 340px;
    height: 227px;
  }
}

@media (max-width: 1024px) {
  .slide {
    width: 240px;
    height: 160px;
  }
  
  .slide.active {
    width: 480px;
    height: 320px;
  }
  
  .slide.neighbor {
    width: 300px;
    height: 200px;
  }
  
  .slider-nav.prev {
    left: 3vw;
  }
  
  .slider-nav.next {
    right: 3vw;
  }
  
  .slider-track {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .about-navigation-section {
    top: 60px;
  }
  
  .nav-boxes {
    flex-direction: row;
  }
  
  .custom-slider {
    padding: 40px 0 80px 0;
  }
  
  .slide {
    width: 200px;
    height: 133px;
  }
  
  .slide.active {
    width: 360px;
    height: 240px;
  }
  
  .slide.neighbor {
    width: 240px;
    height: 160px;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
  
  .slider-track {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .nav-boxes {
    flex-direction: column;
  }
  
  .nav-box {
    width: 100%;
    justify-content: center;
  }
}


/* ========================================
   Print Styles
   ======================================== */
@media print {
  .about-hero-section,
  .about-navigation-section,
  .slider-nav,
  .slider-pagination {
    display: none;
  }
  
  .content-section {
    page-break-inside: avoid;
    opacity: 1;
    transform: none;
  }
  
  .nav-box,
  .component-card,
  .definition-card-interactive {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ========================================
   Dark Mode Support (Future)
   ======================================== */
@media (prefers-color-scheme: dark) {
  /* Placeholder for dark mode styles */
}

/* ========================================
   High Contrast Mode
   ======================================== */
@media (prefers-contrast: high) {
  .nav-box,
  .component-card,
  .definition-card-interactive {
    border-width: 3px;
  }
  
  .section-header h2 {
    font-weight: 800;
  }
}
