/* Main CSS for Dietitian Website */
:root {
  --primary-blue: #005eb8;
  --secondary-blue: #f0f4f5;
  --accent-blue: #005eb8;
  --light-gray: #f5f7fa;
  --dark-gray: #505050;
  --white: #ffffff;
  --success: #28a745;
  --primary-text: #333333;
}

/* Global Styles */
body {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--primary-text);
  line-height: 1.6;
  background-color: var(--white);
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* This is already there, keep it */
}

html {
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

h2.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 15px;
  color: inherit;
}

h2.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-blue);
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Buttons */
.btn, .button, .cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-align: center;
}

.btn:hover, .button:hover, .cta-btn:hover {
  background-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/head-image.jpeg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 100px 20px 150px; 
  text-align: center;
  position: relative;
 
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 800px;
  gap: 20px;
  margin: 40px auto 0;
}

.hero-card {
  color: var(--white);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
  background: var(--primary-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 33px 0px 33px 0px;
}


.hero-card:hover {
  transform: translateY(-5px);
  border-radius: 0px 0px 0px 0px;
  transition: 0.3s ease;
}

.hero-card h3, .hero-card h4 {
  margin-bottom: 10px;
}

.hero-card p {
  margin-bottom: 15px;
}

.hero-card i {
  align-self: center;
}

.big-card {
  width: 100%;
  max-width: 500px;
}

.small-cards {
  display: flex;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.small-card {
  flex: 1 1 45%;
  min-width: 200px;
}

.bg-white {
  background-color: var(--white) !important;
}

.text-white {
  color: var(--white) !important;
}

.text-black {
  color: var(--primary-text) !important;
}

/* Services Section */
.services {
  background-color: var(--secondary-blue);
  padding: 80px 0;
}

.services .section-title {
  color: var(--accent-blue) !important;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

/* Service Card Base Styles */
.service-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 33px 0px 33px 0px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
  overflow: visible; /* Changed from hidden to visible to allow popup to show outside card */
  z-index: 1; /* Base z-index */
  height: 150px; /* Fixed height for consistency */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  z-index: 100; /* Increase z-index on hover to ensure popup appears on top */
  border-radius: 0px 0px 0px 0px;
  transition: 0.3s ease;
}

.service-card i {
  margin-bottom: 15px;
  font-size: 2rem;
  color: var(--accent-blue);
  transition: transform 0.3s;
}

.service-card:hover i {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
  color: var(--accent-blue);
}

/* Service Card Description - Now properly set up as a popup */
.service-card .service-description {
  position: absolute;
  top: -190px; /* Position above the card */
  left: 0;
  right: 0;
  background-color: rgba(0, 94, 184, 0.95);
  color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  font-size: 0.95rem;
  line-height: 1.4;
  width: 90%;
  margin: 0 auto;
  max-width: 250px;
  z-index: 101;
}

/* Show description on hover */
.service-card:hover .service-description {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Arrow pointing to the card */
.service-card .service-description::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid rgba(0, 94, 184, 0.95);
}


/* Trust Section */
.trust-section {
  background-color: var(--white);
  padding: 60px 0;
  text-align: center;
}

@media (max-width: 768px) {
  .trust-section {
    padding: 20px 0;
  }
}

.trust-section h2 {
  color: var(--accent-blue);
  margin-bottom: 20px;
  font-size: 2.2rem;
}

.trust-section p {
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--dark-gray);
}

.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-track {
  display: flex;
  width: calc(250px * 8); /* 8 logos */
  animation: scroll 20s linear infinite;
}

.logo-item {
  flex: 0 0 auto;
  width: 250px;
  padding: 10px;
}

.logo-item img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* Testimonials Section */
/* General Styles */
.testimonials, .cta {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.testimonial-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.client-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
}

.testimonial-author {
    font-weight: bold;
    margin-top: 15px;
    color: #333;
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    margin-top: 25px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #007bff;
}

/* CTA Section */
.cta {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.cta-btn {
    display: inline-block;
    background: #fff;
    color: #007bff;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: #e2e6ea;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 20px;
    }

    .client-image img {
        width: 60px;
        height: 60px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .carousel-btn {
        font-size: 1.2rem;
        padding: 8px 12px;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .cta-btn {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .testimonial-author {
        font-size: 0.9rem;
    }

    .carousel-btn {
        font-size: 1rem;
        padding: 6px 10px;
    }

    .cta h2 {
        font-size: 1.3rem;
    }

    .cta p {
        font-size: 0.95rem;
    }

    .cta-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* Call to Action Section */
.cta {
  background: linear-gradient(to right, var(--primary-blue), var(--accent-blue));
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.cta p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.2rem;
}

.cta-btn {
  background-color: var(--white);
  color: var(--primary-blue);
  font-size: 1.1rem;
  padding: 15px 35px;
}

.cta-btn:hover {
  background-color: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .service-grid {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 992px) {
  .about-container {
      flex-direction: column;
  }
  
  .hero h1 {
      font-size: 2.8rem;
  }
  
  h2.section-title {
      font-size: 2.2rem;
  }
  
  .service-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
      padding: 80px 15px 120px;
  }
  
  .hero h1 {
      font-size: 2.3rem;
  }
  
  .hero-cards {
      width: 95%;
  }
  
  .small-cards {
      flex-direction: column;
      gap: 15px;
  }
  
  .small-card {
      width: 100%;
      min-width: unset;
  }
  
  .service-grid {
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 15px;
  }
  
  .service-card {
      padding: 20px 15px;
      height: 140px;
  }
  
  .service-card h3 {
      font-size: 1.2rem;
  }
  
  /* Adjust tooltip position for smaller screens */
  .service-card .service-description {
    top: -80px;
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .logo-track {
      width: calc(150px * 8);
  }
  
  .logo-item {
      width: 150px;
  }
  
  .logo-item img {
      max-height: 80px;
  }
  
  .carousel-container {
      padding: 0 40px;
  }
  
  .testimonial-card {
      padding: 20px 15px;
  }
  
  .client-image {
      width: 80px;
      height: 80px;
  }
  
  .testimonial-text {
      font-size: 1rem;
  }
  
  .cta h2 {
      font-size: 2rem;
  }
  
  .cta p {
      font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero {
      padding: 60px 10px 100px;
  }
  
  .hero h1 {
      font-size: 2rem;
  }
  
  h2.section-title {
      font-size: 1.8rem;
  }
  
  .service-grid {
      grid-template-columns: 1fr 1fr;
  }
  
  .service-card {
      height: 130px;
  }
  
  .service-card .service-description {
    top: -70px;
    padding: 8px;
    font-size: 0.85rem;
    width: 95%;
  }
  
  .logo-track {
      width: calc(120px * 8);
  }
  
  .logo-item {
      width: 120px;
  }
  
  .logo-item img {
      max-height: 60px;
  }
  
  .carousel-container {
      padding: 0 30px;
  }
  
  .carousel-btn {
      width: 30px;
      height: 30px;
      font-size: 0.9rem;
  }
  
  .about-content h2,
  .trust-section h2 {
      font-size: 1.8rem;
  }
  
  .btn, .button, .cta-btn {
      padding: 10px 20px;
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .service-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
      height: 120px;
  }
  
  .service-card i {
      font-size: 1.7rem;
      margin-bottom: 10px;
  }
  
  .service-card h3 {
      font-size: 1.1rem;
  }
  
  .service-card .service-description {
    width: 100%;
    max-width: 160px;
    font-size: 0.8rem;
    top: -190px;
  }
  
  .about-image iframe {
      height: 250px;
  }
  
  .client-image {
      width: 70px;
      height: 70px;
  }
}
/* insurance==================================================================== */


.page-header {
  background: linear-gradient(135deg, #2b5eaa 0%, #1e4785 100%);
  border-radius: 8px;
  margin-bottom: 2rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}



/* insurance================= */
.image-wrapper {
    max-width: 100px; /* Smaller size as needed */
    width: 100%;
}

.insurance {
    width: 100%;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}

.insurance:hover {
    transform: scale(1.2);
}
