@import url('../global.css');
@import url('../components/promo-banner-1.css');
@import url('../components/promo-banner-2.css');
@import url('../components/nav-bar.css');
@import url('../components/cta-form.css');
@import url('../components/footer.css');


/* ======================== Main Content ======================== */
.sub-hero-container {
    background: var(--body-background);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    z-index: 1;
    position: relative;

}

.sub-hero-page {
    max-width: var(--container-width);
    width: 90%;
    margin: 0 auto;
    padding: 10rem 0 5rem;
    display: flex;
    align-items: center;
    gap: var(--text-gap1);
    justify-content: space-between;

}

/* ======================== breadcrumbs ======================= */

.breadcrumb {
  font-size: var(--font-p-body);

  color: var(--text-color);
  cursor: pointer;
}

.breadcrumb a {
  color: var(--text-color);
  text-decoration: none;
  transition: color .2s;

}

.breadcrumb span:hover,
.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.3rem;
  color: var(--text-color);
}

/* ======================== breadcrumbs Ends ======================= */

.sub-hero-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--text-gap2);
}

.sub-hero-title {
    font-size: var(--font-p-heading2);
    line-height: normal;

}

.sub-hero-left p {

    font-size: 1rem;
    color: var(--text-color);

}

.sub-hero-right {
    width: 50%;
    max-width: 560px;
}

.sub-hero-right img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ======================== Tablet & Below (â‰¤ 768px) ======================== */
@media (max-width: 940px) {
    .sub-hero-page {
        flex-direction: column;
        align-items: center;
        text-align: center;
      
    }

    .sub-hero-left,
    .sub-hero-right {
        width: 100%;

    }

    .sub-hero-left p {
        max-width: 100%;
    }

    .sub-hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;

    }

    .sub-hero-page-review {
        display: flex;
        justify-content: center;

        gap: 1rem;
    }
}

/* ======================== Mobile Phones (â‰¤ 480px) ======================== */
@media (max-width: 480px) {
    

    .review-tab {
        width: 100%;
        justify-content: center;
    }  
}

/* ======================== Review Section ======================== */

/* ======================== Review Section ======================== */
.custom-review-tab {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 1vw;
  flex-wrap: wrap;        /* <-- Allow wrapping */
  justify-content: flex-start;
  align-items: stretch;
}

.review-tab {
  background-color: var(--body-background-transparent);
  /* Semi-transparent white background */
  border-radius: 1rem;
  display: flex;
  align-items: center;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  gap: 0.4rem;
  transition: transform 0.3s ease;
  min-width: 155px;
  max-width: 160px;
  flex: 1 1 160px;
  box-sizing: border-box;  
}

.review-tab:hover {
  transform: translateY(-2px);
}

.tab-icon img {
  height: 2rem;
  width: auto;
}

.tab-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.rating-score {
  font-size: var(--font-p-body);
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.1rem;
}

.tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-stars img {
  height: 0.8rem;
  width: auto;
}

.rating-source {
  font-size: var(--font-p-small);
  color: var(--text-color-light2);
  text-align: left;
}

@media (max-width: 940px) {
  .custom-review-tab {
    display: flex;
    justify-content: center;
    gap: 2vw;
  }
}

@media (max-width: 480px) {
  
  .custom-review-tab {
    display: flex;
    justify-content: center;
    gap: 3vw;
  }
  .review-tab {
    width: 100%;
    justify-content: center;
  }
}

/* ======================== Sample Catalog Page Styles ======================== */

/* ===================== Sample Catalog Page (Improved) ===================== */


.sample-container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 6rem 0 6rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--text-gap1);
}

.samples-header {
  text-align: center;
  margin-bottom: 0.6rem;
}
.samples-header h1 {
  font-size: var(--font-p-heading2);
  color: var(--text-color);
  letter-spacing: -0.5px;
  margin-bottom: 0.3em;
}
.samples-subtitle {
  color: var(--text-color-light2);
  font-size: var(--font-p-heading4);
  margin: 0 auto 1rem;
  max-width: 600px;
  line-height: 1.5;
}

.subject-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.2rem;
}

.subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
}
.subject-list li { margin: 0; }
.subject-list a {
  padding: 0.5rem 1.3rem;
  border-radius: 2em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color-light2);
  background: transparent;
  border: 1.5px solid #d0dce9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.subject-list a:hover {
  border-color: var(--text-color-light2);
  background: rgba(75, 88, 107, 0.04);
  color: var(--text-color);
}

.subject-list a.active {
  background: var(--primary-color);
  color: var(--text-color);
  border-color: var(--primary-color);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(249, 216, 75, 0.12);
}

.samples-grid {
  width: 100%;
  display: flex;
  justify-content: center;
}
.samples-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Full-width banner in grid */
.sample-banner-full-width {
  grid-column: 1 / -1;
  width: 100%;
}

.sample-card {
  background: #ffffff;
  border-radius: 1.2rem;
  border: 1px solid #e8ecf2;
  box-shadow: 0 1px 3px rgba(48, 59, 78, 0.04);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 380px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Top border accent - subtle gold */
.sample-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sample-card:hover {
  box-shadow: 0 8px 24px rgba(48, 59, 78, 0.1);
  transform: translateY(-2px);
  border-color: #d5dfe8;
}

.sample-card:hover::before {
  opacity: 1;
}

.sample-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* Subject Badge */
.sample-subject-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  background: rgba(75, 88, 107, 0.06);
  color: var(--text-color-light2);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 1rem;
  border: 1px solid rgba(75, 88, 107, 0.12);
}

.sample-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  line-height: 1.35;
  letter-spacing: -0.01rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sample-card:hover .sample-title {
  color: var(--primary-color);
}

.sample-excerpt {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-color-light2);
  margin-bottom: 1.2rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.sample-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}

.samplepage-meta-pill-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-color-light2);
  background: rgba(75, 88, 107, 0.06);
  border: 1px solid rgba(75, 88, 107, 0.12);
  border-radius: 50px;
  padding: 0.35rem 0.85rem;
  text-transform: capitalize;
  line-height: 1.3;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
}

.samplepage-meta-pill-tag:hover {
  background: rgba(75, 88, 107, 0.12);
  border-color: var(--text-color-light2);
  color: var(--text-color);
  transform: translateY(-1px);
}

/* Specs Section */
.sample-specs {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid #e8ecf2;
  margin-top: auto;
}

.sample-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-color-light2);
  font-weight: 600;
  letter-spacing: 0.4px;
}

.spec-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.sample-card:hover .spec-value {
  color: #2563eb;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .samples-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 940px) {
  .sample-container { 
    padding: 4rem 0 4rem; 
  }
  
  .samples-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .sample-card {
    padding: 1.8rem;
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .sample-card {
    padding: 1.5rem;
    min-height: 300px;
  }

  .sample-title {
    font-size: 1.1rem;
  }

  .sample-excerpt {
    font-size: 0.9rem;
  }

  .sample-specs {
    gap: 1rem;
  }

  .spec-value {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .sample-card {
    min-height: 250px;
    padding: 1.3rem;
  }

  .sample-specs {
    flex-direction: column;
    gap: 0.8rem;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: 3.5rem 0 0 0;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  min-height: 2.3rem;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-color-light2);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid #e8ecf2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
}

.pagination a:hover:not(.current) {
  background: rgba(249, 216, 75, 0.08);
  border-color: #d0dce9;
  color: var(--text-color);
}

.pagination a.current {
  background: var(--primary-color);
  color: var(--text-color);
  border-color: var(--primary-color);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(249, 216, 75, 0.15);
}

/* ================== End Sample Catalog Styles ================== */
