/* Modern Responsive Design for Best Rehab Nearby */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f0e6;
  overflow-x: hidden;
}

/* CSS Variables for consistent theming */
:root {
  --primary-color: #24391b;
  --secondary-color: #2e5d31;
  --accent-color: #8fbc8f;
  --text-color: #333;
  --light-bg: #f8f0e6;
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, #2f4a23 100%);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --mobile-section-padding: 40px 0;
}

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

.section {
  padding: var(--section-padding);
}

.section-mobile {
  padding: var(--mobile-section-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Header and Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  color: white;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
  animation: heroGlassAppear 2s ease-out;
}

@keyframes heroGlassAppear {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}

.header {
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

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

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
  padding: 10px;
  border-radius: 10px;
}

.logo {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 16px rgba(255, 255, 255, 0.3);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 80px;
}

.hero-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 80px 0 40px 0;
  position: relative;
  z-index: 10;
}

.hero-content h1 {
  color: white;
  margin-bottom: 1rem;
  text-shadow: 
    2px 2px 8px rgba(0, 0, 0, 0.4),
    4px 4px 16px rgba(0, 0, 0, 0.25),
    1px 1px 3px rgba(0, 0, 0, 0.5);
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.3;
  
  /* Simple fade-in animation */
  animation: titleAppear 1.5s ease-out;
}

@keyframes titleAppear {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #e0e0e0;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: rgba(36, 57, 27, 0.6);
  color: white;
  border: none;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: rgba(255, 252, 249, 0.95);
  color: var(--primary-color);
  text-shadow: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: #fffcf9;
  color: var(--primary-color);
}

.btn-large {
  padding: 20px 40px;
  font-size: 1.3rem;
}

