html {
    scroll-behavior: smooth; /* smooth scrolling */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, Arial, sans-serif;
}

body {
    background: #f0f7f0;
    min-height: 100vh;
}

/* Container full page */
.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure container takes full height */
}

/* Sticky Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ccc;
    height: 80px; /* fixed height so it won't grow */
    padding: 0 40px; /* remove vertical padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.fertility-logo {
    max-width: 200px;
    height: auto;
    margin: 10px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}



.logo-icon {
    width: 140px; 
    height: 50px;
    background-image: url('../images/ofcdname2.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 15px;
    margin-top: 15px;
    filter: brightness(0.80) saturate(100%);
    

    /* Scale up logo visually without stretching header */
    transform: scale(1.5); 
    transform-origin: left center; /* grow to the left, not down */
}


.logo-text h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #266328;
}

.logo-text p {
    font-size: 14px;
    margin: 0;
    color: #555;
}

/* Navigation Left (Services, About, Contact) */
.nav-left {
    margin-left: 360px; /* space between logo and links */
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-link:hover {
    color: #84cc16;
}
.nav-link.active {
  color: #84cc16;              /* highlight color */
  border-bottom: 2px solid #84cc16; /* optional underline */
}
/* Navigation Right (Online Result button) */
.nav-right {
    margin-left: auto; /* pushes it to the far right */
}

.header-btn {
    padding: 8px 15px;
    border: 2px solid #84cc16;
    color: rgb(71, 72, 71);
    background-color: transparent;
    border-radius: 15px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background-color: #84cc16;
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Section (first page with tagline) */
.welcome-section {
    min-height: 100vh; /* full screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f0f7f0;
    padding: 60px 20px;
    text-align: center;
}

.welcome-section h2 {
    color: #266328;
    font-size: 40px;
    margin-bottom: 5px;
}

/* Accent color for "Oro Fertility Care" within the welcome heading */
.welcome-section h2 .brand-accent {
    color: #D8CE6C/* harmonious lighter green accent */
}

.welcome-section p {
    font-size: 20px;
    color: #555;
}

/* Content Sections (Services, About, Contact) */
.content-section {
    min-height: 100vh;   /* each section fills screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.content-section:nth-child(even) {
    background: #e9f5eb; /* alternate bg color */
}

.content-section h2 {
    font-size: 32px;
    color: #266328;
    margin-bottom: 15px;
}

.content-section p {
    font-size: 18px;
    color: #444;
    max-width: 700px;
    text-align: center;
}

/* Welcome Section Buttons */
.welcome-buttons {
    margin-top: 135px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Primary button (green background) */
.btn-primary {
    background-color: #84cc16;
    color: #fff;
}

.btn-primary:hover {
    background-color: #84cc16;
    transform: translateY(-2px);
}

/* Outline button (gray border, green hover) */
.btn-outline {
    border: 2px solid #84cc16;
    color: rgb(71, 72, 71);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: transparent;
    color: rgb(71, 72, 71);
    transform: translateY(-2px);
}
/* Services Grid */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
    width: 100%;
    max-width: 1100px;
}

/* Mobile: force two services per row without affecting desktop */
@media (max-width: 768px) {
  .services-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px; /* slightly tighter spacing on phones */
  }
}

/* Service Box */
.service-box {
    background: #fff;
    padding: 15px 10px;   /* reduce vertical padding */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 70px;    /* smaller fixed height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #fffffe;  /* light gray border */
}

.service-box i {
    font-size: 28px;      /* smaller icon */
    color: #81837f;
    margin-bottom: 8px;   /* less space below icon */
}

.service-box h3 {
    font-size: 14px;      /* slightly smaller text */
    font-weight: 600;
    color: #333;
    line-height: 1.2;     /* tighter spacing */
}
/* Hover Effect */ 
.service-box:hover { transform: translateY(-8px); box-shadow: 0px 8px 20px rgba(0,0,0,0.15); }


/* Main content should grow to push footer down */
main {
    flex: 1; /* This makes main content expand to fill available space */
}

/* Contact Section as Footer with Single Wave */
#contact {
    margin-top: auto;
    background: #f9fafb; /* Keep your original background color */
    color: #333; /* Keep your original text color */
    padding: 60px 20px 40px;
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Single wave effect at the top */
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23e9f5eb'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Ensure content is above the wave */
#contact .contact-intro,
#contact .contact-container {
    position: relative;
    z-index: 2;
}

/* Keep your original contact intro styling */
#contact .contact-intro {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #444; /* Original color */
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* ensures responsiveness on smaller screens */
    gap: 30px; /* spacing between items */
    margin-top: 20px;
}
/* Keep your original contact item styling */
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px; /* space between icon and text */
    font-size: 12px;
    color: #fff;
}

/* Keep your original icon styling */
.contact-item i {
    color: #81837f; /* Original green color */
    font-size: 16px;
}
.contact-item p {
    font-size: 14px;         /* adjust text size */
    font-weight: 500;        /* make it slightly bold */
    color: #333;             /* darker text */
    line-height: 1.6;        /* space between lines */
}
.contact-item .phone {
  display: flex;
  align-items: center; /* aligns icon and text vertically */
  gap: 6px; /* space between icon and number */
}

