:root {
  --green-dark: #004d40;
  --green-light: #00695c;
  --brown: #8B4513;
  --cream: #f3f1e7;
}
/* Heading style with green, brown, blue combo */
h1, h2, h3, h4 {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  position: relative;
}

.highlighted-list {
  list-style: none;
  padding: 0;
  font-family: ''Segoe UI', 'Roboto', sans-serif;
}

.highlighted-list li {
  padding: 10px 15px;
  margin-bottom: 8px;
  background-color: #f4f4f4;
  border-radius: 8px;
  transition: 0.3s ease;
}
.highlighted-list li:last-child {
  background-color: #ffe6b3;
  border-left: 5px solid #ffa500;
  font-weight: bold;
  color: #333;
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.2);
  position: relative;
  padding-left: 30px; /* 👈 Adds space for the icon */
}

.highlighted-list li:last-child::before {
  content: "🎯";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
/* Gradient border underline effect */
h1::after, h2::after, h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin: 8px auto 0;
  background: linear-gradient(to right, #2c6e49, #a47148, #2980b9); /* green, brown, blue */
  border-radius: 2px;
}

/* Optional different colors for each level */
h1 {
  color: #034721; /* Deep green */
}

h2 {
  color: #6d3405; /* Soft brown */
}

h3 {
  color: #03253b; /* Strong blue */
}
body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

/* Reduce banner height and remove spacing */
.banner-wrapper {
  height: 100px !important;      /* Forcefully override Bootstrap */
  overflow: hidden !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  margin-bottom: 0!important;
}

.banner-wrapper img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 768px) {
  .banner-wrapper {
    height: auto !important;
    overflow: visible !important;
  }

  .banner-wrapper img {
    height: auto !important;
    object-fit: contain !important;
  }
}
.custom-heading {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .custom-heading {
    font-size: 2rem;
  }
}

/* Remove gap from header and topbar */
.about-header {
  margin: 0!important;
  padding: 0!important;
}

.topbar {
  margin-top: 0!important;
  padding: 8px 0;
  background-color: rgba(180, 102, 13, 0.808);
  margin-top: o;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-wrapper {
    height: 180px;
  }

  .topbar h4 {
    font-size: 1rem;
    padding: 4px 10px;
  }
}
/* Add spacing between navbar links */
.navbar-nav .nav-item {
  margin: 0 12px;   /* Adjust the number for more/less spacing */
}

/* Optional: Add spacing inside the links */
.navbar-nav .nav-link {
  padding: 8px 14px;
}


.body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
  padding: 20px;
}
body, html {
      padding: 0;
      margin: 0;
    }
#myCarousel {
      width: 100vw;
     
    }
  .hero-image-wrapper {
  width: 100%;
  height: 400px; /* adjust as needed */
  overflow: hidden; /* optional */
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
      background-color: rgba(0, 0, 0, 0.5);
      border-radius: 10%;
    }
:root {
  --green-dark: #14532d;
  --brown: #a0522d;
}
a.nav-link.custom-nav[href="#niphm"] {
  color: yellow !important;
  font-weight: bold !important;
  font-size: larger;
}
/* Navbar background */
.custom-navbar {
  background-color: #004d40;
}

