h2{
  margin: 30px 0 15px 0;
}
.responsive {
  display: block;
  width: 100%;
}
.bg-color {
  background-color: #f5f5f7;
}
/* tab css */
#aboutus .active[data-tab-content] {
  display: block;
  color: #000000;
}
#aboutus .tab.active {
  color: #000000;
  font-weight: 600;
  border-color: #000000;
}

#aboutus [data-tab-content] {
  visibility: hidden;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease;
}

#aboutus .active[data-tab-content] {
  visibility: visible;
  opacity: 1;
  height: auto;
}

/* ---------------------------------- */
.common-tab {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.common-tab li {
  border-bottom: 2px solid #6e6d6d;
  font-size: 16px;
  cursor: pointer;
  line-height: 25px;
  font-weight: 400;
  color: #434343;
}
/* ------------------------------ */
.bg-ourstory {
  margin-top: 3rem;
  margin-bottom: 16px;
  border-radius: 20px;
  background-color: #fff;
}
.ourstory-sub {
  color: #1d1d1f;
  text-align: center;
  padding: 20px;
}
.ourstory-sub h2 {
  font-size: 28px;
  font-weight: bold;
}
.ourstory-sub p {
  font-size: 17px;
  margin-top: 0;
  line-height: 25px;
  font-weight: 300;
  margin-bottom: 20px;
}
.ourstory-image img {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.ourstory-common {
  margin-top: 3rem;
  margin-bottom: 16px;
  border-radius: 20px;
  background-color: #fff;
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 5rem;
  padding-right: 5rem;
  text-align: center;
}

.ourstory-common h2 {
  font-size: 28px;
  line-height: 32px;
  padding-left: 12rem;
  padding-right: 12rem;
  font-weight: bold;
  margin: 0;
  margin-bottom: 15px;
}
.ourstory-common p {
  line-height: 25px;
  font-size: 17px;
  margin-top: 0;
  font-weight: 300;
}
.role-facility {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 3rem;
  margin-bottom: 50px;
}
.role-facilitysub {
  background-color: #fff;
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 3rem;
  padding-right: 3rem;
  text-align: left;
  border-radius: 20px;
}
.role-facilitysub h2 {
  margin-top: 0;
  font-size: 28px;
  line-height: 32px;
  font-weight: bold;
  padding-left: 0rem;
  padding-right: 1rem;
}
.role-facilitysub p {
  line-height: 25px;
  font-size: 17px;
  margin-top: 0;
  font-weight: 300;
}

.role-facilitysub ul {
  padding-left: 1rem;
}
.role-facilitysub ul li {
  line-height: 25px;
  font-size: 17px;
  margin-top: 0;
  font-weight: 300;
}

/* cards governance */
.card-container.about-governance {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two cards per row */
  gap: 35px; /* Space between cards */
}

/* Individual card */
.about-governance {
  margin-bottom: 50px;
}
.about-governance .card {
  display: flex;
  align-items: start;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}
.about-governance .card:nth-child(odd) {
  margin-right: 30px; /* Applies margin to alternate cards */
}
/* Profile image */
.about-governance .card .profile-img {
  width: 100px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
  margin-right: 15px;
  margin-top: 0px;
}

/* Card content */
.about-governance .card .card-content {
  flex: 1;
  margin-right: 20px;
}

/* Title */
.about-governance .card h2 {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin-bottom: 10px;
}

/* Role and other details */
.about-governance .card .title {
  font-size: 16px;
  font-weight: 400;
  color: #8c8c8c;
  margin: 5px 0;
}

.about-governance .card .role {
  font-size: 14px;
  color: #2a2e6d;
  font-weight: 500;
  margin: 5px 0;
}

/* Address */
.about-governance .card .address {
  font-size: 11px;
  color: #0061a7;
  margin-top: 10px;
  font-weight: bold;
  padding-right: 50px;
}
.about-governance .card .card-divider {
  border: none;
  height: 1px;
  background-color: #ddd; /* Light gray line */
  margin-top: 10px;
  width: 100%; /* Full width inside card */
}

/* executive */
.executive-member {
  margin-bottom: 50px;
}
.executive-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two cards per row */
  gap: 35px; /* Space between cards */
}
.executive-container .name {
  color: #2a2e6d;
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  margin: 2px 0;
}
.executive-container .place {
  color: #1d1d1f;
  font-weight: 400;
  font-size: 19px;
  margin: 2px 0;
}
.executive-container .address {
  color: #6e6e73;
  font-size: 17px;
  font-weight: 300;
  margin: 2px 0;
}
.executive-container .card-divider {
  border: none;
  height: 1px;
  background-color: #ddd; /* Light gray line */
  margin-top: 10px;
  width: 100%; /* Full width inside card */
}
/* leadership */
.leader-div {
  background-color: #e2f5ff;
  margin-top: 50px;
}

/* emblem */
.emblem-container {
  background-color: #e2f5ff;
  padding: 20px 20px 50px 20px;
  border-radius: 30px;
  margin-bottom: 50px;
}
.emblem-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0px;
}
.section-title-emblem {
  font-size: 32px;
  line-height: 35px;
  padding-left: 60px;
  margin: 25px 0 40px 0;
}
.emblem-logo {
  width: 302px;
  height: 302px;
}
.emblem_memorial {
  margin-top: 25px;
  padding-right: 30px;
}
.emblem_memorial p {
  font-size: 17px;
  margin-top: 0;
  line-height: 25px;
  font-weight: 300;
}