/* Keep your original Facebook icon styling */
.facebook-icon i {
    color: white !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background-color: #1877F2;
    font-size: 18px;
    border-radius: 8px;
    transition: background 0.3s ease;
    text-decoration: none;
}

.facebook-icon:hover {
    background-color: #145dbf;
    transform: scale(1.1);
}
.get-in-touch {
  font-size: 20px;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #contact::before {
        height: 40px;
    }
    
    #contact {
        padding: 50px 20px 30px;
    }
}
/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #84cc16;
    color: rgb(71, 72, 71);
    background-color: transparent;
  font-size: 18px;
  cursor: pointer;
  display: none; /* hidden by default */
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  z-index: 999;
}

#backToTop:hover {
  background: #84cc16;
}

/* Doctors Table */
.doctor-table {
  width: 80%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.doctor-table thead {
  background-color: #f7f7f7; /* subtle gray */
}

.doctor-table th {
  font-size: 14px;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e5e5e5;
}

.doctor-table td {
  font-size: 13px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  color: #555;
}

.doctor-table tbody tr:last-child td {
  border-bottom: none; /* clean bottom edge */
}

.doctor-table tbody tr:hover {
  background-color: #fafafa;
  transform: scale(1.01);
  transition: all 0.2s ease-in-out;
}

/* Responsive design - smaller screens */
@media (max-width: 600px) {
  .doctor-table,
  .doctor-table thead,
  .doctor-table tbody,
  .doctor-table th,
  .doctor-table td,
  .doctor-table tr {
    display: block;
    width: 100%;
  }

  .doctor-table thead {
    display: none; /* Hide header row */
  }

  .doctor-table tr {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 12px;
  }

  .doctor-table td {
    border: none;
    padding: 8px 0;
    position: relative;
  }

  .doctor-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #333; /* match desktop header text color */
    display: block;
    margin-bottom: 4px;
  }
}

#about {
    padding: 40px 20px;
}

.about-content {
    display: flex;
    align-items: center;        /* vertically align text + logo */
    justify-content: center;    /* push both towards the center */
    gap: 90px;                  /* space between text and logo */
    flex-wrap: wrap;            /* stack on smaller screens */
}


.about-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.about-logo-container {
    flex: 0 0 auto;
}

.about-logo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    background: transparent;

    /* first slide in, then float forever */
    animation: slideIn 1.5s ease-out forwards, float 4s ease-in-out infinite;
    animation-delay: 0s, 1.5s; /* float starts after slideIn finishes */
}

/* Slide in from left */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* ----------------------------- */
/* Mobile/Tablet Header & Menu   */
/* ----------------------------- */

/* Hamburger button hidden by default (desktop) */
.hamburger {
  display: none;
}

/* Mobile dropdown menu base (hidden) */
.mobile-menu {
  position: fixed;
  top: 80px; /* header height */
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-15px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 999;
}

.mobile-menu .nav-link {
  font-size: 16px;
  color: #333;
  width: 100%;
  text-align: center; /* center menu labels */
}
.mobile-menu .header-btn.mobile-result { width: 100%; text-align: center; }

/* Show mobile UI on phones and tablets */
@media (max-width: 1024px) {
  /* Keep header visible while scrolling on responsive */
  header { position: sticky; top: 0; z-index: 1000; }

  /* Hide desktop navs */
  .nav-left, .nav-right { display: none; }

  /* Show hamburger */
  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #454545;
    cursor: pointer;
    margin-left: auto;
  }

  /* Tweak logo scale for tighter header */
  .logo-icon {
    transform: scale(1.2);
    margin-top: 10px;
  }

  /* Tighter, centered underline for active mobile menu item */
  .mobile-menu .nav-link { display: inline-block; padding-bottom: 6px; }
  .mobile-menu .nav-link.active { border-bottom: none; }
  .mobile-menu .nav-link.active::after {
    content: '';
    display: block;
    width: 44px;              /* not too wide */
    height: 2px;
    background: #84cc16;
    margin: 6px auto 0;       /* center under text */
    border-radius: 2px;
  }
}

/* Active state: slide down and enable interaction */
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Ensure desktop never shows mobile UI */
@media (min-width: 1025px) {
  .mobile-menu { display: none; }
}

/* Floating effect */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.about-text p {
    line-height: 1.8;  /* adds breathing space between lines */
    text-align: left;           /* force text alignment to the left */
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Vision & Mission */
.vision-mission {
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    gap: 100px;
    margin: 20px auto;        /* center the container */
    max-width: 1100px;        /* adjust width as needed */
    width: 90%;               /* makes it responsive */
}

.vision, .mission {

    flex: 1;
    text-align: left;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.vision h3, .mission h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 8px;
    color: #333;
}

.vision p, .mission p {
    font-size: 14px; 
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

/* Mobile: stack Vision then Mission as full-width boxes, match services width */
@media (max-width: 768px) {
  .vision-mission {
    flex-direction: column;
    gap: 16px;
    margin: 20px auto;
    width: 100%;
    max-width: 1100px; /* mirror services-container max width */
    padding: 0 12px;   /* gentle side padding on phones */
    overflow: visible; /* disable horizontal scroll */
    justify-content: center;
    align-items: stretch;
  }
  .vision, .mission {
    flex: 1 1 auto;
    width: 100%;
  }
}
