.iast-css-vars {
  --iast-primary-blue: #03a0e3;
  --iast-secondary-green: #719a1c;
  --iast-light-gray: #f8f9fa;
}

/* Base Styles */
.iast-about-body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Hero Section */
.iast-about-hero {
  background-image: url("/static/img/ast_images/about_us_background.jpg");
  background-size: cover;
  background-position: center;
  height: 400px;
  color: white;
  text-align: center;
  position: relative;
  padding: 100px 20px;
}

.iast-about-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding: 0 2rem;
  color: #ffffff;
}

.iast-about-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

/* Section Container */
.iast-about-container {
  margin: 0 auto;
  padding: 0 2rem;
}

/* Content Sections */
.iast-about-section {
  padding: 5rem 0;
  position: relative;
}

/* Content Grid */
.iast-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.iast-about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.iast-about-section-title {
  color: var(--iast-secondary-green);
  font-weight: 800;
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  line-height: 1.3;
}

.iast-about-section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 5px;
  background: var(--iast-secondary-blue);
  margin-top: 1rem;
  border-radius: 3px;
}

/* Image Container */
.iast-about-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.iast-about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Vision Statement */
.iast-about-vision-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  border-left: 5px solid var(--iast-secondary-blue);
}

.iast-about-vision-text {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--iast-dark-blue);
  margin: 0;
}

/* Mission List */
.iast-about-mission-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.iast-about-mission-item {
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
  position: relative;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
}

.iast-about-mission-item:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--iast-secondary-blue);
  font-weight: bold;
  font-size: 1.3rem;
}

.iast-about-mission-item-2 {
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
  position: relative;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
}

.iast-about-mission-item-2:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--iast-secondary-blue);
  font-weight: bold;
  font-size: 1.3rem;
}

/* Button */
.iast-about-button {
  display: inline-block;
  background: var(--iast-primary-blue);
  color: white;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 2rem;
  transition: all 0.3s ease;
  border: 2px solid var(--iast-primary-blue);
}

.iast-about-button:hover {
  background: white;
  color: var(--iast-primary-blue);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .iast-about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .iast-about-image-container {
    height: 350px;
    order: -1;
  }

  .iast-about-section-alt .iast-about-image-container {
    order: 0;
  }
}

@media (max-width: 768px) {
  .iast-about-hero {
    padding: 4rem 1rem;
  }

  .iast-about-section {
    padding: 4rem 0;
  }

  .iast-about-vision-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .iast-about-image-container {
    height: 250px;
  }
}

/* Initial hidden state for scroll animations */
.iast-scroll-animation {
  opacity: 0;
  transform: translateY(20px); /* Start slightly below */
  transition: opacity 0.6s ease, transform 0.6s ease; /* Smooth transition */
}

/* Final state when visible */
.iast-scroll-animation.visible {
  opacity: 1;
  transform: translateY(0); /* Move to original position */
}

.iast-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch; /* Key change */
}

.iast-about-image-container {
  height: 100%; /* Fill height of grid item */
  display: flex;
}

.iast-about-image-container-vision {
  height: 90%; /* Fill height of grid item */
  display: flex;
}

.iast-about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* Force mobile layout: stack Image then Content */
@media (max-width: 992px) {
  .iast-about-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .iast-about-image-container {
    order: 1;
  }

  .iast-about-content {
    order: 2;
  }
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
  padding: 18px 20px;
  border-radius: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.iast-hero-text-section {
  background-color: #017eb4;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
  color: white !important;
}

/* wave css */

svg {
  width: 600px;
  width: 800px;
  height: 100%;
  padding: 50px;
}

line {
  stroke-width: 1;
  stroke: #3c3c3c;
}

#wave {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #56acf4;
}

.iast-hero-headline {
  color: white !important;
}


/* Hero Carousel */

.carousel-item-active img {
  width: 100%;
  height: auto;               
  object-fit: cover;          
  object-position: center;    
}
.carousel-item img {
  width: 100%;
  height: auto;               
  object-fit: cover;          
  object-position: center;    
}

