body {
  overflow-x: hidden;
  font-size: 15px;
}

/* Sidebar base styles */
.sidebar {
  position: fixed;
  width: 96px;
  height: 100%;
  left: 0;
  top: 0;
  background: #002773;
  color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: width 0.3s, transform 0.3s;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar li {
  position: relative;
  width: auto;
  text-align: center;
  padding: 20px 0 18px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar li:hover,
.sidebar li:focus-within {
  /* background: #004bb3; */
}

.sidebar .icon {
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.sidebar .label {
  display: block;
  font-size: 1rem;
  font-weight: 400;
}

/* Flyout base styles */
.flyout {
  /* display: none; */
  position: fixed;
  top: 0;
  left: 96px;
  width: 300px;
  height: 100vh;
  background: #004bb3;
  color: #fff;
  z-index: 1100;
  padding: 2rem 1.5rem;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: width 0.2s;
  overflow-y: auto;

  opacity: 0;
  transform: translateX(-200px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.flyout.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* .sidebar li:hover > .flyout,
.sidebar li:focus-within > .flyout {
  display: block;
} */

.flyout li {
  padding: 0.85rem 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s;
}

.flyout li:last-child {
  border-bottom: none;
}

.flyout li:hover {
  background: #1562cd;
}

@media (max-width: 1200px) {
  .sidebar {
    width: 90px;
  }
  .flyout {
    left: 90px;
    width: 220px;
    height: 100vh;
    padding: 1.2rem 1rem;
  }

  .sidebar .label {
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 83px;
  }
  .flyout {
    left: 83px;
    width: 70vw;
    min-width: 150px;
    max-width: 200px;
    padding: 1rem;
  }
  .sidebar .label {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
    font-size: 15px;
  }

  .sidebar {
    width: 80px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .sidebar .label {
    font-size: 0.9rem;
  }
  .flyout {
    position: absolute;
    left: 80px;
    width: calc(100vw - 80px);
    max-width: 320px;
    min-width: 120px;
    max-height: 80vh;
    padding: 1rem;
    font-size: 0.95rem;
    overflow-y: auto;
    background: #004bb3;
    z-index: 9999;
  }
  .menu-toggle {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 3000;
    background-color: #002773;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
  }

  .container.py-5 {
    margin-left: 0 !important;
    max-width: 100vw;
    padding: 1rem 0.5rem !important;
    width: 100vw;
  }

  /* .carousel-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
  }

  @media (max-width: 576px) {
    .carousel-img {
      height: 400px;
    }
  } */

  /* News cards grid */
  .news-container {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 1rem;
  }
  .news-card img {
    height: 140px !important;
  }
  .news-content {
    padding: 0.7rem !important;
  }
  .news-title {
    font-size: 1.1rem !important;
  }
  .news-description {
    font-size: 0.95rem !important;
  }

  /* Map */
  .map-container iframe {
    width: 100% !important;
    height: 180px !important;
    border-radius: 8px;
  }

  /* Header */
  .header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  .header h2 {
    font-size: 1.2rem !important;
  }
  .all-news-btn {
    font-size: 1rem !important;
    padding: 0.4rem 1rem !important;
    margin-top: 0.5rem !important;
  }

  /* Card box */
  .card-box {
    padding: 10px !important;
    margin-bottom: 18px !important;
  }
  .thumb-lg {
    height: 60px !important;
    width: 60px !important;
  }
}

@media (min-width: 1200px) {
  /* body {
    margin-left: 96px; 
  } */
}

/* Hide menu-toggle by default */
.menu-toggle {
  display: flex;
  background-color: #002773;
  color: #fff;
}

/* Responsive grid for news cards */

/* slideshow */
.carousel-container {
  margin-top: 0;
  max-width: 100%;
  height: 500px;
  position: relative;
  z-index: 1;
}
#mainCarousel {
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
#mainCarousel img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.news-section {
  background-color: #cfcfcf;
  width: 100%;
  margin: 2rem 0 !important;
  padding: 2rem !important;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.header h2 {
  font-size: 2rem;
  margin: 0;
}

.all-news-btn {
  background-color: #0056a3;
  color: white;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
}

.all-news-btn:hover {
  background-color: #003f7a;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns by default */
  gap: 1.5rem;
}

/* Desktop breakpoint (optional, keeps 2 columns above 1000px) */
@media (min-width: 1000px) {
  .news-container {
    grid-template-columns: repeat(2, 1fr); /* Still 2 columns */
  }
}

/* Mobile responsive (stacked 1 column layout) */
@media (max-width: 767px) {
  .news-container {
    grid-template-columns: 1fr; /* Stack on small screens */
  }
}

.news-card {
  background-color: white;
  border-bottom: 3px solid #0056a3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.news-card:hover .news-content {
  background-color: #0056a3;
  color: white;
}

.news-title {
  font-weight: bold;
  color: #0056a3;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.news-card:hover .news-title {
  color: white;
}

.news-description {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  transition: color 0.3s;
}

.news-card:hover .news-description {
  color: #e0e0e0;
}

.news-date {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: color 0.3s;
}

.news-card:hover .news-date {
  color: #cfcfcf;
}

@media (min-width: 1000px) {
  .news-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
.map-container {
  background-color: #98a6ad;
  /* margin: 2rem 0;
      text-align: center; */
}

/* c card */
.card-box {
  padding: 20px;
  border-radius: 3px;
  margin-bottom: 30px;
  background-color: #fff;
}

.social-links li a {
  border-radius: 50%;
  color: rgba(121, 121, 121, 0.8);
  display: inline-block;
  height: 30px;
  line-height: 27px;
  border: 2px solid rgba(121, 121, 121, 0.5);
  text-align: center;
  width: 30px;
}

.social-links li a:hover {
  color: #797979;
  border: 2px solid #797979;
}
.thumb-lg {
  height: 88px;
  width: 88px;
}
.img-thumbnail {
  padding: 0.25rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  max-width: 100%;
  height: auto;
}
.text-pink {
  color: #ff679b !important;
}
.btn-rounded {
  border-radius: 2em;
}
.text-muted {
  color: #98a6ad !important;
}
h4 {
  line-height: 22px;
  font-size: 18px;
}

/* Carousel css */
#carouselExampleCaptions {
  height: 700px;
  overflow: hidden;
}
#carouselExampleCaptions .carousel-item img {
  height: 700px;
  object-fit: cover;
}

@media (max-width: 576px) {
  #carouselExampleCaptions {
    height: auto;
  }
  #carouselExampleCaptions .carousel-item img {
    height: 100%;
    object-fit: cover;
  }
  .carousel-caption{
    display: none;
  }
}

@media (min-width: 1200px) {
  body {
    margin-left: 96px; /* Match your sidebar/flyout width */
  }
  .container.py-5,
  footer,
  .carousel,
  .news-section {
    margin-left: 0 !important;
    max-width: calc(100% - 0px);
  }
}

@media (max-width: 1199.98px) {
  /* body {
    margin-left: 90px;
  } */
  .container.py-5,
  footer,
  .carousel,
  .news-section {
    margin-left: 0 !important;
    max-width: 100%;
  }
}

/* conact us css */

/* Remove border radius from map */
.map-container,
.map-container iframe {
  border-radius: 0 !important;
}

/* Margin left for form column in Contact Us section */
.form.col.mt-4 {
  margin-left: 100px !important;
}

/* News section background and padding */
.news-section {
  background-color: #cfcfcf;
  width: 100%;
  margin: 2rem 0 !important;
  padding: 2rem !important;
}

/* Header button border radius for More Details */
.all-news-btn {
  border-radius: 1px !important;
}
/* logo styles  */

.logo-img {
  max-height: 60px;
  width: auto;
}

@media (max-width: 768px) {
  .logo-img {
    max-height: 40px;
    padding: 0.25rem;
  }
}
/* sidebar icons additional  */
.sidebar .icon i {
  font-size: 1.25rem;
  color: #0d6efd;
  transition: transform 0.3s ease;
}
.sidebar li:hover .icon i {
  transform: scale(1.2);
  color: #ffe75e;
}

.ibm-plex-sans-400 {
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* news area styling  */
.news-card {
  transition: all 0.3s ease-in-out;
}

.news-card:hover .news-content {
  background-color: #002855;
  color: #fff;
}

.news-card:hover .news-content .news-description,
.news-card:hover .news-content .news-date,
.news-card:hover .news-content .news-title {
  color: #fff;
}

.news-img {
  height: 200px;
  object-fit: cover;
}

.news-content {
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* sidebar items custom sstyling  */
.flyout {
  list-style: none;
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid #0d6efd; /* Bootstrap primary blue */
}

.flyout li {
  /* margin: 0.3rem 0; */
}

.flyout li a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease-in-out;
}

.flyout li:hover,
.flyout li:focus {
  background-color: #006cd9;
  color: #fff;
  /* padding-left: 1rem; */
}
/* footer-link styling  */
.footer-links p > a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.footer-links p > a:hover {
  color: #0056b3; /* example: dark blue */
}
/* all news news cards  */
/* Card hover effect */
.news-card-all:hover .card-body {
  background-color: #003366 !important;
  color: white;
}

.news-card-all:hover .card-body a.btn {
  background-color: white;
  color: #003366;
  font-weight: 600;
}

.news-card-all:hover .card-body a.btn:hover {
  background-color: #cce0ff;
}
.news-card-all img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
/* welcome area styling  */
/* .welcome-area {
  background: #ffe75e;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 3rem 1rem;
  margin: 3rem 0;
} */
.welcome-area .map-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.welcome-area .map-img {
  width: 120px;
  height: 120px;
  background: #fffbe0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  font-size: 2.5rem;
  color: #e6b800;
}
.welcome-area .contact-form-col {
  font-size: 1.15rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  font-weight: 500;
  text-align: left;
  background-color: rgba(0, 51, 102, 0.5);
  border-radius: 16px;
  padding: 1rem 1.5rem;
}
@media (max-width: 767px) {
  .welcome-area {
    padding: 2rem 0.5rem;
  }
  .welcome-area .contact-form-col {
    text-align: center;
  }
}
.welcome-area {
  background-image: url("../img/about/nacwc-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  padding: 60px 0;
  color: #e6b800;
  position: relative;
  border-radius: 20px;
}
/* scheduled chemicals  */
.scheduled-chem-annexes a {
  text-decoration: none;
}
.chemicals-section h2 {
  font-weight: bold;
}
.chemicals-section table td small {
  color: #6c757d;
  display: block;
}
/* gallery additional css  */
.gallery-content img {
  transition: transform 0.3s ease;
}
.gallery-content a:hover img {
  transform: scale(1.05);
}
/* services accordian additional styling  */
.accordion-button:not(.collapsed) {
  background-color: #e7f1ff;
  color: #0d6efd;
}

.accordion-item {
  transition: box-shadow 0.2s ease;
}

.accordion-item:hover {
  box-shadow: 0 0 0.5rem rgba(13, 110, 253, 0.25);
}
/* upcoming-area additional styling  */
.upcoming-events-area {
  background-image: url("../img/about/nacwc-bg -reverse.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  padding: 60px 0;
  color: #e6b800;
  position: relative;
  border-radius: 20px;
}
@media (max-width: 767px) {
  .upcoming-events-area {
    padding: 2rem 0.5rem;
  }
  .upcoming-events-area .contact-form-col {
    text-align: center;
  }
}
.upcoming-events-area .map-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.upcoming-events-area .contact-form-col {
  font-size: 1.15rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  font-weight: 500;
  text-align: left;
  background-color: rgba(0, 51, 102, 0.5);
  border-radius: 16px;
  padding: 1rem 1.5rem;
}
/* strategic list styles  */
.strategic-list li a {
  text-decoration: none;
  font-weight: bold;
  display: block; /* makes the whole list item clickable */
  transition: transform 0.2s ease;
  color: inherit; /* optional: inherit color from parent */
}

.strategic-list li a:hover {
  transform: translateX(8px);
}
/* addittional top padding  */
.only-top-padding-3 {
  padding-top: 3rem !important;
}
.only-bottom-padding-3 {
  padding-bottom: 3rem !important;
}
@media (max-width: 576px) {
  .only-top-padding-3 {
    padding-top: 0.5rem;
  }
}