/* organogram */
.organogram-main {
  border-radius: 30px;
  background-color: #e6f2ff;
  margin: 5px 0px 50px 0;
  padding: 20px 20px 50px 20px;
  display: flex;
  justify-content: center;
  /* min-width: 1000px;  */
}
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  /* max-width: 1400px; */
}

.box {
  background-color: white;
  border-radius: 15px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 10px;
  min-width: 200px;
}

.title-box {
  font-weight: bold;
  color: #2c3e50;
  font-size: 18px;
}
.title-box-top {
  margin-top: -20px;
}

.arrow {
  position: relative;
  height: 42px;
  width: 4px;
  background-image: url("../images/arrow-down.svg"); /* Replace with your image URL */
  background-size: cover; /* Ensures the image fills the space */
  background-repeat: no-repeat; /* Prevents repeating */
  background-position: center; /* Centers the image */
  margin: 0;
}
.arrow-first {
  position: relative;
  height: 42px;
  width: 4px;
  background-image: url("../images/arrow-down.svg"); /* Replace with your image URL */
  background-size: cover; /* Ensures the image fills the space */
  background-repeat: no-repeat; /* Prevents repeating */
  background-position: center; /* Centers the image */
  margin: 0;
}
.arrow-point {
  position: relative;
  height: 50px;
  width: 4px;
  background-image: url("../images/connector.svg"); /* Replace with your image URL */
  background-size: cover; /* Ensures the image fills the space */
  background-repeat: no-repeat; /* Prevents repeating */
  background-position: center; /* Centers the image */
  margin: 0;
}
.arrow-top {
  top: -16px;
}
.arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  object-fit: contain;
  height: 11px;
  background-image: url("../images/Vector.svg");
  background-size: cover;
  background-position: center;
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
}
.arrow-first::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  object-fit: contain;
  height: 11px;
  background-image: url("../images/Vector.svg");
  background-size: cover;
  background-position: center;
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
}
.person-card {
  background-color: white;
  border-radius: 15px;
  padding: 5px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: auto;
}

.main-person-card {
  width: auto;
  padding: 20px;
}

.person-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  background-color: #e74c3c;
}

.main-person-image {
  width: 110px;
  height: 110px;
}
.main-person-name {
  font-weight: bold;
  margin-bottom: 5px;
  color: #2c3e50;
  font-size: 20px;
}
.person-name {
  font-weight: bold;
  margin-bottom: 5px;
  color: #2c3e50;
  font-size: 12px;
}

.person-title {
  color: #7f8c8d;
  font-size: 12px;
}
.main-person-title {
  color: #7f8c8d;
  font-size: 16px;
}
.bottom-r {
  top: -2px;
}
.bottom-level {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-wrap: nowrap;
}

.card-with-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%; /* Exactly 8 cards in a row */
  margin: 0 5px;
  /* flex-shrink: 0; */
}

.connector {
  position: relative;
}

.horizontal-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 2px;
  background-color: #63699a;
}

/* inside tab css */
/* General Organogram Styles */
#organogram {
  background: #E2F5FF;
}

