:root {
  --primary-blue: #0a74b9;
  --primary-blue-hover: #085a91;
  --accent-orange: #f5a623;
  --text-dark: #111827;
  --text-gray: #4b5563;
  --bg-white: #ffffff;
  --border-color: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  background-color: #f9fafb;
}

.top-header {
  background-color: var(--bg-white);
  /* border-top: 5px solid var(--border-color); */
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
  padding: 1rem 0;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 85px;
  width: auto;
  object-fit: contain;
}

.accreditations {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.acc-logo {
  height: 75px;
  width: auto;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 9999px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(10, 116, 185, 0.2);
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  background-color: var(--accent-orange);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.phone-number {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.support-text {
  font-size: 0.95rem;
  color: var(--text-gray);
  font-weight: 500;
}

.hero {
  padding: 2rem 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-container {
  background-color: #eaf1f8;
  background-image: url("assets/Triesta Sciences_Landing Page_Assets-01.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  border-radius: 24px;
  min-height: 450px;
  display: flex;
  align-items: center;
  padding: 4rem 5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-content {
  max-width: 55%;
}

.hero-title {
  color: var(--primary-blue);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Appointment Section */
.appointment-section {
  padding: 4rem 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.appointment-container {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.appointment-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slider-pagination {
  text-align: center;
  padding: 15px 0 5px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  cursor: pointer;
  height: 8px;
  width: 8px;
  background-color: #e5e7eb;
  display: inline-block;
  transition: background-color 0.3s ease;
  border-radius: 2px;
}

.dot.active,
.dot:hover {
  background-color: #9ca3af;
}

.image-wrapper {
  position: relative;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-overlay-card {
  position: absolute;
  bottom: 40px;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 2.5rem;
  border-top-right-radius: 20px;
  max-width: 80%;
  border-bottom-right-radius: 20px;
}

.overlay-title {
  color: var(--accent-orange);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.overlay-text {
  color: var(--text-dark);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.appointment-right {
  flex: 0.8;
}

.form-card {
  background: var(--bg-white);
  border: 1px solid #cbe3f5;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.appointment-form .form-group {
  margin-bottom: 1.2rem;
}

.appointment-form input,
.appointment-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #fbb03b;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--bg-white);
  outline: none;
  transition: border-color 0.3s;
}

.appointment-form input:focus,
.appointment-form select:focus {
  border-color: var(--accent-orange);
}

.appointment-form input::placeholder {
  color: #6b7280;
}

.appointment-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.btn-submit {
  width: 100%;
  background-color: #fbb03b;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: #e09413;
}

/* Tests Section */
.tests-section {
  padding: 0rem 20px;
  padding-bottom: 4rem;
  max-width: 1440px;
  margin: 0 auto;
}

.tests-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.tests-title {
  color: var(--primary-blue);
  font-size: 2rem;
  font-weight: 700;
}

.test-slider-btn {
  background: none;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 10px;
  transition: transform 0.2s;
}

.test-slider-btn:hover {
  transform: scale(1.1);
}

.tests-slider-wrapper {
  overflow: hidden;
  padding: 1rem 5px;
}

.tests-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.test-card {
  min-width: calc(33.333% - 13.33px);
  background: white;
  border: 1px solid #cbe3f5;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
}

.test-name {
  color: var(--primary-blue);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.test-includes-title {
  color: #111827;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.test-detail {
  color: #374151;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.test-price {
  color: #ff3366;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1rem 0;
}

.test-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}

.btn-book-now {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: var(--primary-blue);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-book-now:hover {
  background: #fbb03b;
  color: white;
  border-color: #fbb03b;
}

.test-icon {
  width: 50px;
  height: auto;
}

/* View All Button */
.view-all-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.btn-view-all {
  background-color: #fbb03b;
  color: white;
  text-decoration: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(251, 176, 59, 0.2);
}

.btn-view-all:hover {
  background-color: #e09413;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(251, 176, 59, 0.3);
}

/* About Section */
.about-section {
  padding: 0rem 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.about-card {
  display: flex;
  background-color: #f3f4f6;
  border-radius: 20px;
  padding: 4rem;
  align-items: center;
  gap: 4rem;
}

.about-left {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
}

.about-right {
  flex: 1.5;
}

.about-label {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.about-title {
  color: #111827;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.about-text {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-text:last-child {
  margin-bottom: 0;
}

/* Categories Section */
.categories-section {
  padding: 0 20px;
  padding-bottom: 4rem;
  max-width: 1440px;
  margin: 0 auto;
}

.categories-container {
  background-color: var(--primary-blue);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
}

.categories-title {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 3.5rem;
  font-weight: 700;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-icon {
  width: 90px;
  height: auto;
}

.category-name {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
}

/* Customized Tests Section */
.customized-section {
  padding: 0 20px;
  padding-bottom: 4rem;
  max-width: 1440px;
  margin: 0 auto;
}

.customized-container {
  background-color: #f3f4f6;
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
}

.customized-title {
  color: var(--primary-blue);
  font-size: 2.2rem;
  margin-bottom: 3.5rem;
  font-weight: 700;
}

.customized-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 3.5rem auto;
}

.custom-card {
  background: white;
  border-radius: 16px;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.custom-icon {
  width: 90px;
  height: auto;
}

.custom-name {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  line-height: 1.3;
}

/* CTA Section */
.cta-section {
  padding: 0 20px;
  padding-bottom: 0rem;
  max-width: 1440px;
  margin: 0 auto;
}

.cta-container {
  background-image: url("assets/Triesta Sciences_Landing Page_Assets-22.webp");
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  display: flex;
  position: relative;
  /* overflow: hidden; Removed to allow image to pop out */
  min-height: 400px;
  align-items: center;
  padding: 4rem 5rem;
}

.cta-content {
  flex: 1;
  z-index: 2;
  color: white;
}

.cta-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-text {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 550px;
  line-height: 1.5;
}

.btn-white {
  background: white;
  color: var(--primary-blue);
  padding: 14px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
  font-size: 1.1rem;
}

.btn-white:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-image-wrapper {
  position: absolute;
  right: 50px;
  bottom: 0;
  height: 125%;
  z-index: 1;
  pointer-events: none;
}

.cta-doctor {
  height: 100%;
  width: auto;
  object-fit: contain;
  vertical-align: bottom;
  display: block;
}

/* Features Section */
.features-section {
  padding: 0 20px;
  padding-bottom: 4rem;
  max-width: 1440px;
  margin: 0 auto;
}

.features-container {
  background-color: #f3f4f6;
  border-radius: 24px;
  padding: 4rem;
  margin: auto;
  width: 80%;
  max-width: 80%;
}

.features-top {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 3rem;
}

.accreditation-logos {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nabl-wrapper {
  text-align: center;
}

.acc-nabl-text {
  font-weight: 700;
  color: #111827;
  font-size: 1.1rem;
  margin-top: 5px;
}

.acc-img {
  height: 100px;
  width: auto;
}

.acc-text {
  flex: 1;
}

.acc-title {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.acc-subtitle {
  color: #4b5563;
  font-size: 1.1rem;
}

.features-bottom {
  display: flex;
  justify-content: space-around;
  text-align: center;
  gap: 2rem;
}

.feature-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.feature-icon {
  width: 90px;
  height: auto;
}

.feature-name {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.15rem;
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #e0f2fe, #ffffff);
  width: 100%;
}

.testimonials-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  position: relative;
  margin-top: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  width: calc(33.333% - 13.33px);
  display: flex;
  flex-direction: column;
}

.quote-icon {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  background: #e5e7eb;
  border-radius: 50%;
}

.testimonial-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #111827;
}

.testimonial-info p {
  color: var(--primary-blue);
  font-size: 0.9rem;
  font-weight: 500;
}

.testimonial-divider {
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 2rem;
}

.testimonial-content h5 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #111827;
  font-weight: 700;
}

.testimonial-content p {
  color: #4b5563;
  line-height: 1.7;
  font-size: 1rem;
}

/* Rectangular (Square) Pagination */
.rect-pagination {
  margin-top: 3rem;
  gap: 10px;
}

.rect-pagination .dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
  background-color: #d1d5db;
  transition: all 0.3s;
}

.rect-pagination .dot.active {
  background-color: #4b5563;
}

@media (max-width: 992px) {
  .header-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .header-left {
    flex-direction: column;
    gap: 1.5rem;
  }

  .header-right {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-container {
    padding: 3rem;
    min-height: 350px;
  }

  .hero-content {
    max-width: 70%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .appointment-container {
    flex-direction: column;
  }

  .image-overlay-card {
    max-width: 100%;
  }

  .test-card {
    min-width: calc(50% - 10px);
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .customized-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-container {
    padding: 3rem;
  }

  .cta-image-wrapper {
    right: 20px;
    height: 100%;
  }

  .features-top {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .testimonial-card {
    width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .accreditations {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-container {
    background-position: 75% center;
    padding: 2rem;
  }

  .hero-content {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5rem;
    border-radius: 12px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .test-card {
    min-width: 100%;
  }

  .about-card {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    text-align: center;
  }

  .categories-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .categories-title {
    font-size: 1.8rem;
  }

  .customized-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

  .customized-title {
    font-size: 1.8rem;
  }

  .cta-container {
    padding: 3rem 1.5rem;
    text-align: center;
    flex-direction: column;
    min-height: auto;
  }

  .cta-image-wrapper {
    position: relative;
    right: auto;
    bottom: auto;
    height: 250px;
    margin-top: 2rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-text {
    margin-bottom: 2rem;
  }

  .btn-white {
    width: 100%;
    justify-content: center;
  }

  .features-container {
    padding: 2rem;
  }

  .features-top {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .accreditation-logos {
    flex-direction: column;
    gap: 2rem;
  }

  .acc-title {
    font-size: 1.2rem;
  }

  .features-bottom {
    flex-direction: column;
    gap: 2.5rem;
  }

  .testimonial-card {
    width: 100%;
  }
}

/* Footer */
.main-footer {
  background-color: #002b49;
  padding: 1.5rem 20px;
  text-align: center;
}

.main-footer p {
  color: white;
  font-size: 1rem;
  font-weight: 500;
}
