.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #ff69b4;
  color: #f6f6f6;
  font-size: 24px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s, visibility 0.3s;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  background-color: #f0fff0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
  padding: 10px 20px;
}

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

.logo img {
  height: 50px;
  width: 50px;
}

.logo h1 {
  margin: 0 0 0 10px;
  font-size: 24px;
  color: #ffffff;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #ffffff;
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.site-nav li {
  margin-left: 20px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  color: #ffffff;
  transition: 0.3s;
}

.site-nav a:hover {
  color: #000000;
}

.cookies-section {
  background-color: #fceee6;
  padding: 20px;
}

.cookies-div p {
  margin: 0;
  font-size: 16px;
}

.cookies-button {
  margin: 5px;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  background-color: #ffb6c1;
  font-weight: 700;
}

.site-footer {
  background: linear-gradient(to right, #fad0c4, #ffd1ff);
  padding: 20px;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  height: 40px;
  width: 40px;
}

.footer-logo p {
  margin: 5px 0 0;
  font-weight: 700;
}

.footer-contact,
.footer-hours {
  margin: 0 20px;
}

.footer-socials {
  text-align: center;
  margin-top: 10px;
}

.footer-socials a img {
  height: 24px;
  width: 24px;
  margin: 0 5px;
}

.footer-links ul {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: flex;
}

.footer-links li {
  margin: 0 10px;
}

.footer-links a {
  text-decoration: none;
  color: #000000;
  font-weight: 700;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #ff69b4;
}

.footer-bottom {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    background-color: #ff9a9e;
    flex-direction: column;
    padding: 10px 0;
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .site-nav li {
    margin: 10px 0;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .logo h1 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 40px;
    width: 40px;
  }

  .logo h1 {
    font-size: 18px;
  }

  .cookies-div p {
    font-size: 14px;
  }

  .footer-links ul {
    flex-direction: column;
    align-items: center;
  }

  .footer-links li {
    margin: 5px 0;
  }
}

.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.hero-slider {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.hero-slide {
  display: none;
  position: relative;
  min-width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide.active {
  display: flex;
}

.hero-caption {
  position: absolute;
  bottom: 10%;
  left: 5%;
  color: #ffffff;
  max-width: 500px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-caption h2 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
}

.hero-caption p {
  margin: 0;
  font-size: 18px;
}

.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff;
  border: none;
  font-size: 16px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.hero-btn:hover {
  opacity: 1;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }

  .hero-caption h2 {
    font-size: 24px;
  }

  .hero-caption p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 40vh;
  }

  .hero-caption {
    bottom: 5%;
    left: 5%;
    padding: 10px;
  }

  .hero-caption h2 {
    font-size: 20px;
  }

  .hero-caption p {
    font-size: 14px;
  }

  .hero-btn {
    font-size: 14px;
    padding: 8px 12px;
  }
}

.about-clinic {
  position: relative;
  background: linear-gradient(120deg, #fcf5ff, #ffe6f2);
  padding: 100px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.about-clinic-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.about-clinic-image {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.about-clinic-image img {
  width: 80%;
  border-radius: 20px;
  animation: floatImage 8s ease-in-out infinite;
  transition: transform 1s ease;
}

.about-clinic-image img:hover {
  transform: scale(1.05);
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.about-clinic-content {
  flex: 1 1 50%;
  padding: 20px;
}

.about-clinic-content h2 {
  margin: 0 0 20px;
  font-size: 32px;
  color: #333;
}

.about-clinic-content p {
  margin: 0 0 15px;
  line-height: 1.6;
  color: #666;
}

@media (max-width: 768px) {
  .about-clinic-container {
    flex-direction: column;
    text-align: center;
  }
  .about-clinic-image,
  .about-clinic-content {
    flex: 1 1 100%;
  }
  .about-clinic-image img {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .about-clinic {
    clip-path: none;
  }
  .about-clinic-content h2 {
    font-size: 24px;
  }
  .about-clinic-content p {
    font-size: 14px;
  }
}

.services {
  position: relative;
  background: linear-gradient(to right, #fce1f3, #fef8e7);
  padding: 60px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  text-align: center;
}

.services h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #333;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.2);
}

.service-card img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #444;
}

.service-card p {
  color: #666;
  line-height: 1.5;
}

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

@media (max-width: 576px) {
  .services h2 {
    font-size: 28px;
  }
  .services-container {
    grid-template-columns: 1fr;
  }
  .service-card {
    margin: 0 auto;
    max-width: 400px;
  }
}

.clinic-benefits {
  background: linear-gradient(to left, #ece9ff, #ffe3f0);
  padding: 60px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  text-align: center;
}

.clinic-benefits h2 {
  margin-bottom: 40px;
  font-size: 36px;
  color: #333;
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s both;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.2);
}

.benefit-card img {
  width: 80px;
  margin-bottom: 20px;
  animation: floatIcon 6s ease-in-out infinite;
}

.benefit-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #444;
}

.benefit-card p {
  color: #666;
  line-height: 1.5;
}

@keyframes floatIcon {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 576px) {
  .clinic-benefits h2 {
    font-size: 28px;
  }
  .benefits-container {
    grid-template-columns: 1fr;
  }
  .benefit-card {
    margin: 0 auto;
    max-width: 400px;
  }
}

.testimonials {
  background: linear-gradient(to right, #ffedfb, #f0ffff);
  padding: 60px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 40px;
  font-size: 36px;
  color: #333;
}

.testimonials-container {
  display: grid;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  position: relative;
  animation: fadeInUp 1s ease forwards;
  transform: translateY(30px);
  opacity: 0;
}

.testimonial-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-card span {
  font-weight: 700;
  color: #333;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 576px) {
  .testimonials h2 {
    font-size: 28px;
  }
  .testimonials-container {
    grid-template-columns: 1fr;
  }
  .testimonial-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

.gallery {
  background: linear-gradient(to left, #f9efff, #fff4e7);
  padding: 60px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  text-align: center;
}

.gallery h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #333;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s ease;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

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

@media (max-width: 576px) {
  .gallery h2 {
    font-size: 28px;
  }
  .gallery-container {
    grid-template-columns: 1fr;
  }
  .gallery-item {
    max-width: 400px;
    margin: 0 auto;
  }
}

.clinic-conditions {
  background: linear-gradient(135deg, #fdf2ff, #ecfaff);
  padding: 60px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  text-align: center;
}

.clinic-conditions h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #333;
}

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

.conditions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.conditions-list li {
  position: relative;
  margin: 15px 0;
  padding-left: 40px;
  font-size: 18px;
  color: #555;
}

.conditions-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff69b4;
  font-size: 20px;
  transform: translateY(5px);
}

@media (max-width: 576px) {
  .clinic-conditions h2 {
    font-size: 28px;
  }
  .conditions-list li {
    font-size: 16px;
    padding-left: 30px;
  }
  .conditions-list li::before {
    font-size: 18px;
    transform: translateY(3px);
  }
}

.clinic-and-doctors {
  background: linear-gradient(to right, #f9efff, #e7faff);
  padding: 150px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.clinic-doctors-header {
  text-align: center;
  margin-bottom: 40px;
}

.clinic-doctors-header h2 {
  font-size: 36px;
  color: #333;
}

.clinic-doctors-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.clinic-details {
  flex: 1 1 100%;
  margin-bottom: 40px;
  text-align: left;
  animation: fadeIn 1.2s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.clinic-details p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

.doctor-profiles {
  flex: 1 1 100%;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.doctor-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.doctor-card img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 20px;
}

.doctor-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #444;
}

.doctor-card p {
  color: #666;
  line-height: 1.5;
  font-size: 16px;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 576px) {
  .clinic-doctors-header h2 {
    font-size: 28px;
  }
  .doctor-profiles {
    grid-template-columns: 1fr;
  }
  .doctor-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

.toggle-services {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  text-align: center;
}

.toggle-services h2 {
  margin-bottom: 30px;
  font-size: 36px;
  color: #333;
}

.services-buttons {
  margin-bottom: 40px;
}

.service-btn {
  background-color: #ff9a9e;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 20px;
  margin: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 5px;
  outline: none;
}

.service-btn:hover {
  background-color: #ff6a7c;
}

.service-btn.active {
  background-color: #ff6a7c;
}

.service-content {
  display: none;
  text-align: left;
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

.service-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.service-content h3 {
  margin-top: 0;
  font-size: 28px;
  margin-bottom: 20px;
  color: #444;
}

.service-content p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.service-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.service-content ul li {
  list-style: disc;
  margin-bottom: 10px;
  color: #555;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .service-btn {
    font-size: 14px;
    padding: 10px 15px;
  }
  .service-content h3 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .toggle-services h2 {
    font-size: 28px;
  }
  .service-btn {
    font-size: 14px;
    padding: 8px 10px;
    margin: 3px;
  }
  .service-content p {
    font-size: 14px;
  }
  .service-content ul li {
    margin-bottom: 8px;
  }
}

.contact-section {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  background-color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
}
.contact-section h2 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #333;
}
form#frm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
form#frm input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  width: 100%;
}
form#frm button {
  padding: 12px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  background-color: #4caf50;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.3s;
}
form#frm button:hover {
  background-color: #45a049;
}
#successMessage {
  display: none;
  text-align: center;
  padding: 20px;
  font-size: 20px;
  line-height: 1.5;
  color: #333;
}


.help-and-contacts {
  background: linear-gradient(to right, #fef6ff, #eefffa);
  padding: 100px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  text-align: center;
}

.help-and-contacts h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #333;
}

.help-and-contacts-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.contact-info,
.clinic-support,
.clinic-rules {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.contact-info h3,
.clinic-support h3,
.clinic-rules h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #444;
}

.contact-info p,
.clinic-support p,
.clinic-rules p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.clinic-rules ul {
  list-style: disc;
  margin-left: 40px;
  margin-bottom: 20px;
  color: #666;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .help-and-contacts-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .help-and-contacts-content {
    grid-template-columns: 1fr;
  }
  .help-and-contacts h2 {
    font-size: 28px;
  }
  .contact-info h3,
  .clinic-support h3,
  .clinic-rules h3 {
    font-size: 20px;
  }
  .help-and-contacts-content {
    gap: 20px;
  }
}

.title_background {
  background: linear-gradient(to right, #fce1f3, #f9efff);
  padding: 40px 20px;
  text-align: center;
}

.title_background .container {
  max-width: 1200px;
  margin: 0 auto;
}

.title_background .title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.text_background {
  background: linear-gradient(to left, #fdf2ff, #ecfaff);
  padding: 40px 20px;
}

.text_background .container {
  max-width: 1200px;
  margin: 0 auto;
}

.text_background .text {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

@media (max-width: 768px) {
  .title_background .title {
    font-size: 24px;
  }
  .text_background .text {
    font-size: 14px;
  }
}