/* ===== Global Styles ===== */
html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  color: #212529;
}

main {
  flex: 1;
}

nav{
  background-color: #1e3799!important;
}

/* ===== Buttons and Forms ===== */
.form-control, .btn {
  border-radius: 0.375rem;
}

/* ===== Footer ===== */
footer {
  background-color: #1e3799!important;
  color: #ccc;
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
  flex-shrink: 0;
}

footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
}

/* ===== Hero Sections ===== */
.hero {
  position: relative;
  min-height: 60vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Overlay common to all heroes */
.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* dark overlay */
  z-index: 1;
}

/* Container inside hero */
.hero .container {
  position: relative;
  z-index: 2;
  padding: 20px;
}

/* Additional shared styles, for example for text shadows */
.hero h1, .hero h2, .hero h3 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .hero {
    height: 50vh !important;
    padding: 20px;
  }
  .hero h1 {
    font-size: 1.8rem !important;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.5rem !important;
  }
  .hero p {
    font-size: 0.9rem;
  }
}

/* ===== Index Page ===== */

.stats-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.stat-box {
  text-align: center;
  padding: 20px;
}

.stat-box h2 {
  font-size: 2.5rem;
  color: #007bff;
}

.news-section {
  padding: 60px 0;
}

.news-card img {
  height: 200px;
  object-fit: cover;
}

.partners-section {
  padding: 60px 0;
  background-color: #f1f1f1;
}

.partner-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.partner-logos img {
  height: 80px;
  max-width: 180px;
  object-fit: contain;
   filter: grayscale(0%);
}

.partner-logos img:hover {

   filter: grayscale(100%);
  transition: filter 0.3s ease;
}

/* ===== About Page ===== */


section {
  padding: 60px 0;
}

.section-title {
  margin-bottom: 40px;
  font-weight: bold;
}

.icon-box {
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: 0.3s;
}

.icon-box:hover {
  background: #e9ecef;
}

.timeline {
  border-left: 3px solid #007bff;
  padding-left: 20px;
}

.timeline h5 {
  color: #007bff;
}

/* ===== News Page ===== */
.news-hero {
  background: url('../images/news-banner.jpg') center center/cover no-repeat;
  color: white;
  padding: 100px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.nav-pills .nav-link.active {
  background-color: #004080;
}

/* ===== Programmes Page ===== */

.programmes-section {
  padding: 60px 0;
}

.programme-card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.programme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.programme-icon {
  font-size: 3rem;
  color: #007bff;
  margin-bottom: 20px;
}

/* ===== Publications Page ===== */
.card-title i {
  vertical-align: middle;
}

.card:hover {
  transform: translateY(-3px);
  transition: 0.3s ease-in-out;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

footer {
  background-color: #f8f9fa;
  color: #212529;
  padding: 30px 0;
  margin-top: 80px;
}

/* ===== Affiliates Page ===== */
.aff-hero {
  background: url('../images/affiliates.jpg') center/cover no-repeat;
  color: white;
  padding: 100px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  text-align: center;
}

.aff-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.aff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.aff-logo {
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* ===== Campaigns Page ===== */
:root {
  --dark: #1a1a1a;
  --primary: #004d7a;
  --accent: #f4a261;
}

.campaigns-body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}

.hero.campaign-hero {
  height: 60vh;
  justify-content: center;
  position: relative;
  background: url('https://via.placeholder.com/1600x600?text=SATUCC+Campaigns') center/cover no-repeat;
}

.hero.campaign-hero h1 {
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
  font-size: 3rem;
  color: white;
}

.campaign-block {
  display: flex;
  align-items: center;
  padding: 80px 0;
  color: white;
  position: relative;
}

.campaign-block .content {
  padding: 40px;
  z-index: 2;
}

.campaign-block.left .image {
  order: 2;
}

.campaign-block.right .image {
  order: 1;
}

.campaign-block .image {
  flex: 1;
  min-height: 300px;
  background-size: cover;
  background-position: center;
}

.campaign-block .text {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
}

.engage {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.engage h2 {
  margin-bottom: 20px;
}

.icon-bubble {
  display: inline-block;
  background: white;
  color: var(--primary);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 15px;
  font-size: 32px;
  transition: transform 0.3s;
}

.icon-bubble:hover {
  transform: scale(1.2);
  background: var(--accent);
  color: white;
}

@media (max-width: 768px) {
  .campaign-block {
    flex-direction: column;
  }
  .campaign-block .image,
  .campaign-block .text {
    order: initial !important;
  }
  .campaign-block .image {
    min-height: 250px;
  }
}

/* ===== Contact Page ===== */
.info-box {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 20px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.info-box:hover {
  transform: translateY(-3px);
}

.info-box i {
  font-size: 1.5rem;
  color: #0d6efd;
  margin-right: 15px;
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

/* ===== Gallery Page ===== */
.gallery-card {
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border-radius: 0.375rem;
  overflow: hidden;
  background: white;
}

.gallery-card:hover {
  transform: translateY(-5px);
}

.gallery-card img {
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.gallery-caption {
  padding: 15px;
}

.gallery-caption h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.gallery-caption p {
  margin: 5px 0 0;
  color: #6c757d;
  font-size: 0.9rem;
}