#organogram .tabs-container {
  margin: 0px 0px 50px 0px;
  padding: 0px;
  width: auto;
  background: #E2F5FF;
  border-radius: 30px;
}

/* Tab Navigation */
#organogram .tabs {
  display: flex;
  gap: 30px; 
  padding: 0 50px 50px 50px;
}

#organogram .tab-label {
  text-decoration: underline;
  text-underline-offset: 2px;
  background: white;
  color: #2A2E6D;
  border-radius: 30px;
  flex: 1;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

/* Hide radio buttons */
#organogram input[type="radio"] {
  display: none;
}

/* Tab Content */
#organogram .tab-content {
  display: none;
  padding: 20px;
  background: #E2F5FF;
  font-size: 16px;
  color: #333;
}

/* Show the selected tab */
#organogram #tab1:checked ~ .content1,
#organogram #tab2:checked ~ .content2,
#organogram #tab3:checked ~ .content3,
#organogram #tab4:checked ~ .content4 {
  display: block;
}

#organogram #tab1:checked ~ .tabs .label1,
#organogram #tab2:checked ~ .tabs .label2,
#organogram #tab3:checked ~ .tabs .label3,
#organogram #tab4:checked ~ .tabs .label4 {
  color: white;      /* Change text color to white for contrast */
  border-radius: 30px;
}
#organogram .tab-label:hover {
  background-color: #e2e4ff; /* Light purple hover effect */
}
/* media query starts here */
@media (max-width: 1199px) {
  .ourstory-common h2 {
    font-size: 26px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* organogram */
  .bottom-level {
    flex-direction: column;
  }
  .person-card {
    width: auto;
    padding: 20px;
    margin: 20px 0;
  }
  .horizontal-line {
    top: -100px;
    left: -100px;
    transform: unset;
    width: 3px;
    height: 100%;
  }
  .card-with-arrow {
    flex-direction: row;
  }
  .arrow {
    position: absolute;
    left: -79px;
    height: 55px;
    width: 18px;
    transform: rotate(-90deg);
  }
  .arrow-point {
    display: none;
  }
}
@media (max-width: 991px) {
  .ourstory-common h2 {
    font-size: 26px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .about-governance .card:nth-child(odd) {
    margin-right: 0px;
  }
  .about-governance .card .address {
    padding-right: 0px;
  }
}
@media (max-width: 767px) {
  .ourstory-common h2 {
    font-size: 26px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .about-governance .card:nth-child(odd) {
    margin-right: 0px;
  }
  .about-governance .card .address {
    padding-right: 0px;
  }
  .card-container.about-governance {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
  .emblem-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .emblem_memorial {
    padding-right: 10px;
  }
  .section-title-emblem {
    display: none;
  }
  .emblem-logo {
    margin-top: 25px;
  }
}
@media (max-width: 499px) {
  .section-title {
    font-size: 32px;
    line-height: 35px;
  }
  .card-container.about-governance {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
  .role-facility {
    grid-template-columns: 1fr;
  }

  .ourstory-common {
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .role-facilitysub {
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .ourstory-common h2 {
    padding: 0;
  }
  /* tab mobile */
  .common-tab {
    overflow-x: auto; /* Enables horizontal scrolling */
    white-space: nowrap; /* Prevents items from wrapping */
    gap: 15px;
  }

  /* Hide scrollbar (optional) */
  .common-tab::-webkit-scrollbar {
    display: none;
  }
  .tab.active {
    background-color: #e2e4ff;
    border: 2px solid #1f2b6c;
    color: #1f2b6c;
  }
  .common-tab li {
    color: #1f2b6c;
    border: 2px solid #1f2b6c;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 2rem;
  }
  .executive-container {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }
  .horizontal-line {
    top: -100px;
    left: -75px;
  }
  .arrow {
    left: -54px;
  }
  #organogram .tabs-container{
    margin: 0;
  }
  #organogram .tabs {
    display: grid;
  }
}
@media (max-width: 375px) {
  .horizontal-line {
      top: -100px;
      left: -52px;
  }
  .arrow {
    left: -38px;
    height: 35px;
    width: 12px;
}
}
@media (max-width: 320px) {
  .horizontal-line {
      left: -28px;
      width: 2px;
  }
  .arrow {
    left: -18px;
    height: 28px;
    width: 8px;
}
}