/*
Theme Name: Advanced Dentistry
Theme URI: https://www.advanceddentistryca.com
Description: Custom theme for Advanced Dentistry San Diego. Clean, responsive design converted from static HTML. Supports custom menu (Appearance → Menus) for primary navigation with dropdowns.
Author: Advanced Dentistry
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: advanced-dentistry
*/

/* ==========================================================================
   Advanced Dentistry - Theme Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo img {
  height: 54px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #333;
  border-radius: 4px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a:focus {
  background-color: #f0f6ff;
  color: #4583e0;
}

.nav-dropdown,
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 100;
}

.main-nav > ul > li:hover .nav-dropdown,
.main-nav > ul > li:hover .sub-menu,
.main-nav > ul > li:focus-within .nav-dropdown,
.main-nav > ul > li:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a,
.main-nav .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  transition: background-color 0.2s ease;
}

.nav-dropdown a:hover,
.main-nav .sub-menu a:hover {
  background-color: #f0f6ff;
  color: #4583e0;
}

.header-ctas {
  display: flex;
  gap: 10px;
  margin-left: 16px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: #4583e0;
  color: #fff;
  border-color: #4583e0;
}

.btn-primary:hover {
  background-color: #3570cc;
  border-color: #3570cc;
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: #4583e0;
  border-color: #4583e0;
}

.btn-secondary:hover {
  background-color: #4583e0;
  color: #fff;
}

.btn-white {
  background-color: #fff;
  color: #4583e0;
  border-color: #fff;
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f8fbff 0%, #e8f0fe 100%);
  padding: 80px 0;
  overflow: hidden;
}

/* Hero background slider */
.hero-slider-section {
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slider-section .hero-container {
  position: relative;
  z-index: 2;
}

/* Hero content box: semi-transparent white with subtle light blue gradient */
.hero-content-box {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(232, 245, 255, 0.88) 50%,
    rgba(255, 255, 255, 0.9) 100%
  );
  padding: 2rem 2.5rem;
  border-radius: 8px;
  max-width: 560px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.hero-slider-section .hero-content-box h1 {
  color: #147ec2;
  font-size: 49px;
  line-height: 1.11em;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-shadow: none;
}

.hero-slider-section .hero-content-box p {
  color: #2f2e2e;
  font-size: 16px;
  line-height: 1.6em;
  margin-bottom: 32px;
  text-shadow: none;
}

.hero-content-box .btn-primary {
  background-color: #147ec2;
  color: #fff;
  border: none;
}

.hero-content-box .btn-primary:hover {
  background-color: #0f6ba8;
  color: #fff;
  border: none;
}

.hero-content-box .btn-secondary {
  background-color: rgba(255, 255, 255, 0.85);
  color: #147ec2;
  border: 2px solid #147ec2;
}

.hero-content-box .btn-secondary:hover {
  background-color: #147ec2;
  color: #fff;
  border-color: #147ec2;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 400;
  color: #147ec2;
  letter-spacing: 0.05em;
  line-height: 1.11;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Section Shared --- */
.section {
  padding: 80px 0;
}

.section-light {
  background-color: #fff;
}

.section-alt {
  background-color: #f7fafd;
}

.section-dark {
  background-color: #1a3a5c;
  color: #fff;
}

.section-title {
  font-size: 35px;
  font-weight: 400;
  color: #4583e0;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 50px;
}

.section-dark .section-title {
  color: #fff;
}

/* --- Why Choose Us --- */
.why-us {
  display: flex;
  align-items: center;
  gap: 60px;
}

.why-us-image {
  flex: 0 0 45%;
  position: relative;
}

.why-us-image > img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}

.why-us-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.why-us-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-us-content {
  flex: 1;
}

.why-us-content h2 {
  font-size: 35px;
  color: #4583e0;
  margin-bottom: 32px;
}

.why-us-item {
  margin-bottom: 24px;
}

.why-us-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.6;
}

.why-us-item p {
  font-size: 16px;
  color: #555;
  line-height: 1.4;
}

/* --- Testimonials --- */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 0 40px;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide blockquote {
  font-size: 18px;
  line-height: 1.8;
  color: #22333b;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-slide blockquote::before {
  content: "\201C";
  font-size: 60px;
  color: #4583e0;
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  font-size: 16px;
  font-weight: 600;
  color: #22333b;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-nav button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #4583e0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.testimonial-nav button.active {
  background-color: #4583e0;
}

.slider-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 0;
}

.slider-arrow {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #333;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background-color: #4583e0;
  color: #fff;
  border-color: #4583e0;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
}

