/* Footer Start */
/* === Footer Styles === */

.site-footer {
  background-color: #0c2632;
  color: #f5f5f5;
  font-size: 16px;
  line-height: 1.6;
  padding: 2rem 1rem 0 1rem; /* top, right, bottom, left */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* More uniformed container/column height */
.footer-container.columns-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 1rem;
  color: #f5f5f5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a,
.theme-light .footer-col a,
.theme-dark .footer-col a {
  color: #f5f5f5;
  text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus,
.footer-col a:active,
.footer-col .current-menu-item a,
.theme-light .footer-col a:hover,
.theme-light .footer-col a:focus,
.theme-light .footer-col a:active,
.theme-light .footer-col .current-menu-item a,
.theme-dark .footer-col a:hover,
.theme-dark .footer-col a:focus,
.theme-dark .footer-col a:active,
.theme-dark .footer-col .current-menu-item a {
  color: #53b0d7;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container.columns-4 .footer-col {
    flex: 1 1 100%;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .site-footer {
    background-color: #0c2632;
    color: #e3e3e3;
  }
  .footer-col h4,
  .footer-col a {
    color: #e3e3e3;
  }

}
/* Footer Icons */
.footer-icon svg path {
  fill: #53b0d7 !important;
  transition: fill 0.3s ease;
}

.footer-icon img {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  margin-right: 0.5rem;
  filter: brightness(0) saturate(100%) invert(65%) sepia(27%) saturate(781%) hue-rotate(163deg) brightness(91%) contrast(89%);
  transition: filter 0.3s ease;
}

  .footer-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-icon {
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.footer-date-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.footer-date-icon img {
  max-width: 100%;
  max-height: 100%;
  filter: brightness(0) saturate(100%) invert(48%) sepia(51%) saturate(741%) hue-rotate(163deg) brightness(92%) contrast(92%);
}

.footer-text-block {
  display: inline-block;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
}
/* LInkein Social Media Icon */
.footer-social img.social-icon {
  display: inline-block;
  margin-top: 0.25rem;
  height: 24px;
}
.footer-social img.social-icon-ftr {
  display: inline-block;
  margin-top: 0.25rem;
  height: 24px;
}
.footer-social img.social-icon-ftr:hover {
  display: inline-block;
  margin-top: 0.25rem;
  height: 24px;
}
.social-icon-ftr {
  display: inline-block;
  margin-top: 0.25rem;
  height: 24px;
  filter: brightness(0) invert(1); /* makes it white */
  transition: filter 0.3s ease;
}

.social-icon-ftr:hover {
  filter: brightness(0) saturate(100%) invert(65%) sepia(27%) saturate(781%) hue-rotate(163deg) brightness(91%) contrast(89%);
}

.footer-map {
  width: 100%;
  max-width: 300px;
  margin-top: 1rem;
}

.footer-map img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.footer-map iframe {
  width: 100%;
  border: 0;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* News Post and images */
.footer-announcement-thumb img {
  transition: filter 0.3s ease, opacity 0.3s ease;
  filter: brightness(1) saturate(1); /* Normal state */
}

.footer-announcement-thumb:hover img {
  filter: brightness(0.8) saturate(1.5); /* Same hover effect as .iso-cert-icon */
}

/* ISO Certification image and link */
.iso-cert-icon {
  max-width: 180px;
  height: auto;
  display: block;
  margin-top: 0.5rem;
  transition: filter 0.3s ease, opacity 0.3s ease;
  filter: brightness(1) saturate(1); /* Normal state */
}
.iso-cert-icon:hover {
  filter: brightness(0.8) saturate(1.5); /* Slight color/contrast shift */
}

.footer-text .iso-cert-icon {
  max-width: 180px;
  height: auto;
  margin-top: 0.25rem;
  display: block;
}
 /* Footer NEWS/Announsements */
 .footer-announcement.vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.footer-announcement-thumb img {
  width: 100%;
  max-width: 180px; /* Adjust size as needed */
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.footer-col .footer-announcement-title {
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 0.25rem;
  font-size: 18px !important;
}

.footer-announcement-title:hover {
  color: #53b0d7;
}


/* Footer text size, non column headers */
.footer-col p,
.footer-col a,
.footer-col li,
.footer-col span,
.footer-col .footer-item {
  font-size: 12px;
}
.footer-col .footer-announcement-date {
  font-size: 0.65rem !important;
  color: #cccccc;
}

/* In case  the stacked columns are too close together on mobile: 
@media (max-width: 768px) {
  .footer-container.columns-4 {
    gap: 1.5rem;
  }
}

/* In case realigning of hte columns causes misalignment
.footer-col {
  align-self: start;
}*/
.footer-news-date {
  padding-bottom: 2rem;
}
/* ========================================
FOOTER_SUB
========================================= */
.footer-sub {
  width: 100%;
  height: 40px;
  background-color: #0c2632; /* Use your site’s footer/navy color */
  color: #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border-top: 1px solid #555555; /* Optional: a top border if needed for contrast */
  text-align: center;
  font-size: 14px;
  /*color: #e3e3e3;*/
}

.footer-sub p {
  margin: 0;
  font-size: 12px;
  line-height: 1;
}
/*.footer-sub {
  text-align: center;
  font-size: 14px;
  color: #e3e3e3;
  padding: 1rem 0;
}*/
/* overall footer hover 
.footer-col a:hover {
  color: #53b0d7;
} */
/* ==========================================================
Scroll to top button 
===========================================================*/
#scrollToTopBtn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #0c2632;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}
#scrollToTopBtn:hover {
  background-color: #53b0d7;
}
#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}
