/*
 * Primary styles for the Gandaki Basin Climate Resilient Project website
 *
 * The palette and typography are inspired by the official flyer. Dark blues
 * and fresh greens evoke water and vegetation, while light backgrounds
 * keep content legible. Responsive layouts ensure the single page looks
 * good on both mobile and desktop screens.
 */

/* CSS reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colour palette inspired by the flyer */
  --primary-color: #003366; /* deep blue for navigation and footer */
  --secondary-color: #2e7d32; /* forest green for highlights */
  --accent-color: #d3e8d4; /* light green for callouts */
  --text-color: #243d5a; /* dark grey-blue for body text */
  --bg-color: #f4f8fb; /* light off‑white background */
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.pb-5{
    padding-bottom:50px;
}

img{
    max-width:100%;
    height:auto;
}

/* Navigation bar */
header {
  width: 100%;
  background-color: var(--primary-color);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  align-items: center;
  max-width: 100%;
  padding: 0.75rem 1rem;
  margin: 0 auto;
}

.nav-container .logo {
    text-align:center;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.nav-container nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-container nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding-bottom: 0.25rem;
}

.nav-container nav a:hover,
.nav-container nav a.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

.nav-wrap{
    position:sticky;
    top:0;
    background-color:#054483;
}

.nav-wrap nav{
    width:100%;
}

.nav-wrap nav ul{
    justify-content:center;
}

.header-text{
    font-size:14px;
    text-align:center;
    color:#fff;
}

.header-text h2{
    font-size:18px;
}

/* Additional navigation controls (language switcher and login button) */
.nav-extra {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  color: #fff;
  font-size: 0.85rem;
}

.lang-option {
  cursor: pointer;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.lang-option.active {
  font-weight: 600;
  opacity: 1;
  color: var(--accent-color);
}

.login-btn {
  background-color: var(--secondary-color) !important;
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
  white-space:nowrap;
}

.login-btn:hover {
  background-color: #276627;
}

section{
      padding: 2rem 1rem;
}

/* Hero section */
.hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Remove the static background image; slides provide their own
     backgrounds via inline styles defined in the HTML. */
  background-image: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Slider styles for the hero section */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
}

/* Slider navigation dots */
.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-dots .dot.active {
  background-color: var(--accent-color);
}

/* Main container */
main {
  max-width: 1200px;
  margin: 0 auto;

}

/* Section headings */
.section-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--secondary-color);
}

/* Introduction */
.intro-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.intro-text {
  flex: 1 1 300px;
}

.intro-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.intro-image {
  flex: 1 1 300px;
}

.intro-image img {
  width: 100%;
  height: 100%;
  aspect-ratio:4/2.3;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Crop settings for specific images to focus on scenic portions */
.intro-photo {
  object-position: right center;
}

/* Crop images used in the interventions section so that they display the
   scenic right‑hand portions of the flyer pages rather than printed text. */
.intervention-photo.forest {
  object-position: 100% center;
}

.intervention-photo.mountain {
  object-position: 100% center;
}

/* Project summary */

#summary{
    padding:50px 16px;
    background-color:#fff;
}

.summary-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.summary-content blockquote {
    text-align:center;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--secondary-color);
  font-style: italic;
  font-weight:600;
  margin: 1.5rem 0;
  border-radius: 0.25rem;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.summary-table th,
.summary-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #dce6f0;
  vertical-align: top;
}

.summary-table th {
  background-color: var(--primary-color);
  color: #fff;
  width: 25%;
  text-align: left;
  font-weight: 500;
}

.summary-table tr:nth-child(even) td {
  background-color: #f3f7fb;
}

/* Outputs */

#outputs,
#contact{
    padding:50px 16px;
    background-color:#fff;
}

.outputs-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.outcomes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.outcome-card {
  flex: 1 1 300px;
  background-color: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.outcome-card h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.outcome-card ul {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.95rem;
}

.outcome-card li {
  margin-bottom: 0.5rem;
}

.map img {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e1e8f0;
}

/* Specific styles for the map image: crop the lower portion of the flyer page to
   reveal the sub‑basins map while hiding the infographic above it. */
/* The map image scales to the width of its container while preserving its
   aspect ratio. */
.map-image {
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Interventions */
.interventions-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  font-size: 1rem;
}

.interventions-content li {
  margin-bottom: 0.5rem;
}

.interventions-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.interventions-images img {
  flex: 1 1 calc(50% - 0.5rem);
  height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid #e1e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Contact */
.contact-content {
  display: flex;
  justify-content:center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 1rem;
}

.contact-card {
  width: calc(33.3% - 15px);
  background-color: #fff;
  border-radius: 0.5rem;
  border: 1px solid #e1e8f0;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-card p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Downloads list styles */
.downloads-list ul {
  list-style: none;
  padding-left: 0;
}

.downloads-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.downloads-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.downloads-list a:hover {
  text-decoration: underline;
}

.mobile-nav{
    display:none;
    justify-content:space-between;
}
.mobile-nav a{
    width:50%;
    text-align:center;
    padding:8px ;
    border-radius:0;
    text-decoration:none;
    background-color:#1862ac;
    color:#fff;
    font-size:14px;
}
.slick-prev:before, .slick-next:before{
    color:var(--primary-color);
}
/* Responsive adjustments */

@media (max-width: 991.98px){

  
  .nav-container nav ul{
      gap:20px;
  }
  
  .nav-container nav a{
      font-size:12px;
  }
}

@media (max-width: 768px) {
    
    .nav-container{
        display:flex;
        gap:15px
    }
    
    .nav-container .logo,
    .header-text{
        width:auto;
    }
    
        .header-text{
            text-align:left;
        }
        
              .nav-wrap{
  display:none;
  }
      .mobile-nav{
        display:flex;
    }
    
  .nav-container nav ul {
    gap: 1rem;
  }
  
  .hero {
    height: 50vh;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-header h2 {
    font-size: 1.5rem;
  }
  .summary-table th,
  .summary-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  .outcome-card h3 {
    font-size: 1rem;
  }
  .outcome-card ul {
    font-size: 0.9rem;
  }
  .contact-card h3 {
    font-size: 1rem;
  }
  .contact-card p {
    font-size: 0.85rem;
  }
}

@media (max-width:575.98px){

    .header-text{
        font-size:12px;
    }
    
    .header-text h2{
        font-size:14px;
    }
}