/* Navbar Styles */
nav.navbar {
  background-color: transparent !important;
  z-index: 1000;
  padding: 20px 0;
  color: white;
}

#navbarNav .nav-link {
  color: white;
}

.navbar-nav {
  flex-direction: row !important;
}

/* Custom Toggler Button */
.custom-toggler {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  display: none;
}

.custom-nav-links {
  display: flex;
}

.custom-navbar-section {
  display: flex;
  justify-content: end;
  align-items: center;
}

@media (max-width: 992px) {
  .custom-toggler {
    display: block;
  }

  .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 5px;
  }

  .custom-navbar-section {
    /* position: relative; */
    flex-direction: column;
    align-items: flex-end;
  }

  .custom-nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
  }

  .custom-nav-links.active {
    position: absolute;
    top: 50px;
    right: 0;
    display: flex;
    padding: 0 30px;
    background-color: #ffffff;
  }

  .custom-nav-links.active .nav-link {
    color: #990000 !important;
    background-color: transparent !important;
  }

  nav.navbar.navbar-open {
    background-color: #ffffff !important; /* overrides the transparent !important */
    color: #990000;
  }

  nav.navbar.navbar-open .custom-toggler i {
    color: #990000 !important;
  }

  nav.navbar.navbar-open .navbar-brand img.left-logo-white {
    display: none;
  }
  nav.navbar.navbar-open .navbar-brand img.left-logo-black {
    display: block !important;
  }
}

/* Header Styles */
.header-wrapper {
  position: relative;
  background-image: url("../images/HeaderBg1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 50px;
}

.header-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Black with 30% opacity */
  z-index: 1;
}

.Header {
  position: relative;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 2;
}

.header-text {
  text-align: center;
  font-size: 70px;
}

/* .line1 {
  margin-left: 7vw;
}

.line3 {
  margin-left: 10vw;
} */

/* HomePage Styles */
.homepage-para {
  padding: 30px 0;
}

.homepage-image-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, 1fr);
}

.homepage-image-grid .image-item {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Makes it a square */
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  overflow: hidden;
}

.homepage-image-grid .image-title {
  position: absolute;
  bottom: 14px;
  left: 8px;
  color: white;
  font-size: 14px;
  /* text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6); */
}

.homepage-image-grid .img1 {
  background-image: url("/assets/images/about-img1.png");
}

.homepage-image-grid .img2 {
  background-image: url("/assets/images/about-img2.png");
}

.homepage-image-grid .img3 {
  background-image: url("/assets/images/about-img3.png");
}

.homepage-image-grid .img4 {
  background-image: url("/assets/images/about-img4.png");
}

.bg-blue img {
  width: 160px;
}

@media (max-width: 992px) {
  .homepage-image-grid {
    gap: 12px;
  }

  .homepage-para {
    padding: 15px 0;
  }

  .homepage-image-grid .image-title {
    font-size: 10px;
    bottom: 12px;
  }

  .bg-blue img {
    width: 100px;
  }

  /* .line1,
  .line3 {
    margin-left: 0;
  } */
  .header-text {
    font-size: 50px;
  }
}

@media (max-width: 768px) {
  .homepage-image-grid {
    gap: 8px;
  }

  .homepage-para {
    padding: 10px 0;
  }

  .homepage-image-grid .image-title {
    font-size: 8px;
    bottom: 8px;
  }
}

@media (max-width: 576px) {
  .homepage-image-grid {
    gap: 10px;
    margin-top: 20px;
    grid-template-columns: repeat(1, 1fr);
  }

  .homepage-para {
    padding: 10px 0 0;
  }

  .home-title-text {
    text-align: center;
  }

  .homepage-image-grid .image-item {
    width: 250px;
    padding-top: 250px;
    margin: 0 auto;
  }

  .home-img-mobile {
    max-width: 300px;
  }

  .header-text {
    text-align: center;
    font-size: 40px;
  }
}

/* NEWS Section */
.news-card {
  background-color: #ffffff;
  height: 100%;
  border: 1px solid #dadbe6;
  margin-top: 50px;
}

.news-image-container {
  display: flex;
  justify-content: center;
  padding: 0 20px;
  margin-top: -50px;
}

.news-image {
  height: 100px;
  width: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.news-footer {
  background-color: #f4f2f3;
  border-top: 1px solid #dadbe6;
  gap: 10px;
}

.news-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card h5 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: 20px;
}
.news-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

