/* =========================
   General page styling
   ========================= */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb); /* soft light blue gradient */
  color: #333;   /* darker text for readability */
  line-height: 1.6;
}

/* =========================
   Buttons (harmonize with light blue theme)
   ========================= */
.btn-primary {
  background-color: #1976d2;   /* medium blue accent */
  border-color: #1565c0;
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #2196f3;   /* brighter blue on hover */
  border-color: #1976d2;
}
.btn-primary:active {
  background-color: #1565c0;   /* darker pressed state */
  border-color: #0d47a1;
}

/* =========================
   Section spacing (global)
   ========================= */
section {
  padding: 20px 0;
}
section + section {
  margin-top: 20px;
}

/* =========================
   Hero section
   ========================= */
.hero {
  position: relative;
  height: 80vh;
  overflow: visible;
}

.hero .carousel-item img {
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  z-index: 2;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,9,4,0.4);
  z-index: 1;
}

/* Mission & Vision cards */
.hero-mv {
  position: relative;
  z-index: 2;
  margin-top: -80px;
}
.hero-card {
  position: relative;
  z-index: 2;
  width: 220px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 15px;
  text-align: center;
}
.hero-card h5 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #0044cc;
}
.hero-card p {
  font-size: 0.9rem;
  color: #333;
}

/* Quick cards */
.quick-card {
  background: rgba(255,255,255,0.7); /* semi-transparent white background */
  border: 2px solid rgba(255,255,255,0.4); /* transparent border */
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* subtle shadow */
  transition: all 0.3s ease;
}
.quick-card:hover {
  border-color: rgba(255,255,255,0.7); /* border becomes more visible on hover */
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Quick links positioning */
.hero-left {
  position: absolute;
  left: 0;              /* extreme left */
  top: 50%;
  transform: translateY(-50%);
  padding-left: 1rem;   /* breathing room */
}
.hero-right {
  position: absolute;
  right: 0;             /* extreme right */
  top: 50%;
  transform: translateY(-50%);
  padding-right: -50rem;  /* breathing room */
}
.hero-center {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.carousel-item img {
  filter: brightness(1.2); /* increase brightness by 20% */
}

/* =========================
   Carousel (homepage + announcement)
   ========================= */
#homepageCarousel,
#announcementCarousel {
  max-width: 900px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
}
#homepageCarousel .carousel-inner,
#announcementCarousel .carousel-inner {
  border-radius: 12px;
  overflow: hidden;
}
#homepageCarousel .carousel-item img,
#announcementCarousel .carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 992px) {
  #homepageCarousel .carousel-item img,
  #announcementCarousel .carousel-item img {
    height: 350px;
  }
}
@media (max-width: 576px) {
  #homepageCarousel .carousel-item img,
  #announcementCarousel .carousel-item img {
    height: 250px;
  }
}

/* Carousel captions */
.carousel-caption {
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 18px 22px;
  border-radius: 12px;
  text-align: left;
}
.carousel-caption h5 {
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}
.carousel-caption p {
  font-size: 1rem;
  color: #f1f1f1;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Announcements column */
.announcement-col {
  background-color: transparent;
  border: 1px solid #dee2e6;
  padding: 20px;
  border-radius: 6px;
  color: #fff;
  height: 100%;          /* stretch to match row height */
}
.announcement-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* =========================
   Responsive adjustments
   ========================= */
@media (max-width: 992px) {
  .hero { height: 55vh; flex-direction: column; justify-content: center; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-card { width: 100%; margin-bottom: 15px; }
}
@media (max-width: 576px) {
  .hero { height: auto; padding: 10px; }
  .hero-content { margin-top: 20px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.9rem; }
  .hero .btn { padding: 8px 16px; font-size: 0.9rem; }
}

/* =========================
   Cards
   ========================= */
.card {
  border-radius: 8px;
  overflow: hidden;
}
.card-body {
  color: #333;
}
.card-title {
  font-weight: 600;
}
/* Force equal height cards in the grid */
.row.g-4 > [class*="col-"] {
  display: flex;
}
.row.g-4 .card {
  flex: 1 1 auto;
}
.card-img-top {
  height: 180px;
  object-fit: cover;
}

/* =========================
   Stats counters
   ========================= */
section.bg-light {
  background-color: transparent;
}
section.bg-light h2 { color: #0044cc; }
.stats-section {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.stats-box {
  background-color: #c62828;   /* red background */
  border-radius: 8px;
  padding: 15px 20px;
  margin: 0 auto;
  max-width: 900px;
}

/* =========================
   Testimonials spacing
   ========================= */
section.testimonials {
  padding: 20px 0;
  margin-bottom: 20px;
}

/* =========================
   Leadership spacing
   ========================= */
section.leadership {
  padding: 20px 0;
  margin-bottom: 30px;
}
.leadership-img {
  border-radius: 50%;
  border: 4px solid #0044cc;
  object-fit: cover;
  width: 180px;
  height: 180px;
  margin-bottom: 15px;
}

/* =========================
   Quick Links row
   ========================= */
.quick-links-row {
  margin-top: 0 !important;
  padding: 30px 0;
  position: relative;
  z-index: 3;
}
.quick-links-row .card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-links-row .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* =========================
   Quick Links icons
   ========================= */
.card i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* =========================
   Footer
   ========================= */
footer {
  background: #0044cc;
  color: #fff;
  padding: 20px 0;
}
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* =========================
   Buttons (harmonize with green background)
   ========================= */
.btn-primary {
  background-color: #006400;   /* dark green */
  border-color: #004d00;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #008000;   /* brighter green on hover */
  border-color: #006400;
}
.btn-primary:active {
  background-color: #004d00;   /* pressed state */
  border-color: #003300;
}


/* =========================
   Carousel 
   ========================= */
.carousel-title-bar {
    position: absolute;
    bottom: -100%; /* start hidden below */
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 12px 20px;
    z-index: 10; /* ensures it's above the image */
    opacity: 0;
    transition: bottom 0.6s ease, opacity 0.6s ease;
}

.carousel-item.active .carousel-title-bar {
    bottom: 0;   /* slides up into view */
    opacity: 1;  /* fades in */
}

.carousel-title-bar h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}