/* Modern Variable Reset */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  /* Colors */
  --primary-color: #4A90E2;
  /* Soft Blue */
  --primary-dark: #357ABD;
  --accent-color: #50E3C2;
  /* Mint Green */
  --accent-soft: #E0F7FA;
  --text-color: #4A4A4A;
  /* Softer Grey */
  --light-bg: #F9FAFB;
  --white: #ffffff;
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  /* Soft shadow */
  --footer-bg: #2C3E50;

  /* Typography */
  --font-heading: 'Nunito', sans-serif;
  /* Friendly rounded font */
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 5rem;
  /* Increased spacing for airy feel */
  --container-width: 1200px;
  --border-radius-card: 20px;
  --border-radius-btn: 50px;

  /* Transitions */
  --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global Focus Styles for Accessibility */
:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Specific overrides for cleaner rounded elements */
.btn:focus-visible,
.form-control:focus-visible {
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  width: 100%;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius-btn);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--white);
  color: var(--white);
  backdrop-filter: blur(5px);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 55px;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* HEADER INFO BAR */
.header-info {
  background-color: var(--card-bg, #fff);
  color: var(--text-color);
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-info .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-list {
  display: flex;
  gap: 25px;
}

.contact-item i {
  margin-right: 8px;
  color: var(--accent-color);
}

.social-links-micro {
  display: flex;
  gap: 25px;
  /* Uniform larger spacing */
  align-items: center;
}

.social-links-micro a {
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.social-links-micro a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Unified Footer Social Links */
.social-links {
  display: flex;
  gap: 25px;
  /* Match header spacing */
  align-items: center;
  justify-content: flex-end;
  /* Align to right for footer */
  margin-bottom: 5px;
}

/* Sections */
.section {
  padding: var(--spacing-lg) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* Services / Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.feature-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: var(--border-radius-card);
  transition: all var(--transition-fast);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
  background: var(--accent-soft);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  /* Taller hero */
  min-height: 600px;
  background: url('../images/main9.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  /* Parallax Effect */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    /* Disable parallax on mobile */
  }
}

/* Glassmorphism Overlay for Hero Text */
.hero-content {
  background: rgba(44, 62, 80, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 90%;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Wave Dividers */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
  /* wave height */
}

.wave-divider .shape-fill {
  fill: #FFFFFF;
}

/* Inverse Wave (Top of section) */
.wave-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.wave-divider-top .shape-fill {
  fill: #FFFFFF;
}

/* Google Map */
#map {
  width: 100%;
  height: 450px;
  filter: grayscale(20%);
  /* Soften map */
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    /* Below navbar */
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-fast);
  }

  .nav-menu.active {
    right: 0;
  }

  .header-info {
    display: none;
    /* Simplify top bar on mobile */
  }

  .hero {
    /* Adjust image alignment for mobile to show more heads */
    background-position: 70% center;
  }

  .hero-content {
    /* Make the glass box slightly smaller/less padded on mobile */
    padding: 2rem 1.5rem;
    width: 95%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  /* Force buttons to stack safely */
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* Utility Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Sub-page Header */
.page-header {
  background: linear-gradient(rgba(44, 62, 80, 0.6), rgba(44, 62, 80, 0.6)), url('../images/bgimage.jpg') no-repeat center center/cover;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.page-header-content {
  z-index: 2;
}

.page-header h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

/* Standard Content Styles */
.content-block {
  margin-bottom: var(--spacing-lg);
}

.content-block p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #666;
  text-align: left;
}

/* Team Cards - Compact Avatar Layout */
.team-card {
  background: var(--white);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  /* Center vertically */
  padding: 1rem;
  /* Padding on the card itself */
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.team-card-image {
  width: 180px;
  /* Fixed, smaller size */
  height: 180px;
  min-width: 180px;
  /* Prevent shrinking */
  border-radius: 50%;
  /* Circle */
  object-fit: cover;
  object-position: top center;
  margin: 1rem;
  /* Space around image */
  border: 4px solid var(--accent-soft);
  /* Cute border */
  background-color: var(--light-bg);
}

.team-card-body {
  padding: 1rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.team-card-role {
  font-size: 0.9rem;
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  display: block;
}

.team-card-text {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .team-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .team-card-image {
    width: 200px;
    /* Slightly larger on mobile for focus */
    height: 200px;
    margin-bottom: 1rem;
  }
}

/* FAQ Styles - Static 3-Column Grid */
.faq-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
  /* Prevents cards from stretching to match height */
}

@media (max-width: 900px) {
  .faq-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .faq-container {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
  padding: 2rem;
  /* margin-bottom removed, handled by gap */
}

.faq-question {
  padding: 0 0 1rem 0;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.faq-answer {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Contact & Form Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background: var(--primary-color);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius-card);
  box-shadow: var(--card-shadow);
}

.contact-info-card h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  margin-bottom: 2rem;
}

.contact-info-item h5 {
  color: var(--accent-light, #E0F7FA);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  font-size: 1.1rem;
  margin: 0;
}

.contact-social a {
  color: var(--white);
  margin-right: 15px;
  font-size: 1.2rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.contact-social a:hover {
  opacity: 1;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #eee;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
  background: #f9f9f9;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Patient Forms List */
.patient-forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.form-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.form-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.form-card h4 {
  color: var(--text-color);
  font-size: 1.2rem;
  margin-bottom: 0;
}

.form-card a {
  text-decoration: none;
  color: inherit;
}

.form-card a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s;
  margin: 5px auto 0;
}

.form-card:hover a::after {
  width: 50px;
}

/* Single Column Team Grid */
.team-grid-single-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}