@media (max-width: 992px) {
  .news-image {
    width: 90px;
    height: 90px;
  }

  .news-card h5 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .news-image {
    width: 80px;
    height: 80px;
  }

  .news-card {
    max-width: 300px;
    margin: 50px auto 0;
  }

  .news-card h5 {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .news-image {
    width: 70px;
    height: 70px;
  }

  .news-card h5 {
    font-size: 14px;
  }
}

/* Footer Styles */
.main-footer {
  text-align: center;
  position: relative;
  z-index: 1100;
}

.loni-logo-footer {
  width: 30px;
}

@media (max-width: 576px) {
  .loni-logo-footer {
    width: 20px;
  }
}

/* Footer Styles */

/* Font and container settings */
.xd-footer {
  width: 100%;
  padding: 60px 0 30px;
  z-index: 1002;
  position: relative;
}

.xd-footer .list-unstyled li {
  margin-bottom: 10px;
}

/* Add this to ensure content stays centered with side spacing */
.xd-footer .container {
  /* padding-left: 60px;
  padding-right: 60px; */
  width: 100%;
  margin: 0 auto;
}

/* Title */
.xd-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Section Headings */
.xd-section {
  font-size: 15px;
  font-weight: 600;
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
  padding-bottom: 6px;
}

.xd-section::after {
  content: "";
  display: block;
  height: 1px;
  background-color: #444;
  width: 100%;
  min-width: 135px;
  margin: 6px auto 0 auto;
}

.xd-section-wrapper {
  width: fit-content;
}

/* Links */
.xd-footer a {
  text-decoration: none;
}

.xd-footer a:hover {
  text-decoration: underline;
  color: #cccccc;
}

/* Contact + Social */
.xd-contact {
  margin-bottom: 10px;
}

.xd-contact i {
  margin-right: 8px;
}

.xd-social-icons {
  margin-bottom: 15px;
}

.xd-social-icons a {
  font-size: 18px;
  display: inline-block;
}

/* Newsletter button */
.xd-newsletter-wrap {
  margin-top: 15px;
}

.xd-newsletter-wrap .xd-newsletter,
.xd-newsletter-wrap .xd-newsletter:active,
.xd-newsletter-wrap .xd-newsletter:hover {
  background-color: #990000 !important;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 12px;
  white-space: nowrap;
  color: #ffffff !important;
}

.xd-newsletter-wrap .xd-newsletter a:hover {
  color: #ffffff;
}

/* Bottom section layout */
.xd-footer hr {
  border-color: #333;
  margin-top: 50px;
  margin-bottom: 20px;
}

.xd-mini-nav a {
  display: inline-block;
  margin: 0 5px;
}

.xd-footer-logo {
  height: 100px;
}

.xd-footer-parts {
  max-width: fit-content;
}

.xd-footer-below.row:after {
  display: none;
}

.xd-footer-logo-wrap {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

@media (max-width: 1200px) {
  .xd-section::after {
    min-width: 125px;
  }

  .xd-footer .container {
    margin: 0 auto;
    /* padding: 0 50px; */
  }

  .xd-newsletter {
    padding: 8px 20px;
  }

  .xd-footer-logo {
    height: 80px;
  }

  .xd-mini-nav a {
    margin: 0 3px;
  }
}

@media (max-width: 992px) {
  .xd-section {
    font-size: 14px;
  }

  .xd-section-people {
    flex-direction: column;
  }

  .xd-section-wrapper {
    width: 100%;
  }

  .xd-footer .container {
    /* padding: 0 40px; */
  }

  .xd-footer-below {
    padding-top: 50px;
    margin: 0 2px;
  }

  .xd-footer-parts {
    max-width: 100%;
  }

  .xd-social-icons a {
    font-size: 14px;
  }

  .xd-mini-nav {
    text-align: end !important;
  }

  .xd-mini-nav a {
    margin: 0 15px;
  }

  .xd-footer-logo-wrap {
    text-align: end;
  }
}

@media (max-width: 767px) {
  .xd-section {
    font-size: 12px;
    padding-bottom: 0px;
  }

  .xd-footer .list-unstyled li {
    margin-bottom: 7px;
  }

  .xd-section::after {
    min-width: 80px;
  }

  .xd-social-icons {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .xd-newsletter-wrap {
    text-align: left;
  }

  .xd-mini-nav {
    text-align: left;
    margin-top: 15px;
  }

  .xd-footer .container {
    /* padding: 0 20px; */
  }

  .xd-mini-nav a {
    margin: 0 10px;
  }
}

@media (max-width: 575px) {
  .footer-contact {
    padding-bottom: 40px;
  }

  .xd-footer-below {
    padding-top: 20px;
    flex-direction: column;
  }

  .xd-footer-parts {
    width: fit-content;
    margin: 20px 0;
  }

  .xd-footer {
    padding-bottom: 0;
  }

  .xd-title {
    width: 70%;
  }

  .xd-newsletter {
    padding: 6px 20px;
  }

  .xd-footer .container {
    padding: 0 30px;
  }

  .footer-sm-text-center {
    text-align: center !important;
  }
}
