:root {
  --primary: #00B894;
  --primary-hover: #04CEA6;
  --text-dark: #0D0D0D;
  --text-light: #555;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  background: #fff;
}


  /* Base Nav */
header {
  margin: 0;         
  padding: 10px 15px; 
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; 
  z-index: 1000;
}


.logo img {
  height: 40px;  
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #2d3436;
  position: relative;
}

.btn-register {
  background: #00B894;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
  user-select: none;
}

.nav-link.active {
  /* Bolds the text */
  font-weight: bold;
  color: var(--primary-hover) !important; 
}

nav ul li a:hover {
 color: var(--primary-color) !important; 
  font-weight: bold;
}

/* Underline effect on hover */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary-hover);
  transition: width 0.3s ease;
  
}



nav ul li a:hover::after {
  width: 100%;
}

/* Buttons */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 10px;        
  flex-wrap: wrap;   
  margin-top: 15px;
}

.btn-register, .btn-findcare{
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-register:hover {
  background: var(--primary-hover);    
  color: #fff;                  
}

.btn-joinvitalink {
  color: var(--text-dark);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  border: 2px solid var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

 .hero-buttons .btn-findcare:hover{
     background: var(--primary-hover);
 }

 .hero-buttons .btn-joinvitalink:hover{
     background: var(--primary-hover);
     border-color: transparent;
     color:#FFFFFF;
 }


/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 5%;
  min-height: 90vh;

  /* Two background images */
  background: url("images/home/5.png") left center no-repeat,
              url("images/home/1.png") right center no-repeat;
  /* Control each image size (left , right) */
  background-size: 50% auto, 50% auto;  
}


.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero img {
  max-width: 500px;
  width: 100%;
  border-radius: 10px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 5%;
}


.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-item h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3436;
}

.stat-item h2 span {
  color: #00B894;
}

.stat-item p {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #636e72;
}

.hero-img-right img {
  max-width: 500px;
  height: auto;
}
/* ----------- Mobile View ----------- */
@media (max-width: 576px) {
  /* Set the navigation to be positioned relative to its container (e.g., the header) */
  header {
    position: relative;
  }

  nav {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background: #fff;
    display: none; 
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .logo img {
    height: 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .menu-toggle {
    display: block; /* show hamburger */
  }

  nav.active {
    display: flex; 
  
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 20px;
    background-image: url("images/home/1.png"), url("images/home/5.png");
    background-position: top center, bottom center;
    background-size: contain, cover;
    background-repeat: no-repeat, no-repeat;
  }

  .hero-text {
    margin: 0;
    z-index: 2;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .btn-findcare,
  .btn-joinvitalink {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    min-width: 120px;
  }

  .hero h1 {
    font-size: 30px;
    margin-top: 450px;
  }

  .hero p {
    font-size: 1rem;
    margin-top: 10px;
  }

   .hero-stats {
    flex-direction: row;
    gap: 15px;
    justify-content: center; 
  }

  .stat-item h2 {
    font-size: 15px;
  }
}

/* ----------- Tablet View ----------- */
@media (min-width: 577px) and (max-width: 991px) {
  header {
    padding: 15px 30px;
  }

  .logo img {
    height: 28px;
  }

  /* Navbar links appear inline on tablets */
  nav {
    display: flex !important;
    position: static;
    background: transparent;
    box-shadow: none;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
  }

  .menu-toggle {
    display: none;
  }


  

  /* Hero section adjustments */
  .hero {
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    text-align: left; /* Align text to the left */
    padding: 60px 40px;
    background-image: url("images/home/5.png"), url("images/home/1.png");

  /* Set the size for each image */
  background-size: 50% 100%, 50% 100%;

  /* Position each image */
  background-position: left center, right center;

  /* Prevent the images from repeating */
  background-repeat: no-repeat;
  opacity: 0;
  animation: fadeInHero 2s ease-out forwards;
  }

  .hero-text {
    /* Main fix: Remove excessive top margin */
    margin: 0;
    max-width: 50%; 
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-top: 0;
  }

  .hero p {
    font-size: 1.1rem;
    margin: 15px 0 25px;
  }

  @keyframes fadeInHero {
  to {
    opacity: 1;
  }
}

  /* Buttons in one row */
  .hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start; 
    margin-bottom: 25px;
  }

  .btn-findcare,
  .btn-joinvitalink {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    min-width: 150px;
  }


  .hero-stats {
    display: flex;
    justify-content: flex-start; 
    gap: 30px;
    flex-wrap: wrap;
  }

  .stat-item h2 {
    font-size: 20px;
  }

  .stat-item p {
    font-size: 0.9rem;
  }
}

/* Our Mission Section */
.our-mission {
  display: flex;
  min-height: 500px;
  width: 100%;

  /* --- The Fix --- */
  background-image: url("images/home/2.png"), url("images/home/3.png");
  background-size: 50% 100%, 50% 100%; 
  background-position: left top, right top; 
  background-repeat: no-repeat;
}


.mission-left {
  flex: 1;
  background: none;
}

.mission-right {
  flex: 1;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.mission-content {
  background: rgba(255, 255, 255, 0.85); /* translucent box for readability */
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  text-align: left;
}

.mission-content h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}


.mission-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}


@media (max-width: 991px) {
  .our-mission {
    flex-direction: column;
    background-size: 100% 50%, 100% 50%;
    background-position: top center, bottom center;
  }

}


/* Mobile */
@media (max-width: 576px) {
  .mission-content h2 {
    font-size: 1.8rem;
  }

  .mission-content p {
    font-size: 1rem;
  }
}


/* Featured Services Section */
.featured-services {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}


.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.section-title span {
  color: #00b894; 
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.service-card {
  background: #e9fdf9;
  padding: 30px 20px;
  border-radius: 12px;
  flex: 1 1 280px;
  max-width: 320px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
  background-color: var(--primary-hover);
}

.service-card:hover h3,
.service-card:hover p {
  color: #fff;
}


.service-card .icon {
  margin-bottom: 20px;
}

.service-card .icon img {
  width: 60px;
  height: 60px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* Highlight middle card */
.service-card.highlight {
  background: #00d8b6;
  color: #fff;
}

.service-card.highlight h3,
.service-card.highlight p {
  color: #fff;
}

/* Tablet View (1st and 3rd card on top, 2nd card below) */
@media (min-width: 577px) and (max-width: 991px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
  }
  
  .service-card:nth-child(1) {
    order: 1; /* First card */
  }
  
  .service-card:nth-child(3) {
    order: 2; /* Third card */
  }
  
  .service-card:nth-child(2) {
    order: 3; 
    grid-column: 1 / -1; 
    justify-self: center; 
  }
}

/* Mobile View (1 card per row, centered) */
@media (max-width: 576px) {
  .services-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1fr); 
    gap: 20px;
    justify-content: center;
  }

  .service-card {
    max-width: 100%;
     justify-content: center;
  }
}


