/* ==================================================
   GOOGLE FONT (GLOBAL)
================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/* ==================================================
   CSS VARIABLES (ORIGINAL COLOR PALETTE)
================================================== */
:root {
  --primary: #136781;
  --primary-dark: #035778;
  --accent: #4395ae;
  --bg-light: #f2f2f2;
  --text-dark: #000;
}


/* ==================================================
   RESET & GLOBAL BASE
================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 110px; /* match navbar height */
}


/* ==================================================
   TYPOGRAPHY SYSTEM (CLEAN & NON-REDUNDANT)
================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }

p {
  font-size: 1.05rem;
  margin: 0 0 1rem;
}


/* ==================================================
   NAVBAR
================================================== */
.navbar-brand img {
  height: 50px;
}

.nav-link {
  font-weight: 500;
  letter-spacing: 1px;
}

.social-icons a {
  margin-left: 10px;
  font-size: 1.2rem;
  color: #333;
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: var(--accent);
}


/* ==================================================
   HERO VIDEO + TEXT CAROUSEL (FIXED & REDUCED TEXT)
================================================== */
.video-section {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.video-section video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Swiper container */
.textSwiper {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slides */
.textSwiper .swiper-slide {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Slide text wrapper */
.slide-content {
  max-width: 820px;
  padding: 0 20px;
  color: #fff;
}

/* ⬇️ REDUCED DESKTOP CAROUSEL TEXT */
.slide-content h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.slide-content h3 {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.4;
}


/* ==================================================
   CAROUSEL PAGINATION
================================================== */
.textSwiper .swiper-pagination {
  bottom: 18px !important;
}

.textSwiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}

.textSwiper .swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
}


/* ==================================================
   UNOPS-STYLE OVERLAP PANEL (PRODUCTION SAFE)
================================================== */
.overlap-panel-section {
  position: relative;
  margin-top: -110px;
  z-index: 10;
}

.overlap-panel {
  background: #fff;
  padding: 32px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.panel-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 18px;
}

.panel-item {
  margin-bottom: 18px;
}

.panel-tag {
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
}

.panel-tag.news { color: var(--primary); }
.panel-tag.article { color: #00a68f; }
.panel-tag.book { color: #f58220; }

.panel-link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}


/* ==================================================
   CONTENT UTILITIES
================================================== */
.custom-text-color {
  color: var(--primary) !important;
}

.bg-bg {
  background: var(--bg-light);
}

.custom-border {
  width: 25%;
  border: 2px solid var(--accent);
  margin: 60px 0;
}

.footer-bg {
  background: var(--primary-dark);
}


/* ==================================================
   FORMS (BOOTSTRAP-SAFE)
================================================== */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-container input,
.form-container textarea {
  width: 100%;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #000;
}

.custom-button {
  border: 1px solid var(--accent);
  padding: 8px 24px;
  color: var(--accent);
  font-weight: 600;
  border-radius: 20px;
  background: transparent;
  transition: all 0.2s ease;
}

.custom-button:hover {
  background: var(--accent);
  color: #fff;
}


/* ==================================================
   MOBILE OPTIMIZATION (SMALLER CAROUSEL TEXT)
================================================== */
@media (max-width: 768px) {

  .video-section {
    height: 60vh;
  }

  /* ⬇️ FURTHER REDUCED MOBILE CAROUSEL TEXT */
  .slide-content h2 {
    font-size: 1.25rem;
  }

  .slide-content h3 {
    font-size: 0.9rem;
  }

  .overlap-panel-section {
    margin-top: 0;
  }

  .overlap-panel {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {

  .video-section {
    height: 55vh;
  }

  .slide-content h2 {
    font-size: 1.1rem;
  }

  .slide-content h3 {
    font-size: 0.85rem;
  }
}

/* ===== Page-specific overrides ===== */
.books-hero h1.custom-text-color,
.books-hero .hero-copy p {
  color: #ffffff !important;
}

.resources-hero h1.custom-text-color,
.resources-hero .hero-copy p {
  color: #ffffff !important;
}

.work-hero h2.custom-text-color,
.work-hero .hero-copy p {
  color: #ffffff !important;
}

.article-hero h2.custom-text-color,
.article-hero .hero-copy p {
  color: #ffffff;
}