@media (max-width: 575px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 991px) {
  .hero {
    text-align: center;
    padding: 60px 0;
    min-height: auto !important;
    background-color: #0000006b;
    background-blend-mode: overlay;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 575px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero .lead {
    font-size: 1rem;
    padding: 0 10px;
  }
}

@media (max-width: 1199px) {
  .visual-assembly {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .author-overlap-wrapper {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    margin-bottom: 30px;
    text-align: center;
    flex-direction: row-reverse;
  }
  .book-showcase .book-stack {
    transform: none !important;
    text-align: center;
    margin-bottom: 30px;
  }
  .book-showcase .author-label {
    right: 0;
    text-align: center;
    margin-left: 15px;
    top: 0;
  }
  .book-showcase .portrait-wrapper img {
    width: 250px;
    height: 250px;
  }
  .available-at-container {
    position: relative;
    width: 100%;
    right: 0;
    bottom: 0;
    margin-top: 20px;
    padding: 25px 15px;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    display: flex;
    text-align: center;
  }
  .available-at-container .logos {
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .book-showcase {
    padding: 60px 0;
  }
  .book-showcase .title-area {
    text-align: center;
    margin-top: 30px;
  }
}

@media (max-width: 575px) {
  .book-showcase .portrait-wrapper img {
    width: 70px;
    height: 70px;
  }
  .book-showcase .book-main {
    max-height: 350px;
  }
  .available-at-container .logos img {
    height: 28px;
  }
}

@media (min-width: 1200px) {
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

@media (max-width: 991px) {
  .about-book {
    padding: 60px 0;
    text-align: center;
  }
  .about-book h2 {
    font-size: 2.2rem;
  }
  .author-info {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .about-book h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 991px) {
  .about-book h2 {
    font-size: 2.2rem;
  }
  .about-quote {
    font-size: 1.6rem;
  }
  .quote-icon {
    width: 20px;
  }
  .about-quote-column {
    margin-top: 40px;
    padding-left: 0 !important;
  }
}

@media (max-width: 991px) {
  .health-nav-tabs {
    flex-direction: column;
    border-radius: 20px 20px 0 0 !important;
  }
  .health-nav-tabs .nav-item {
    width: 100% !important;
    flex: none !important;
  }
  .health-nav-tabs .nav-link {
    font-size: 1.1rem !important;
    padding: 15px !important;
    border-radius: 0 !important;
    justify-content: flex-start;
    width: 100% !important;
  }
  .health-nav-tabs .nav-item:first-child .nav-link {
    border-radius: 20px 20px 0 0 !important;
  }
  .health-nav-tabs .nav-item:last-child .nav-link {
    border-radius: 0 !important;
  }
  .health-nav-tabs .nav-link::after {
    display: none !important; /* Hide caret on mobile stacking */
  }
  .health-tab-pane-content {
    padding: 40px 20px !important;
  }
  .tab-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 575px) {
  .health-nav-tabs .nav-link {
    font-size: 1rem !important;
    gap: 10px;
  }
  .health-nav-tabs .nav-link img {
    height: 30px;
    width: auto;
  }
}

@media (max-width: 991px) {
  .health-nav-tabs .nav-link {
    font-size: 1rem !important;
    padding: 15px 10px !important;
    justify-content: center;
  }
  .health-nav-tabs .nav-link img {
    height: 25px;
  }
  .tab-title {
    font-size: 1.5rem;
  }
  .read-more-wrapper,
  .notebook-wrapper {
    text-align: center !important;
    margin-top: 30px;
  }
  .book-showcase .title-area h2 {
    font-size: 2rem;
  }
}

@media (max-width: 991px) {
  .appointment-phone {
    font-size: 2.2rem;
  }
  .appointment-card,
  .details-card {
    padding: 30px !important;
  }
  .card-bg-icon-left {
    z-index: 1;
    opacity: 0.4;
    margin: 10px;
  }
  .book-showcase {
    padding: 50px 0 !important;
  }
  .contact-section {
    padding: 40px 0 !important;
  }
}

@media (max-width: 1199px) {
  .offcanvas-body .navbar-nav {
    text-align: center;
  }
  .offcanvas-body .nav-link {
    font-size: 1.25rem !important;
    padding: 15px 0 !important;
    border: none !important;
    font-weight: 700 !important;
  }
  .offcanvas-body .nav-link.active {
    color: #629a41 !important;
    background: none !important;
  }
}

@media (min-width: 1200px) {
  .offcanvas {
    background: none !important;
    transform: none !important;
    visibility: visible !important;
    width: auto !important;
    border: none !important;
    position: static !important;
    z-index: auto !important;
  }
  .offcanvas-body {
    padding: 0 !important;
    display: flex !important;
    overflow: visible !important;
  }
  .offcanvas-header {
    display: none !important;
  }
}

@media (min-width: 1200px) and (max-width: 1600px) {
  .nav-link {
    padding: 25px 8px !important;
    font-size: 13px !important;
  }
  .navbar-brand img {
    height: 85px !important;
  }
  .navbar-nav {
    gap: 5px !important;
  }
}

@media (max-width: 767px) {
  .top-bar {
    display: none; /* Hide top bar on mobile */
  }
  .navbar-brand img {
    height: 50px;
  }
  .navbar {
    padding: 10px 0 !important;
  }
}
