
/* Remove space between header and carousel */
/* ================= GLOBAL SPACING FIX ================= */
#carousel-section {
    /*padding-bottom: 100px;*/
    position: relative;
    overflow: hidden;
}

header,
nav {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ================= CONTAINERS ================= */
.home-main-section {
  position: relative;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), #f2f2f2);
  padding: 150px 0 60px 0;
  /*margin-top: -100px; /* Pull section upward to overlap carousel */*/
  z-index: 20;
}

.home-main-section .container {
  max-width: 1200px;
  padding-left: 15px;
  padding-right: 15px;
}

/* ================= FEATURE CARDS ================= */
.feature-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 70px; /* increased spacing between cards */
  position: relative;
  top: -90px; /* Adjust overlap height */
  z-index: 30;
}

/* ================= FEATURE CARDS ================= */
/* ================= FEATURE CARDS ================= */
/* ================= FEATURE CARDS ROW ================= */
.feature-row {
  display: flex;
  justify-content: center;
  align-items: stretch; /* makes all cards same height */
  flex-wrap: wrap;
  gap: 70px; /* spacing between cards */
  position: relative;
  top: -90px; /* adjust overlap */
  z-index: 30;
}

/* ================= FEATURE CARDS ================= */
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 210px;
  background: whitesmoke;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 15px;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
  flex: 1; /* allow flex to stretch to same height */
  min-height: 210px; /* minimum height */
}

/* Icon circle + image */
.feature-card .icon-circle {
  background: rgba(255, 255, 255, 0.3);
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-card .icon-circle img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: invert(43%) sepia(87%) saturate(508%) hue-rotate(92deg) brightness(90%) contrast(85%);
  /* green icon */
}

/* Titles & Text */
.feature-card h3 {
  margin: 5px 0;
  font-size: 1rem;
  color: #000;
  word-wrap: break-word;
}

.feature-card p {
  font-size: 0.85rem;
  color: #111;
  margin-top: 5px;
  line-height: 1.4;
  padding: 0 5px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  text-align: center;
  flex-grow: 1; /* ensures all cards stretch equally */
}

/* Hover effect */
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
  .feature-row {
    top: -60px;
    gap: 25px;
  }

  .feature-card {
    width: 170px;
    min-height: 170px;
    padding: 10px;
  }

  .feature-card h3 {
    font-size: 0.9rem;
  }

  .feature-card p {
    font-size: 0.8rem;
  }
}



/* ================= NEWS SECTION ================= */
.news {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.news h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: black;
}
.news h3  {
  
  color: black;
}
.news p{
  color: #000;
}

.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.news-card {
  flex: 1 1 calc(25% - 20px); /* 25% width minus gap */
  max-width: 300px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.news-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 15px;
  text-align: left;
}

/* ================= PUBLICATIONS ================= */
.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #222;
}

.publication-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.publication-card img {
  border-radius: 8px;
  max-height: 320px;
  object-fit: cover;
  width: 100%;
}

.publication-card h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 15px;
  color: #333;
}

.publication-card .read-more {
  display: inline-block;
  margin-top: 10px;
  color: #003366;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.publication-card .read-more:hover {
  color: #0055aa;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ================= ANIMATIONS ================= */
@keyframes slideInLeft {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(50px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInBottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInTop {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-left {
  opacity: 0;
  animation: slideInLeft 4s ease-out forwards;
}

.slide-in-right {
  opacity: 0;
  animation: slideInRight 4s ease-out forwards;
}

.slide-in-bottom {
  opacity: 0;
  animation: slideInBottom 4s ease-out forwards;
}

.slide-in-top {
  opacity: 0;
  animation: slideInTop 4s ease-out forwards;
}

/* Remove space between header and carousel */
/*#carousel-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}*/
header, nav {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Container width */
.home-main-section .container { max-width: 1200px; padding-left:15px; padding-right:15px; }

/* News Section */
.news { padding: 40px; background-color: #f9f9f9; }
.news h2 { text-align: center; margin-bottom: 30px; font-size: 2rem; color: cadetblue; }
.news-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.news-card { width: 100%; max-width: 300px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.news-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 12px 24px rgba(0,0,0,0.2); }
.news-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.card-body { padding: 15px; text-align: left; }

/* Info & Feature Cards */
.info-card, .feature-card {
    width: 100%; max-width: 270px; padding: 25px; background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 20px;
}
.info-card:hover, .feature-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 12px 24px rgba(0,0,0,0.2); }

/* Middle Picture */
.middle-picture img { width: 100%; max-width: 550px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

/* Flex Layout Columns */
.left-column, .right-column { display: flex; flex-direction: column; align-items: center; }

/* Section Title */
.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #222;
}


/* ================= FOOTER ================= */
.site-footer {
  background-color: #001f4d; /* dark blue */
  color: #cccccc; /* gray text */
  padding: 30px 20px 15px;
  font-size: 0.85rem;
}

.site-footer .footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 15px;
}

.site-footer h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #cccccc;
}

.site-footer p,
.site-footer a {
  font-size: 0.85rem;
  color: #cccccc;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-logo {
  max-width: 40px;
  margin-bottom: 8px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a i {
  margin-right: 6px;
  color: #cccccc;
}

.footer-links a:hover i {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 8px;
}


  .carousel-spacing {
    margin-top: 120px; /* Adjust this value based on your header height */
  }

/* Publication Card Styling */
.publication-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.publication-card img {
  border-radius: 8px;
  max-height: 320px;
  object-fit: cover;
  width: 100%;
}

.publication-card h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 15px;
  color: #333;
}

/* Continue Reading link - Blue */
.publication-card .read-more {
  display: inline-block;
  margin-top: 10px;
  color: #003366; /* dark blue */
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

/* ================= CAROUSEL ================= */
.carousel,
.carousel-item,
.carousel-item img {
  width: 100%;
  height: 100vh;
}

.carousel-item img {
  object-fit: cover;
  object-position: center;
  filter: brightness(60%); /* darken images slightly for contrast */
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #cccccc; /* gray text */
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: rgba(0, 0, 0, 0.4);*/
  z-index: 1;
}
.carousel-caption {
  z-index: 2;
}

.publication-card .read-more:hover {
  color: #0055aa; /* lighter blue on hover */
}

/* Hover effect */
.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Slide-in Animations */
@keyframes slideInLeft {0%{transform:translateX(-50px);opacity:0;}100%{transform:translateX(0);opacity:1;}}
@keyframes slideInRight {0%{transform:translateX(50px);opacity:0;}100%{transform:translateX(0);opacity:1;}}
@keyframes slideInBottom {0%{transform:translateY(50px);opacity:0;}100%{transform:translateY(0);opacity:1;}}
@keyframes slideInTop {0%{transform:translateY(-50px);opacity:0;}100%{transform:translateY(0);opacity:1;}}
.slide-in-left{opacity:0;animation:slideInLeft 1s ease-out forwards;}
.slide-in-right{opacity:0;animation:slideInRight 1s ease-out forwards;}
.slide-in-bottom{opacity:0;animation:slideInBottom 1s ease-out forwards;}
.slide-in-top{opacity:0;animation:slideInTop 1s ease-out forwards;}