/* Vertical Accordion Component - FIXED */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.vs-accordion {
  display: flex;
  border-radius: 2px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 800px;
}

/* Navigation (Left side - 40%) */
.vs-accordion__nav {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

/* Base tab style - ALWAYS 80px high */
.vs-accordion__tab {
  border-radius: 2px;
  cursor: pointer;
  transition: all 1s ease;
  flex: 0 0 80px !important;
  height: 80px !important;
  max-height: 80px !important;
  min-height: 80px !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0 15px !important;
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Active tab - ALWAYS 160px high */
.vs-accordion__tab.is-active {
  flex: 0 0 160px !important;
  height: 160px !important;
  max-height: 160px !important;
  min-height: 160px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vs-accordion__tab:hover {
  background-size: 105% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dark overlay for better text readability */
.vs-accordion__tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 1s ease;
}

/* Inactive tabs have much darker overlay */
.vs-accordion__tab:not(.is-active)::before {
  background: rgba(0, 0, 0, 0.7) !important;
}

/* Active tab has lighter overlay */
.vs-accordion__tab.is-active::before {
  background: rgba(0, 0, 0, 0.2) !important;
}

/* Hover effect for overlay - lighter than inactive */
.vs-accordion__tab:hover::before {
  background: rgba(255, 255, 255, 0.8) !important;
}

.vs-accordion__title {
  margin: 0;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(128, 128, 128, 0.8);
  z-index: 2;
  position: relative;
  font-size: 1.2em;
  line-height: 1.2;
  transition: transform 0.6s ease;
}

/* Double the size for different header tags */
.vs-accordion__title h1,
.vs-accordion__title.h1 {
  font-size: 4.8em;
}

.vs-accordion__title h2,
.vs-accordion__title.h2 {
  font-size: 3.6em;
}

.vs-accordion__title h3,
.vs-accordion__title.h3 {
  font-size: 2.4em;
}

.vs-accordion__title h4,
.vs-accordion__title.h4 {
  font-size: 2.0em;
}

.vs-accordion__title h5,
.vs-accordion__title.h5 {
  font-size: 1.6em;
}

.vs-accordion__title h6,
.vs-accordion__title.h6 {
  font-size: 1.2em;
}

.vs-accordion__tab:hover .vs-accordion__title {
  /* No scaling on hover */
  color: #ab0033;
}

.vs-accordion__tab.is-active .vs-accordion__title {
  font-size: 1.3em;
}

/* Content (Right side - 60%) */
.vs-accordion__content {
  width: 60%;
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* FIXED: Content items - use absolute positioning with opacity/visibility */
.vs-accordion__content-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px;
  display: flex; /* Always flex, never none */
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow-y: auto;
  transform: translateX(20px); /* Slide in effect */
}

/* FIXED: Active content - show with opacity and visibility */
.vs-accordion__content-item.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0); /* Slide to position */
  z-index: 1;
}

.vs-accordion__text {
  margin-bottom: 30px;
  line-height: 1.6;
  color: #333;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: normal;
}

.vs-accordion__text p {
  margin: 0 0 4px 0;
}

.vs-accordion__text p:last-child {
  margin-bottom: 0;
}

.vs-accordion__text ul {
  margin: 15px 0;
  padding-left: 20px;
}

.vs-accordion__text li {
  margin-bottom: 8px;
}

.vs-accordion__text strong {
  color: #2c3e50;
}

.vs-accordion__image {
  margin-bottom: 30px;
  text-align: center;
  flex-shrink: 0;
}

.vs-accordion__image img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.vs-accordion__image img:hover {
  transform: scale(1.02);
}

.vs-accordion__buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 20px;
}

.btn {
  padding: 12px 24px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  text-align: center;
}

.btn-primary {
  background: #c41e3a;
  color: white;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
  background: #a01729;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
  background: #6c757d;
  color: white;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
  background: #545b62;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .vs-accordion {
    flex-direction: column;
    min-height: auto;
  }
  
  .vs-accordion__nav,
  .vs-accordion__content {
    width: 100%;
  }
  
  .vs-accordion__nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    gap: 4px;
  }
  
  .vs-accordion__tab {
    min-width: 120px;
    flex: 0 0 60px !important;
    height: 60px !important;
    max-height: 60px !important;
    min-height: 60px !important;
    padding: 0 8px !important;
  }
  
  .vs-accordion__tab.is-active {
    flex: 0 0 120px !important;
    height: 120px !important;
    max-height: 120px !important;
    min-height: 120px !important;
    min-width: 140px;
  }
  
  .vs-accordion__title {
    font-size: 0.9em;
  }
  
  /* Reduced but proportional mobile header sizes */
  .vs-accordion__title h1,
  .vs-accordion__title.h1 {
    font-size: 2.4em;
  }

  .vs-accordion__title h2,
  .vs-accordion__title.h2 {
    font-size: 1.8em;
  }

  .vs-accordion__title h3,
  .vs-accordion__title.h3 {
    font-size: 1.2em;
  }

  .vs-accordion__title h4,
  .vs-accordion__title.h4 {
    font-size: 1.0em;
  }

  .vs-accordion__title h5,
  .vs-accordion__title.h5 {
    font-size: 0.8em;
  }

  .vs-accordion__title h6,
  .vs-accordion__title.h6 {
    font-size: 0.6em;
  }
  
  .vs-accordion__tab.is-active .vs-accordion__title {
    font-size: 1em;
  }
  
  /* FIXED: Mobile content positioning */
  .vs-accordion__content-item {
    position: relative; /* Not absolute on mobile */
    padding: 20px;
    min-height: 400px;
    height: auto; /* Auto height on mobile */
  }
  
  .vs-accordion__buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  
  .vs-accordion__content-item {
    padding: 15px;
  }
  
  .vs-accordion__title {
    font-size: 0.8em;
  }
}