/* Explore VitaLink Section */
.explore-vitalink {
  padding: 60px 20px;
  background: url("images/home/4.png") no-repeat center/cover;
  text-align: center;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.section-title span {
  color: #00b894;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.explore-card {
  background: #A8F6E7;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.explore-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
  background-color: var(--primary-hover);
}

.explore-card:hover h3,
.explore-card:hover p {
  color: #fff;
}

.explore-card .icon {
  margin-bottom: 15px;
}

.explore-card .icon img {
  width: 50px;
  height: 50px;
}

.explore-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.explore-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}



/* Tablet View (2 columns) */
@media (min-width: 577px) and (max-width: 991px) {
  .explore-vitalink {
    padding: 40px 15px;
  }
  
  .section-title {
    font-size: 2.5rem; 
    margin-bottom: 30px;
  }

}

/* Mobile View (1 column) */
@media (max-width: 576px) {
  .explore-vitalink {
    padding: 30px 10px;
  }
  
  .section-title {
    font-size: 2rem; 
    margin-bottom: 25px;
  }
  
  .explore-grid {
    grid-template-columns: 1fr; 
    max-width: 100%; 
  }

  .explore-card {
    text-align: center; 
    padding: 25px 15px; 
  }

  .explore-card .icon {
    margin-bottom: 10px;
  }
  
  .explore-card h3 {
    font-size: 1.1rem;
  }
  
  .explore-card p {
    font-size: 0.9rem;
  }
}





/* About Section */
.about-section {
  padding: 60px 20px;
  background: #FFFFFF;
  text-align: center; 
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.about-text h2 span {
  color: #00b894; /* VitaLink accent */
}

.about-image {
  margin: 0 auto 20px auto; /* center image */
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;  
  height: 100%; 
  object-fit: cover; /* crop nicely */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.about-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .about-text h2 {
    font-size: 28px;
  }

  .about-image img {
    width: 500px;
    height: 250px;
  }

  .about-text p {
    font-size: 16px;
  }
}

/*Footer Section*/
.footer-section {
    background-color: #F5F5F5;
    padding: 60px 20px 20px; 
}

.footer-container {
    display: flex;
    justify-content: space-around; 
    max-width: 1200px; 
    margin: 0 auto;
    flex-wrap: wrap; 
    padding-bottom: 40px;
    border-bottom: 1px dotted #ccc; 
}

.footer-brand,
.footer-links,
.footer-connect {
    margin-bottom: 30px; 
}

/* Footer Brand (Logo and tagline) */
.footer-brand {
    flex: 1; 
    min-width: 200px; 
    text-align: left;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -1px; 
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--dark-text);
}
.footer-brand p span { 
    color: var(--primary-color);
    font-weight: 600;
}


/* Quick Links and Connect sections */
.footer-links,
.footer-connect {
    flex: 1; 
    min-width: 200px;
    text-align: left;
}

.footer-links h3,
.footer-connect h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-connect ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-connect li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-connect a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover,
.footer-connect a:hover {
    color: var(--primary-hover);
}

.footer-links a:hover {
    text-decoration: underline; 
}

/* Connect section specific styling */
.footer-connect .fab,
.footer-connect .fas {
    font-size: 1.1rem;
    width: 20px; 
    text-align: center;
}

/* Bottom copyright section */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

/* --- Responsive Adjustments for Tablet View --- */
@media (max-width: 768px) {
  .footer-container {
    /* Main layout remains horizontal */
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap; 
    padding-bottom: 40px;
    border-bottom: 1px dotted #ccc; 
  }

  /* Reset the alignment and width for the horizontal layout */
  .footer-brand,
  .footer-links,
  .footer-connect {
    text-align: left;
    width: auto;
    max-width: unset;
    margin-bottom: 0;
  }
  
  /* Quick Links section is now separate from Connect */
  .footer-links {
    margin-right: 30px;
  }
  
  /* Special handling for the email link on tablet */
  .footer-connect li:last-child {
      display: none; 
  }
  
 
  .footer-bottom {
      border-top: none; 
      padding-top: 0;
  }
  
 
  .footer-email-tablet {
      text-align: center;
      margin-top: 20px;
  }
  
  .footer-email-tablet a {
      text-decoration: none;
      color: #333;
      font-size: 0.95rem;
  }
  
}


