* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
.mobile-nav{
  display: none;
}
header {

  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.header-container {

  height: 748px;



}

.logo-nav img {
  position: absolute;
  height: 49px;
  width: 214px;
  top: 30px;
  left: 50px;



}

.header-text {
  position: relative;
  bottom: 390px;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(255, 255, 255);
  font-size: 36px;
  text-align: center;

  justify-content: center;

  gap: 5px;
  filter: drop-shadow(9px 5px 5px #28282B);

}


nav ul {
  position: absolute;
  display: flex;
  gap: 70px;
  /* width: 94px; */
  height: 19px;
  top: 43px;
  right: 95px;
  font-size: 1.4vw;
}

nav ul div a {
  color:
    rgb(100%, 100%, 100%);
  text-decoration: none;
  filter: drop-shadow(12px 7px 6px black);
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.hamburger {
  display: none;
  /* Default e hidden rakha hoyeche (desktop er jonno) */
  flex-direction: column;
  /* Vertically stack korte */
  justify-content: space-between;
  /* Equal space among lines */
  height: 20px;
  /* Total height of the hamburger */
  cursor: pointer;
  /* Pointer cursor for interactivity */
}

.hamburger span {
  display: block;
  /* Block level element */
  height: 3px;
  /* Thickness of each line */
  width: 25px;
  /* Length of each line */
  background-color: white;
  /* White color for visibility */
  border-radius: 5px;
  /* Slightly rounded edges */
}

.small-button {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 12px;
  border: none;
  background-color: red;
  color: white;
  cursor: pointer;
}

.container {
  display: flex;
  justify-content: space-around;
  width: 80%;
  margin-top: 28%;
  margin-left: 11%;
}

.card {
  text-align: center;
  width: 200px;
  padding: 10px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  color: #1d4ed8;
  margin-bottom: 42px;
  border-bottom: 2px solid #ff4b4b;
  padding-bottom: 5px;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  /* shadow effect */
  cursor: pointer;
  transition: transform 0.3s;
}

.card img:hover {
  transform: translateY(-5px);
  /* lifted effect */
}

.video-section {
  text-align: center;
  width: 80%;
  margin-top: 6%;
  margin-left: 13%;
}

.video-section h2 {
  font-size: 24px;
  color: #1d4ed8;
  position: relative;
  margin-bottom: 5%;
}

.video-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: #ff4b4b;
  margin: 5px auto 20px;
}

.video-gallery {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
}

.video-card {
  flex: 0 0 auto;
  width: 300px;
  /* or whatever width you prefer */
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.video-thumbnail img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.video-thumbnail:hover {
  transform: translateY(-5px);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 10px;
  transition: background-color 0.3s;
}

.play-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.video-card p {
  margin-top: 10px;
  color: #333;
  font-weight: 500;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 700px;
}

.close {
  position: absolute;
  top: -9px;
  right: 116px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

#modalVideo {
  width: 58%;
  height: auto;
  border-radius: 8px;
  margin-left: 21%;
}




footer {
  width: 100vw;
  height: 50vh;
  background-color: #0151A6;
  ;
  color: #ffffff;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 20px;
  margin-top: 5%;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 24px;
  color: #ffffff;
}

.footer-info {
  margin-bottom: 10px;
  align-items: center;
  font-size: 1.5vw;

}

.footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  font-size: 1.3vw;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  gap: 71px;
}

.footer-nav li {
  margin-right: 20px;
}

.footer-nav a {
  text-decoration: none;
  color: #fcf7f7;
}

.social-media {
  gap: 32px;
  margin: 10px 0;
  display: flex;
}


.social-media img {
  margin-right: 10px;
  color: #fff;
}

.social-media img {
  font-size: 24px;
  height: 29px;
  width: 29px;
  border-radius: 4px;
  justify-content: center;
}

.footer-logo img {
  width: 345px;
  height: 79px;

}

@media (max-width:1024px) {
  nav ul {
    gap: 24px;
    right: 29px;
  }

  .container {
    margin-top: 0%;
  }

  footer {
    height: 63vh;

  }

  .header-text {
    bottom: 347px;
  }
}

@media(max-width:1540px) {
  .header-text {
    bottom: 555px;
  }

  .container {
    margin-top: 15%;
  }

  footer {
    height: 66vh;
  }

  .close {
    right: 175px;
  }

  #modalVideo {
    width: 28%;
    margin-left: 43%;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    /* Show the hamburger menu */
  }

  .nav-links {
    display: none;
    /* Hide the menu by default */
  }

  .nav-links.active {
    display: flex;
    /* Show menu when active */
  }
}

@media (max-width: 435px) {
  .logo-nav img {
    height: 32px;
    width: 135px;
  }

  nav ul {
    display: none;
    /* visibility: hidden; */
  }

  .header-text {
    position: absolute;
    bottom: 608px;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(255, 255, 255);
    font-size: 16px;
    text-align: center;

    justify-content: center;

    gap: 5px;
    filter: drop-shadow(9px 5px 5px #28282B);

  }

  .header-container {
    width: 100%;
    /* height: 10vh; */
  }

  .container {
    flex-direction: row;
    /* Keep items in a row */
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    /* Adjusted from negative margin */
    margin-left: 0;
    gap: 10px;
    /* Reduced gap between cards */
    padding: 0 10px;
    /* Add some padding on sides */
  }

  .card {
    width: 30%;
    /* Each card takes roughly 1/3 of container */
    min-width: 100px;
    /* Minimum width to maintain readability */
    margin: 0;
  }

  .card-title {
    font-size: 3vw;
    /* Smaller font size */
    margin-bottom: 10px;
    /* Reduced margin */
    text-align: center;
  }

  .card img {
    width: 100%;
    height: auto;
    max-width: none;
    /* Remove max-width restriction */
  }

  .video-section {
    text-align: center;
    width: 110%;
    margin-top: 6%;
    margin-left: 10%;
  }

  .close {
    right: 88px;
  }

  .video-gallery {
    gap: 10px;
    /* Reduce gap for smaller screens */
    padding: 10px;
    /* Add padding around videos */
  }

  .video-card {
    flex: 0 0 90%;
    /* Each video takes up 90% of the container width */
  }

  .video-card p {
    font-size: 0.8rem;
    /* Adjust text size */
  }

  .play-button {
    font-size: 1.2rem;
    /* Adjust play button size */
  }

  footer {
    height: 27vh;
    width: 100%;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 12px;
    color: #01a627;
  }

  .footer-info, .footer-container p {
    
    font-size: 4vw;
    color: #ffffff;
  }

  .footer-nav {
    display: none;
  }

  .footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 71px;
  }

  .social-media {
    gap: 33px;
    /* margin: 10px 0;
      display: flex; */
  }

  .footer-logo img {
    width: 169px;
    height: 35px;
  }

  .video-section {
    width: 100%;
  }

  .video-section {
    margin-left: 0%;
  }

  .close {
    right: 8px;
  }

  #modalVideo {
    width: 88%;
    margin-left: -1%;
  }

  .container {
    margin-top: -106%;
    width: 100%;
  }

  .hamburger-menu {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
  }

  .bar {
    width: 25px;
    height: 3px;
    background-color: #002855;
    margin: 5px 0;
    transition: 0.4s;
  }

  /* Hamburger Animation */
  .hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Mobile Navigation */
  .mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 40, 85, 0.95);
    z-index: 999;
  }

  .mobile-nav.active {
    display: block;
  }

  .mobile-nav ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .mobile-nav ul li {
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s forwards;
  }

  .mobile-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
  }

  .mobile-nav .small-button {
    background: red;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
  }

  /* Animation for menu items */
  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Add animation delay for each menu item */
  .mobile-nav.active ul li:nth-child(1) {
    animation-delay: 0.1s;
  }

  .mobile-nav.active ul li:nth-child(2) {
    animation-delay: 0.2s;
  }

  .mobile-nav.active ul li:nth-child(3) {
    animation-delay: 0.3s;
  }

  .mobile-nav.active ul li:nth-child(4) {
    animation-delay: 0.4s;
  }

  .mobile-nav.active ul li:nth-child(5) {
    animation-delay: 0.5s;
  }

  .mobile-nav.active ul li:nth-child(6) {
    animation-delay: 0.6s;
  }

  .mobile-nav.active ul li:nth-child(7) {
    animation-delay: 0.7s;
  }

  .mobile-nav.active ul li:nth-child(8) {
    animation-delay: 0.8s;
  }
}