@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

    /* Base and font */
    body {
      font-family: 'Poppins', sans-serif;
      background-color: #fff7f5;
      color: #0c0c3f;
      scroll-behavior: smooth;
    }

    /* Orange-Red Theme Colors */
    :root {
      --primary-color: #de3a2b;
      --primary-hover: yellow;
      --secondary-color: #de3a2b;
      --accent-color: #ffccbc;
      --text-dark: #0c0c3f;
      --text-light: #fff7f5;
    }

 /* Footer */

    img{
    max-width: 100%;
    height: auto;
}   

    footer {
      background-color: rgba(0, 0, 0, 0.1);
      color: var(--text-light);
      padding: 3rem 1.5rem 2rem;
      border-radius: 1.5rem 1.5rem 0 0;
      user-select: none;
    }
    .footer-main {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: space-between;
      font-size: 0.9rem;
    }
    .footer-column {
      flex: 1 1 220px;
      min-width: 180px;
    }
    .footer-column a {
        color: #5f3b26;
        text-decoration: none;
        transition: var(--transition);
    }

    .footer-column a:hover {
        background-color: #ffc816;
        color: black;
        padding-left: 5px;
    }

    .footer-logo {
      font-weight: 700;
      font-size: 1.6rem;
      margin-bottom: 1rem;
      color: var(--primary-color);
      display: flex;
      align-items: center;
      gap: 0.7rem;
      user-select: none;
    }
    .footer-logo svg {
      fill: var(--primary-color);
      width: 30px;
      height: 30px;
      filter: drop-shadow(0 0 5px var(--primary-color));
    }
    .footer-desc {
      margin-bottom: 1.25rem;
      line-height: 1.5;
      color: black;
      max-width: 270px;
    }
    .footer-socials {
      display: flex;
      gap: 0.7rem;
    }
    .footer-socials a {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      transition: background-color 0.3s ease;
      color: black;
      background-color: rgba(255 87 34 / 0.4);
    }
    .footer-socials a:hover {
      background-color: var(--primary-color);
      color: white;
    }
    .footer-links {
      font-weight: 600;
      margin-bottom: 1rem;
      color: var(--primary-color);
      font-size: 1.1rem;
      user-select: none;
    }
    .footer-links-list,
    .footer-useful-links-list {
      list-style: none;
      padding-left: 0;
    }
    .footer-links-list li,
    .footer-useful-links-list li {
      padding: 0.4rem 0;
    }
    .footer-links-list li a,
    .footer-useful-links-list li a {
      color: black;
      text-decoration: none;
      transition: color 0.3s ease;
      font-weight: 500;
      font-size: 0.9rem;
    }
    .footer-links-list li a:hover,
    .footer-useful-links-list li a:hover {
      color: var(--primary-color);
      text-decoration: underline;
    }

    /* Contact info box in footer */
    .footer-contact-box {
      background-color: var(--accent-color);
      color: var(--text-dark);
      padding: 1.75rem 1.5rem;
      border-radius: 14px;
      font-weight: 600;
      font-size: 0.95rem;
      line-height: 1.4;
      user-select: text;
      max-width: 280px;
    }
    .footer-contact-box h4 {
      font-weight: 700;
      font-size: 1.2rem;
      margin-bottom: 1rem;
      color: var(--primary-color);
      user-select: none;
    }
    .footer-contact-item {
      margin-bottom: 0.8rem;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .footer-contact-item img {
      stroke: var(--primary-color);
      width: 20px;
      height: 20px;
    }
    .footer-contact-item span {
      font-weight: 500;
      font-size: 0.9rem;
      color: #5f3b26;
      user-select: text;
    }

    /* Bottom footer text */
    .footer-bottom {
      max-width: 1100px;
      margin: 1.5rem auto 0;
      font-size: 0.85rem;
      text-align: center;
      color: black;
      user-select: none;
    }
    .footer-bottom a {
      color: black;
      font-weight: 600;
      margin-left: 6px;
      text-decoration: none;
    }
    .footer-bottom a:hover {
      text-decoration: underline;
    }

    /* Back to top arrow */
    #backToTop {
      position: fixed;
      bottom: 35px;
      right: 25px;
      width: 42px;
      height: 42px;
      background: var(--primary-color);
      border-radius: 50%;
      box-shadow: 0 8px 24px rgb(255 87 34 / 0.5);
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: opacity 0.3s ease;
      opacity: 0;
      z-index: 9999;
      user-select: none;
    }
    #backToTop.visible {
      opacity: 1;
    }
    #backToTop svg {
      stroke: white;
      stroke-width: 3;
      width: 22px;
      height: 22px;
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .hero-content h1 {
        font-size: 2.5rem;
      }
      .hero-content p {
        font-size: 1rem;
      }
      .about-section {
        flex-direction: column;
      }
      .about-content {
        max-width: 100%;
      }
      .stats-grid {
        flex-wrap: wrap;
        justify-content: center;
      }
    }
    @media (max-width: 768px) {
      /* Hide desktop nav links */
      ul.nav-links, .right-btns {
        display: none;
      }
      .hamburger {
        display: flex;
      }
      /* Hero content font size smaller */
      .hero-content h1 {
        font-size: 1.9rem;
      }
      .hero-content p {
        font-size: 0.95rem;
      }
      .hero-button-group {
        flex-direction: column;
        width: 220px;
        margin: 1rem auto 2rem auto;
      }
      .hero-button-group button {
        width: 100%;
        border-radius: 12px !important;
        font-size: 1rem;
      }
      /* Search form */
      .search-form {
        flex-direction: column;
      }
      .select-group {
        min-width: 100%;
      }
      /* Highlights section */
      .highlights {
        flex-direction: column;
        max-width: 90%;
        margin: 2rem auto 3rem;
      }
      /* Categories section */
      .categories-carousel {
        gap: 1rem;
      }
      .category-card {
        flex: 1 0 120px;
      }
      /* Hospitals and Doctors horizontal carousels hide scrollbar */
      .hospitals-cards, .doctors-cards {
        padding-left: 0.8rem;
      }
      /* About section stack vertically */
      .about-section {
        padding: 0 1rem;
      }
    }
    @media (max-width: 480px) {
      .hero-content h1 {
        font-size: 1.5rem;
      }
      .hero-button-group {
        max-width: 220px;
      }
      .search-form {
        max-width: 95%;
      }
      .about-content h2 {
        font-size: 1.6rem;
      }
      .about-list {
        flex-direction: column;
      }
      .stat-box {
        flex: 1 1 100%;
        margin-bottom: 1rem;
      }
      .categories-section {
        margin-bottom: 3rem;
      }
      .doctors-cards, .hospitals-cards {
        gap: 1rem;
      }
      .doctor-book-btn {
        font-size: 0.9rem;
      }
      footer {
        text-align: center;
      }
      footer .footer-column{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }
      footer .footer-main {
        flex-direction: column;
        gap: 2.5rem;
      }
      footer .footer-contact-box {
        max-width: 100%;
      }
    }