/*
Theme Name: Hello Child
Template: hello-elementor
*/
.custom-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 40px;
  background: #fff;
}
.header-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: none;
}
.header-logo {
  width: 70px;
  max-width: 70px;
  height: auto;
  margin: 0 24px 0 0;
  display: block;
}
.header-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hindi-title {
  font-family: "Noto Sans Devanagari", serif;
  font-size: 1.4rem;
  color: #7a5a3a;
}
.clinic-title {
  font-size: 0.85rem;
  color: #7a5a3a;
}
.header-nav {
  position: static;
  display: flex;
  align-items: center;
  margin: 0;
}
.header-nav .main-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}
.header-nav .main-menu li a {
  text-decoration: none;
  color: #444;
  font-size: 1.1rem;
  padding: 1em 1em;
  margin: 0em 0em 0em -2.5em;
  background: #fff;
  display: block;
}

a.header-logo-link.header-center.text-center {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  position: absolute;
  right: 16px;
  top: 16px;
  cursor: pointer;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #7a5a3a;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Position each line */
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 9px;
}
.hamburger span:nth-child(3) {
  top: 18px;
}

.site-footer {
  width: 100%;
  background: #fcfaf8;
  color: #6d4c1b;
  font-family: "Inter", Arial, sans-serif;
  padding: 40px 0 0 0;
  font-size: 18px;
  box-sizing: border-box;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.footer-col {
  flex: 1 1 220px;
  margin: 0 20px 30px 0;
  min-width: 220px;
}
.footer-col h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 1em;
  margin-top: 1.5em;
}
.footer-col a {
  color: #6d4c1b;
  text-decoration: none;
}
.footer-col a:hover {
  text-decoration: underline;
}
.newsletter-form {
  display: flex;
  margin-top: 10px;
}
.newsletter-form input[type="email"] {
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px 0 0 6px;
  font-size: 15px;
  flex: 1;
}
.newsletter-form button {
  background: #5c6cff;
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  padding: 10px 28px;
  font-size: 15px;
  cursor: pointer;
  margin-right: 1.5em;
}
.footer-social a {
  font-size: 20px;
  margin-right: 16px;
  color: #6d4c1b;
}
.footer-bottom {
  border-top: 2px solid #eee;
  margin-top: 40px;
  padding: 30px 40px 20px 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.footer-disclaimer {
  font-size: 16px;
  color: #6d4c1b;
  margin-bottom: 20px;
}
.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  color: #6d4c1b;
}
.footer-links a {
  margin-left: 24px;
  color: #6d4c1b;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

.page-header .entry-title,
.site-footer .footer-inner,
.site-footer:not(.dynamic-footer),
.site-header .header-inner,
.site-header:not(.dynamic-header),
body:not([class*="elementor-page-"]) .site-main {
  max-width: 100%;
}

.single-post-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  background: #fff;
  border-radius: 12px;
}

.custom-single-article,
.custom-single-article * {
  font-family: "Nunito", sans-serif !important;
}

.single-post-title {
  color: #7c4624;
  font-size: 40px;
  font-weight: 800;
  line-height: 45px;
  margin-bottom: 24px;
}

.single-post-meta {
  font-size: 1rem;
  color: #a08a6a;
  margin-bottom: 16px;
}

.single-post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.single-post-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
}

.single-post-content h3 {
  font-size: 26px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
}

.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
}

.single-post-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.single-post-footer {
  border-top: 1px solid #eee;
  margin-top: 32px;
  padding-top: 16px;
  color: #a08a6a;
  font-size: 1rem;
}

html,
body {
  overflow-x: hidden;
}

@media (min-width: 901px) {
  .custom-header {
    justify-content: space-between;
    width: 100%;
    max-width: 100vw;
    padding-left: 40px;
    padding-right: 40px;
  }
  .header-center {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    flex: 0 0 auto;
  }
  .header-logo {
    margin: 0;
  }
  .header-title {
    align-items: flex-start;
    text-align: left;
  }
  .header-nav {
    position: static;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
  }
  .hindi-title {
    font-size: 1.2rem;
  }
  .clinic-title {
    font-size: 0.75rem;
  }
}

