/* Module: Tab Content */

{% scope_css %}
.an-expertise-tabs {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

/* Heading */
.an-expertise-heading {
  width: 769px;
  max-width: 100%; /* Responsive width */
  min-height: 88px;
  font-family: "League Spartan", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 48px;
  line-height: 125%;
  letter-spacing: 0%;
  text-align: center;
  color: #000000;
  margin: 0 0 40px 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tabs Navigation Bar */
.an-expertise-tabs-nav {
  width: 1179px;
  max-width: 100%; /* Responsive width */
  height: 75px;
  border-radius: 40px;
  background: #FFFFFF;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* Tab Buttons */
.an-tab-btn {
  width: 380px;
  height: 55px;
  border-radius: 40px;
  border: none;
  background: transparent;
  color: #000000;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.an-tab-btn span {
  position: relative;
  z-index: 2;
}

/* First Tab - Active (Digital Architecture) */
.an-tab-btn[data-tab="tab-1"].is-active {
  background: #4280C7;
  color: #ffffff;
}

/* Second Tab - Active (Human-Led Growth) */
.an-tab-btn[data-tab="tab-2"].is-active {
  background: #332E61;
  color: #ffffff;
}

/* Third Tab - Active (Change Management) */
.an-tab-btn[data-tab="tab-3"].is-active {
  background: #81007F;
  color: #ffffff;
}

/* Panels Wrapper */
.an-expertise-panels {
  width: 100%;
  max-width: 100%; /* Responsive width */
  display: flex;
  justify-content: center;
}

/* Panel */
.an-expertise-panel {
  display: none;
  width: 100%;
}

.an-expertise-panel.is-active {
  display: block;
  animation: fadeIn 300ms ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card Container */
.an-expertise-card {
  width: 1179px;
  max-width: 100%; /* Responsive width */
  height: 383px;
  border-radius: 25px;
  padding: 40px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 538.67px 1fr;
  gap: 40px;
  align-items: center;
}

/* First Tab Card - Blue */
.an-expertise-panel#tab-1 .an-expertise-card {
  background: #4280C7;
}

/* Second Tab Card - Dark Blue/Purple */
.an-expertise-panel#tab-2 .an-expertise-card {
  background: #332E61;
}

/* Third Tab Card - Purple */
.an-expertise-panel#tab-3 .an-expertise-card {
  background: #81007F;
}

/* Video/Media Section */
.an-expertise-media {
  width: 538.6666870117188px;
  max-width: 100%; /* Responsive width */
  height: 303px;
  position: relative;
  border-radius: 0; /* No border radius */
  overflow: hidden;
  background: #000000;
}

.an-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0; /* No border radius */
}

/* HubSpot Video Player - No border radius */
.an-expertise-media .hs-video-player,
.an-expertise-media iframe {
  border-radius: 0 !important; /* No border radius */
}

.an-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  background: #1f2937;
}

.an-video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 14px;
  padding: 10px 15px;
  box-sizing: border-box;
}

/* Content Section */
.an-expertise-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space between top, middle, and bottom */
  height: 303px; /* Same height as video */
  color: #ffffff;
  box-sizing: border-box;
}

/* Logo Line - Top aligned, text centered relative to logo */
.an-expertise-logo-line {
  display: flex;
  align-items: center; /* Center text vertically relative to logo */
  gap: 10px;
  width: 100%;
  flex-shrink: 0; /* Don't shrink */
}

.an-logo-img {
  width: 62px;
  height: 41.01912307739258px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Logo Text - Combined "AutomateNow" + "Digital Architecture" */
.an-logo-text {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 5px;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-size: 20px;
  line-height: 125%;
  letter-spacing: 0%;
  color: #ffffff;
}

.an-logo-bold {
  font-weight: 700;
  font-style: normal;
}

.an-logo-light {
  font-weight: 300;
  font-style: normal;
}

/* Main Content - Left aligned */
.an-expertise-main-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left align */
  text-align: left; /* Left align text */
  flex: 1; /* Take available space */
  justify-content: center; /* Center vertically */
  gap: 15px; /* Space between title and text */
}

/* Title */
.an-expertise-title {
  width: 447px;
  max-width: 100%;
  min-height: 39px;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 32px;
  line-height: 125%;
  letter-spacing: 0%;
  color: #ffffff;
  margin: 0;
  padding: 0;
  text-align: left; /* Left align */
}

/* Text */
.an-expertise-text {
  width: 359px;
  max-width: 100%;
  min-height: 60px;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
  line-height: 125%;
  letter-spacing: 0%;
  color: #ffffff;
  margin: 0;
  padding: 0;
  text-align: left; /* Left align */
}