/* Prevent layout shifts by forcing a stable carousel height and making images cover the area */
.iast-hero-wrapper .carousel,
.iast-hero-wrapper .carousel-inner,
.iast-hero-wrapper .carousel-item {
  height: 420px; /* desktop default - adjust as needed */
}

.iast-hero-wrapper .hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 992px) {
  .iast-hero-wrapper .carousel,
  .iast-hero-wrapper .carousel-inner,
  .iast-hero-wrapper .carousel-item {
    height: 320px; /* smaller screens */
  }
}

@media (max-width: 576px) {
  .iast-hero-wrapper .carousel,
  .iast-hero-wrapper .carousel-inner,
  .iast-hero-wrapper .carousel-item {
    height: 240px; /* phones */
  }
}

/* Make arrows & indicators more visible */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.7));
}

.carousel-indicators [data-bs-target] {
  width: 40px;
  height: 5px;
  border-radius: 0;
}

/* Team Members */
.team-section {
  padding: 80px 0;
}

.team-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
  transition: all 0.4s ease;
  position: relative;
  height: 100%;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.14);
}

.team-photo {
  width: 100%;
  height: 300px;                    
  overflow: hidden;
  background: #f8f9fa;
  transition: opacity 0.45s ease;
}

.team-card:hover .team-photo {
  opacity: 0;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-overlay {
  position: absolute;
  inset: 0;
  background: #017eb4;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px 20px;
  opacity: 0;
  transition: opacity 0.42s ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-name {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 14px;
  text-align: center;
}

.team-role {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
  opacity: 0.95;
}

/*RESPONSIVE DESIGN – full coverage for all devices */

@media (max-width: 575.98px) {
  .team-section {
    padding: 50px 0;
  }
  .team-photo {
    height: 400px;
  }
  .team-overlay {
    padding: 15px 12px;
  }
  .team-name {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }
  .team-role {
    font-size: 0.9rem;
    line-height: 1.45;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .team-section {
    padding: 60px 0;
  }
  .team-photo {
    height: 240px;
  }
  .team-overlay {
    padding: 18px 14px;
  }
  .team-name {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  .team-role {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .team-section {
    padding: 70px 0;
  }
  .team-photo {
    height: 260px;
  }
  .team-overlay {
    padding: 20px 16px;
  }
  .team-name {
    font-size: 1.3rem;
  }
  .team-role {
    font-size: 0.98rem;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .team-photo {
    height: 280px;
  }
  .team-overlay {
    padding: 22px 18px;
  }
  .team-name {
    font-size: 1.38rem;
  }
  .team-role {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .team-photo {
    height: 300px;
  }
  .team-overlay {
    padding: 25px 20px;
  }
  .team-name {
    font-size: 1.45rem;
  }
  .team-role {
    font-size: 1.05rem;
  }
}

@media (min-width: 1400px) {
  .team-photo {
    height: 340px;
  }
  .team-name {
    font-size: 1.55rem;
  }
  .team-role {
    font-size: 1.1rem;
  }
}

/* Table Styles */
.container-member {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    color: #f4f2f7;
    background: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.container-member .name {
    text-align: left;
    color: #719a1c;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: bold;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: 15px;
}

.member-table th, .member-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #287CC5;
    color: black;
    font-size: 18px;
}

.member-table tbody tr:hover {
    background-color: #a1a6b077; /* Light gray background on hover */
    transition: background-color 0.3s ease;
}

.member-table thead {
    background: #287CC5;
    color: #fff;
}

.member-table th {
    font-weight: bold;
}

/*AST Director */

/* Container for director image only */
.director-img-container {
  height: 400px;                    
  width: 100%;
  max-width: 450px;                 
  margin: 0 auto;                   
  overflow: hidden;
  border-radius: 16px;              
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); 
}

/* The image inside the director container */
.director-img-container .iast-about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;                
  object-position:  center;      
  display: block;
}

/* Optional: slight hover effect to match modern feel (remove if not wanted) */
.director-img-container:hover .iast-about-image {
  transform: scale(1.03);
  transition: transform 0.4s ease;
}

/* Make sure the grid doesn't force weird stretching */
.iast-about-grid {
  align-items: start;               
}