/* Section container */
.tabbed-section {
  font-family: Quicksand, Roboto, "Segoe UI";
  max-width: 1440px;
  margin: 2rem auto;
  padding: 2rem;
  overflow: visible;
}
/* Section header */
.section-header {
    margin-bottom: 2rem;
}
  
.section-header.text-center {
  text-align: center;
  }
  
.section-header.text-left {
  text-align: left;
  }

.section-title h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
}
.section-subtitle p {
  margin-top: 0;
  font-size: 1.3rem;
  color: #666;
  line-height: 1.4;
}

/* Main Container */
.tabs-wrapper {
  border-radius: 8px;
  overflow: visible;
  padding: 1.875rem;
  border: 1px solid #e7e7e7;
  border-radius: 0.5rem;
  margin: 0 auto;
}

/* Tab navigation */
.tab-nav-container {
  background-color: #fff;
  /* border-bottom: 1px solid #e7e7e7; */
  padding: 15px 15px 0;
  width: 100%;
}

.tab-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-nav-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-weight: 500;
  outline: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}
.tab-nav-item:focus {
  border-radius: 12px 12px 0px 0px;
}
 .tab-nav-item:hover {
  border-radius: 14px 14px 14px 14px;
}
.tab-nav-item.active {
  border-radius: 12px 12px 0px 0px;
}
.tab-name p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}

.tab-icon {
  display: inline-block;
  margin-right: 0.75rem;
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
}
.tab-icon img {
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}

/* Tab content */
.tab-content-container {
  padding: 30px 20px;
  border-radius: 0 0 10px 10px;
  position: relative;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s;
  min-height: 32rem;
  height: auto;
  overflow: visible;
}
.tab-content.active {
  display: block;
  padding: 0;
}
.tab-content-flex {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
  min-height: 30rem;

}
.offset-style-container {
  background-color: #041342;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(23, 53, 96 0.2);
  margin-top: 1rem;
  margin-bottom: .5rem;
  border-radius: 4rem 1rem;
  flex: 1;
  /*min-height: 7rem; */

}
.offset-style-container .tab-title {
  font-weight: bold;
  color: white;
  margin-top: 1.5rem;
  margin-bottom 1.5rem;
  font-size: 1.5rem;
}

.offset-style-container .tab-description {
  /*color: #a9c6e8; */
  font-size: 1.2rem;
  line-height: 1.5;
}

.tab-content-text {
  flex: 1;
}

.tab-content-media {
  flex: 1.5;
  padding: 0.9375rem;
  text-align: center;
  border-radius: 0.5rem;
  height: 28rem;
  min-width: 28rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-content-image img {
  max-width: 100%;
  height: 28rem;
  object-fit: contain;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
}
.tab-content-media iframe,
.tab-content-media video,
.tab-content-media .vidyard_player,
.tab-content-media .hs-video-widget {
  width: 100%;
  max-width: 100%;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  overflow: hidden;
}

.tab-content-media .hs-video-container {
  width: 100% !important;
  max-width: 100% !important;
}

@keyframes fadeIn {
  from { opacity: 0;}
  to { opacity: 1; }
}

/* Layout options */
.tab-content-flex.image-right {
  flex-direction: row;
}

.tab-content-flex.image-right .offset-style-container {
  margin-left: -3rem !important;
  padding-left: 2rem;
}

.tab-content-flex.image-left {
  flex-direction: row-reverse;
}

.tab-content-flex.stacked {
  flex-direction: column;
}

.tab-content-flex.stacked .tab-content-media {
  width: 100%;
  height: 24rem;
  min-width: unset;
}
/* Responsive styling */
@media (max-width: 768px){
  .tab-content, .tab-content-flex, .offset-style-container, .tab-content-media {
    height: auto;
    min-height: auto;
    min-width: auto;
    width: 100%;
  }
  
  .tab-content-flex, .tab-content-flex.image-right, .tab-content-flex.image-left {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .offset-style-container {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 2rem 1rem;
  }
  .tab-content-flex.image-right .offset-style-container {
    margin-left: 0 !important;
    padding-left: 1.4rem;
    position: static;
  }
  
  .tab-content-media {
    width: 100%;
    padding: 0.5rem;
    height: auto;
    margin-top: 0.25rem;
    margin-right: 0.25rem;
  }
  
  .tab-content-flex .tab-content-media {
    order: 2;
 }
  .tab-content-image img {
    max-width: 100%;
    height: 100%;
  }
  
  .tab-content-media iframe,
  .tab-content-media video
  .tab-content-media .vidyard-player-container,
  .tab-content-media .vidyard-player
  .tab-content-media .hs-video-widget {
    height: auto;
    min-height: 200px;
    aspect-ratio: 16/9;
  }
  
  .offset-style-container .tab-description {
    max-width: 100%;
    font-size: 1rem;
 }

  .tab-nav {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .tab-nav-item {
    padding: 0.5rem 0.75rem;
    min-width: 0.625rem; /* minimum width for touch targets */
    font-size: 0.9rem;
  }
  .tab-name {
    font-size: 0.9rem;  
  } 
  .tab-content-container {
   padding: 10px;
  }
  .tab-content {
    min-height: auto;
    height: auto;
  
  }
  
}
