.card-container {
  background-color: white;
  height: 100%;
  width: 100%;
}

@media screen and (max-width: 600px) {
  .background-slideshow {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    flex-direction: column;
  }

  .hero-card {
    margin: 0;
    width: 100%;
    max-width: 400px;
  }
}


.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.background {
  background-image: url(images/image1.jpg);
  background-size: cover;
  /* Ensures the image covers the container */
  background-position: center;
  /* Keeps the image centered */
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
  /* Full height of the viewport */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 601px) {
  .background {
    height: 100vh;
    width: 100%;
    background-size: cover;
    /* Fill entire container */
    background-position: center top;
    /* Keep head visible */
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* Prevent fixed scroll bugs */
  }
}



/* Card Block Styling */
.hero-card {
  position: relative;
  z-index: 1;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.7);
  padding: 30px;
  border-radius: 15px;
  margin: 100px 50px;
  font-family: sans-serif;

}

.hero-card h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-card p {
  font-size: 18px;
  margin-bottom: 20px;
}

.hero-button {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.hero-button:hover {
  background: #388e3c;
}

@media screen and (max-width: 600px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .hero-card {
    margin: 0;
    width: 100%;
    max-width: 400px;
  }
}


.floating-card {
  width: 100%;
  height: 100%;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: floatCard 4s ease-in-out infinite;
  transition: transform 0.2s ease;

}

@keyframes floatCard {
  0% {
    transform: translateY(0px) rotate(0.2deg);
  }

  25% {
    transform: translateY(-5px) rotate(-0.2deg);
  }

  50% {
    transform: translateY(0px) rotate(0.3deg);
  }

  75% {
    transform: translateY(5px) rotate(-0.1deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.floating-card2 {
  width: 100%;
  height: 100%;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: floatCard 4s ease-in-out infinite;
  transition: transform 0.2s ease;

}

@keyframes floatCard {
  0% {
    transform: translateY(0px) rotate(0.2deg);
  }

  25% {
    transform: translateY(-5px) rotate(-0.2deg);
  }

  50% {
    transform: translateY(0px) rotate(0.3deg);
  }

  75% {
    transform: translateY(5px) rotate(-0.1deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

* {
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif;
}

body {
  background: #f8f8f8;
  margin: 0;
  padding: 20px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.team-style-card {
  max-width: 960px;
  margin: 30px auto;
  background: #fff;
  border-radius: 8px;
  /* ✅ Navy Blue Border */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.team-style-card.animate-right {
  opacity: 1;
  transform: translateX(0);
  animation: slideFromRight 0.8s ease forwards;
}

.team-style-card.animate-left {
  opacity: 1;
  transform: translateX(0);
  animation: slideFromLeft 0.8s ease forwards;
}

.team-style-card .top-bar {
  height: 25px;
  background: linear-gradient(to right, #000080,#000080 );
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-content.no-image {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.profile-details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.profile-details p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .card-content.no-image {
    padding: 20px;
    text-align: center;
  }
}


.team-card {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.top-bar {
  height: 25px;
   background: linear-gradient(to right, #000080,#000080 );
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-content {
  display: flex;
  padding: 20px 30px;
}

.profile-img img {
  width: 150px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  margin-right: 30px;
}

.profile-details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.profile-details .title {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 10px 0 15px;
}

.profile-details ul {
  padding-left: 18px;
  margin: 0;
}

.profile-details li {
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .card-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .profile-img img {
    margin: 0 auto 20px;
    width: 120px;
    height: 160px;
  }

  .profile-details {
    padding: 0;
  }

  .profile-details ul {
    padding-left: 0;
    list-style-position: inside;
  }
}

/* Add this to your CSS */

.team-card {
  opacity: 0;
  transform: translateX(0);
  transition: all 0.8s ease-out;
}

.team-card.animate-right {
  opacity: 1;
  transform: translateX(0);
  animation: slideFromRight 0.8s ease forwards;
}

.team-card.animate-left {
  opacity: 1;
  transform: translateX(0);
  animation: slideFromLeft 0.8s ease forwards;
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Main background */
.sub-container {
  background-color: #000080;
  padding: 40px 20px;
  height: auto;
}

/* Section title */
.moons {
  text-align: center;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 30px;
}

/* Grid layout for top 3 cards */
.block-grid-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* Grid layout for bottom 2 cards */
.block-grid-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

/* Card styling */
.block1 {
  background-color: white;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Image styling */
.block1image {
  height: 300px;
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* Button styling */
.block1button {
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 10px;
  background-color: #000080;
  color: white;
  border: 2px solid rgb(47, 172, 255);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Button hover effect */
.block1button:hover {
  background-color: purple;
  color: white;
}

/* Responsive for tablets */
@media (max-width: 992px) {

  .block-grid-top,
  .block-grid-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive for mobile */
@media (max-width: 600px) {

  .block-grid-top,
  .block-grid-bottom {
    grid-template-columns: 1fr;
  }





  .block1image {
    max-height: 200px;
  }



}



.block2of {
  background-color: white;
  padding: 10px;
}




@media (max-width: 600px) {

  .block-grid-top,
  .block-grid-bottom {
    grid-template-columns: 1fr;
  }



  .block1of {
    width: 100%;
  }

  .block1image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 15px;
  }
}

.navbar-nav .nav-item {
  margin-left: 15px;
}

.navbar-nav .nav-link {
  color: #333;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #007bff;
  /* or any hover color */
}

.navbar-brand span {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
}