/* ==== Tillåt alltid att scroll “kedjas” vidare till body ==== */
html, body, section, main, .container {
  overscroll-behavior-y: auto !important;
}


/* General Section Styling */
section {
    padding: var(--space-xl) 0;
    margin-bottom: calc(var(--space-xl) * 1.5); /* Use calc() for multiplication */
}

/* Container Logic */
.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

/* Apply container-like constraints within sections */
main > section > *:not(.swiper) {
   max-width: 1100px;
   margin-left: auto;
   margin-right: auto;
   padding-left: var(--space-lg);
   padding-right: var(--space-lg);
}

/* Allow full-width sections if needed (like carousels) */
#gallery, #testimonials {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* Ensure headings within full-width sections respect container */
#gallery h2, #testimonials h2 {
   max-width: 1100px;
   margin-left: auto;
   margin-right: auto;
   padding-left: var(--space-lg);
   padding-right: var(--space-lg);
}

/* About Section */
.about-content {
    display: flex;
    gap: var(--space-xl);
    align-items: stretch; /* ensure all cards have equal height */
    flex-wrap: wrap;
    justify-content: center;
}

.about-content > div {
    flex-basis: 700px; /* wider for solo about */
    transition: transform 0.3s ease; /* smooth hover effect */
    max-width: 900px;
}

.about-content > div:hover {
    transform: scale(1.03); /* subtle enlarge on hover */
}

.about-content img {
    width: 350px; /* larger for solo display */
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: var(--space-md);
}

.about-content h3 {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    color: var(--verdant-green);
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

/* Collaborators Section */
.collaborators-content {
    display: flex;
    gap: var(--space-xl);
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-xl);
}