.footer-email-tablet {
    display: none; /* Hidden by default */
}

@media (max-width: 480px) {
  .footer-container {
    flex-direction: row; 
    justify-content: space-between; 
    align-items: flex-start; 
    padding-bottom: 20px;
    border-bottom: none; 
  }

  .footer-brand {
    text-align: left;
    min-width: unset; 
    margin-bottom: 0;
  }

  .footer-links {
    display: none;
  }

  .footer-connect {
    flex-direction: column; 
    align-items: flex-end; 
    min-width: unset;
    margin-bottom: 0;
  }

  .footer-connect h3 {
    display: none; 
  }

  .footer-connect ul {
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    align-items: flex-end; 
  }

  .footer-connect li {
    margin-bottom: 0;
    text-align: right;
  }
  
  .footer-connect a {
    justify-content: flex-end;
  }
  
  .footer-connect a span {
      display: none; 
  }

  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px dotted #ccc; 
  }
}


/* General Section and Container Styles */
.about-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 50px;
}
.section-title span{
  color: var(--primary-hover);
}

.content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.text-content {
  flex: 1;
  text-align: left;
}

.sub-heading {
  font-size: 1.8rem;
  font-weight: 600;
  color: #00b894;
  margin-bottom: 20px;
  line-height: 1.4;
}

.text-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
}


/* Responsive Design */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .text-content {
    flex: none;
    width: 100%;
  }

  .sub-heading {
    font-size: 1.5rem;
    text-align: center;
  }
}


.goal-section {
  padding: 60px 20px;
  background: url("images/about/1.png") no-repeat center/cover;
  text-align: center;
}

/* How It Works Section */
.how-it-works-section {
  padding: 80px 20px;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.how-it-works-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 60px;
}

.how-it-works-section .section-title .highlight {
  color: #00b894; 
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 30px; 
  max-width: 1000px; 
  margin: 0 auto; 
}

.step-card {
  background-color: #e0fcf6; 
  border-radius: 12px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background-color: var(--primary-hover);
}
.step-card:hover h3,
.step-card:hover p {
  color: #fff; /* turns text white */
  transition: color 0.3s ease-in-out; /* smooth effect */
}

.step-text {
  flex: 1; 
  text-align: left;
  padding-right: 20px; 
}

.step-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.step-text p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.step-icon {
  flex-shrink: 0; 
  width: 70px; 
  height: 70px; 
  background-color: #c4f3eb; 
  border-radius: 50%; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon img {
  max-width: 60%;
  max-height: 60%;
  height: auto;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .steps-grid {
    grid-template-columns: 1fr; 
    max-width: 600px; 
  }

  .step-card {
    flex-direction: row; 
    justify-content: space-between;
    padding: 25px;
  }

  .step-text {
    padding-right: 15px;
  }

  .step-text h3 {
    font-size: 1.2rem;
  }

  .step-text p {
    font-size: 0.9rem;
  }

  .step-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .how-it-works-section {
    padding: 60px 15px;
  }

  .how-it-works-section .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .step-card {
    flex-direction: column; 
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  
  .step-text {
    padding-right: 0;
    margin-bottom: 15px;
    order: 2; 
    text-align: center;
  }

  .step-text h3 {
    font-size: 1.1rem;
    text-align: center;
  }

  .step-icon {
    order: 1;
    margin-top: 0; 
    margin-bottom: 15px; 
  }
}


/* KnowledgeHub Section */
.knowledgehub-section {
  /* Use a linear-gradient with rgba for the overlay */
  background: linear-gradient(rgba(255, 255, 255, 0.775), rgba(255, 255, 255, 0.758)), url('images/knowledgeHub/bg.jpg') no-repeat center center/cover;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-dark); 
}

/* KnowledgeHub Section Title Animation */
.knowledgehub-section .section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.2s; /* start first */
}

.knowledgehub-section .section-title span {
  color: #00b894;
}

/* Paragraph Animation */
.knowledgehub-section .text-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  text-align: center;

  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.6s; /* stagger after title */
}

/* Keyframes */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}




/* Tablet View */
@media (max-width: 991px) {
  .knowledgehub-section {
    padding: 60px 15px;
  }
  
  .knowledgehub-section .section-title {
    font-size: 2.5rem;
  }
  
  .knowledgehub-section .text-content p {
    font-size: 1rem;
  }
}

/* Mobile View */
@media (max-width: 576px) {
  .knowledgehub-section {
    padding: 40px 10px;
  }
  
  .knowledgehub-section .section-title {
    font-size: 2rem;
  }
  
  .knowledgehub-section .text-content p {
    font-size: 1rem;
    color: var(--text-dark);
    text-align: center;
  }
}


/* Featured Health Topics Section */
.health-topics-section {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.health-topics-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color:var(--text-dark);
  margin-bottom: 60px;
}

.health-topics-section .section-title .highlight {
  color: #00b894;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Special card styling */
.topics-grid .topic-card.special-card {
  grid-column: span 2;
  justify-self: center;
  max-width: 480px; 
}

.topic-card {
  background-color: #e0fcf6;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: row; 
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 200px;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background-color: var(--primary-hover);
}

.card-image {
  flex-shrink: 0;
  width: 180px; 
  height: 100%;
  overflow: hidden;
}

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

.card-content {
  flex: 1; 
  padding: 20px 25px; 
  text-align: left;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 5px;
}

.card-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
  flex-grow: 1; 
}