.service-card-body p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #4583e0;
  transition: gap 0.3s ease;
}

.read-more-link:hover {
  gap: 10px;
}

.read-more-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transform: rotate(90deg);
}

/* --- Membership Plans --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.plan-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.plan-card-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
}

.plan-card h3 {
  font-size: 22px;
  color: #4583e0;
  margin-bottom: 8px;
}

.plan-price {
  margin-bottom: 8px;
}

.plan-price .amount {
  font-size: 40px;
  font-weight: 800;
  color: #2b61b3;
  font-family: "Raleway", sans-serif;
}

.plan-price .period {
  font-size: 14px;
  color: #888;
}

.plan-savings {
  font-size: 18px;
  font-weight: 700;
  color: #4583e0;
  margin-bottom: 4px;
}

.plan-activation {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

.plan-features {
  text-align: left;
  margin-bottom: 24px;
}

.plan-features li {
  font-size: 15px;
  color: #333;
  padding: 6px 0;
  line-height: 1.6;
}

.plan-features li::before {
  content: "\2705";
  margin-right: 8px;
}

.plan-note {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 24px;
  text-align: left;
}

/* --- Meet Doctor --- */
.doctor-section {
  display: flex;
  align-items: stretch;
  gap: 60px;
}

.doctor-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-label {
  font-size: 20px;
  color: #22333b;
  margin-bottom: 8px;
}

