/* Landing Page Styles for CamPlan */

/* Base Styles */
body {
  background: white;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: 50px; /* Reduced from 70px to 50px */
}

/* Navigation Styles */
.navbar {
  padding: 12px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7); /* More transparent like Apple's navbar */
  z-index: 100;
  backdrop-filter: blur(20px); /* Stronger blur effect like Apple's */
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Very subtle border */
  transition: all 0.3s ease;
}

/* Add this class for when the navbar is scrolled */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9); /* More opaque when scrolled */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Slightly more visible border when scrolled */
}

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

.logo-link {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.brand-logo {
  height: 30px;
  width: 30px;
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.nav-right {
  display: flex;
  align-items: center;
}

.navbar nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.navbar nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar nav a:hover {
  color: #000000;
}

.downloadButton {
  background-color: rgb(0, 0, 0);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.downloadButton:hover {
  background-color: rgb(50, 50, 50);
}

/* Grid Background */
.grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.2;
  z-index: -1;
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
}

/* When modal is shown, apply flex display */
.modal[style*="display: block"] {
  display: flex !important;
}

.modal-content {
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  border-radius: 10px;
  text-align: center;
  margin: 0;
}

.modal-content img {
  width: 100%;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 50px 20px 100px; /* Reduced top padding from 80px to 50px */
  min-height: calc(100vh - 50px); /* Adjusted to match new navbar height */
}

.hero-section .logo {
  max-width: 80px;
  height: auto;
}

.hero-section h1 {
  font-size: 4rem;
  margin-top: 10px;
  font-weight: 700;
}

/* Rating Section */
.rating-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 5px;
}

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

.wreath {
  width: 35px;
  height: auto;
}

.wreath-right {
  transform: scaleX(-1);
}

.star-rating {
  font-size: 1.5rem;
  color: #FFD700;
}

.rating-text, .user-count {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-top: 5px;
}

/* App Description */
.app-description h2 {
  font-size: 3rem;
  margin: 20px 0 10px;
}

.app-description p {
  font-size: 1.6rem;
  margin: 0 0 40px;
}

.hero-section .phones {
  max-width: 75%;
  max-height: 750px;
  height: auto;
}

/* How It Works Section */
.how-it-works {
  padding: 60px 20px;
  background-color: transparent;
}

/* Main Features Section */
.main-features-section {
  padding: 80px 20px;
  background-color: transparent;
}

.feature-showcase {
  margin: 80px 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-showcase:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-content {
  display: flex;
  align-items: stretch;
  min-height: 500px;
}

.feature-reverse .feature-content {
  flex-direction: row-reverse;
}

.feature-info {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-info h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.feature-info p {
  font-size: 1.3rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

.feature-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-benefits li {
  font-size: 1.2rem;
  color: #555;
  padding: 8px 0;
}

.feature-visual {
  flex: 1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 500px;
  line-height: 0; /* Add this to prevent inline spacing issues */
}

.feature-visual lottie-player {
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 400px;
}

.feature-visual video {
  display: block; /* Ensures proper box model behavior & allows margin auto */
  width: 100%;    /* Video will try to take full width of parent, up to max-width */
  max-width: 400px; /* Adjusted for a portrait aspect ratio, can be fine-tuned */
  height: auto;   /* Height is determined by width + aspect-ratio */
  margin: 0 auto; /* Centers the video if parent .feature-visual is wider */
  padding: 0; /* Explicitly remove padding */
  aspect-ratio: 810 / 1080; /* Sets the desired portrait aspect ratio */
  border: 1px solid #ccc;
  border-radius: 20px;
  object-fit: cover; /* Video content will cover the area, cropping if needed */
  vertical-align: top; /* Add this for good measure */
  /* background-color: #f8f9fa; Removed as it's usually not desired on the video tag itself */
}

/* FAQ Section */
.faq-section {
  background-color: rgb(242,242,247);
  padding: 40px 20px;
  margin-top: 60px;
}

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

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.benefit-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  height: 250px;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.benefit-icon {
  font-size: 2.5rem;
  color: #4a6cf7;
  margin-bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.benefit-icon i {
  font-size: 30px;
  color: rgb(0, 0, 0);
}

.benefit-text {
  display: flex;
  flex-direction: column;
  height: 140px;
}

.benefit-text h3 {
  font-size: 1.4rem;
  margin: 0 0 10px;
  color: #333;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-text p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
  height: 85px;
  overflow: hidden;
}

/* FAQ Container */
.faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.faq-question {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
  padding: 10px 15px;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid #eee;
}

.faq-question .chevron {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  display: inline-block;
}

.faq-question .chevron.expanded {
  transform: translateY(-50%) rotate(90deg);
}

.faq-answer {
  font-size: 1.2rem;
  padding: 10px 15px;
  display: none;
  line-height: 1.6;
  color: #555;
}

.faq-question .chevron img {
  width: 12px;
  height: 12px;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-section .phones {
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .app-description h2 {
    font-size: 2.2rem;
  }
  
  .app-description p {
    font-size: 1.4rem;
  }
  
  .hero-section .phones {
    max-width: 80%;
  }
  
  .grid-background {
    background-size: 20px 20px;
  }
  
  .wreath {
    width: 30px;
  }
  
  .star-rating {
    font-size: 1.3rem;
  }
  
  .rating-text, .user-count {
    font-size: 1rem;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .benefit-item {
    padding: 20px;
    height: 230px;
  }
  
  .benefit-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  
  .benefit-text h3 {
    font-size: 1.5rem;
  }
  
  .benefit-text p {
    font-size: 1.1rem;
  }
  
  .nav-item:not(.mobile-visible) {
    display: none;
  }
  
  /* Hide Businesses link on mobile */
  .nav-item a[href="contact.html"] {
    display: none;
  }
  
  .navbar nav ul {
    gap: 15px;
  }
  
  .navbar .container {
    padding: 0 15px;
  }
}

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

@media (max-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .benefit-item {
    height: 250px;
  }
  
  .benefit-icon {
    width: 65px;
    height: 65px;
  }
  
  .benefit-text {
    height: 145px;
  }
  
  .benefit-text h3 {
    height: 35px;
    font-size: 1.5rem;
  }
  
  .benefit-text p {
    height: 90px;
    font-size: 1.15rem;
  }
}

@media (max-width: 576px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .benefit-item {
    height: 230px;
  }
  
  .benefit-icon {
    width: 55px;
    height: 55px;
  }
  
  .benefit-icon i {
    font-size: 30px;
    color: rgb(0, 0, 0);
  }
  
  .benefit-text {
    height: 135px;
  }
  
  .benefit-text h3 {
    height: 30px;
    font-size: 1.5rem;
  }
  
  .benefit-text p {
    height: 85px;
    font-size: 1.1rem;
  }
}

/* Footer Styles */
.footerBackground {
  background-color: rgb(30, 30, 30);
  padding: 40px 0;
  margin-top: 0;
}

.footerHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.footerHeader img {
  width: 40px;
  height: auto;
  margin-right: 10px;
}

.footerHeader h1 {
  font-size: 1.8rem;
  margin: 0;
}

.footerNav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footerNav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

.footerNav a:hover {
  color: rgb(50, 50, 50);
}

.copyrightText {
  text-align: center;
  color: white;
  font-size: 0.9rem;
  margin: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Pricing Page Styles */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.pricing-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border: 2px solid #000000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.pricing-badge {
  background: #000000;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 25px;
}

.pricing-header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
}

.price span {
  font-size: 1.2rem;
  font-weight: 400;
  color: #666;
}

.pricing-features {
  flex-grow: 1;
  margin-bottom: 25px;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 1.1rem;
}

.feature-check {
  color: #000000;
  font-weight: bold;
  margin-right: 10px;
}

.feature-x {
  color: #ff3b30;
  font-weight: bold;
  margin-right: 10px;
}

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

.contact-button {
  display: inline-block;
  background-color: #000000;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.contact-button:hover {
  background-color: #333333;
}

.pricing-faq {
  margin-top: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-faq h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.pricing-faq .faq-item {
  margin-bottom: 25px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pricing-faq h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.pricing-faq p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .price {
    font-size: 2.5rem;
  }
  
  .pricing-features li {
    font-size: 1rem;
  }
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
  .footerBackground {
    padding: 30px 0;
  }
  
  .footerHeader {
    margin-bottom: 15px;
  }
  
  .footerHeader img {
    width: 30px;
  }
  
  .footerHeader h1 {
    font-size: 1.5rem;
  }
  
  .footerNav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 15px;
    text-align: center;
  }
  
  .footerNav a {
    font-size: 1rem;
    padding: 5px 0;
  }
}

@media (max-width: 480px) {
  .footerNav {
    gap: 6px;
  }
  
  .footerBackground {
    padding: 20px 0;
  }
}

/* Contact Page Styles */
.contact-section {
  padding: 80px 0;
  background-color: #fff;
}

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

.contact-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #333;
}

.contact-subtitle {
  font-size: 1.5rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 280px;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  color: #000;
  margin-bottom: 20px;
}

.contact-card h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
}

.contact-card p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.direct-contact {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.direct-contact h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-method i {
  font-size: 1.5rem;
  color: #000;
}

.contact-method p {
  font-size: 1.2rem;
  color: #333;
  margin: 0;
}

.contact-method a {
  color: #000;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-method a:hover {
  color: #333;
}

/* Responsive styles for contact page */
@media (max-width: 992px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0;
  }
  
  .contact-header h1 {
    font-size: 2.5rem;
  }
  
  .contact-subtitle {
    font-size: 1.3rem;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-card {
    height: auto;
    padding: 25px;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-method {
    justify-content: center;
  }
}

/* Footer Customer Links */
.footerCustomerLinks {
  margin: 30px 0;
  text-align: center;
}

.footerCustomerLinks h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

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

.customerLinksGrid a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 5px 0;
}

.customerLinksGrid a:hover {
  color: #fff;
  text-decoration: underline;
}

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

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

.footerUseCases {
  margin: 30px 0;
  text-align: center;
}

.footerUseCases h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

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

.useCasesGrid a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 5px 0;
}

.useCasesGrid a:hover {
  color: #fff;
  text-decoration: underline;
}

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

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

/* Responsive styles for main features */
@media (max-width: 992px) {
  .feature-content {
    flex-direction: column;
    min-height: auto;
  }
  
  .feature-reverse .feature-content {
    flex-direction: column;
  }
  
  .feature-info {
    padding: 40px;
    order: 2;
  }
  
  .feature-visual {
    order: 1;
    min-height: 400px;
  }
  
  .feature-info h3 {
    font-size: 2rem;
  }
  
  .feature-info p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .main-features-section {
    padding: 60px 20px;
  }
  
  .feature-showcase {
    margin: 60px 0;
    border-radius: 15px;
  }
  
  .feature-visual {
    min-height: 300px;
    padding: 30px;
  }
  
  .feature-info {
    padding: 30px;
  }
  
  .feature-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .feature-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  
  .feature-benefits li {
    font-size: 1rem;
    padding: 6px 0;
  }
}

@media (max-width: 480px) {
  .feature-visual {
    min-height: 250px;
    padding: 20px;
  }
  
  .feature-info {
    padding: 25px;
  }
  
  .feature-info h3 {
    font-size: 1.6rem;
  }
  
  .feature-info p {
    font-size: 1rem;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-title p {
  font-size: 1.6rem;
  margin: 0;
  color: #555;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 16px;
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
  /* Fixed height ensures uniformity */
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-animation {
  height: 250px;
  width: 100%;
}

.feature-animation lottie-player {
  width: 100%;
  height: 100%;
}

.feature-text {
  padding-top: 10px;
}

.feature-item h3 {
  font-size: 1.8rem;
  margin: 0 0 5px;
}

.feature-item p {
  font-size: 1.4rem;
  margin: 0;
}

/* Before & After Showcase Section */
.before-after-showcase-section {
  padding: 60px 20px;
  background-color: transparent; /* Changed to transparent */
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.before-after-item {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  text-align: center;
  padding: 20px;
  overflow: hidden; /* Ensures image corners respect border-radius if image is direct child */
}

.before-after-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px; /* Rounded corners for the images */
  margin-bottom: 15px;
  object-fit: cover; /* Ensures images fill their space nicely */
}

.before-after-item h4 {
  font-size: 1.3rem;
  color: #333;
  margin: 0;
}

/* Responsive adjustments for Before & After Showcase */
@media (max-width: 768px) {
  .before-after-grid {
    grid-template-columns: 1fr; /* Stack vertically on smaller screens */
    gap: 25px;
  }

  .before-after-item h4 {
    font-size: 1.2rem;
  }
} 