.topic-card:hover h3,
.topic-card:hover p {
  color: #fff;
}
.btn-seemore {
  display: inline-block;
  background-color: #fff;
  color: #00b894;
  border: 1px solid #00b894;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.btn-seemore:hover {
  background-color: #00b894;
  color: #fff;
}

/* Tablet View: Copy desktop styles */
@media (min-width: 768px) and (max-width: 991px) {
  .health-topics-section {
    padding: 60px 20px;
  }
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topic-card {
    height: 180px; 
  }
  .card-image {
    width: 160px; 
  }
  .card-content {
    padding: 15px 20px;
  }
  .card-content h3 {
    font-size: 1rem;
  }
  .card-content p {
    font-size: 0.9rem;
  }
  .btn-seemore {
    padding: 7px 16px;
    font-size: 0.85rem;
  }
  .section-title{
    font-size: 1rem;
  }
}

/* Mobile View (Stacking cards) */
@media (max-width: 767px) {
  .topics-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .topic-card {
    flex-direction: column;
    height: auto;
  }
  .card-image {
    width: 100%;
    height: 160px;
  }
  .card-content {
    padding: 20px;
    text-align: center;
  }
  .btn-seemore {
    align-self: center;
  }
  .topics-grid .topic-card.special-card {
    grid-column: unset;
    justify-self: unset;
    max-width: unset;
  }
  .health-topics-section .section-title{
    font-size: 2rem;
  }
}


/* Our Vision Section */
.our-vision {
  display: flex;
  min-height: 500px;
  width: 100%;
  flex-direction: row-reverse;

  background-image: url("images/knowledgeHub/8.png"), url("images/knowledgeHub/7.png");
  background-size: 50% 100%, 50% 100%;
  background-position: left top, right top;
  background-repeat: no-repeat;
}

/* All other styles remain the same */
.vision-left {
  flex: 1;
  background: none;
}

.vision-right {
  flex: 1;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.vision-content {
  background: rgba(255, 255, 255, 0.85); /* translucent box for readability */
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  text-align: left;
}

.vision-content h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}


.vision-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}


@media (max-width: 991px) {
  .our-vision {
    flex-direction: column;
    /* You may need to adjust these for tablet view */
    background-size: 100% 50%, 100% 50%;
    background-position: top center, bottom center;
  }

}


/* Mobile */
@media (max-width: 576px) {
  .vision-content h2 {
    font-size: 1.8rem;
  }

  .vision-content p {
    font-size: 1rem;
  }
}


/* --- Contact Hero Section --- */
.contact-hero {
  padding: 80px 0;
  background-image: url("images/contacts/1.png");
  text-align: center;
}

.contact-title {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
   font-family: 'Poppins', sans-serif;
}

.contact-title span{
  color:var(--primary-hover)
}
.contact-intro-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
   font-family: 'Roboto', sans-serif;
}

.contact-content-wrapper {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  margin-top: 40px;
  border-radius: 15px; 
  overflow: hidden; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
}


.contact-info-box {
  min-width: 350px;
  background-color: var(--primary-hover);
  color:var(--text-dark);
  padding: 40px;
  border-radius: 15px 0 0 15px; 
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
}

/* Decorative circles */
.contact-info-box::before,
.contact-info-box::after {
  content: '';
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1); 
  border-radius: 50%;
  z-index: 0;
}
.contact-info-box::before {
  width: 100px;
  height: 100px;
  bottom: -30px;
  right: -30px;
}
.contact-info-box::after {
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 50px;
}


.contact-info-box h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.contact-info-box p {
  font-size: 1rem;
  margin-bottom: 30px;
  opacity: 0.9;
   font-family: 'Roboto', sans-serif;
}

.contact-info-box ul {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  z-index: 1; 
}

.contact-info-box ul li {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.contact-info-box ul li i {
  margin-right: 15px;
  font-size: 1.3rem;
  width: 25px; 
}

.social-icons {
  margin-top: 300px;
  z-index: 1;
  display: flex;
}

.social-icons a {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-right: 20px;
  transition: transform 0.3s ease;
  
  /* Circle background */
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
}


.social-icons a:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.1); 
}


/* Contact Form Box (Right Side) */
.contact-form-box {
  flex: 1; 
  min-width: 500px; 
  background-color: #fff;
  padding: 40px;
  border-radius: 0 15px 15px 0; 
  text-align: left;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  margin-bottom: 15px; 
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: #f9f9f9;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-teal);
  outline: none;
  background-color: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--text-dark);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary-hover);
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  cursor: pointer;
  outline: none;
}

.radio-label input[type="radio"]:checked {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}


.radio-label input[type="radio"]:checked::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.btn-send-message {
  display: block;
  width: 100%; 
  padding: 15px 30px;
  background-color: var(--primary-hover);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
}

.btn-send-message:hover {
  background-color: #008f75; 
  transform: translateY(-2px);
}


/* --- Our Location Section --- */
.our-location-section {
  padding: 60px 0;
  background-color: #ffffff; 
  text-align: center;
}

.our-location-section .section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark); 
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

 .section-title h2 {
  color: var(--primary-color);
}
.section-subheading {
  font-size: 1.1rem;
  color: var(--text-medium); 
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.map-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
}

.map-container iframe {
  width: 100%;
 
}

/* Keyframes */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Hero Section Animations */
.contact-hero .contact-title {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.2s;
}

.contact-hero .contact-intro-text {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.6s;
}

.contact-hero .contact-info-box {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 1s;
}

.contact-hero .contact-form-box {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 1.4s;
}

