/* Basic styles for Ansa Therapies */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body { 
  font-family: Arial, sans-serif; 
  margin: 0; 
  padding: 0; 
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  padding-top: 80px; /* For fixed header */
}

/* Typography */
h1, h2, h3, h4, h5, h6 { 
  color: #333; 
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

a { 
  color: #9b8bbf; /* Updated to pastel purple from logo */
  text-decoration: none; 
  transition: color 0.3s ease;
}

a:hover { 
  text-decoration: underline; 
  color: #7c6ba1; /* Darker shade of pastel purple */
}

p {
  margin-bottom: 1rem;
}

/* Layout */
.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px; /* Increased from 15px */
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 15px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.col-md-8 {
  flex: 0 0 66.666%;
  max-width: 66.666%;
  padding: 0 15px;
}

@media (max-width: 768px) {
  .col-md-4, .col-md-6, .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .book-cover {
    max-width: 150px;
  }
  
  .book-image {
    max-width: 150px;
    max-height: 225px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
}

.text-center {
  text-align: center;
}

.text-white {
  color: white;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 2rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2rem 0;
}

.bg-light {
  background-color: #f3f0f9; /* Light pastel purple background */
}

.bg-primary {
  background-color: #9b8bbf; /* Pastel purple from logo */
}

.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.rounded {
  border-radius: 5px;
}

/* Header */
.header { 
  padding: 15px 0; 
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: padding 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  margin-left: 20px;
}

.nav-menu li a {
  color: #333;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-menu li a.active,
.nav-menu li a:hover {
  color: #9b8bbf; /* Updated to pastel purple from logo */
  text-decoration: none;
}

.nav-menu li a.active::after,
.nav-menu li a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #9b8bbf; /* Updated to pastel purple from logo */
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('Images/Polish_20220904_122102379.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: #9b8bbf; /* Updated to pastel purple from logo */
  color: white;
}

.btn-primary:hover {
  background-color: #7c6ba1; /* Darker shade of pastel purple */
  color: white;
}

.btn-secondary {
  background-color: #d4c5f9; /* Lighter pastel purple */
  color: #333;
}

.btn-secondary:hover {
  background-color: #b3a3e0; /* Medium pastel purple */
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #9b8bbf; /* Updated to pastel purple from logo */
  color: #9b8bbf;
}

.btn-outline:hover {
  background-color: #9b8bbf;
  color: white;
}

.btn-lg {
  padding: 12px 30px;
  font-size: 1.1rem;
}

/* Service Cards */
.service-card {
  padding: 2rem;
  margin-bottom: 2rem;
  background: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card h2, .service-card h3 {
  margin-top: 1rem;
}

.service-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.service-card .btn {
  align-self: flex-start;
}

/* Process Cards */
.process-card {
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
}

.process-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: #9b8bbf; /* Updated to pastel purple from logo */
  color: white;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Testimonial Cards */
.testimonial-card {
  padding: 2rem;
  margin-bottom: 2rem;
  background: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card p {
  flex-grow: 1;
  font-style: italic;
}

.client-name {
  font-weight: bold;
  margin-top: auto;
}

/* Book Cards */
.book-card {
  padding: 2rem;
  margin-bottom: 2rem;
  background: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

.book-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(155, 139, 191, 0.2);
}

.book-cover {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(1) contrast(1.05);
  display: block;
  margin: 0 auto;
}

.book-card:hover .book-image {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
}

.book-subtitle {
  color: #9b8bbf;
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.book-card:hover .book-subtitle {
  color: #7c6ba1;
}

.book-card h3 {
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.book-card:hover h3 {
  color: #9b8bbf;
}

.book-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.book-card:hover p {
  color: #555;
}

.book-card .btn {
  align-self: center;
  transition: all 0.3s ease;
}

.book-card:hover .btn {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(155, 139, 191, 0.3);
}

/* TikTok Carousel */
.tiktok-carousel-container {
  position: relative;
  width: 100%;
  margin: 1rem auto;
  left: 0;
  transform: none;
}

.tiktok-carousel-container::before,
.tiktok-carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 60px;
  pointer-events: none;
  z-index: 2;
}

.tiktok-carousel-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.tiktok-carousel-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.tiktok-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: scroll;
  overflow-y: hidden;
  padding: 1rem 0;
  scroll-behavior: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  white-space: nowrap;
  width: 100%;
}

.tiktok-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.tiktok-embed {
  flex: 0 0 320px;
  max-width: 320px;
  min-width: 320px;
  height: 740px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  vertical-align: top;
}

.tiktok-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.tiktok-embed:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tiktok-placeholder {
  flex: 0 0 320px;
  max-width: 320px;
  min-width: 320px;
  height: 400px;
  margin: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  text-align: center;
  transition: all 0.3s ease;
}

.tiktok-placeholder:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tiktok-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #000;
  color: white;
  border: 2px solid #000;
  transition: all 0.3s ease;
}

.tiktok-follow-btn:hover {
  background-color: #333;
  border-color: #333;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tiktok-follow-btn i {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .tiktok-embed {
    flex: 0 0 280px;
    max-width: 280px;
    min-width: 280px;
  }
  
  .tiktok-carousel {
    gap: 0.75rem;
    padding: 0.75rem 0;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-detail i {
  font-size: 1.5rem;
  color: #9b8bbf; /* Updated to pastel purple from logo */
  margin-right: 1rem;
  min-width: 30px;
  text-align: center;
}

.form-success {
  padding: 15px;
  background-color: #d4edda;
  color: #155724;
  border-radius: 5px;
  margin-top: 1rem;
  text-align: center;
}

/* Footer */
.footer { 
  background-color: #e8e3f0; /* Light pastel purple/lavender background to match logo */
  color: #333;
  padding: 3rem 0 1rem;
}

.footer h4 {
  color: #7c6ba1; /* Darker shade of pastel purple */
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #666;
}

.footer-links a:hover {
  color: #9b8bbf; /* Updated to pastel purple from logo */
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* Logo in footer */
.footer-logo {
  max-width: 180px;
  margin-bottom: 1rem;
  display: block;
}

/* About page */
.about-content {
  margin-bottom: 2rem;
}

.about-content ul {
  padding-left: 20px;
  margin-bottom: 1.5rem;
}

.about-sidebar {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 5px;
}

.about-sidebar img {
  margin-bottom: 1.5rem;
  border-radius: 5px;
}

.about-sidebar ul {
  padding-left: 20px;
}

/* Contact page */
.contact-info {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 5px;
  margin-bottom: 2rem;
  height: 100%;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  height: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .hero {
    padding: 6rem 0 3rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    margin: 0;
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .nav-menu li a.active::after,
  .nav-menu li a:hover::after {
    display: none;
  }
  
  .hero {
    padding: 5rem 0 3rem;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .service-card, 
  .testimonial-card, 
  .process-card {
    margin-bottom: 1.5rem;
  }
  
  .logo img {
    max-height: 40px;
  }
  
  .header-content {
    flex-wrap: wrap;
  }
  
  .header .btn-primary {
    display: none;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .footer [class*="col-"] {
    margin-bottom: 1.5rem;
  }
}

/* Header scroll effect */
.header.scrolled {
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
