/* treatments.css */
@import url('styles.css');

/* Treatment Hero */
.treatment-hero {
  text-align: center;
  padding: 2rem 0 2rem; /* Adjusted padding to give more breathing room */
}

.treatment-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem; /* Increased margin below for spacing */
}

.treatment-hero p {
  font-size: 1.3rem;
  color: #555;
}

/* Video Section */
.video-section {
  margin: 0; /* Removed any extra margins around video section */
  display: block;
  width: 100%;
  text-align: center;
  padding: 0; /* Ensure no additional padding */
}

/* Apply more direct spacing control to the video wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  width: 80%; /* Reduced width for a more compact look */
  margin: 0 auto; /* Center the video */
  margin-top: -1rem; /* Reduced negative margin to give a little space between the title and video */
  margin-bottom: -2.5rem; /* Increased negative margin to bring the video closer to the content below */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Treatment Content */
.treatment-content {
  margin: 3rem 0; /* Normal spacing for the text */
}

.treatment-text {
  max-width: 40rem;
  margin: 0 auto 1.5rem; /* Bottom margin to ensure text is not too tight */
  margin-top: -4rem; /* Increased negative margin to pull the text even closer to the video */
}

.treatment-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: var(--primary);
  margin-top: 1.5rem; /* Added margin-top for proper spacing */
  margin-bottom: 0.5rem; /* Keep bottom margin tighter for better flow */
  text-align: left;
}

.treatment-text p {
  margin-bottom: 0.8rem; /* Reduced space between paragraphs */
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.treatment-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem; /* Tightened gap between images */
  margin-top: 1rem; /* Reduced gap between images and content */
}

.treatment-images img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.treatment-images img:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .video-wrapper {
    margin: 0; /* Removed margin */
    border-radius: 0;
  }
  
  .treatment-text {
    padding: 0 1rem;
  }
  
  .treatment-images {
    grid-template-columns: 1fr;
  }
  
  .treatment-hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .treatment-text h2 {
    font-size: 1.8rem;
  }
  
  .treatment-images img {
    height: 250px;
  }
}


.youtube-placeholder {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background-color: #000;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.youtube-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-placeholder .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  background: url("https://img.icons8.com/ios-filled/100/ffffff/play--v1.png") no-repeat center center;
  background-size: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.85;
}