.doctor-content h2 {
  font-size: 35px;
  color: #4583e0;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.doctor-content p {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}

.doctor-image {
  flex: 0 0 35%;
  border-radius: 16px;
  overflow: hidden;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* --- Location & Hours --- */
.location-hours {
  display: flex;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.location-map {
  flex: 1;
  position: relative;
  min-height: 400px;
  background-color: #e8e8e8;
}

.location-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.location-address {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(26, 58, 92, 0.92);
  color: #fff;
  padding: 16px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-address svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  flex-shrink: 0;
}

.location-address a {
  color: #fff;
  font-size: 16px;
}

.location-address a:hover {
  text-decoration: underline;
}

.hours-panel {
  flex: 0 0 420px;
  background: #1a3a5c;
  color: #fff;
  padding: 48px 40px;
}

.hours-panel h2 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.hours-table {
  width: 100%;
  margin-bottom: 32px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: 700;
}

.hours-time {
  font-weight: 400;
}

.hours-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background-color: #84b6ec;
  color: #fff;
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.25);
}

.social-links img {
  width: 20px;
  height: 20px;
}

.footer-contact p {
  font-size: 15px;
  margin-bottom: 6px;
  opacity: 0.9;
}

.footer-contact a {
  color: #fff;
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 14px;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 38px;
  }

  .services-grid,
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us,
  .doctor-section {
    gap: 40px;
  }

  .hours-panel {
    flex: 0 0 360px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 12px;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav > ul > li > a {
    padding: 12px 0;
  }

  .nav-dropdown,
  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }

  .main-nav > ul > li:hover .nav-dropdown,
  .main-nav > ul > li:hover .sub-menu,
  .main-nav > ul > li:focus-within .nav-dropdown,
  .main-nav > ul > li:focus-within .sub-menu {
    display: block;
  }

  .header-ctas {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    padding-top: 12px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-section {
    padding: 48px 0;
  }

  .hero-slider-section {
    min-height: 380px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content-box {
    padding: 1.5rem 1.75rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .why-us {
    flex-direction: column;
  }

  .why-us-image {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .why-us-badge {
    bottom: -10px;
    right: 10px;
    width: 90px;
    height: 90px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .doctor-section {
    flex-direction: column-reverse;
  }

  .doctor-image {
    flex: none;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .doctor-image img {
    min-height: 300px;
  }

  .location-hours {
    flex-direction: column;
  }

  .location-map {
    min-height: 300px;
  }

  .hours-panel {
    flex: none;
    padding: 36px 24px;
  }

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

  .footer-brand {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

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

  .section-title {
    font-size: 28px;
  }

  .section {
    padding: 60px 0;
  }

  .testimonial-slide blockquote {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-slider-section {
    min-height: 320px;
  }

  .hero-content-box {
    padding: 1.25rem 1.5rem;
  }

  .hero-slider-section .hero-content-box h1 {
    font-size: 28px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .btn {
    padding: 10px 22px;
    font-size: 14px;
  }

  .service-card-image {
    height: 200px;
  }

  .plan-price .amount {
    font-size: 32px;
  }

  .hours-panel h2 {
    font-size: 26px;
  }

  .hours-row {
    font-size: 15px;
  }

  .slider-arrows {
    display: none;
  }
}

/* --- Inner Page Styles --- */
/* Page hero bar: full viewport width (breakout of constrained content wrapper) */
.page-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #429dff;
  color: #fff;
  padding: 30px 0 20px;
  text-align: center;
  box-sizing: border-box;
}

/* Services pages: title only (no paragraph) */
.page-hero.page-hero--services {
  background: #429dff;
  padding: 30px 0 20px;
}

.page-hero.page-hero--services p {
  display: none;
}

/* About page: title-only hero below subheader image */
.page-hero.page-hero--about {
  background: #429dff;
  padding: 30px 0 20px;
}

.page-hero.page-hero--about p {
  display: none;
}

.page-hero.page-hero--about h1 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.page-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 60, 94, 0.7);
}

/* Contact page: full-width banner only, no dark overlay, so the dental instruments image is clearly visible */
.page-hero-image.page-hero-image--contact {
  min-height: 280px;
  background-color: #b8d4e8;
}

.page-hero-image.page-hero-image--contact::before {
  display: none;
}

.page-hero-image .container {
  position: relative;
  z-index: 1;
}

.page-feature-image {
  text-align: center;
  margin-bottom: 32px;
}

.page-feature-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Services pages: two-column intro (image left, heading + intro right) */
.page-content--services .page-content-intro {
  display: grid;
  grid-template-columns: 419px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.page-content--services .page-content-intro .page-feature-image {
  margin-bottom: 0;
}

.page-content--services .page-content-intro .page-intro-text h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

.page-content--services .page-content-intro .page-intro-text p {
  margin-bottom: 18px;
}

.page-content--services .page-content-intro .page-intro-text p:last-child {
  margin-bottom: 0;
}
.entry-title {
  display: none;
}
/* Services subheadings: light blue */
.page-content--services .page-content-body h3 {
  color: #429dff;
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.page-content--services .page-content-body h3:first-child {
  margin-top: 0;
}

.page-content {
  padding: 60px 0;
}

.page-content--services .container {
  max-width: 960px;
}

.page-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #444;
}

.page-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #429dff;
  margin: 40px 0 16px;
}

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

/* New Patients page: centered section headings, narrow content column */
.page-content--newpatients .container {
  max-width: 800px;
}

.page-content--newpatients h2 {
  text-align: center;
  color: #1a1a1a;
  margin-top: 40px;
  margin-bottom: 20px;
}

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

.page-content--newpatients .first-visit-list {
  max-width: 600px;
  margin: 20px auto 24px;
}

.page-content-cta {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 0;
}

.page-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #429dff;
  margin: 30px 0 12px;
}

.page-content ul {
  list-style: none;
  padding-left: 28px;
  margin-bottom: 18px;
}

.page-content ul li {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 6px;
}

.content-with-image {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.content-with-image.reverse {
  flex-direction: row-reverse;
}

.content-text {
  flex: 1;
}

.content-image {
  flex: 0 0 400px;
}

.content-image img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.cta-banner {
  background: #429dff;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.cta-banner h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.cta-banner .btn {
  font-size: 16px;
  padding: 14px 36px;
}

/* Services pages: light blue CTA to match original */
.cta-banner.cta-banner--services {
  background: #84b6ec;
  padding: 50px 20px;
}

.cta-banner--services .btn-primary {
  background: #429dff;
  border-color: #429dff;
  color: #fff;
}

.cta-banner--services .btn-primary:hover {
  background: #2b7bdb;
  border-color: #2b7bdb;
  color: #fff;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-card .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #e8f0fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-card .icon svg {
  width: 24px;
  height: 24px;
  fill: #1a3c5e;
}

.contact-info-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a3c5e;
  margin-bottom: 4px;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 16px;
  color: #444;
}

.contact-page-title {
  color: #429dff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.contact-social-links a {
  display: inline-flex;
}

.contact-social-links img {
  width: 32px;
  height: 32px;
  opacity: 0.85;
}

.contact-form-wrap {
  min-height: 200px;
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 12px;
}

.contact-map-section {
  width: 100%;
  margin: 0;
}

.contact-map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.first-visit-list {
  list-style: none;
  padding-left: 0;
}

.first-visit-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.first-visit-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #429dff;
  font-weight: 700;
}

.about-team {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}

.about-team.reverse {
  flex-direction: row-reverse;
}

.about-team-photo {
  flex: 0 0 350px;
}

.about-team-photo img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-team-content {
  flex: 1;
}

.about-team-content h2 {
  color: #1a3c5e;
  font-size: 28px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
}

/* Full-width subheader image (e.g. About page) - span 100% of viewport */
.page-subheader {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  line-height: 0;
  box-sizing: border-box;
}

.page-subheader img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 400px;
}

/* Meet the Team section */
.meet-the-team {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.meet-the-team h2 {
  text-align: center;
  color: #429dff;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  margin-top: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}

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

.team-card-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #f0f0f0;
}

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

.team-card-name {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.team-card-title {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

.referral-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 40px 0;
}

.referral-step {
  text-align: center;
  padding: 32px 24px;
  background: #f8f9fc;
  border-radius: 12px;
}

.referral-step .step-number {
  width: 48px;
  height: 48px;
  background: #429dff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.referral-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a3c5e;
}

.referral-step p {
  font-size: 15px;
  color: #555;
}

.sitemap-list h2 {
  font-size: 22px;
  font-weight: 600;
  color: #1a3c5e;
  margin: 32px 0 12px;
}

.sitemap-list h2:first-child {
  margin-top: 0;
}

.sitemap-list ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.sitemap-list ul li {
  margin-bottom: 8px;
}

.sitemap-list a {
  color: #1a3c5e;
  text-decoration: none;
  font-size: 16px;
}

.sitemap-list a:hover {
  text-decoration: underline;
}

/* --- Blog Feed Page (home.php) - Card grid matching reference --- */
.blog-feed-page {
  padding-bottom: 0;
}

.blog-feed-hero {
  position: relative;
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-color: #e8f0fe;
}

.blog-feed-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 126, 194, 0.15) 0%,
    rgba(26, 60, 94, 0.08) 100%
  );
}

.blog-feed-content {
  padding-top: 48px;
  padding-bottom: 64px;
}

.blog-feed-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #147ec2;
  margin-bottom: 40px;
}

.blog-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-feed-card {
  background: #fff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.blog-feed-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.blog-feed-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-feed-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8f0fe;
}

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

.blog-feed-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-feed-card-image-placeholder .placeholder-text {
  font-size: 14px;
  color: #94a3b8;
}

.blog-feed-card-body {
  padding: 20px;
}

.blog-feed-card-meta {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.blog-feed-card-sep {
  margin: 0 6px;
}

.blog-feed-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a3c5e;
  line-height: 1.35;
  margin: 0 0 10px;
}

.blog-feed-card-link:hover .blog-feed-card-title {
  color: #147ec2;
}

.blog-feed-card-excerpt {
  font-size: 15px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
}

.blog-feed-card-stats {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #94a3b8;
}

.blog-feed-stat-views::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 12px;
  margin-right: 6px;
  vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
}