@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    padding: 0 20px;
  }
  .footer-col {
    margin-bottom: 30px;
    margin-right: 0;
  }
  .footer-bottom {
    padding: 20px;
    flex-direction: column;
    gap: 10px;
  }
  .custom-header {
    flex-direction: row;
    padding: 16px 10px;
  }
  .header-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .header-title {
    align-items: center;
    text-align: center;
  }
  .header-logo {
    width: 48px;
    max-width: 48px;
    margin: 0 auto 4px auto;
  }
  .hindi-title {
    font-size: 1rem;
  }
  .clinic-title {
    font-size: 0.7rem;
  }
  .header-nav {
    position: fixed;
    top: 0;
    left: auto;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 24px 24px 24px;
    transition: right 0.3s, left 0.3s;
    z-index: 1001;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .header-nav.open {
    left: 0 !important;
    right: 0 !important;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .header-nav .main-menu {
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }
  .hamburger {
    display: flex;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1100;
    background: #fff;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
  }
  .hamburger.active {
    /* visually indicate close state if needed */
  }
  .custom-header.scrolled {
    justify-content: space-between;
    padding: 8px 10px;
    transition: padding 0.3s;
  }
  .custom-header.scrolled .header-center {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    width: auto;
    margin-right: auto;
  }
  .custom-header.scrolled .header-logo {
    width: 36px;
    max-width: 36px;
    margin: 0 10px 0 0;
    transition: width 0.3s;
  }
  .custom-header.scrolled .header-title {
    align-items: flex-start;
    text-align: left;
    margin: 0;
  }
  .custom-header.scrolled .hindi-title,
  .custom-header.scrolled .clinic-title {
    font-size: 0.8rem;
    line-height: 1.1;
  }
  .custom-header.scrolled .hamburger {
    right: 10px;
    top: 12px;
  }
  a.header-logo-link.header-center.text-center {
    display: block;
    width: 100%;
    margin-top: 1em;
    opacity: 0.2;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100vw;
}

/* Active (close) state */
.hamburger.active span:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}

/* Treatment Widget Card Styles */
.treatment-widget-card {
  background: #faf8f6;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  font-family: inherit;
  color: #7a5a36;
  margin: 1.5rem 0;
  border: 1px solid #f2ede7;
  display: flex;
  flex-direction: column;
  max-width: 400px;
}
.treatment-widget-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.treatment-widget-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.treatment-widget-category {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #f8d7b6;
  color: #7a5a36;
  border-radius: 16px;
  padding: 4px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.treatment-widget-content {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.treatment-widget-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #7a5a36;
}
.treatment-widget-excerpt {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #7a5a36;
}
.treatment-widget-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.treatment-widget-list li {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #7a5a36;
}
.treatment-widget-list-icon {
  color: #f8b26a;
  margin-right: 0.5em;
  font-size: 1.2em;
}
.treatment-widget-learn-more {
  display: block;
  text-align: center;
  background: #fff6ed;
  color: #f8b26a;
  border-radius: 8px;
  padding: 0.75em 0;
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #f8d7b6;
  margin-top: auto;
  transition: background 0.2s, color 0.2s;
}
.treatment-widget-learn-more:hover {
  background: #f8b26a;
  color: #fff;
}

/*
Elementor overriding styles
*/

.elementor-widget-icon-box .elementor-icon-box-content {
  margin-top: 1em;
}

.elementor-57
  .elementor-element.elementor-element-87ff14a
  .disease-card-treatments
  li
  a {
  margin-top: 0.5em;
}

@media (max-width: 600px) {
  .treatment-widget-card {
    max-width: 100% !important;
    margin: 1em 0 !important;
    border-radius: 10px !important;
  }
  .treatment-widget-image {
    height: 140px !important;
    min-height: 0 !important;
  }
  .treatment-widget-image img {
    height: 140px !important;
    border-radius: 10px 10px 0 0 !important;
    object-fit: cover;
  }
  .treatment-widget-title {
    font-size: 1.1rem !important;
    margin: 0.5em 0 0.2em 0 !important;
  }
  .treatment-widget-excerpt {
    font-size: 0.98rem !important;
    margin-bottom: 0.5em !important;
  }
  .treatment-widget-learn-more {
    font-size: 1rem !important;
    padding: 0.7em 0 !important;
  }
}
