/* === General === */
body {
  /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  font-size: 1.0rem; /* or any size you prefer */
}

h2 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d3280; 
  font-size: 2.0rem; /* or any size you prefer */
  font-family: 'Roboto', sans-serif;
  /*text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);*/
}

a {
  text-decoration: none;
}

 .highlight-box {
            background-color: #E6E6FA; /* Light yellow background #f9f9a9; */
            border: 2px solid #f1c40f; /* Yellow border */
            padding: 20px;
            border-radius: 8px;
            margin: 20px auto;
            max-width: 1200px; /* Inital width: 850px; */
            transition: background 0.3s;
        }

/* === Navbar === */
.navbar {
  background-color:  #2d3280 !important; /* Teal */
}

.navbar .navbar-brand {
  color: #fff8b8 !important;;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar .navbar-brand:hover {
  color: #ffffd0 !important;;
}

.navbar .navbar-brand img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.main-title {
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.sub-title {
  color: white;
  font-size: 12px;
  opacity: 0.8;
}
.navbar .nav-link {
  color: #e0f2f1 !important;;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:active {
  color: #ffd54f !important;;
}

.nav-link:visited {
  color: #e0f2f1  !important;     /* visited */
}

.navbar-toggler {
  border-color: #ffd54f !important;;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23ffd54f' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.dropdown-menu-item {
    font-size: 0.85rem; /* adjust as needed */
}

.dropdown-menu,
.dropdown-menu button {
    color:  #333  !important;  /* #333 */
    background-color: #ffffff !important;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu button:hover {
    color: #dc3545 !important;      /* red on hover */
    background-color: #f8d7da !important;
}


/* === End NavBar === */


/* === Carousel === */
.carousel-item {
  height: 600px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 0.5rem;
}

.carousel-control-prev i,
.carousel-control-next i {
  font-size: 2.5rem;
  color: white;
  opacity: 0.8;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
  color: #ddd;
  opacity: 1;
}
/* === End Carousel === */

/* === Feature Cards === */
.feature-card {
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-report {
  background-color: #007bff;
  color: #fff;
}

.card-data {
  background-color: #28a745;
  color: #fff;
}

.card-news {
  background-color: #fd7e14;
  color: #fff;
}

.card-body {
    color: white;
    font-size: 1.25rem; /* or any size you prefer */
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.card-header {
  height: 250px;
  overflow: hidden;
}

.card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* === End Feature Cards === */

/* === Scroll-to-top button === */
#scrollTopBtn {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#scrollTopBtn.show {
  opacity: 1;
}
/* === End style Scroll-to-top button === */

/* === Footer === */
.footer {
  background-color: #2d3280 !important;; 
  color: #ffffff !important;;
  font-size: 1rem;
}

.footer a {
  color: #ffc107 !important;;
}

.footer a:hover {
  color: #fff !important;;
  text-decoration: underline;
}

.footer a:visited {
    color:  #ffc107 !important;
}

.footer-copy {
  font-size: 0.6rem;
  margin-top: 1rem;
}
/* ===End style Footer === */

/* == style for section pages */
.image-header-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-header-container img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .header-image {
        height: 450px;
    }
    
    #sidebar {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
    }

    #content {
        margin-left: 0 !important;
    }
}

@media (min-width: 1200px) {
    .header-image {
        height: 600px;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* semi-transparent black */
    z-index: 1;
}

.image-title {
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin: 0;
}

.label-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 2rem);   /* fluid gap between images */
  padding: 0 clamp(0.5rem, 3vw, 3rem); /* fluid left & right padding */
}

.label-img {
  flex: 1;                  /* each takes equal space */
  max-width: 50%;           /* make sure they don’t exceed half the card */
  height: 180px;            /* fixed equal height */
  object-fit: cover;        /* crop nicely */
  border-radius: 8px;       /* optional rounded corners */
}

label.required::after {
  content: " *";
  color: red;
}

/* == End style for section pages */