footer {
  padding: 3rem 0;
  margin-top: auto;
  background-color: #2c2c2c;
  overflow: hidden;
}

footer a {
  -webkit-transition: 0.3s all;
  -o-transition: 0.3s all;
  transition: 0.3s all;
}

.logo-footer {
  display: block;
  max-width: 200px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.footer-contact :is(p, a) {
  font-size: 0.88rem;
  color: #ababab;
  text-align: center;
}

.footer-contact p:last-child a {
  display: block;
}

.footer-contact p:first-of-type {
  max-width: 300px;
  margin-inline: auto;
}

.footer-content h5,
.footer-content h5 a {
  font-size: 1rem;
  color: #fff;
  font-weight: 400;
}

.footer-content h5 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.footer-content h5:first-child {
  margin-top: 0;
}

.footer-content h5:last-child {
  margin-bottom: 0;
}

.footer-content h5::after {
  content: "";
  position: absolute;
  top: 100%;
  height: 2px;
  width: 3.6rem;
  background-color: #707070;
  left: 0;
  transform: translateX(-50%);
}

.footer-content li a {
  font-size: 0.9rem;
  color: #ababab;
  -webkit-transition: 0.3s all;
  -o-transition: 0.3s all;
  transition: 0.3s all;
}

.footer-content :is(li a, h5 a):hover,
.footer-contact a:hover {
  color: var(--color-red);
}

.footer-content li {
  margin-bottom: 0.5rem;
}

.footer-content li:last-child {
  margin-bottom: 0;
}

/* Ensure all links are visible on all screen sizes */
.footer-content ul {
  display: block !important; /* Force display all links */
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: #ec364b;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: none; /* Initially hidden */
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: #b5182b;
}

.back-to-top i {
  margin: auto;
}

/* Footer Bottom */
.flex-grow {
  flex-grow: 1;
}

.footer-bottom {
  padding-top: 0;
  padding-bottom: 3rem;
  background-color: #2c2c2c;
  margin-top: -1px;
  /* margin-bottom: 70px; */
}

.footer-bottom a {
  transition: 0.3s all;
}

.footer-bottom a:hover {
  color: var(--color-red);
}

.footer-bottom .d-flex {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  column-gap: 1rem;
}

.footer-bottom :is(span, a) {
  color: #ababab;
  font-size: 0.88rem;
}

.footer-bottom .social-media {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem; /* Adjusted spacing */
  margin-bottom: 1rem;
}

.footer-bottom .social-media span {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.footer-bottom .social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%; /* Makes it circular */
  transition: all 0.3s ease-in-out;
  font-size: 1rem;
}

.footer-bottom .social-media a i {
  font-size: 1rem;
}

.footer-bottom .social-media a:hover {
  background-color: #fff;
  color: #333;
  transform: scale(1.1); /* Slight zoom effect on hover */
}

.webcredit a {
  color: #ec364b;
}

@media (max-width: 990px) {
  .footer-content ul {
    display: block !important; /* Ensures lists are displayed */
    visibility: visible !important; /* Ensures lists are not hidden */
    opacity: 1 !important; /* Ensures full visibility */
    padding-left: 0 !important; /* Removes unwanted indentation */
    text-align: left !important; /* Centers links */
  }

  .footer-content li {
    display: block !important; /* Ensures all list items are visible */
    margin-bottom: 0.5rem !important; /* Adds spacing */
  }

  .footer-content h5 {
    text-align: left !important; /* Ensures headers are centered */
  }

  .footer-content h5::after {
    left: 10% !important;
    transform: translateX(-50%) !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-bottom .social-media {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Foot Navigation */
.foot-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 11;
  filter: drop-shadow(0 -3px 2px rgba(0, 0, 0, 0.3));
}

.foot-nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-block: 1rem;
  row-gap: 0.5rem;
  background-color: var(--color-prime-dark);
  height: 100%;
  color: #fff;
  transition: 0.3s all;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}

.foot-nav .row > .col-3:last-child a {
  border-right: none;
}

.foot-nav a img {
  filter: brightness(0) invert(1);
  transition: 3s all;
}

.foot-nav a span {
  font-size: 0.7rem;
}

.foot-nav a.active {
  color: var(--color-prime-dark);
  background-color: #fff;
}

.foot-nav a.active img {
  filter: none;
}

.footer-content iframe {
  height: 200px;
}

@media (max-width: 1232px) {
  .footer-content iframe {
    max-width: 400px !important; /* Adjust width for better fit */
    height: 220px !important; /* Adjust height */
    display: block !important;
    margin: 0 auto !important; /* Centers the iframe */
  }
}
@media (max-width: 1111px) {
  .footer-content iframe {
    max-width: 350px !important; /* Adjust width slightly for better fit */
    height: 200px !important; /* Ensure proper height */
    display: block !important;
    margin: 0 auto !important; /* Centers on smaller screens */
  }
}

@media (max-width: 990px) {
  .col-lg-3.col-md-3.footer-content {
    margin-left: 250px !important; /* Adjust left margin */
  }

  .footer-content iframe {
    max-width: 320px !important;
    height: 200px !important; /* Adjusted height */
  }
}

@media (max-width: 768px) {
  .col-lg-3.col-md-3.footer-content {
    text-align: left !important; /* Center align for small screens */
    margin-left: 150px !important; /* Remove margin for small screens */
  }

  .footer-content h5 {
    text-align: left !important; /* Ensures heading is centered */
  }

  .footer-content iframe {
    max-width: 100% !important; /* Full width for small screens */
    height: 180px !important; /* Slightly reduced height */
  }
}

/* Mobile Menu CSS */
.drop-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding-bottom: 7rem;
  overflow-y: auto;
  z-index: 10;
  background-color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s linear;
  padding-top: 4rem;
}

.drop-menu.show {
  transform: translateY(0);
}

.drop-menu-inner {
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  padding-bottom: 1rem;
}

.drop-menu-inner .drop-menu-heading {
  font-size: 2rem;
  display: block;
  text-align: center;
  color: var(--color-prime-dark);
  padding: 1rem 0 1.5rem 0;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.drop-menu-inner .top-box {
  position: relative;
  padding: 2rem 2rem;
  isolation: isolate;
}

.drop-menu-inner .top-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #ddebf1;
}

.drop-menu-inner .top-box .form-control {
  font-size: 0.9rem;
  padding-right: 3rem;
}

.drop-menu-inner .top-box a {
  display: block;
  padding-block: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.search-course {
  position: relative;
}

.drop-menu-inner .top-box .btn {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
}

.drop-menu-inner :is(.drop-sub-heading, .course-list a) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.drop-menu-inner .drop-sub-heading {
  color: var(--color-prime-dark);
}

.drop-menu-inner .course-list {
  margin-top: 2rem;
}

.drop-menu-inner .course-list a {
  padding: 1.5rem 1.8rem;
  color: #fff;
  margin-bottom: 1.3rem;
}

.drop-menu-inner .course-list a.bg-yellow {
  margin-top: 2.5rem;
  color: var(--color-black);
}

.drop-menu-inner a.justify-content-center {
  column-gap: 1rem;
}

.admission-mbile a.justify-content-center {
  font-size: 1.7rem;
  font-weight: 600;
}

.drop-menu-inner .menu-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}

.drop-menu-inner .menu-contact img {
  width: 25px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.drop-menu-inner .menu-contact .c-heading {
  font-size: 1.3rem;
  color: var(--color-prime-dark);
  margin-bottom: 0.1rem;
}

.drop-menu-inner .menu-contact a {
  font-size: 1.5rem;
  color: var(--color-prime-dark);
  font-weight: 700;
}

.drop-menu-inner .menu-contact p {
  font-size: 1.5rem;
  color: var(--text-clr);
  max-width: 300px;
  margin-inline: auto;
  line-height: 1.3;
}

.menu-mobile .container {
  padding: 0px;
}

.drop-menu-inner .main-menus a,
.drop-menu-inner .main-menus button,
.drop-menu-inner .accordion-item > .accordion-body a {
  font-size: 1.3rem;
  color: var(--color-prime-dark);
  display: block;
  font-weight: 500;
  padding: 1rem;
  border-bottom: 2px solid #f0f0f0;
  background: transparent;
}

.drop-menu-inner .accordion-item > .accordion-body a {
  font-size: 1.3rem;
  padding: 1rem 0;
}

.drop-menu-inner .accordion-body a {
  font-size: 1.1rem;
}

.drop-menu-inner .secondary-menus a {
  font-size: 1.3rem;
  display: block;
  padding-block: 1rem;
}

.drop-menu-inner .secondary-menus {
  padding-inline: 0rem;
  padding-top: 0rem;
}

#accordionExample > button {
  padding: 1rem;
  font-size: 1.2rem;
}

#collapseOne .accordion-body {
  padding: 0px;
}

