.rounded-section {
    border-top-left-radius: 100px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 100px;
    overflow: hidden;
}


.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 15px auto;
    border: 3px solid #f2eb52;
    display: block;
    transition: transform 0.3s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}





/* --- Team Section Responsive Layout --- */
@media (max-width: 768px) {
    .row-view.g-4 {
        display: flex;                     /* Turn the row into a flex container */
        flex-wrap: nowrap;                 /* Prevent wrapping to new lines */
        overflow-x: auto;                  /* Allow horizontal scrolling */
        scroll-snap-type: x mandatory;     /* Smooth scroll between cards */
        -webkit-overflow-scrolling: touch; /* Smoother scroll on iOS */
        gap: 1rem;                         /* Spacing between cards */
        padding-bottom: 1rem;              /* Add space below cards */
    }

    .row-view.g-4::-webkit-scrollbar {
        display: none; /* Hide scrollbar for cleaner look */
    }

    .row-view.g-4 > .col-lg-3,
    .row-view.g-4 > .col-md-6 {
        flex: 0 0 80%;                     /* Each card takes 80% of viewport width */
        scroll-snap-align: center;         /* Snap card to center when scrolling */
    }

    .team-card {
        min-width: 100%;                   /* Ensures card fills its container */
        border-radius: 1rem;
    }
}



/* Fixed-height image container */
.about-image-wrapper {
    width: 100%;
    height: 400px;                    /* Fixed height */
    overflow: hidden;
    border-radius: 1rem;
    margin: 0 auto;
    display: flex;
    align-items: center;              /* Vertically center */
    justify-content: center;          /* Horizontally center */
}

/* Image fits inside without cropping */
.about-rotating-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;              /* Show full image, no crop */
    transition: opacity 0.6s ease-in-out;
    display: block;
}

/* Optional: Responsive height on mobile */
@media (max-width: 768px) {
    .about-image-wrapper {
        height: 300px;
    }
}



/* Profile Card Drop Down fro Team Member's Description */
.team-card {
  transition: all 0.3s ease-in-out;
  border: none;
  border-radius: 10px;
}

.team-card .btn {
  transition: transform 0.2s ease;
}

.team-card .btn[aria-expanded="true"] i {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.team-card .btn i {
  transition: transform 0.3s ease;
}

/* Base style */
button.toggle-btn {
  font-size: 0.9rem !important;
  padding: 0.3rem 0.4srem !important;
  border-width: 1px !important;
  width: 50px
}

/* Mobile view adjustments */
@media (max-width: 576px) {
  button.toggle-btn {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.4rem !important;
    border-width: 1px !important;
    width: 50px;
  }

  button.toggle-btn i {
    font-size: 0.8rem !important;
  }
}



/* CSS to remove the white horizontal lin at the bottom of the Team Members card*/

body {
  background-color: #111e3b; /* same as section bg to hide any gap */
}

