/* css/fisioterapia.css */

/* Header Styling */
header.masthead.fisioterapia-header {
  background: linear-gradient(135deg, var(--color-3) 0%, var(--color-2) 100%);
  min-height: 50vh;
  height: auto;
  padding-top: 180px;
  padding-bottom: 120px;
  margin-bottom: 0;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

header.masthead.fisioterapia-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  pointer-events: none;
}

header.masthead.fisioterapia-header .intro-text {
  padding-top: 0;
  padding-bottom: 0;
  z-index: 1;
}

header.masthead.fisioterapia-header .intro-heading {
  font-family: var(--heading-font);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  letter-spacing: -1px;
}

/* Services List Section (New Layout) */
.services-section {
  padding: 80px 0;
  background-color: #fff;
}

.category-wrapper {
  padding: 0 15px;
}

.category-title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--color-3);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-2);
  font-weight: 700;
  text-align: left;
}

.treatment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.treatment-list li {
  display: flex;
  flex-direction: column; /* Changed to column to accommodate details */
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.treatment-header {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.treatment-details {
  padding-left: 75px; /* Align with text, skipping icon width + margin */
  padding-top: 10px;
  padding-right: 15px;
}

.treatment-details p {
  font-family: var(--body-font);
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

.treatment-list li:last-child {
  border-bottom: none;
}

.treatment-list li:hover {
  /* transform: translateX(10px); Removed to prevent layout jumping with open accordion */
  background-color: rgba(0, 0, 0, 0.01); /* Subtle highlight instead */
}

.icon-box {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.treatment-list li:hover .icon-box {
  /* background-color: var(--color-3); Removed hover background change */
  transform: scale(1.1); /* Optional: slight scale instead of color change */
}

.icon-box img {
  width: 32px;
  height: 32px;
  /* Use multiply to blend white background of icons with the container */
  mix-blend-mode: multiply;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.treatment-list li:hover .icon-box img {
  opacity: 1;
}

.treatment-list span {
  font-family: var(--body-font);
  font-size: 1.1rem;
  color: var(--text-heading);
  font-weight: 500;
}

.treatment-list li:hover span {
  color: var(--color-3);
}

.treatment-header i.fa-chevron-down {
  color: #ccc;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.treatment-header[aria-expanded="true"] i.fa-chevron-down {
  transform: rotate(180deg);
  color: var(--color-3);
}

/* Detailed Treatments Section */
.detailed-treatments {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.treatment-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.treatment-card:hover {
  transform: translateY(-5px);
}

@media (min-width: 992px) {
  .treatment-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 400px;
  }

  .treatment-card:nth-child(even) {
    flex-direction: row-reverse;
  }

  .treatment-image {
    width: 50%;
    position: relative;
    overflow: hidden;
  }

  .treatment-content {
    width: 50%;
    padding: 60px;
  }
}

.treatment-image {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.treatment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.treatment-card:hover .treatment-image img {
  transform: scale(1.1);
}

.treatment-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.treatment-title {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--color-3);
  margin-bottom: 20px;
  font-weight: 700;
}

.treatment-text {
  font-family: var(--body-font);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 0;
}

/* Section Headings */
.section-heading {
  margin-bottom: 15px;
  color: var(--text-heading);
}

.section-subheading {
  margin-bottom: 40px;
  font-family: var(--body-font);
  font-size: 1.2rem;
}
