@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins&display=swap");

/* General Reset */
body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body, html {
    overflow-x: hidden;
  }
}

/* Header */
.enhanced-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: #af002d;
  padding: 15px 20px;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.enhanced-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin-left: 30px;
  /* padding: 0 20px; */
  box-sizing: border-box;
  position: relative;
  background-color: #fff;
  border-radius: 5px;
  color: #000;
}
.logo {
  display: flex; /* Aligns items inline */
  align-items: center; /* Centers image and text vertically */
}

.logo img {
  width: 50px; /* Ensures the image has a fixed width */
  height: 50px; /* Maintains aspect ratio */
  /* margin-right: 10px; */
  /* margin-top: 3px; */
}

.logo span {
  color: #000;
  /* font-weight: 900; */
  margin-bottom: 3px;
  /* margin-left: 55px;  */
}

/* .logo, .nav-links { */
/* background-color: #ffffff; */
/* border-radius: 8px; */
/* padding: 10px 20px; */
/* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
/* color: #333; */
/* } */

/* Centered Navigation Links */
.nav-links {
  display: flex;
  gap: 25px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, color 0.3s ease;
}

.nav-links a:hover {
  color: #af002d;
  transform: scale(1.1);
}

/* Get Started Button Fix */
.cta-btn {
  background: #af002d;
  color: #fff;
  padding: 10px 20px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 25px;
  /* box-shadow: 0 10px 15px #333; */
  /* transition: transform 0.2s, box-shadow 0.3s ease; */
  text-decoration: none;
  margin-right: 20px;
}

.cta-btn:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 10px 20px #333; */
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-left: auto;
  padding: 10px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: transform 0.3s ease-in-out;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100%;
  background: #af002d;
  box-shadow: -10px 0 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align items at the top */
  padding: 0; /* Remove default padding */
  transition: right 0.3s ease-in-out;
  z-index: 999;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px; /* Add padding only around the links */
  margin: 0; /* Remove default margin */
}

.mobile-menu nav a {
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background 0.3s;
}

.mobile-menu nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Active State */
.mobile-menu.active {
  right: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.close-menu {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.3s ease;
}

.close-menu:hover {
  transform: scale(1.2);
  color: #ffe100;
}
.nav-links a.active {
  color: #af002d;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .nav-links {
    display: none;
  }

  .cta-btn {
    /* align-items: center; */
    padding: 10px;
    font-size: 14px;
    background: #ffe100;
    color: #fff;
    align-items: flex-end;
    /* width: 50%; */
    margin-left: 50px;
  }

  .logo {
    display: flex;
    align-items: center;
    width: 50px;
    border-radius: 150%;
    /* border: 2px solid #fff; */
    margin-left: 10px;
    background-color: #fff;
  }
  .logo span {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .header-content {
    margin-left: 0;
    background-color: transparent;
    font-size: 14px;
    /* margin-top: -7px; */
  }
  .enhanced-header {
    position: static;
    height: 50px;
  }
}

/* Image Slider Styles */
.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  transition: left 1s ease;
}

.hero-slider .slide.active {
  left: 0;
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.black {
  color: #000;
}

.hero-slider .text-overlay,
.hero-slider .cta-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 10;
}

.hero-slider .text-overlay h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-slider .text-overlay p {
  font-size: 1.25rem;
}

.joinusbtn {
  padding: 12px 25px;
  background-color: #4b4849d5;
  color: #fff;
  border: 1px solid #af002d;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hero-slider .cta-overlay .joinusbtn:hover {
  align-items: center;
  background: #af002d;
  color: #fff;
  transition: ease all 0.3s;
}

@media (max-width: 768px) {
  .joinusbtn {
    background-color: #af002d;
  }
}
/* Slider Navigation Buttons */
.hero-slider .prev-slide,
.hero-slider .next-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 20;
}

.hero-slider .prev-slide {
  left: 10px;
}

.hero-slider .next-slide {
  right: 10px;
}

.hero-slider :nth-child(1) p,
.hero-slider :nth-child(1) h1 {
  color: #fff;
}
.full-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  z-index: 1; /* This will place the full overlay above the image but below the text-overlay */
}