/* Our Location Section Animations */
.our-location-section .section-title {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.2s;
}

.our-location-section .section-subheading {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.6s;
}

.our-location-section .map-container {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 1s;
}

/* Tablet View */
/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
  .contact-title {
    font-size: 2.8rem;
  }
  .contact-intro-text {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  .contact-content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .contact-info-box,
  .contact-form-box {
    width: 90%;
    min-width: unset;
    border-radius: 15px;
  }
  .contact-info-box {
    margin-bottom: 20px;
    /* New styles for tablet view */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: flex-start;
  }

  .contact-info-box h2,
  .contact-info-box p {
    text-align: left;
    width: 100%; 
  }

  .contact-info-box ul {
    width: 100%;
    display: flex;
    flex-direction: column; 
  }

  .social-icons {
    width: 100%;
    display: flex;
    justify-content: flex-end; 
    margin-top: 15px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .radio-group {
    flex-direction: column;
    gap: 10px;
  }
  .btn-send-message {
    width: auto;
    align-self: flex-end;
  }
}
  
@media (max-width: 576px) {
   .contact-info-box {
    padding: 15px;
    min-height: 100px;  
  }

  .contact-info-box h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .contact-info-box p {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  .contact-info-box ul li {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .contact-form-box { 
    width: 100%;
    padding: 30px; 
  }

  .social-icons {
    margin-top: 10px; 
  }

  .social-icons a {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .form-group label,
  .radio-label {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .btn-send-message {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

   .our-location-section {
    padding: 40px 0;
  }
  .our-location-section .section-title {
    font-size: 2rem;
  }
  .section-subheading {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 15px; 
  }
  .map-container iframe {
    height: 300px; 
  }
}


/* Health Services Section */
.health-services {
  padding: 60px 20px;
  background-image: url('images/services/1.png');
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  font-family: 'Poppins', sans-serif;
}

.section-title span {
  color: #00b894; 
}

/* Grid Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-content: center;
}


/* Health Service Card */
.healthservice {
  background: #e0fcf6;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.healthservice:hover {
  transform: translateY(-6px);
  box-shadow: 0px 8px 20px rgba(0,0,0,0.1);
  background-color: var(--primary-hover);
}

 .healthservice:hover h3,
  .healthservice:hover .desc, 
  .healthservice:hover .price,
  .healthservice:hover .price.free{
    color:white;
  }


.healthservice img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.healthservice h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}

.healthservice .price {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.healthservice .price.free {
  color: var(--text-dark);
}

.healthservice .desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.4;
}

.btn-service {
  display: inline-block;
  background-color: #fff;
  color: #00b894;
  border: 1px solid #00b894;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.btn-service:hover {
  background-color: var(--primary-hover);
  color: #fff;
}

/* Badge for most popular */
.healthservice.popular .badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: #ff6b6b;
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Responsive Fix for Tablet (2 Columns) --- */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .healthservice {
    padding: 20px;
  }
  .healthservice h3 {
    font-size: 1.1rem;
  }
  .healthservice p {
    font-size: 0.9rem;
  }
}

/* --- Responsive Fix for Mobile (1 Column) --- */
@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section-title{
    font-size: 2rem;
  }
}



/* --- For Patients Section --- */
.for-patients-section {
    padding: 80px 20px;
    background-color: white; 
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.for-patients-section .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px; 
    animation: fadeUp 1s ease-out forwards;
      animation-delay: 3s; 
}

.for-patients-section .section-title .highlight {
    color: var(--primary-teal, #00b894); 
}

.for-patients-section .section-subheading {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px auto; 
    line-height: 1.6;
    animation: fadeUp 1s ease-out forwards;
      animation-delay: 0.5s;
}


/* Keyframes */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Responsive adjustments */
@media (max-width: 767px) {
    .for-patients-section {
        padding: 60px 15px;
    }
    .for-patients-section .section-title {
        font-size: 2rem;
    }
    .for-patients-section .section-subheading {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}



/* Providers Section */
.providers-section {
  padding: 80px 20px;
  background-image: url('images/services/8.png');
  text-align: center;
}

.providers-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
}

.providers-section .section-title span {
  color: #00b894; 
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.provider-card {
  background: #e0fcf6;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.provider-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  background-color: var(--primary-hover); 

}

.provider-card:hover h3,
.provider-card:hover p {
  color:white; 
}



.provider-card .icon {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #00b894;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.provider-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.provider-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 991px) {
  .providers-grid {
    grid-template-columns: 1fr 1fr; 
  }
}

@media (max-width: 576px) {
  .providers-grid {
    grid-template-columns: 1fr; 
  }
  .providers-section .section-title{
    font-size: 2rem;
  }
}


.about-health-section {
  background: white; 
  padding: 60px 20px;
}

.about-health-section .about-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #333;
  max-width: 850px;
  margin: 0 auto;

  /* animation */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease-out forwards;
  animation-delay: 5s; /* delay start */
}

.about-health-section .highlight {
  color: #28c6b9; 
  font-weight: 600;
}

/* Keyframes */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 768px) {
  .about-health-section .about-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .about-health-section .about-text {
    font-size: 1rem;
  }
}




/* ========================================= */
/*  PRINT LAYOUT FOR PDF EXPORT       */
/* ========================================= */
@media print {
    /* --- General Cleanup --- */
    nav, .btn-register, .btn-findcare, .btn-joinvitalink, .footer-section, .hero-buttons,  .btn-send-message{
    display: none !important;
    }

    body {
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #000;
    }

    /* Page settings */
    @page {
        size: A4;
        margin: 20mm;
        margin-top: 30mm; 
        @bottom-right {
            content: "Page " counter(page) " of " counter(pages);
            font-size: 10pt;
        }
    }

    /* Center hero content */
    .hero {
        text-align: center !important;
        margin: 0 auto !important;
        padding-top: 0 !important;
    }

    .hero-text {
        max-width: 90% !important;
        margin: 0 auto !important;
    }

    .hero-text h1 { font-size: 3em !important; margin-bottom: 10px !important; }
    .hero-text p { font-size: 1rem !important; margin-bottom: 15px !important; }

    .hero-stats {
        display: flex !important;
        justify-content: center !important;
        gap: 30px !important;
        margin-top: 15px !important;
    }

    .hero-stats .stat-item { text-align: center !important; }
    .hero-stats h2, .hero-stats p { font-size: 1rem !important; margin: 0 !important; }

    /* Hide print logo */
    .print-logo, .print-logo img { display: none !important; }


    

   /* --- Our Mission Section --- */
   .our-mission, .featured-services, .explore-vitalink, .about-section, .how-it-works-section  {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 5px !important; 
    }
    
   
    .featured-services {
        margin: 0 !important; 
        padding: 5px 0 !important; 
        display: block !important;
        page-break-before: auto !important;
        page-break-inside: avoid !important; 
    }

    /* Mission Section Layout */
    .mission-left { display: none !important; }
    .mission-right {
        width: 100% !important;
        padding: 0 5mm !important; /* minimal horizontal padding */
    }

    /* Mission Section Text */
    .mission-content h2 {
        font-size: 14pt !important;
        font-weight: bold !important;
        text-align: left !important;
        margin: 0 0 5px 0 !important; /* Tight spacing after title */
    }

    .mission-content p {
        font-size: 15pt !important;
        line-height: 1.3 !important;
        text-align: left !important;
        margin: 0 0 5px 0 !important; /* Tight spacing after paragraphs */
    }


    /* --- Featured Services Section --- */
    
    .featured-services .section-title {
        font-size: 16pt !important;
        text-align: center !important;
        margin: 5px 10px !important; 
    }

    .featured-services .services-grid {
        display: flex !important;
        justify-content: space-around !important;
        flex-wrap: nowrap !important;
        margin: 0 auto !important; /* Remove any grid margin */
    }

    .featured-services .service-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        border: none !important;
        margin: 0 5px !important;
        padding: 10px !important;
        page-break-inside: avoid !important;
    }


    .featured-services .service-card .icon img {
        max-width: 60px !important;
        height: auto !important;
        display: block !important;
        margin-bottom: 10px !important; /* Reduced icon margin */
    }

    .featured-services .service-card h3 {
        font-size: 14pt !important;
        text-align: center !important;
        margin-bottom: 3px !important; 
        color: #000; 
    }

    .featured-services .service-card p {
        font-size: 12pt !important;
        text-align: center !important;
        margin-bottom: 0 !important; 
        color: #000; 
    }
    .explore-vitalink {
        padding: 0; 
        margin-top: 20px;
        page-break-inside: avoid; 
        page-break-before: auto; 
        margin-bottom: 20px;
    }

  .explore-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
        width: 100%;
        max-width: none; 
    }

    /* 2. Card Appearance and Page Break */
    .explore-card {
        border: 1px solid var(--primary-hover); 
        box-shadow: none; 
        padding: 15px; 
        page-break-inside: avoid; 
    }

    .explore-card .icon {
        display: block; 
    }

  
    .section-title {
        font-size: 18pt !important;
        /* Force title to black for print clarity */
        color: #000 !important; 
    }

    .section-title span {
        color: var(--primary-hover) !important; 
    }
    
    .explore-card h3 {
        font-size: 12pt; 
        color: #000; 
        margin-top: 8px; 
    }

    .explore-card p {
        font-size: 10pt; 
        color: #000; 
        margin-top: 5px;
    }

 
    .about-section {
        background-color: transparent !important; 
        padding: 10px 0 !important; 
        margin: 0 !important;
        page-break-inside: avoid; 
    }


    .about-text h2 {
        font-size: 18pt !important;
        color: #000 !important; 
        text-align: center !important;
        margin-bottom: 5px !important;
    }

   
    .about-image {
    max-width: 500px !important; 
    margin: 10px auto !important; 
    padding: 0 !important; 
    float: none !important;
}

.about-image img {
    width: 100% !important; 
    border: 1px solid #ccc; 
    border-radius: 0 !important; 
    display: block; 
}
   
    .about-text::after {
        content: "";
        display: table;
        clear: both;
    }

    .about-section {
        background-color: transparent !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        
        /* Keep the entire section on one page if possible */
        page-break-inside: avoid !important;
    }

    .container {
        /* Use full width of the printable area */
        max-width: none !important;
        padding: 0 15mm !important; 
    }
    
    /* Section Title Styling */
    .section-title {
        font-size: 18pt !important;
        font-weight: bold !important;
        text-align: left !important; 
        margin-bottom: 8px !important;
        color: #000 !important; 
    }

    .section-title span {
        /* Remove the accent color */
        color:var(--primary-hover) !important;
    }

    .content-wrapper {
        /* Ensure content takes full available width */
        width: 100% !important;
    }

    /* Paragraph Text Styling */
    .text-content p {
        font-size: 11pt !important;
        line-height: 1.5 !important;
        text-align: justify !important; 
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        color: #000 !important;
    }

    /* --- CRITICAL FIX: HOW IT WORKS SECTION --- */

    .how-it-works-section,
    .how-it-works-section * {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        min-height: 1px !important;
        width: auto !important;
        height: auto !important;
        position: static !important; 
        
    }

    .how-it-works-section {
        padding: 15px 0 !important;
        margin: 0 !important;
        page-break-inside: avoid !important;
    }

    .how-it-works-section .container {
        padding: 0 15mm !important;
    }

    /* Steps Grid Layout (2x2) */
    .steps-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        max-width: 700px !important;
        margin: 0 auto !important;
    }

    /* Individual Step Card */
    .step-card {
        display: flex !important;
        align-items: center !important;
        border: 1px solid var(--primary-hover) !important;
        box-shadow: none !important;
        padding: 10px !important;
        page-break-inside: avoid !important;
    }


      /* --- Health Services Section Print Styles --- */

    .health-services {
        display: block !important;
        background-color: transparent !important;
        padding: 15px 0 !important;
        margin: 0 !important;
        page-break-inside: auto !important; /* Allow section to break if necessary */
    }

    .health-services .container {
        max-width: none !important;
        padding: 0 15mm !important; 
    }
    
    /* Section Title Styling */
    .health-services .section-title {
        font-size: 18pt !important;
        font-weight: bold !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        color: #000 !important;
    }

    .health-services .section-title span {
        /* Remove the accent color */
        color: #000 !important;
    }

    /* Services Grid Layout (2-column) */
    .services-grid {
        display: grid !important;
        /* CRITICAL: Force 2 columns */
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px !important; 
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    /* Individual Service Card Styling */
    .healthservice {
        display: block !important;
        border: 1px solid var(--primary-hover) !important; 
        box-shadow: none !important;
        padding: 10px !important;
        text-align: left !important;
        page-break-inside: avoid !important; 
        break-inside: avoid; 
    }

    /* Hide screen-specific elements */
    .healthservice .badge,       
    .healthservice .btn-service,  
    .healthservice.popular {      
        background: none !important;
        box-shadow: none !important;
        color: #000 !important;
        border: none !important;
        display: none !important;
    }
    
    /* Image Styling */
    .healthservice img {
        display: block !important;
        max-width: 80px !important; /* Standardize size */
        height: auto !important;
        margin: 0 0 10px 0 !important; /* Space below the image */
    }
    
    /* Heading Styling */
    .healthservice h3 {
        font-size: 14pt !important;
        font-weight: bold !important;
        color: #000 !important;
        margin: 0 0 5px 0 !important;
    }

    /* Price Styling */
    .healthservice .price {
        font-size: 12pt !important;
        font-weight: bold !important;
        color: #000 !important;
        margin: 0 0 5px 0 !important;
    }

    /* Free services color */
    .healthservice .price.free {
        color: #000 !important;
    }

    .healthservice .price span {
        font-size: 9pt !important;
        font-weight: normal !important;
        color: #555 !important; /* Lighter grey for unit */
    }

    /* Description Styling */
    .healthservice .desc {
        font-size: 11pt !important;
        line-height: 1.3 !important;
        color: #000 !important;
        margin: 0 !important;
    }
    

    .for-patients-section {
        /* Ensure the section displays and keeps content together */
        display: block !important; 
        background-color: transparent !important;
        padding: 15px 0 !important;
        margin-top: 20px !important;
        page-break-inside: avoid !important;
    }

    .for-patients-section .container {
        max-width: none !important;
        padding: 0 15mm !important; /* Standard print margin padding */
    }
    
    /* Section Title Styling */
    .for-patients-section .section-title {
        font-size: 18pt !important;
        font-weight: bold !important;
        /* Center the main heading */
        text-align: center !important; 
        margin-bottom: 5px !important;
        color: #000 !important;
    }

    .for-patients-section .section-title .highlight {
        /* Remove screen highlight color */
        color:var(--primary-hover) !important;
    }

    /* Subheading Styling */
    .for-patients-section .section-subheading {
        font-size: 12pt !important;
        line-height: 1.4 !important;
        /* Center the subheading */
        text-align: center !important; 
        margin: 0 auto 15px auto !important;
        max-width: 80% !important; /* Optional: Constrain width for readability when centered */
        color: #000 !important;
    }


   /* --- Providers Section Print View: 2 Columns / 2 Rows --- */

    /* Basic Section Styling */
    .providers-section {
        margin: 10mm 0;
        padding: 0;
        page-break-before: auto;
        page-break-after: avoid; /* Keep the entire section on one page if possible */
    }

    /* Container to hold content */
    .providers-section .container {
        width: 100%;
        max-width: none;
        padding: 0 5mm;
    }

    /* Title Styling */
    .providers-section .section-title {
        font-size: 18pt;
        text-align: center;
        margin-bottom: 10mm;
        color: #000;
        page-break-after: avoid;
    }
    
    .providers-section .section-title span {
        color: inherit;
    }

    /* Grid Layout for the Cards */
    .providers-grid {
        display: grid;
        /* Define 2 columns of equal width */
        grid-template-columns: 1fr 1fr; 
        /* Define the gap between the columns and rows */
        gap: 10mm; 
        width: 100%;
        page-break-inside: avoid; /* Try to keep the whole grid together */
    }

    /* Individual Card Styling */
    .provider-card {
        /* Cards will automatically flow into the 2x2 grid */
        border: 1px solid var(--primary-hover);
        padding: 5mm;
        box-shadow: none;
        height: auto; /* Allow content to define height */
        page-break-inside: avoid; /* Prevent card content from splitting */
        page-break-after: auto; /* Remove explicit page break after each card */
    }

    /* Icon Styling (Visible) */
    .provider-card .icon {
        display: block; 
        text-align: center;
        margin-bottom: 3mm;
        font-size: 18pt; 
        color: var(--primary-hover);
    }

    /* Text Styling */
    .provider-card h3 {
        font-size: 12pt;
        margin-top: 0;
        margin-bottom: 2pt;
        color: #000;
        text-align: center;
    }

    .provider-card p {
        font-size: 10pt;
        margin-top: 0;
        color: #333;
        text-align: center;
    }

  

     /* --- KnowledgeHub Section Print View --- */

    .knowledgehub-section {
        /* Reset margins and padding for print */
        margin: 10mm 0;
        padding: 0;
        /* Keep the content together */
        page-break-inside: avoid; 
        page-break-before: auto;
    }

    /* Keep the title clear and centered */
    .knowledgehub-section .section-title {
        font-size: 18pt; /* A standard size for print headings */
        text-align: center;
        margin-bottom: 5mm;
        color: #000; /* Force black text for best contrast */
        page-break-after: avoid; /* Keep the title with the content */
    }
    
    .knowledgehub-section .section-title span {
        /* Remove any special color/style on the span in print */
        color: inherit;
    }

    /* Print a container without excessive padding */
    .knowledgehub-section .container {
        width: 100%;
        max-width: none;
        padding: 0 10mm; 
    }

    /* Style the content wrapper and text */
    .knowledgehub-section .content-wrapper {
        display: block;
    }
    
    .knowledgehub-section .text-content {
        margin: 0;
        width: 100%;
    }

    .knowledgehub-section .text-content p {
        font-size: 12pt;
        line-height: 1.5;
        color: #000; 
        text-align: left; 
        padding: 0;
        margin: 0;
    }

    /* Hide buttons and any other elements you don't want in print */
  .btn-seemore {
    display: none !important;
  }

  /* Optional: remove background colors and shadows for cleaner print */
  .topic-card {
    box-shadow: none;
    background: #fff;
  }

  /* Optional: adjust spacing for print */
  .topics-grid {
    gap: 1rem; /* reduce spacing between cards */
  }

   /* --- Our Vision Section Print View --- */

    .our-vision {
        /* Reset margins/padding and ensure the content flows without issue */
        margin: 15mm 0;
        padding: 0;
        /* Force the layout to block/flow to make print simpler */
        display: block; 
        page-break-inside: avoid; 
        page-break-before: auto;
    }

    /* Hide the decorative or background column (vision-left) */
    .our-vision .vision-left {
        display: none;
    }

    /* Make the content column take up the full width */
    .our-vision .vision-right {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0 10mm; 
    }

    /* Center the main content block for a clean look */
    .our-vision .vision-content {
        max-width: 600px; 
        margin: 0 auto;
        padding: 0;
    }

    /* Style the heading */
    .our-vision h2 {
        font-size: 20pt;
        color: #000; 
        text-align: center;
        margin-bottom: 5mm;
        page-break-after: avoid; 
    }

    /* Style the paragraph text */
    .our-vision p {
        font-size: 12pt;
        line-height: 1.6;
        color: #000; 
        text-align: left; 
        margin-bottom: 0;
    }


    .our-vision p br {
        display: block;
        content: "";
        margin-top: 5pt; 
    }
    
/* --- Contact Form/Social Section Fixes --- */

    /* Hide the actual form fields and buttons */
    .contact-form-box form input:not([type="submit"]), 
    .contact-form-box form textarea,
    .contact-form-box form select,
    .contact-form-box form button, 
    .contact-form-box form .btn,
    .radio-group, 
    .social-icons {
        display: none !important;
    }
    
    /* FIX: Keep labels visible! Labels often contain static text or titles. */
    .contact-form-box form label {
        display: block !important; 
        color: #000 !important;
         box-shadow: none !important;
        font-size: 11pt;
    }

    /* Keep contact information visible and full width */
    .contact-info-box {
        width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    /* Hide the form container itself if it becomes empty and serves no purpose */
    .contact-form-box {
        display: none;
    }


      /* --- Our Location Section Print View (Map Hidden) --- */

    .our-location-section {
        margin: 15mm 0;
        padding: 0;
        page-break-inside: avoid; /* Keep text/info together */
        page-break-before: auto;
    }

    .our-location-section .container {
        width: 100%;
        max-width: none;
        padding: 0 10mm;
    }

    /* Title and Subheading Styling */
    .our-location-section .section-title {
        font-size: 18pt;
        text-align: center;
        margin-bottom: 5mm;
        color: #000;
        page-break-after: avoid;
    }

    .our-location-section .section-title span {
        color: inherit;
    }

    .our-location-section .section-subheading {
        font-size: 11pt;
        color: #333;
        text-align: center;
        margin-bottom: 10mm;
        page-break-after: avoid;
    }

    /* --- IMPORTANT FIX: Hide the unreliable map container and iframe --- */
    .our-location-section .map-container,
    .our-location-section .map-container iframe {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Optional: Add a text box with the address (assuming it's available elsewhere in the HTML) 
       or a clear instruction since the map is hidden. */
    .our-location-section .container::after {
        content: "Address: 123 Health Ave, Makati City, Philippines. To view the map, please visit the website: [yourwebsite.com/contact]";
        display: block;
        font-size: 10pt;
        text-align: center;
        margin-top: 10mm;
        border-top: 1px dashed #ccc;
        padding-top: 5mm;
        color: #555;
    }
}