.blog-feed-stat-comments::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 14px;
  margin-right: 6px;
  vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
}

.blog-feed-page .nav-links,
.blog-feed-page .pagination {
  margin-top: 48px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-feed-page .nav-links a,
.blog-feed-page .nav-links span {
  display: inline-block;
  padding: 8px 16px;
  font-size: 15px;
  color: #147ec2;
  text-decoration: none;
  border: 1px solid #e5e8ec;
  border-radius: 4px;
  background: #fff;
}

.blog-feed-page .nav-links a:hover {
  background: #f8fbff;
  border-color: #147ec2;
}

.blog-feed-page .nav-links .current {
  background: #147ec2;
  color: #fff;
  border-color: #147ec2;
}

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

@media (max-width: 600px) {
  .blog-feed-hero {
    height: 200px;
  }

  .blog-feed-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-feed-title {
    font-size: 24px;
    margin-bottom: 28px;
  }
}

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

  .services-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-with-image {
    flex-direction: column;
  }

  .content-with-image.reverse {
    flex-direction: column;
  }

  .content-image {
    flex: none;
    width: 100%;
    max-width: 500px;
  }

  .about-team {
    flex-direction: column;
  }

  .about-team.reverse {
    flex-direction: column;
  }

  .about-team-photo {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 32px;
  }

  .meet-the-team {
    margin-top: 48px;
    padding-top: 40px;
  }

  .meet-the-team h2 {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .referral-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-hero,
  .page-hero.page-hero--services,
  .page-hero.page-hero--about {
    padding: 30px 0 20px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .page-content {
    padding: 40px 0;
  }

  .page-content--services .page-content-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }

  .page-content--services .page-content-intro .page-feature-image {
    margin-bottom: 0;
  }

  .page-content h2 {
    font-size: 24px;
  }

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

  .cta-banner {
    padding: 40px 20px;
  }

  .cta-banner h2 {
    font-size: 26px;
  }
}
