@import '../../css/global.css'; /* Import your global styles */

#about-us {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 900px;
}

.desktop-img{
  width: 60%;       /* Make the image take up 100% of the container's width */
  height: auto;      /* Make the image take up 100% of the container's height */
  object-fit: cover; /* Ensures the image covers the container without distortion */
  border-radius: 5px;
}


.card-container-desktop {
  background-color: rgba(255, 255, 255, 0.215);
  width: auto;
  height: 650px; /* Adjust this as needed */
  border-radius: 20px;
  display: none;
  grid-template-columns: clamp(300px, 50%, 750px) clamp(200px, 100%, 500px); 
  grid-template-rows: auto 1fr auto; /* Rows: first auto, second flexible, last auto */
}



.card-container-desktop-column-1 {
  padding: 2rem;
  /* No fixed width to allow responsive behavior */
}

.card-container-desktop-column-2 {
  display: grid;
  grid-template-rows: repeat(1, 1fr); /* Create 2 equal columns */
  gap: 10px; /* Space between the cards */
  width: auto; /* Full width */
  height: 450px; /* Set a specific height for the container */
  margin-top: 5rem;
  margin-right: 3rem;
}
.bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 equal columns */
  gap: 10px; /* Space between the columns */
  margin-top: 20px; /* Space between the top sections and this row */
  height: 0px;
}

.card-container-desktop .btn1{
  margin-left: 475px;
  margin-top: 1rem;
}

.upper-card {
  background-image: linear-gradient(rgba(31, 31, 31, 0.5), rgba(28, 28, 28, 0.5)), url(./card-bg-img.png);
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 20px; /* Simplified border-radius property */
  width: 92%;
  height: 50dvh; /* Use dvh for dynamic viewport height */
  padding: 1rem;
}

.desktop-about-us-text-h4{
  font-size: 18px;
}

.desktop-about-us-text-p{
  font-weight: bold;
  font-size: 32px;
}


#card2 .upper-card{
  background-image: linear-gradient(rgba(31, 31, 31, 0.5), rgba(28, 28, 28, 0.5)), url(./card-img-2.png);
}


#activeStatus{
  font-size: 12px;
  color: var(--blue-color);
  font-family: Arial, Helvetica, sans-serif;
}
.lower-card {
  height: 70dvh; /* Full height for the lower card */
  background-color: var(--blue-color);
  border-radius: 20px;
  position: relative;
  top: -20px; /* Adjust this value to overlap more or less */
  margin-top: -20px; /* Pushes lower-card up */
  z-index: 1; /* Ensures it appears above other content if needed */
  padding: 1rem;
}

.card-details {
  margin-top: 10rem;
  display: grid;
  grid-template-columns: repeat(3, 0.3fr); /* Simplified grid template */
  gap:27px
}

.detail h4,
.detail p {
    margin: 0; /* Removes default margin */
    padding: 0; /* Removes any default padding */
}

.detail h4 {
    margin-bottom: 5px; /* Adjust as needed to bring them closer */
}


.detail {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers items vertically */
  justify-content: center; /* Centers items horizontally */
  text-align: center;
  height: 100%; /* Ensures the div fills the available space */
}


.card-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center align all children */
  position: relative; /* Relative positioning for the slider */
}

.toggle-container {
  width: 17.5%; /* Width of the toggle */
  height: 30px; /* Height of the toggle */
  background-color: var(--blue-color); /* Background color of the toggle */
  border-radius: 20px; /* Rounded corners */
  position: relative; /* Position relative for circle placement */
  margin: 20px auto; /* Center the toggle */
  cursor: pointer; /* Change cursor to pointer */
  transition: background-color 0.3s; /* Smooth background transition */
}

.toggle-button {
  position: absolute;
  top: 50%;
  left: 0; /* Start at the left */
  transform: translateY(-50%); /* Center the button vertically */
  width: 100px; /* Width of the toggle button */
  height: 100%; /* Full height */
  transition: left 0.3s; /* Smooth transition for the button */
  border-radius: 20px; /* Rounded corners */
}

.toggle-circle {
  width: 40px; /* Width of the circle */
  height: 40px; /* Height of the circle */
  background-color: var(--accent-color); /* Circle color */
  border-radius: 50%; /* Make it a circle */
  position: absolute;
  top: 50%;
  left: 5%; /* Position on the left */
  transform: translate(-50%, -50%); /* Center it vertically */
  transition: left 0.3s; /* Smooth transition for the circle */
}


.card {
  display: none; /* Hide all cards by default */
  position: relative; /* For positioning of lower-card */
}

.card.active {
  display: block; /* Show only the active card */
}


.card-header{
  line-height: 0.2;
}

/* Style for the Next and Prev buttons */
.swiper-button-next,
.swiper-button-prev {
  color: white; /* Change the button color to white */
  background: transparent; /* Ensure no background */
  border: none; /* Remove any border */
  outline: none; /* Remove focus outline */
  transition: color 0.3s ease; /* Smooth transition for hover effects */
}

.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after {
  content: 'next';
  color: var(--accent-color);
}

.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
  content: 'prev';
  color: var(--accent-color);
}
/* Add hover effect */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #f0f0f0; /* Slightly lighter white on hover */
}

/* Adjust button size if needed */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 24px; /* Adjust arrow size */
}