#collapseOne .accordion-item {
  background-color: transparent;
  border: 0px solid rgba(0, 0, 0, 0.125);
}

#accordionExample .accordion-item {
  border: 0px solid rgba(0, 0, 0, 0.125);
}

#accordionExample .accordion-button::after {
  position: absolute;
  right: 7px;
  top: 18px;
}

#accordionExample .accordion-button:focus {
  box-shadow: none;
}

#accordionExample .accordion-body {
  padding: 0rem 1rem;
}

.input-group-append img {
  width: 22px;
}

/* Quick Links Button */
.download-brochure {
  position: fixed;
  top: 60vh; /* Keeps the button always at the middle */
  right: 20px; /* Fixed distance from the right */
  transform: translateY(-50%);
  z-index: 1050;
}

/* Rotated Button */
.rotated-btn {
  display: inline-block;
  transform: rotate(90deg);
  transform-origin: right center;
  white-space: nowrap;
  background-color: #063142;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  padding: 10px 20px;
}

.rotated-btn:hover {
  background-color: #ec364b;
  color: #fff;
}

/* Custom Modal Styling */
.custom-modal-right {
  position: fixed;
  top: 50vh; /* Aligns with button */
  right: 0px; /* Space from button */
  transform: translateY(-50%);
  width: 252px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1051;
  border: none;
}

