/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #5bc0b8; /* Deeper Tiffany Blue */
  --primary-dark: #00796b; /* Deep teal for accents */
  --primary-light: #f6fcfc; /* Very light blue/teal for backgrounds */
  --text-color: #2c3e50;
  --subheading-color: #388e8e; /* Muted teal for subheadings */
  --background-color: #fff;
  --header-height: 80px;
  --container-padding: 2rem;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header styles */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--background-color);
  box-shadow: 0 2px 4px rgba(129, 216, 208, 0.15); /* Updated shadow color */
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.9;
}

/* Language switcher styles */
.language-switcher {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.language-switcher a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.language-switcher a:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Responsive design */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --header-height: 60px;
  }

  .navbar {
    justify-content: center;
  }

  .navbar-left {
    justify-content: center;
  }

  .logo img {
    height: 28px;
  }
}

/* Footer styles */
.site-footer {
  background-color: var(--primary-light);
  color: var(--text-color);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section h3,
.footer-section a,
.legal-links a {
  color: #2c3e50;
}

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

.footer-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-links {
  display: flex;
  gap: 2rem;
}

.copyright {
  font-size: 0.9rem;
  color: rgba(44, 62, 80, 0.7); /* dark blue-gray, semi-transparent */
}

/* Responsive footer */
@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .legal-links {
    justify-content: center;
  }
}

/* Hero Section */
.hero {
  background-color: var(--primary-light);
  padding: 4rem 0;
  margin-bottom: 4rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-text h2 {
  color: var(--subheading-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background-color: var(--primary-dark);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(91, 192, 184, 0.15);
}

.cta-button:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 192, 184, 0.25);
}

.specialties {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-quote {
  font-size: 1.3rem;
  color: var(--text-color);
  font-style: italic;
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.doctor-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Section Styles */
.section-title {
  color: var(--text-color);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* About Section */
.about-section {
  padding: 4rem 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* Services Section */
.services-section {
  background-color: var(--primary-light);
  padding: 4rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-card li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Vita Section */
.vita-section {
  padding: 4rem 0;
}

.vita-content {
  max-width: 800px;
  margin: 0 auto;
}

.vita-list {
  list-style: none;
  padding: 0;
}

.vita-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.vita-list li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Vita Timeline Flexbox Styles */
.vita-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.vita-timeline-item {
  display: flex;
  align-items: flex-start;
  position: relative;
  min-height: 60px;
}

.vita-timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 28px;
  width: 4px;
  height: calc(100% - 28px);
  background: var(--primary-color, #5bc0b8);
  z-index: 0;
}

.vita-timeline-marker {
  position: relative;
  z-index: 1;
  width: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 40px;
  justify-content: flex-start;
}

.vita-timeline-marker::before {
  content: none;
}

.vita-timeline-marker::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 4px solid var(--primary-color, #5bc0b8);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  margin: 0;
}

.vita-timeline-content {
  background: #fff;
  padding: 1.1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  color: var(--text-color, #222);
  line-height: 1.6;
  flex: 1;
  margin-left: 8px;
}

.vita-timeline-item:first-child .vita-timeline-marker::before {
  top: 50%;
}
.vita-timeline-item:last-child .vita-timeline-marker::before {
  bottom: 50%;
}

@media (max-width: 600px) {
  .vita-timeline-marker {
    width: 20px;
    height: 28px;
  }
  .vita-timeline-marker::after {
    width: 14px;
    height: 14px;
    border-width: 3px;
  }
  .vita-timeline-item:not(:last-child)::after {
    left: 8px;
    top: 18px;
    width: 3px;
    height: calc(100% - 18px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

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

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-quote {
    font-size: 1.1rem;
  }

  .doctor-image {
    width: 250px;
    height: 250px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta-button {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }
}

/* Page Section Styles (generalized from Imprint) */
.page-section {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-section h1 {
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.page-section h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.page-section .content-section {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-section h2 {
  color: var(--text-color);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.page-section h2:first-child {
  margin-top: 0;
}

.page-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.page-section a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-section a:hover {
  color: var(--primary-dark);
}

/* Primary Button (for 404 and other pages) */
.primary-button {
  display: inline-block;
  background-color: var(--primary-dark);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(91, 192, 184, 0.15);
}

.primary-button:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 192, 184, 0.25);
}

@media (max-width: 768px) {
  .page-section {
    padding: 2rem 1rem;
  }
  .page-section h1 {
    font-size: 2rem;
  }
  .page-section .content-section {
    padding: 1.5rem;
  }
  .primary-button {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }
}

/* Center content styles */
.center-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* Specialty Pages */
.specialty-section {
  padding: 4rem 0;
  background-color: var(--background-color);
}

.specialty-content {
  background: var(--background-color);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.specialty-content h2 {
  color: var(--text-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
}

.specialty-content h3 {
  color: var(--subheading-color);
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
  font-weight: 500;
}

.specialty-content p {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.specialty-content ul {
  list-style-type: none;
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.specialty-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
  line-height: 1.6;
}

.specialty-content ul li:before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.info-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.info-box h4 {
  color: var(--text-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.info-box ul {
  margin-bottom: 0;
}

.info-box ul li {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.info-box ul li:before {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .specialty-content {
    padding: 1.5rem;
  }

  .specialty-content h2 {
    font-size: 1.5rem;
  }

  .specialty-content h3 {
    font-size: 1.2rem;
  }

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

/* Specialty Section for Homepage */
.specialty-section-home {
  padding: 4rem 0;
}
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.specialty-card,
.contact-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.07);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.specialty-card:hover {
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.specialty-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.3rem;
}
.specialty-card p {
  color: #4a5568;
  font-size: 1rem;
}

.specialty-more {
  margin-top: 1.5rem;
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.specialty-card:hover .specialty-more {
  color: var(--primary-color);
  text-decoration: underline;
}
