@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Passions+Conflict&display=swap");

@font-face {
  font-family: "Poppins-Regular";
  src: url(./assets/fonts/Poppins-Regular.ttf);
}

@font-face {
  font-family: "Poppins-Bold";
  src: url(./assets/fonts/Poppins-Bold.ttf);
}

@font-face {
  font-family: "Poppins-SemiBold";
  src: url(./assets/fonts/Poppins-SemiBold.ttf);
}

@font-face {
  font-family: "Poppins-Black";
  src: url(./assets/fonts/Poppins-Black.ttf);
}

@font-face {
  font-family: "Poppins-Medium";
  src: url(./assets/fonts/Poppins-Medium.ttf);
}

@font-face {
  font-family: "Poppins-Italic";
  src: url(./assets/fonts/Poppins-Italic.ttf);
}

html {
  scroll-padding-top: 140px;
}

/* -------------------- Header Styles -------------------- */

.important-links-section {
  background: linear-gradient(
      0deg,
      rgba(227, 237, 254, 0) 0%,
      rgba(227, 237, 254, 0.3) 100%
    ),
    url("../Image/solution-bg-2.svg");
  background-repeat: no-repeat;
  background-size: contain;
  padding: 0 0 180px;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-family: "Poppins-SemiBold";
}

.main-title .highlight {
  color: #4285f4;
}

.subtitle {
  font-size: 1.1rem;
  color: #383e42;
  margin-bottom: 0;
  font-family: "Poppins-Regular";
}

/* -------------------- Sticky Left Tabs Wrapper -------------------- */
.sticky-wrapper {
  position: relative;
}

.sticky-wrapper .tabs-container {
  position: sticky;
  top: 120px; /* adjust based on header height */
  z-index: 2;
}

/* -------------------- Tabs Container -------------------- */
.tabs-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.tab-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #ffffff;
}

.tab-item:last-child {
  border-bottom: none;
}

.tab-item:hover {
  background-color: #f8f9fa;
  /* padding-left: 2rem; */
}

.tab-item.active {
  background-color: #e8f4fd;
  /* border-left: 4px solid #4a90e2; */
}

.tab-title {
  font-size: 1rem;
  font-weight: 500;
  font-family: "Poppins-medium";
  color: #2c3e50;
  flex: 1;
  padding-right: 1rem;
}

.tab-item.active .tab-title {
  font-family: "Poppins-SemiBold";
  font-size: 1rem;
  color: #383e42;
  font-weight: 600;
}

.arrow {
  font-size: 2.5rem;
  color: #383e42;
  transition: all 0.3s ease;
}

.tab-item.active .arrow {
  color: #4a90e2;
}

/* -------------------- Content Container -------------------- */
.content-container {
  padding: 0 2rem 0 2rem;
  min-height: 400px;
}

/* ✅ All sections visible (scroll effect for sticky tabs) */
.content-section {
  display: block;
  margin-bottom: 2.5rem;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------- Link Badge -------------------- */
.link-badge {
  /* display: flex; */
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #e8f4fd;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  font-family: "Poppins-Medium";
}

.link-badge svg {
  flex-shrink: 0;
}

.link-url {
  color: #4a90e2;
  text-decoration: none;
  font-size: 0.95rem;
  word-break: break-all;
  transition: color 0.3s ease;
}

.link-url:hover {
  color: #1a73e8;
  text-decoration: underline;
}

/* -------------------- Content Typography -------------------- */
.content-text {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.8;
}

.content-text p {
  margin-bottom: 1.25rem;
  font-family: "Poppins-Regular";
}

.content-text p:last-child {
  margin-bottom: 0;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 991px) {
  .important-links-section {
    padding-bottom: 150px;
  }
  .main-title {
    font-size: 2rem;
  }
  .tabs-container {
    margin-bottom: 2rem;
  }
  .tab-item {
    padding: 1.25rem 1.5rem;
  }
  .content-container {
    padding: 0;
  }

  /* On tablet, remove sticky to avoid layout issues */
  .sticky-wrapper .tabs-container {
    position: static;
  }
}

@media (max-width: 767px) {
  .important-links-section {
    padding-bottom: 125px;
  }
  .main-title {
    font-size: 1.75rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .tab-item {
    padding: 1rem 1.25rem;
  }
  .tab-title {
    font-size: 0.9rem;
  }
  .content-container {
    padding: 0;
  }
  .content-text {
    font-size: 0.95rem;
  }
  .link-url {
    font-size: 0.85rem;
  }

  /* On mobile, sticky not required */
  .sticky-wrapper .tabs-container {
    position: static;
  }
}

@media (max-width: 575px) {
  .important-links-section {
    padding-bottom: 100px;
  }
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .link-badge {
    padding: 0.875rem 1rem;
  }
}