/* Modal Content */
.custom-modal-content {
  padding: 15px;
}

/* Close Button */
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.modal-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

/* Modal Body Links */
.custom-modal-body p {
  margin: 8px 0;
}

.custom-modal-body a {
  color: #dc3545;
  text-decoration: none;
  /* font-weight: bold; */
}

.custom-modal-body a:hover {
  color: #b22222;
}

/* Custom Modal Header Styling */
.custom-modal-header {
  display: flex;
  justify-content: space-between; /* Places heading and close button in the same line */
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
}

/* === RESPONSIVENESS === */
@media (max-width: 1024px) {
  .download-brochure {
    right: 15px; /* Adjust position slightly for tablets */
  }

  .custom-modal-right {
    right: 60px; /* Adjust modal position */
    width: 300px; /* Slightly reduce modal width */
  }
}

@media (max-width: 768px) {
  .download-brochure {
    right: 10px; /* Adjust position for smaller screens */
  }

  .custom-modal-right {
    right: 50px; /* Adjust modal position */
    width: 280px;
  }
}

@media (max-width: 480px) {
  .download-brochure {
    right: 5px; /* Keep button close to edge on mobile */
  }

  .custom-modal-right {
    right: 40px; /* Adjust modal for small screens */
    width: 260px; /* Reduce modal width further */
  }
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .logo-footer {
    margin-bottom: 2rem;
  }

  footer {
    padding: 5rem 0;
  }
}

@media (min-width: 992px) {
  .footer-content h5 {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    text-align: left;
  }

  .footer-content h5::after {
    left: 0;
    transform: translateX(0%);
  }

  .footer-bottom .d-flex {
    justify-content: flex-start;
    flex-direction: row;
  }

  .footer-bottom .social-media,
  .footer-bottom {
    margin-bottom: 0;
  }

  .drop-menu {
    display: none;
  }
}

@media (min-width: 1200px) {
  .flex-grow .footer-content {
    padding-left: 1rem;
  }

  .logo-footer {
    margin-bottom: 0.5rem;
  }

  .footer-contact p:first-of-type {
    max-width: 200px;
  }
}

@media (min-width: 1500px) {
  .downlod-brochure {
    right: -72px;
  }
}

@media (min-width: 1600px) {
  .footer-contact p:first-of-type {
    max-width: 220px;
  }
}
