/* 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: 0.85;
}

.tab-content-image {
  flex: 1.85;
  padding: 1.25rem;
  text-align: center;
  border-radius: 0.5rem;
  height: 28rem;
  min-width: 28rem;
}

.tab-content-image img {
  max-width: 100%;
  height: 26rem;
  object-fit: contain;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.15);
  
  border-radius: 0.5rem;
  border: 5px solid transparent;
  
  background-image:
    linear-gradient(135deg,
      #4ECDC4 0%,
      #6B5FED 50%,
      #956BED 100%
      );
    
  background-origin: border-box;
  background-clip: border-box;
  
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tab-content-image img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.08);
    0 8px 20px rgba(0, 0, 0, 0.12);
    0 24px 48px rgba(0, 0, 0, 0.14);
}

@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-image {
  width: 100%;
  height: 24rem;
  min-width: unset;
}

.read-more-btn {
  display: none;
}

/* Responsive styling */
@media (max-width: 768px){
  .tab-content, .tab-content-flex, .offset-style-container, .tab-content-image {
    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: 1.5rem;
  }
  
  .offset-style-container {
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 0 !important;
    max-width: 86%;

  }
  
  .tab-content-flex.image-right .offset-style-container {
    margin-left: 0 !important;
    padding-left: 1.4rem;
    position: static;
  }
  
  .tab-content-image {
    width: 100%;
    padding: 1rem 0 0 0 ;
    height: auto;
    margin: 0;
  }
  /*
  .tab-content-flex .tab-content-image {
    order: 2;
 }
  */
  .tab-content-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
  }
  
  .offset-style-container .tab-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
  }
  
  .offset-style-container .tab-description {
    font-size: 1rem;
    line-height: 1.6;
 }

  .tab-nav-container {
    padding: 10px 5px 0;
  }
  
  .tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
  }
  
  .tab-icon {
    display: none;
  }
  
  .tab-nav-item {
    padding: 0.5rem 1rem;
    font-size: 0.80rem;
    border-radius: 20px;
    background-color: #f0f0f0;
    border: none;
    border-bottom: none;
    flex-grow: 0;
    min-width: unset;
  }
  .tab-nav-item.active {
    background-color: #041342;
    color: white;
    border-radius: 20px;
  }
  
  .tab-nav-item:hover,
  .tab-nav-item:focus {
    border-radius: 20px;
  }
  
  .tab-name {
    font-size: 0.8rem;
    font-weight: 500;
  } 
  
  .tabbed-section {
    padding: 1rem;
    margin: 1rem auto;
  }
  
  .tabs-wrapper {
    padding: 1rem;
  }
  
  .tab-content-container {
   padding: 1.5rem 1rem;
  }
  
  .tab-content {
    min-height: auto;
  }
  
  .tab-content-flex {
    min-height: auto;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .section-subtitle p {
    font-size: 1.1rem;
  }
  
  .offset-style-container .tab-description {
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
  }
  
  /* Hide all paragraphs except the first one */
  .offset-style-container .tab-description:not(.expanded) p:not(:first-child),
  .offset-style-container .tab-description:not(.expanded) ul:not(:first-child),
  .offset-style-container .tab-description:not(.expanded) ol:not(:first-child) {
    display: none;
  }
  
  /* read more/less button */
  .read-more-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .read-more-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
  }
  
}