/* CTA Sections */
.cta-section {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 60px 0;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-style: italic;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Content Sections */
.content-section {
  padding: 80px 0;
  background: #fffcf9;
}

.content-section:nth-child(even) {
  background: var(--light-bg);
}

/* Therapy Section with distinct background */
.therapy-section {
  background: #fffcf9 !important;
  border-top: 1px solid #e6d4c1;
  border-bottom: 1px solid #e6d4c1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.column {
  display: flex;
  flex-direction: column;
}

/* Checkmarks List */
.checkmarks-list {
  list-style: none;
  margin-top: 20px;
}

.checkmarks-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.checkmarks-list li::before {
  content: '✅';
  margin-right: 15px;
  font-size: 1.2rem;
}

/* Three Column Layout (CTA + Treatment Content) */
.three-column-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.cta-sidebar {
  background: var(--gradient);
  color: white;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  position: relative;
}

.cta-sidebar .cta-content h2 {
  color: white !important;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.cta-sidebar .cta-subtitle {
  font-style: italic;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-size: 1rem;
}

.cta-sidebar .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.treatment-content {
  flex: 1;
}

.sidebar-checklist {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mission CTA Layout (2/3 + 1/3) */
.mission-cta-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.mission-content {
  flex: 1;
}

.cta-sidebar-alt {
  background: var(--gradient);
  color: white;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  position: relative;
}

.cta-sidebar-alt .cta-content h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.cta-sidebar-alt .cta-subtitle {
  font-style: italic;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-size: 1rem;
}

.cta-sidebar-alt .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.sidebar-checklist .checkmarks-list {
  text-align: left;
  margin-top: 0;
}

.sidebar-checklist .checkmarks-list li {
  color: white;
  font-size: 1rem;
  margin-bottom: 12px;
}

.sidebar-checklist .checkmarks-list li::before {
  content: '✅';
  margin-right: 12px;
  font-size: 1rem;
}

/* Clinical Specialties */
.specialties-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.doctor-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.specialty-item {
  background: var(--primary-color);
  color: white;
  padding: 15px 20px;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Treatment Types Grid */
.treatment-types {
  background: linear-gradient(var(--primary-color), var(--accent-color)), url('./images/footer.png');
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  color: white;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.treatment-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

/* Therapy Programs Toggle */
.therapy-programs {
  max-width: 900px;
  margin: 0 auto;
}

.toggle-item {
  border-bottom: 1px solid #e6d4c1;
  margin-bottom: 10px;
}

.toggle-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-header:hover {
  background-color: #fffcf9;
}

.toggle-icon {
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.toggle-header.active .toggle-icon {
  transform: rotate(90deg);
}

.toggle-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.toggle-content {
  display: none;
  padding: 0 40px 25px 40px;
  background: #fffcf9;
  border-radius: var(--border-radius);
  margin-bottom: 10px;
}

.toggle-content.active {
  display: block;
}

/* Gallery */
.gallery {
  height: 400px;
  overflow: hidden;
  border-radius: var(--border-radius);
  position: relative;
  box-shadow: var(--shadow);
}

.gallery-track {
  display: flex;
  height: 100%;
  animation: scroll 60s linear infinite;
}

.gallery img {
  height: 100%;
  width: 300px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 10px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  width: 50px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Reviews Section */
.reviews-section {
  background: #fffcf9;
  text-align: center;
  border-top: 1px solid #e6d4c1;
  border-bottom: 1px solid #e6d4c1;
}

.google-logo {
  max-width: 300px;
  margin-bottom: 20px;
}

/* Old reviews-grid styles moved to Traditional Google Reviews Styling section below */

.review-image {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(2, 56, 45, 0.3);
}

/* Traditional Google Reviews Styling */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.review-card {
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 6px rgba(32,33,36,.28);
  transition: box-shadow 0.2s ease;
  position: relative;
}

.review-card:hover {
  box-shadow: 0 2px 8px rgba(32,33,36,.28);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

.review-profile-image {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0;
}

.review-google-icon {
  width: 40px;
  height: 40px;
  background: #4285f4;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 16px;
  flex-shrink: 0;
}

.review-author {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.review-author-name {
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;
  line-height: 20px;
  margin: 0;
}

.review-count {
  font-size: 12px;
  color: #5f6368;
  line-height: 16px;
  margin: 0;
}

.review-rating-date {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.review-star {
  color: #fbbc04;
  font-size: 14px;
  line-height: 1;
}

.review-date {
  font-size: 12px;
  color: #5f6368;
  line-height: 16px;
}

.review-text {
  font-size: 14px;
  line-height: 20px;
  color: #3c4043;
  margin: 0;
  word-wrap: break-word;
  text-align: left;
}

/* Google Reviews Section Header Improvements */
.reviews-section .section-header {
  margin-bottom: 32px;
  text-align: center;
}

.reviews-section .google-logo {
  max-width: 200px;
  margin-bottom: 16px;
}

.reviews-section h2 {
  color: #3c4043;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  text-align: center;
}

.reviews-section .section-subtitle {
  color: #5f6368;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  text-align: center !important;
}

/* Extra specific rule to ensure centering */
.reviews-section .section-header .section-subtitle {
  text-align: center !important;
}

/* Maximum specificity rule for subtitle centering */
section.reviews-section div.container div.section-header p.section-subtitle {
  text-align: center !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Mobile responsiveness for Google reviews */
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
  }
  
  .review-card {
    padding: 12px;
  }
  
  .review-header {
    gap: 8px;
  }
  
  .review-author {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  
  .review-profile-image {
    width: 32px !important;
    height: 32px !important;
  }
  
  .review-google-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .review-author-name {
    font-size: 13px;
  }
  
  .review-count {
    font-size: 11px;
  }
  
  .review-text {
    font-size: 13px;
    line-height: 18px;
    text-align: left;
  }
  
  .review-date {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #fffcf9;
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  color: #333;
  text-align: justify;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
  font-weight: bold;
}

.popup-content h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.popup-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #333;
}

.popup-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Info Button */
.info-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.info-btn:hover {
  background: rgba(255, 252, 249, 1);
  color: var(--primary-color);
  text-shadow: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.info-btn:hover .info-icon {
  content: url('images/more-info-color.png');
}

.info-icon {
  width: 16px;
  height: 16px;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--accent-color);
  text-align: center;
  padding: 40px 0;
}

.footer p {
  margin-bottom: 10px;
  font-size: 0.6rem;
  line-height: 1.4;
}

.footer a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 40px 0;
  }

  .container {
    padding: 0 15px;
  }

  .header {
    padding: 5px 0;
  }

  .hero-section {
    min-height: 50vh;
  }

  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .hero-actions {
    display: none;
  }

  .logo-section {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .logo {
    height: 60px;
  }

  .brand-name {
    font-size: 1.8rem;
  }

  .hero-content h1 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .three-column-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-sidebar {
    order: -1;
    margin-bottom: 20px;
    padding: 30px 20px;
  }

  .mission-cta-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-sidebar-alt {
    order: -1;
    margin-bottom: 20px;
    padding: 30px 20px;
  }

  .cta-sidebar-alt .cta-content h2 {
    font-size: 1.5rem;
  }

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

  .specialties-section {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .doctor-image {
    max-width: 300px;
    margin: 0 auto;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .toggle-content {
    padding: 0 20px 25px 20px;
  }

  /* reviews-grid mobile styles are now in Traditional Google Reviews section above */

  .gallery {
    height: 250px;
  }

  .gallery img {
    width: 200px;
  }

  .popup-content {
    padding: 30px 20px;
    margin: 20px;
  }

  /* Lightbox Mobile Styles */
  .lightbox-close {
    top: -40px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }

  .lightbox-nav {
    font-size: 24px;
    width: 40px;
    height: 60px;
  }

  .lightbox-prev {
    left: -50px;
  }

  .lightbox-next {
    right: -50px;
  }

  .lightbox-counter {
    font-size: 14px;
    padding: 6px 12px;
  }
}

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

  .btn {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .btn-large {
    padding: 15px 25px;
    font-size: 1.1rem;
  }

  .section-padding {
    padding: 30px 0;
  }

  .gallery {
    height: 200px;
  }

  .gallery img {
    width: 150px;
  }

  /* Lightbox Small Mobile Styles */
  .lightbox-container {
    max-width: 95%;
    max-height: 95%;
  }

  .lightbox-close {
    top: -30px;
    right: -10px;
    font-size: 24px;
    width: 35px;
    height: 35px;
  }

  .lightbox-nav {
    font-size: 20px;
    width: 35px;
    height: 50px;
  }

  .lightbox-prev {
    left: -40px;
  }

  .lightbox-next {
    right: -40px;
  }

  .lightbox-counter {
    bottom: -30px;
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* Responsive styles for new gallery options */
@media (max-width: 768px) {
  .gallery-masonry {
    columns: 2;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .gallery-grid img {
    height: 150px;
  }
  
  .gallery-grid.collapsed {
    max-height: 340px; /* Adjust for tablet - 2 rows at 150px height + gaps */
  }
  
  .gallery-controlled,
  .gallery-slideshow {
    height: 250px;
  }
  
  .gallery-main-image {
    height: 250px;
  }
  
  .gallery-thumbnails img {
    width: 60px;
    height: 60px;
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .gallery-masonry {
    columns: 1;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .gallery-grid img {
    height: 120px;
  }
  
  .gallery-grid.collapsed {
    max-height: 260px; /* Mobile - 2 rows at 120px height + gaps */
  }
  
  .gallery-controlled,
  .gallery-slideshow {
    height: 200px;
  }
  
  .gallery-main-image {
    height: 200px;
  }
  
  .gallery-thumbnails {
    gap: 5px;
  }
  
  .gallery-thumbnails img {
    width: 50px;
    height: 50px;
  }
  
  .gallery-nav {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .gallery-nav.prev {
    left: 10px;
  }
  
  .gallery-nav.next {
    right: 10px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }
.visible { display: block; }

/* Focus and Accessibility */
.btn:focus,
.toggle-header:focus,
.info-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .hero-section,
  .cta-section,
  .footer {
    background: #fffcf9 !important;
    color: black !important;
  }
  
  .btn {
    border: 1px solid black !important;
    background: #fffcf9 !important;
    color: black !important;
  }
}

/* Gallery Grid Option - Alternative to carousel */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Gallery Show More/Less Functionality */
.gallery-grid.collapsed {
  max-height: 440px; /* Shows approximately 2 rows */
  overflow: hidden;
  position: relative;
}

.gallery-grid.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--light-bg));
  pointer-events: none;
}

.gallery-grid.expanded {
  max-height: none;
  overflow: visible;
}

.gallery-toggle {
  text-align: center;
  margin-top: 30px;
}

.gallery-toggle .btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1rem;
  background: var(--primary-color);
  border: none;
  color: white;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: none;
}

.gallery-toggle .btn:hover {
  background: var(--primary-color);
  color: white;
  transform: none;
  box-shadow: none;
  border: none;
  opacity: 1;
}

.gallery-toggle .btn:focus {
  outline: none;
  box-shadow: none;
  border: none;
}

.gallery-toggle .btn:active {
  background: var(--primary-color);
  transform: none;
  box-shadow: none;
  outline: none;
  border: none;
}

.gallery-toggle .toggle-icon {
  font-size: 16px;
  color: white;
  transition: transform 0.3s ease;
}

.gallery-grid.expanded + .gallery-toggle .toggle-icon {
  transform: rotate(180deg);
}

/* Masonry Grid Option */
.gallery-masonry {
  columns: 4;
  column-gap: 20px;
  margin-top: 40px;
}

.gallery-masonry img {
  width: 100%;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform 0.3s ease;
  break-inside: avoid;
}

.gallery-masonry img:hover {
  transform: scale(1.02);
}

/* Controlled Carousel with Navigation */
.gallery-controlled {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.gallery-controlled .gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  /* Remove auto-animation */
  animation: none;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: var(--primary-color);
  z-index: 10;
  transition: background 0.3s ease;
}

.gallery-nav:hover {
  background: #fffcf9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.gallery-dot.active {
  background: var(--primary-color);
}

/* Slideshow Style */
.gallery-slideshow {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.gallery-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.gallery-slideshow .slide.active {
  opacity: 1;
}

.gallery-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnail Gallery */
.gallery-thumbnail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-main-image {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}

.gallery-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
  opacity: 1;
  transform: scale(1.1);
}

/* Styles for Privacy Policy and Terms of Service pages */
/* Clean titles with primary green color and no effects */
.content-section h1,
.content-section h2, 
.content-section h3 {
  color: var(--primary-color) !important;
  text-shadow: none !important;
  filter: none !important;
  transform: none !important;
  background: none !important;
}

/* Hero section titles for Privacy Policy and Terms of Service pages */
.hero-content h1.privacy-title,
.hero-content h1.terms-title {
  color: var(--primary-color) !important;
  text-shadow: none !important;
  filter: none !important;
  transform: none !important;
  background: none !important;
}

/* Smaller green back to home button for privacy and terms pages */
.btn-outline.back-to-home {
  background: var(--primary-color) !important;
  color: white !important;
  border: 2px solid var(--primary-color) !important;
  padding: 12px 24px !important;
  font-size: 1rem !important;
  text-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.btn-outline.back-to-home:hover {
  background: #2f4a23 !important;
  color: white !important;
  border: 2px solid #2f4a23 !important;
  text-shadow: none !important;
  transform: translateY(-1px) !important;
}