/* Base Styles */
:root {
  --primary-dark: #111a4c;
  --primary-medium: #5e70d0;
  --primary-accent: #ee813c;
  --text-dark: #333;
  --text-light: #777;
  --bg-light: #f5f7fc;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Dam Hero Section */
.dam-hero {
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 80px 0;
}

.dam-badge {
  display: inline-block;
  background-color: var(--primary-accent);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.dam-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.dam-hero h1 span {
  font-size: 2rem;
  display: block;
  font-weight: normal;
}

.dam-location {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.dam-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.stat {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  padding: 20px 30px;
  border-radius: 10px;
  min-width: 120px;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Dam Overview Section */
.dam-overview {
  padding: 80px 0;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.overview-content h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.overview-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-light);
}

.technical-specs {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 10px;
}

.technical-specs h3 {
  color: var(--primary-medium);
  margin-bottom: 15px;
}

.technical-specs ul {
  list-style-type: none;
  padding: 0;
}

.technical-specs li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.technical-specs li:before {
  content: "•";
  color: var(--primary-accent);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

.overview-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.overview-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 10px;
  color: var(--text-light);
}

/* Dam Impact Section */
.dam-impact {
  padding: 80px 0;
}

.dam-impact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: inherit;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.impact-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
}

.impact-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.8rem;
}

.impact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #000;
}

.impact-card p {
  color: #000 !important;
}

/* Dam Gallery Section */
.dam-gallery {
  padding: 80px 0;
}

.dam-gallery h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--primary-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 250px;
}

.gallery-item:hover {
  transform: translateY(-10px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .dam-hero h1 {
    font-size: 2.5rem;
  }
  
  .dam-stats {
    flex-wrap: wrap;
  }
  
  .impact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dam-hero {
    min-height: 60vh;
    padding: 60px 0;
  }
  
  .dam-hero h1 {
    font-size: 2rem;
  }
  
  .dam-location {
    font-size: 1rem;
  }
  
  .stat {
    padding: 15px;
    min-width: 80px;
  }
  
  .stat-value {
    font-size: 1.8rem;
  }
}

/* Additional Styles for Dam Pages */

/* Timeline for Dam History */
.dam-timeline {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 40px;
}

.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.timeline-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Map Section */
.dam-map {
  padding: 60px 0;
  text-align: center;
}

.map-container {
  height: 400px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 30px;
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fc 0%, #e4e9f2 100%);
  color: var(--text-light);
}

/* Responsive Tables */
.technical-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.technical-table th {
  background-color: var(--primary-dark);
  color: white;
  padding: 12px;
  text-align: left;
}

.technical-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}

.technical-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Responsive Videos */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin: 30px 0;
  border-radius: 10px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Download Resources */
.download-resources {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: 10px;
  margin: 40px 0;
}

.download-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.download-icon {
  margin-right: 15px;
  color: var(--primary-medium);
  font-size: 1.5rem;
}

.download-info {
  flex: 1;
}

.download-size {
  color: var(--text-light);
  font-size: 0.9rem;
}