.custom-navbar {
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

/* Link styling */
.custom-nav {
  color: white !important;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  font-size: large;
  padding: 6px 10px !important;
  text-align: center;
  white-space: nowrap;
}

/* Hover effect */
.custom-nav:hover {
  background-color:  rgba(180, 102, 13, 0.808); 
}

/* Dropdown menu */
.custom-dropdown {
  background-color: rgba(180, 102, 13, 0.808);
  border: none;
  padding: 0;
  min-width: 220px;
  line-height: 0.4;
}

/* Dropdown items */
.custom-dropdown .dropdown-item {
  padding: 12px;
  color: white;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  font-size:large;
  line-height: 0.15;
}

/* Hover for dropdown item */
.custom-dropdown .dropdown-item:hover {
  background-color:rgb(109, 63, 3);
}

/* Nav alignment */
.navbar-nav {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

/* Responsive for mobile */
@media (max-width: 991px) {
  .navbar-nav {
    flex-direction: column;
    align-items: center;
  }

  .custom-dropdown {
    position: static;
    width: 100%;
  }
}

/* Scrolling News */
.scrolling-news-bar {
  background-color: rgba(180, 102, 13, 0.808);
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  font-size: 1.0rem;
  margin-bottom: 0 !important;

}

.news-track-wrapper {
  height: 1.5rem;
  overflow: hidden;
}

.news-track {
  display: inline-block;
  white-space: nowrap;
  animation: scrollNews 40s linear infinite;
  margin-bottom: 0 !important;
  margin-bottom:0;
  margin-top: 0;
  border-radius: 0;
}

.news-track span {
  display: inline-block;
  margin-right: 1.5rem;
  margin-bottom:0 !important ;
}

.news-track a {
  color: white;
  text-decoration: none;
}

.news-track a:hover {
  color: #ffd700;
  text-decoration: underline;
}

@keyframes scrollNews {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Sidebar */
body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background: #fdfdfd;
  margin: 0;
  scroll-behavior: smooth;
}

 .side-nav {
      position: sticky;
      top: 0;
      height: 100vh;
      width: 150px;
      background: #004d40;
      padding: 20px 10px;
      overflow-y: auto;
    }
.side-nav ul {
      list-style-type: none;
      padding: 0;
      margin: 0;
    }

    .side-nav ul li {
      margin-bottom: 12px;
      color: white;
    }

    .side-nav ul a {
      font-size: medium;
      text-align: left;
    }

    .side-nav ul li a {
      display: block;
      width: 100%;
      background: #004d40;
      color: white;
      text-decoration: none;
      padding: 12px;
      text-align: left;
      transition: all 0.3s ease;
    }

    .side-nav ul li a:hover {
      background-color: rgba(180, 102, 13, 0.808);
      transform: translateX(4px);
      color: white;
      
    }
    .main-content {
      flex: 1;
      padding: 40px;
      background-color: #fff;
    }


/* Global Typography and Layout */
body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  text-align: center;
  font-weight: 600;
  margin: 1rem 0;
}
.bg-topbar {
  background-color: rgba(128, 69, 2, 0.808);
}

@media (max-width: 576px) {
  .bg-topbar h4 {
    font-size: 1rem;
  }
}

p {
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
  max-width: 900px;
  margin: 1rem auto;
}

ul {
  text-align: left;
  max-width: 900px;
  margin: 1rem auto;
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

ul ul {
  margin-top: 8px;
  padding-left: 1.2rem;
}

/* Page Containers */
.main-content {
  max-width: 900px;
  background-color: #f9f9f9;
  margin-top: 0!important;
  padding-top: 0!important;

}

.about-section,
.content-section,
.section {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  margin-top: 0!important;
  animation: fadeIn 0.5s ease-in-out;
}

/* Header and Logo */
.about-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 1rem auto 1.5rem;
  margin-top: 0!important;
  text-align: center;
}

.about-header img,
.niphm-logo {
  width: 80px;
  height: auto;
}

.about-header h2 {
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: underline;
  margin: 0;
}

/* Highlighted Lists */
ul.highlighted-list li {
  font-weight: 500;
  color: #1e40af;
}

/* Info Box */
.content-box {
  background: #e0e7ff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 10px #c7d2fe;
  margin: 1.5rem auto;
  max-width: 850px;
}

/* News track wrapper (optional) */
.news-track-wrapper {
  height: 1.5rem;
  overflow: hidden;
  margin-bottom:0!important;
}

/* Flex layout container */
.page-layout {
  display: flex;
  margin: 0;
  padding: 0;
}

/* Responsive Styling */
@media screen and (max-width: 768px) {
  .page-layout {
    flex-direction: column;
  }

  .side-nav {
    width: 100%;
    height: auto;
    position: relative;
  }

  .main-content {
    padding: 1rem;
  }

  .about-header {
    flex-direction: column;
    gap: 10px;
  }

  .niphm-logo,
  .about-header img {
    width: 60px;
    margin-left: 0;
  }

  .about-header h2 {
    font-size: 1.4rem;
  }

  .about-content p,
  .about-content ul li {
    font-size: 0.95rem;
  }

  .content-box {
    padding: 15px;
    box-shadow: none;
    border-radius: 8px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sidebar {
  border-right: 1px solid #ddd;
  background-color: #f8f9fa;
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }
}

 .section {
      text-align: center;
      padding: 40px 15px;
    }
    .section-title {
      font-size: 28px;
      font-weight: bold;
      margin-bottom: 20px;
      text-transform: uppercase;
    }
    .section p {
      max-width: 800px;
      margin: 0 auto 30px;
      font-size: 1.1rem;
    }
    .slideshow-container {
      position: relative;
      max-width: 600px;
      margin: 0 auto 40px;
    }
    .mySlides {
      display: none;
      animation: fade 1.5s ease-in-out;
    }
    .mySlides img {
      width: 100%;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .prev, .next {
      cursor: pointer;
      position: absolute;
      top: 50%;
      width: auto;
      padding: 10px;
      color: white;
      font-weight: bold;
      font-size: 24px;
      transition: 0.3s;
      user-select: none;
      background-color: rgba(0, 0, 0, 0.4);
      border-radius: 50%;
    }
    .prev:hover, .next:hover {
      background-color: rgba(0, 0, 0, 0.8);
    }
    .prev {
      left: 10px;
    }
    .next {
      right: 10px;
    }
    .dot {
      height: 15px;
      width: 15px;
      margin: 0 5px;
      background-color: #bbb;
      border-radius: 50%;
      display: inline-block;
      transition: background-color 0.3s;
    }
    .dot.active {
      background-color: #333;
    }
    @keyframes fade {
      from { opacity: .4; }
      to { opacity: 1; }
    }
  /* Confines the logo scroll area */
.logo-carousel-wrapper {
  margin-left: 160px; /* Adjust based on sticky sidebar width */
  overflow: hidden;
  position: relative;
  background: #f9f9f9;
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
}

/* Carousel container */
.logo-carousel {
  overflow: hidden;
  width: 100%;
}

/* Logo sliding track */
.logo-slide-track {
  display: flex;
  width: max-content;
  animation: scroll 35s linear infinite;
}

/* Each logo container */
.logo-slide {
  flex: 0 0 auto;
  width: 200px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-slide img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-slide img:hover {
  transform: scale(1.1);
}

/* Animation for scrolling logos */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .logo-carousel-wrapper {
    margin-left: 0;
    padding: 8px 0;
  }

  .logo-slide {
    width: 140px;
    padding: 6px;
  }

  .logo-slide-track {
    animation-duration: 25s;
  }
}
#myCarousel {
  height: 300px; /* Adjust height as needed */
  overflow: hidden;
}

#myCarousel .carousel-inner,
#myCarousel .carousel-item,
#myCarousel .carousel-item img {
  height: 100%;
}
.hero-image-wrapper {
  height: 300px; /* or 300px as needed */
  overflow: hidden;
}

.hero-image-wrapper img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

#myCarousel .carousel-item img {
  object-fit: cover; /* Ensures the image covers the space without distortion */
  width: 100%;
}
/* Adjust for sticky sidebar – tweak margin-left as per actual sidebar width */
.modern-recruiters-section {
  margin-left: 200px; /* <-- Adjust this value based on your sidebar width */
}