.hero-slider .prev-slide:hover,
.hero-slider .next-slide:hover {
  background: transparent;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hero-slider .text-overlay h1 {
    font-size: 2rem;
  }
  .hero-slider .text-overlay p {
    font-size: 1rem;
  }
  .hero-slider .cta-overlay .cta-button {
    align-items: center;
    align-content: center;
    font-size: 1rem;
    padding: 10px 20px;
  }
  .hero-slider {
    height: 40vh;
  }
}

.services-section {
  background-color: #fff;
  padding: 40px 20px;
  border-top: 1px solid #ddd;
}

.service-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.service-item {
  flex: 1;
  text-align: center;
  padding: 20px;
  min-width: 200px;
  max-width: 250px;
  border-right: 2px solid #ddd;
}

.service-icon {
  font-size: 2rem;
  color: #af002d;
  margin-bottom: 10px;
}

.service-text {
  font-size: 1rem;
  font-family: "Nunito", sans-serif;
  color: #333;
}

@media (max-width: 768px) {
  .service-container {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    margin-bottom: 20px;
    border: 2px solid #ddd;
  }
}

.card-conatiner {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  gap: 10px;
  width: 90%;
  margin: 5%;
  /* max-width: 800px; */
  /* padding: 20px; */
  background-color: #fff;
  border-radius: 10px;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

.card {
  width: calc(25% - 20px);
  margin-bottom: 20px;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  border: #ddd solid 1px;
}

.card:hover {
  transform: scale(1.05);
}

.icon {
  font-size: 40px;
  color: #af002d;
  margin-bottom: 10px;
}

.service-title {
  font-weight: bold;
  margin: 10px 0;
}

.service-description {
  color: #666;
}

/* Tablet View (768px and below) */
@media (max-width: 768px) {
  .card-container {
    justify-content: center; /* Center align for smaller screens */
    padding: 10px;
  }

  .card {
    width: calc(50% - 20px); /* Two cards per row */
    margin-bottom: 15px;
    padding: 15px;
  }

  .icon {
    font-size: 30px; /* Slightly smaller icon size */
  }

  .service-title {
    font-size: 1rem; /* Adjust title size */
  }

  .service-description {
    font-size: 0.9rem; /* Adjust description size */
  }
}

/* Mobile View (480px and below) */
@media (max-width: 480px) {
  .card-container {
    flex-direction: column; /* Stack cards vertically */
    align-items: center;
  }

  .card {
    width: 90%; /* Full width with padding */
    margin-bottom: 10px;
    padding: 10px;
  }

  .icon {
    font-size: 25px; /* Smaller icon for compact display */
  }

  .service-title {
    font-size: 0.9rem; /* Smaller title */
  }

  .service-description {
    font-size: 0.8rem; /* Adjust description size */
  }
}

/* Large Screens (Above 1024px) */
@media (min-width: 1024px) {
  .card-container {
    max-width: 1200px; /* Restrict width for better appearance */
    margin: auto; /* Center align the container */
  }

  .card {
    width: calc(100% / 5 - 20px); /* Five cards per row */
  }
}

.banner-container {
  display: flex;
  background-color: #af002d;
  /* height: %; */
  /* flex-wrap: wrap; */
  /* place-content: center; */
  border-radius: 10px;
  width: 90%;
  margin-left: 5%;
}
.text-section {
  flex: 1 0 50%;
  width: 40%;
  /* place-content: center; */
  /* padding: 5px; */
  border-radius: 10px;
  align-items: center;
  color: #fff;
}
.text-section h1 {
  text-align: center;
}
.banner-button {
  background-color: #ffe100;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  margin-left: 42px;
  text-decoration: none;
  margin-top: 20px;
}
.image-section {
  flex: 1 0 50%;
  /* display: grid; */
  width: 100%;
  /* place-items: center; */
}
.image-section img {
  width: 100%;
  height: 100%;
  /* border-radius: 10px; */
  gap: 0px;
}

@media (max-width: 360px) and( orientation: portrait) {
  .banner-container {
    height: 100vh;
  }
  .banner-button {
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 430px) {
  .banner-container {
    height: 40vh;
  }
}

@media (max-width: 768px) {
  .banner-container {
    height: 50vh;
    /* width: 100%;
        margin: 0; */
  }
  .banner-button {
    margin-left: 40px;
    /* margin: 0; */
    padding: 2px;
  }
  .image-section {
    display: grid;
    /* height: 100%; */
    margin: 0;
    gap: 0;
  }
  .image-section img {
    width: 100%;
    height: 100%;
  }
  .image-section :nth-child(4) {
    display: none;
  }
  .text-section {
    padding: 3px;
  }
  .text-section ul :nth-child(4) {
    display: none;
  }
  .text-section h1 {
    margin: 0;
    padding: 0;
    font-size: 25px;
  }
}
/* desktop screen  */
@media (min-width: 1024px) {
  .image-section :nth-child(2) {
    display: none;
  }
  .image-section :nth-child(3) {
    display: none;
  }
  .image-section :nth-child(4) {
    display: none;
  }
}

/* Footer Styling */
.footer {
  background-color: #af002d;
  color: white;
  padding: 40px 20px;
  font-family: "Nunito", sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

/* Footer Sections */
.footer-about,
.footer-links,
.footer-contact,
.footer-social {
  flex: 1 1 calc(25% - 20px);
  min-width: 200px;
}

.footer-about h3,
.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-about p {
  line-height: 1.5;
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffe100;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.footer-contact a {
  color: #af002d;
  text-decoration: none;
}

.footer-social .social-icons {
  display: flex;
  gap: 10px;
}

.footer-social .social-icons a {
  color: white;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.footer-social .social-icons a:hover {
  transform: scale(1.2);
  color: #ffe100;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: left;
  }

  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-social {
    flex: 1 1 100%;
    text-align: left;
  }
}

/* Main Section */
main {
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text {
  margin: 0;
  max-width: 600px;
  text-align: justify;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #af002d;
}

.about-text p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.about-text a {
  display: inline-block;
  background-color: #af002d;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.about-text a:hover {
  background-color: #00274d;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .about-image {
    margin-top: -50px;
  }
  .features {
    margin-top: -100px;
  }
}

/* Features Section */
.features {
  background-color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  color: #af002d;
  margin-bottom: 2rem;
}

.features-grid {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
}

.feature {
  flex: 1;
  text-align: center;
}

.feature i {
  font-size: 3rem;
  color: #af002d;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.feature p {
  font-size: 0.95rem;
  color: #555;
  max-width: 300px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text {
    margin-bottom: 2rem;
  }

  .features-grid {
    flex-direction: column;
  }

  .feature p {
    max-width: 100%;
  }
}

/* Pagination Styling */
.pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Modal animations */
.modal-backdrop {
  transition: opacity 240ms ease;
  opacity: 0;
  pointer-events: none;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  transform: translateY(-10px) scale(0.98);
  opacity: 0;
  transition: transform 240ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 200ms ease;
}
.modal-dialog.open {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-dialog.closing {
  transform: translateY(-6px) scale(0.98);
  opacity: 0;
}

/* Subtle pop shadow for focus */
.modal-dialog:focus {
  outline: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Modal inner content entrance */
.modal-content-entrance > * {
  opacity: 0;
  transform: translateY(8px) scale(0.995);
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 220ms ease;
}
.modal-content-entrance.entered > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.modal-content-entrance > img {
  transition-delay: 80ms;
}
.modal-content-entrance > h3 {
  transition-delay: 140ms;
}
.modal-content-entrance > p {
  transition-delay: 200ms;
}

.pagination button,
.pagination .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #333;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.08s ease, color 0.15s ease;
}

.pagination .page-number:hover,
.pagination button:hover {
  background: rgba(175, 0, 45, 0.06);
  color: #af002d;
  transform: translateY(-2px);
}

.pagination .page-number.active-page {
  background: #af002d;
  color: #fff;
  border-color: #af002d;
}

.pagination button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Small screen adjustments */
@media (max-width: 480px) {
  .pagination {
    gap: 0.25rem;
    flex-wrap: wrap;
    padding: 0 8px;
  }
  .pagination button,
  .pagination .page-number {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 0.9rem;
  }
}