.collaborator-card {
    flex-basis: 450px;
    transition: transform 0.3s ease;
    background-color: rgba(255, 255, 255, 0.7);
    padding: var(--space-md);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.collaborator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.collaborator-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: var(--space-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.collaborator-card h3 {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    color: var(--verdant-green);
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

#collaborators p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-md);
    color: var(--earth);
}

/* CH-TREATMENT section styling */
.ch-treatment-info {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background-color: rgba(230, 242, 230, 0.4);
    border-radius: 8px;
    border-left: 3px solid var(--verdant-green);
}

.ch-treatment-info h4 {
    font-family: var(--font-sans);
    font-size: var(--text-md);
    color: var(--verdant-green);
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

.ch-treatment-info ul {
    list-style-type: none;
    padding-left: var(--space-md);
    margin-top: var(--space-sm);
}

.ch-treatment-info ul li {
    position: relative;
    padding-left: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.ch-treatment-info ul li:before {
    content: "•";
    color: var(--verdant-green);
    position: absolute;
    left: -15px;
    top: 0;
}

.ch-treatment-info a {
    color: var(--verdant-green);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ch-treatment-info a:hover {
    color: var(--forest);
}

/* Experience Section */
#experience p {
    max-width: 700px;
    /* margin-left/right auto handled by container logic above */
    text-align: center;
    font-size: var(--text-lg);
    color: var(--earth);
}

.experience-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: var(--space-md) auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Responsive adjustments for experience image */
@media (max-width: 768px) {
    .experience-image {
        width: 90%; /* Slightly smaller than container */
        max-height: 300px; /* Limit height on mobile */
        object-fit: cover; /* Maintain aspect ratio while covering space */
    }
}

/* Packages Section */
.package-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.package-item {
    border-radius: 8px;
    padding: var(--space-lg);
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* Special Event Section */
.special-event-container {
    background-color: rgba(var(--primary-green-rgb), 0.05);
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(var(--primary-green-rgb), 0.2);
}

.special-event-content {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.special-event-image {
    flex: 1;
    min-width: 300px;
}

.special-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.special-event-details {
    flex: 2;
}

.event-highlight {
    font-size: var(--text-lg);
    color: var(--verdant-green);
    margin-bottom: var(--space-md);
}

.event-features {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.event-features li {
    margin-bottom: var(--space-sm);
    position: relative;
}

.event-features li:before {
    content: "•";
    color: var(--verdant-green);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.event-dates {
    margin: var(--space-md) 0;
    font-size: var(--text-base);
}

.event-cta {
    margin-bottom: var(--space-md);
    font-weight: bold;
    color: var(--earth);
}

/* Responsive styles for special event section */
@media (max-width: 768px) {
    .special-event-content {
        flex-direction: column;
    }
    
    .special-event-image {
        min-width: 100%;
        max-height: 250px;
    }
      .special-event-image img {
        height: 250px;
    }
}

.package-item h3 {
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    color: var(--verdant-green);
    margin-top: 0;
    margin-bottom: var(--space-md);
}

.package-item p {
    margin-bottom: var(--space-sm);
    flex-grow: 1;
}

.package-item .price {
    font-weight: bold;
    color: var(--saddle-brown);
    font-size: var(--text-xl);
    margin-top: var(--space-lg);
    text-align: right;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    /* margin auto handled by container logic */
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.faq-question {
    font-size: var(--text-lg);
    font-family: var(--font-sans);
    color: var(--forest);
    margin: 0;
    padding: var(--space-md) var(--space-lg) var(--space-md) 0;
    cursor: pointer;
    position: relative;
    font-weight: 500;
}

.faq-question::after {
    content: '\25BC';
    position: absolute;
    right: 0;
    /* top: 0; -> align better vertically */
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: var(--text-sm);
    color: var(--sky-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '\25B2';
    transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 var(--space-lg) var(--space-md) var(--space-lg);
    color: var(--earth);
    font-size: var(--text-base);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed */
}

/* Se till att FAQ-sektionen inte fångar scrollen */
#faq, 
#faq .faq-list {
  overflow: visible !important;
  overscroll-behavior: auto !important;
}


/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-directions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ========== FullCalendar under Booking ========== */
#calendar {
  max-width: 900px;
  margin: 2rem auto;
  min-height: 600px;
}
/* ---------- Partner‐sektion ---------- */
#partners {
  background-color: var(--off-white);
  padding: var(--space-xl) var(--space-lg);
  border-radius: 8px;
  text-align: center;
  margin: var(--space-xl) auto;
   overflow: visible !important;
  overscroll-behavior: auto !important;
}

#partners h2 {
  font-family: var(--font-heading);
  color: var(--dark-green-text);
  margin-bottom: var(--space-md);
}

.partner-card a {
  display: inline-block;
  text-decoration: none;
  color: var(--primary-green);
}

.partner-logo {
  width: 400px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.partner-logo:hover {
  transform: translateY(-4px);
}

.partner-name {
  margin-top: var(--space-sm);
  font-size: 35px;
  font-weight: 600;
}

/* Therapist Credentials Section */
.therapist-credentials {
  background-color: rgba(247, 247, 242, 0.7);
  border-left: 4px solid var(--primary-green);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.therapist-credentials h3 {
  color: var(--dark-green-text);
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
}

.therapist-credentials p {
  color: var(--text-color-dark);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Research Section Styles */
#research {
  background-color: rgba(247, 247, 242, 0.5);
  padding: var(--space-xl) var(--space-md);
  margin: var(--space-xl) 0;
}

.research-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.research-content {
  padding: var(--space-lg);
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.research-content p {
  margin-bottom: var(--space-md);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--dark-green-text);
}

.research-btn {
  margin-top: var(--space-md);
  display: inline-block;
}

/* Research Page Specific Styles */
.simple-header {
  background-color: var(--primary-green);
  color: white;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  position: relative;
}

.simple-header h1 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.back-link {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--light-beige);
  text-decoration: underline;
}

.research-page {
  padding: var(--space-xl) var(--space-md);
}

.research-page .container {
  max-width: 800px;
  margin: 0 auto;
}

.research-item {
  margin-bottom: var(--space-xl);
  background-color: white;
  padding: var(--space-lg);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.research-item h3 {
  color: var(--dark-green-text);
  font-family: var(--font-serif);
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
}

.research-item p {
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.research-item ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.research-item li {
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.research-item a {
  color: var(--primary-green);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.research-item a:hover {
  color: var(--accent-terracotta);
}

.cta-container {
  text-align: center;
  margin-top: var(--space-xl);
  padding: var(--space-lg);
}