.animated-section {
  background: linear-gradient(to right, #03b64e, #035327);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 0.8rem 1rem;
}

.custom-heading {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  font-size: 1.5rem;
  margin: 0;
}

/* Optional fade-in if you don’t want Animate.css */
@keyframes fadeInUpCustom {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.custom-heading {
  animation: fadeInUpCustom 1s ease-out;
}
/* Reduce space between sections */
.section {
  margin-top: 2rem !important; /* or 1rem */
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Optional: Add a smooth animation */
.section-title {
  animation-duration: 1s;
  animation-fill-mode: both;
}
.footer-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
     url('images/mg-blo.jpg') no-repeat center center/cover;
    color: white;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    animation: fadeIn 1.5s ease-in-out;
  }

  .footer-contact h2,
  .footer-contact p,
  .footer-contact address {
    color: white;
  }

  .footer-contact a {
    color: rgb(153, 59, 5);
  }

  .animate-heading {
    animation: fadeInDown 1s ease-out;
  }
.map-container {
  height: 500px; /* Increase or adjust as needed */
  overflow: hidden;
  width: 500px;
}
.highlight-yellow {
  color: yellow;
  font-weight: 600;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background-color: #b4660d;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#scrollToTopBtn.show {
  display: block;
}
@media (min-width: 769px) {
  .footer-section {
    margin-left: 150px; /* Match the sidebar width */
  }
}
@keyframes slideInLeft {
      from {
        transform: translateX(-100%);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    /* Applying the animation with a custom class */
    .slide-in-left {
      animation: slideInLeft 0.6s ease-out forwards;
    }

    /* Optional spacing tweak if you want extra gap */
    .custom-left-gap {
      margin-left: 24px; /* tweak as needed */
    }
    /* Reduce space between sections */
.section {
  margin-top: 2rem !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Animate headings smoothly */
.section-title {
  animation-duration: 1s;
  animation-fill-mode: both;
  text-align: center;
  font-weight: 600;
}

/* Optional: Animate headings on scroll */
@media (prefers-reduced-motion: no-preference) {
  .section-title.animate__animated {
    visibility: visible;
  }
}
.recruitment-section {
  background: linear-gradient(to bottom right, #f0f4f8, #ffffff);
}

.recruitment-section .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recruitment-section .card:hover {
  transform: translateY(-8px);
}
.small-dropdown .dropdown-item {
  font-size: 0.7rem; /* or 14px */
  padding: 6px 10px;    /* optional: reduce padding too */
}
* Section Styling */
.programmes-section {
  padding: 60px 20px;
  background: #f9fafb;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #333;
}

/* Header */
.section-header {
  text-align: center;
  margin-bottom: 30px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2e7d32;
}
.section-header p {
  color: #555;
  font-size: 1rem;
}
.section-header span {
  font-weight: 600;
  color: #1b5e20;
}

/* Timeline Badge */
.timeline-badge {
  display: inline-block;
  margin: 0 auto 30px;
  background: #2e7d32;
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Card */
.programme-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Headings inside card */
.programme-card h3 {
  margin-top: 25px;
  color: #2e7d32;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Lists */
.programmes-list,
.features-list {
  margin: 15px 0;
  padding-left: 20px;
}
.programmes-list li,
.features-list li {
  margin-bottom: 8px;
}

.specializations {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
}
.specializations ul {
  list-style: none;
  padding: 0;
}
.specializations li {
  margin-bottom: 8px;
}

/* Quotes */
.quotes {
  margin-top: 30px;
}
blockquote {
  border-left: 4px solid #2e7d32;
  padding-left: 16px;
  margin-bottom: 20px;
  color: #444;
  font-style: italic;
}
blockquote footer {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}
.section-header {
  text-align: center;
  margin-bottom: 20px; /* reduced from 30px */
}

.sub-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px; /* tight spacing between text & badge */
  margin-top: 8px;
}

.section-header p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

.timeline-badge {
  background: #2e7d32;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.sub-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* space between text and badge */
  margin-top: 8px;
  flex-wrap: wrap; /* makes it responsive on small screens */
}

.section-header p {
  margin: 0;
  font-size: 1rem;
  color: #444;
  font-weight: 500;
}

.section-header span {
  font-weight: 600;
  color: #1b5e20;
}

.timeline-badge {
  background: #2e7d32;
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.mou-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f9fafb, #eef5f0);
  font-family: "Segoe UI", Roboto, sans-serif;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2e7d32;
}

.sub-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.section-header p {
  margin: 0;
  font-size: 1rem;
  color: #444;
  font-weight: 500;
}

.section-header span {
  font-weight: 600;
  color: #1b5e20;
}

.timeline-badge {
  background: linear-gradient(90deg, #2e7d32, #43a047);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.programme-card {
  margin-top: 15px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.mou-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.mou-image {
  text-align: center;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  max-width: 600px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mou-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.mou-image img {
  max-width: 100%;
  border-radius: 12px;
}

.mou-caption {
  margin-top: 12px;
  font-size: 1.8rem;
  font-weight: 800;
  color: #031d04;
  letter-spacing: 0.5px;
  text-align: center;
}
.nowrap-text {
  color: rgb(184, 124, 47);
  white-space: nowrap; /* prevents line break */
}

.footer-links {
  margin-top: 5px; /* top margin */
}

.footer-links h6 {
  color: #f8f9fa;
  letter-spacing: 1px;
}

.footer-links ul li {
  margin-bottom: 8px;
  position: relative;
}

.footer-links a {
  color: #ddd;
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease-in-out;
  padding-left: 5px;
}

.footer-links a::before {
  content: "›";
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  color: #ffdd99;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(5px); /* smooth slide animation */
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}
 #map {
    width: 100%;        /* Full width */
    height: 300px;      /* Increase height */
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }
  #niphmMap {
    width: 100%;
    height: 400px; /* essential for visibility */
  }
 ---------------- Scroll to top ---------------- */
    
.map-section {
  padding: 20px 0;
}

.map-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.niphm-map {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
/* Scroll To Top Button */
#scrollToTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  display: none;
  background-color: #198754; /* green theme */
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #145c35;
  transform: translateY(-3px);
}
/* Full-width footer background */
.footer-bg {
  background-color: #0a3d2e!important; /* deep green – matches NIPHM theme */
  color: white;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Remove extra spacing around footer */
.footer-section {
  margin: 0;
  padding-top: 40px;
  padding-bottom: 40px;
}
  .mou-theme {
    --green: #144216;
    --brown: #ce8422;
    --beige: #f9f8f3;
    --light-brown: #e5d3b3;
    --dark-text: #3e2723;
    --muted-text: #1f4d5f;
  }

  .mou-theme .modal-content {
    background-color: var(--beige);
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease;
  }

  .mou-theme .modal-header {
    background-color: var(--brown);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
  }

  .mou-theme .modal-header .btn-close {
    filter: brightness(0) invert(1);
  }

  .mou-theme .modal-body {
    padding: 1rem 1.2rem;
    color: var(--dark-text);
  }

  .mou-theme .uni-title { color: var(--green); }
  .mou-theme .year-info { color: var(--muted-text); }
  .mou-theme .year-info span { color: var(--green); }

  .mou-theme .badge {
    background-color: var(--light-brown);
    color: var(--green);
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 0.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    display: inline-block;
  }

  .mou-theme .caption { color: var(--muted-text); }

  .mou-theme .modal-footer {
    background-color: var(--beige);
    border: none;
    padding: 0.6rem;
  }

  .mou-theme .btn-success {
    background-color: var(--green);
    border: none;
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
  }

  .mou-theme .btn-success:hover { background-color: #256728; }

  /* Image Hover */
  .mou-theme .mou-image-container img {
    max-height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .mou-theme .mou-image-container img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(92, 64, 51, 0.3);
  }

  /* Clickable Link */
  .mou-theme .mou-link {
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .mou-theme .mou-link:hover {
    transform: scale(1.02);
  }

  @keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
  
  .btn-close::before {
  content: '✕';
  color: white;
  font-size: 1.5rem;
  line-height: 1;
}
.btn-close {
  background: none !important;
  border: none;
}