.an-expertise-text p {
  margin: 0;
  padding: 0;
  color: #ffffff;
}

/* CTA Button - Bottom aligned */
.an-expertise-cta {
  width: 205px;
  height: 35px;
  border-radius: 30px;
  border-width: 1px;
  border: 1px solid #FFFFFF;
  background: transparent; /* Transparent background */
  color: #FFFFFF; /* White font */
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  display: flex !important; /* Force display */
  align-items: center;
  justify-content: flex-start; /* Text on left */
  gap: 8px; /* Space between text and arrow */
  flex-shrink: 0; /* Don't shrink */
  padding: 0 20px;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
  visibility: visible !important; /* Force visibility */
  opacity: 1 !important; /* Force opacity */
  position: relative; /* For arrow positioning */
}

/* CTA Button Hover - Dark background with strong opacity */
.an-expertise-cta:hover {
  background-color: rgba(0, 0, 0, 0.2) !important; /* Black with strong opacity */
  color: #FFFFFF; /* Keep white text on hover */
}

/* Ensure text and arrow are properly spaced */
.an-expertise-cta span {
  flex-shrink: 0;
}

/* Arrow image in CTA - Right side */
.an-cta-arrow {
  width: auto;
  height: auto;
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  margin-left: auto; /* Push arrow to the right */
}

/* Responsive: Medium screens (around 861px) */
@media (max-width: 900px) {
  .an-expertise-card {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
    grid-template-columns: 1fr; /* Stack on medium screens */
    gap: 30px;
}

  .an-expertise-media {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 538.67 / 303;
  }

  .an-expertise-content {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
  }
}

/* Responsive: Tablet */
@media (max-width: 1200px) {
  .an-expertise-heading {
    width: 100%;
    max-width: 769px;
    min-height: auto;
    font-size: 40px;
  }

  .an-expertise-tabs-nav {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 75px;
    flex-wrap: nowrap; /* Prevent wrapping */
    padding: 10px;
  }

  .an-tab-btn {
    width: 100%;
    flex: 1; /* Fill available space equally */
    min-width: 0; /* Allow shrinking */
  }

  .an-expertise-card {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 383px;
    grid-template-columns: 1fr; /* Stack on tablet */
    padding: 30px;
    gap: 30px; /* Reduce gap on tablet */
  }

  .an-expertise-media {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 538.67 / 303;
  }

  .an-expertise-content {
    width: 100%;
    max-width: 100%;
    height: auto; /* Allow height to adjust on tablet */
    min-height: 303px; /* Maintain minimum height */
  }

  .an-expertise-main-content {
    align-items: flex-start; /* Left align on tablet */
    text-align: left; /* Left align on tablet */
  }

  .an-expertise-title {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    text-align: left; /* Left align on tablet */
  }

  .an-expertise-text {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    text-align: left; /* Left align on tablet */
  }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .an-expertise-heading {
    width: 100%;
    min-height: auto;
    font-size: 32px;
  }

  .an-expertise-tabs-nav {
    flex-direction: column;
    height: auto;
    padding: 15px;
    width: 100%;
    max-width: 100%;
  }

  .an-tab-btn {
    width: 100%;
    max-width: 100%;
    flex: 1; /* Fill available space */
  }

  .an-expertise-card {
    padding: 25px 20px;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: 24px;
  }

  .an-expertise-media {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }

  .an-expertise-content {
    height: auto; /* Allow height to adjust on mobile */
    min-height: auto;
    gap: 20px; /* Add gap between elements on mobile */
  }

  .an-expertise-logo-line {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start; /* Keep left align */
  }

  .an-logo-img {
    width: 50px;
    height: auto;
  }

  .an-logo-text {
    font-size: 16px;
    flex-wrap: wrap;
  }

  .an-expertise-main-content {
    align-items: flex-start; /* Left align on mobile */
    text-align: left; /* Left align on mobile */
    gap: 12px; /* Smaller gap on mobile */
  }

  .an-expertise-title {
    width: 100%;
    max-width: 100%;
    font-size: 24px;
    min-height: auto;
    text-align: left; /* Left align on mobile */
    line-height: 125%;
  }

  .an-expertise-text {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    line-height: 125%;
    min-height: auto;
    text-align: left; /* Left align on mobile */
  }

  .an-expertise-cta {
    width: 100%;
    max-width: 205px;
    height: 40px;
    font-size: 14px;
    flex-shrink: 0; /* Don't shrink button */
  }
}
{% end_scope_css %}

