/* =========================================================
   AnteEnti Telugu QA UI - Header / Search / Navigation Polish
   Scope: Only Q&A UI pages
   File: assets/css/header-nav.css
   ========================================================= */


/* ---------------------------------------------------------
   1. Header shell polish
   --------------------------------------------------------- */

body.anteenti-qa-ui .site-header,
body.anteenti-qa-ui header.header {
  background: #fffaf0;
  border-bottom: 1px solid rgba(122, 31, 43, 0.12);
  box-shadow: 0 6px 18px rgba(54, 28, 12, 0.04);
  position: relative;
  z-index: 50;
}

body.anteenti-qa-ui .header-main-inner,
body.anteenti-qa-ui .header--row-inner,
body.anteenti-qa-ui .builder-item--logo,
body.anteenti-qa-ui .site-branding {
  min-height: 64px;
}


/* ---------------------------------------------------------
   2. Logo / site title polish
   --------------------------------------------------------- */

body.anteenti-qa-ui .site-logo,
body.anteenti-qa-ui .site-branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

body.anteenti-qa-ui .site-logo img,
body.anteenti-qa-ui .custom-logo {
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

body.anteenti-qa-ui .site-title,
body.anteenti-qa-ui .site-title a {
  font-family: "Anek Telugu", system-ui, sans-serif;
  font-weight: 800;
  color: #7a1f2b;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

body.anteenti-qa-ui .site-description {
  font-family: "Anek Telugu", system-ui, sans-serif;
  color: #5f6f52;
  font-weight: 500;
}


/* ---------------------------------------------------------
   3. Desktop navigation polish
   --------------------------------------------------------- */

@media (min-width: 769px) {
  body.anteenti-qa-ui .site-header {
    margin-bottom: 0;
  }

  body.anteenti-qa-ui .header-main-inner,
  body.anteenti-qa-ui .header--row-inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  body.anteenti-qa-ui .nav-ul,
  body.anteenti-qa-ui .primary-menu-ul,
  body.anteenti-qa-ui .builder-item--primary-menu ul {
    gap: 6px;
  }

  body.anteenti-qa-ui .nav-ul li a,
  body.anteenti-qa-ui .primary-menu-ul li a,
  body.anteenti-qa-ui .builder-item--primary-menu a {
    font-family: "Anek Telugu", system-ui, sans-serif;
    font-weight: 650;
    color: #3f2d23;
    border-radius: 999px;
    padding: 9px 14px;
    transition: background-color 0.18s ease, color 0.18s ease;
  }

  body.anteenti-qa-ui .nav-ul li a:hover,
  body.anteenti-qa-ui .primary-menu-ul li a:hover,
  body.anteenti-qa-ui .builder-item--primary-menu a:hover {
    background: rgba(122, 31, 43, 0.08);
    color: #7a1f2b;
  }

  body.anteenti-qa-ui .nav-ul li.current-menu-item > a,
  body.anteenti-qa-ui .primary-menu-ul li.current-menu-item > a {
    background: #7a1f2b;
    color: #fffaf0;
  }
}


/* ---------------------------------------------------------
   4. Mobile header alignment
   --------------------------------------------------------- */

@media (max-width: 768px) {
  body.anteenti-qa-ui .site-header,
  body.anteenti-qa-ui header.header {
    position: sticky;
    top: 0;
    z-index: 999;
  }

  body.anteenti-qa-ui .header-main-inner,
  body.anteenti-qa-ui .header--row-inner {
    min-height: 58px;
    padding-left: 12px;
    padding-right: 12px;
  }

  body.anteenti-qa-ui .builder-item--logo,
  body.anteenti-qa-ui .site-branding {
    min-height: 58px;
    max-width: calc(100vw - 82px);
    overflow: visible;
  }

  body.anteenti-qa-ui .site-logo img,
  body.anteenti-qa-ui .custom-logo {
    max-height: 38px;
  }

  body.anteenti-qa-ui .site-title,
  body.anteenti-qa-ui .site-title a {
    font-size: 20px;
    max-width: calc(100vw - 110px);
  }

  body.anteenti-qa-ui .site-description {
    display: none;
  }

  body.anteenti-qa-ui .menu-mobile-toggle,
  body.anteenti-qa-ui .navbar-toggle,
  body.anteenti-qa-ui .builder-item--nav-icon,
  body.anteenti-qa-ui .header-menu-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.anteenti-qa-ui .navbar-toggle,
  body.anteenti-qa-ui .menu-mobile-toggle button,
  body.anteenti-qa-ui .header-menu-sidebar-toggle button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f7ead2;
    border: 1px solid rgba(122, 31, 43, 0.16);
    color: #7a1f2b;
  }

  body.anteenti-qa-ui .navbar-toggle:hover,
  body.anteenti-qa-ui .menu-mobile-toggle button:hover,
  body.anteenti-qa-ui .header-menu-sidebar-toggle button:hover {
    background: #f2dfbd;
    color: #7a1f2b;
  }
}


/* ---------------------------------------------------------
   5. Neve mobile sidebar menu polish
   Carefully scoped only to Q&A pages
   --------------------------------------------------------- */

body.anteenti-qa-ui .header-menu-sidebar {
  background: #fffaf0;
}

body.anteenti-qa-ui .header-menu-sidebar .nav-ul li a,
body.anteenti-qa-ui .header-menu-sidebar .primary-menu-ul li a {
  font-family: "Anek Telugu", system-ui, sans-serif;
  font-weight: 650;
  color: #3f2d23;
  border-radius: 14px;
  margin: 4px 10px;
  padding: 12px 14px;
}

body.anteenti-qa-ui .header-menu-sidebar .nav-ul li a:hover,
body.anteenti-qa-ui .header-menu-sidebar .primary-menu-ul li a:hover {
  background: rgba(122, 31, 43, 0.08);
  color: #7a1f2b;
}


/* ---------------------------------------------------------
   6. Search form polish
   Works only if a search form already exists in header/menu
   --------------------------------------------------------- */

body.anteenti-qa-ui .site-header form.search-form,
body.anteenti-qa-ui .header-menu-sidebar form.search-form {
  position: relative;
  max-width: 420px;
}

body.anteenti-qa-ui .site-header .search-field,
body.anteenti-qa-ui .header-menu-sidebar .search-field {
  font-family: "Anek Telugu", system-ui, sans-serif;
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(122, 31, 43, 0.18);
  background: #fffdf7;
  color: #2f241c;
  padding: 10px 44px 10px 16px;
  outline: none;
}

body.anteenti-qa-ui .site-header .search-field:focus,
body.anteenti-qa-ui .header-menu-sidebar .search-field:focus {
  border-color: rgba(122, 31, 43, 0.48);
  box-shadow: 0 0 0 4px rgba(122, 31, 43, 0.08);
}

body.anteenti-qa-ui .site-header .search-submit,
body.anteenti-qa-ui .header-menu-sidebar .search-submit {
  border-radius: 999px;
  background: #7a1f2b;
  color: #fffaf0;
  border: 0;
  font-family: "Anek Telugu", system-ui, sans-serif;
  font-weight: 700;
}

body.anteenti-qa-ui .site-header .search-submit:hover,
body.anteenti-qa-ui .header-menu-sidebar .search-submit:hover {
  background: #5f1822;
}


/* ---------------------------------------------------------
   7. Prevent header from fighting with bottom mobile nav
   --------------------------------------------------------- */

@media (max-width: 768px) {
  body.anteenti-qa-ui {
    padding-bottom: 74px;
  }
}
/* =========================================================
   Step 12 Refinement - Header alignment after screenshot check
   ========================================================= */


/* ---------------------------------------------------------
   1. Desktop: align header content with main Q&A content
   --------------------------------------------------------- */

@media (min-width: 1024px) {
  body.anteenti-qa-ui .header-main-inner,
  body.anteenti-qa-ui .header--row-inner,
  body.anteenti-qa-ui .nv-navbar,
  body.anteenti-qa-ui .container {
    max-width: 1180px;
  }

  body.anteenti-qa-ui .site-header .header-main-inner,
  body.anteenti-qa-ui .site-header .header--row-inner {
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
  }
}


/* ---------------------------------------------------------
   2. Desktop: reduce unnecessary header height
   --------------------------------------------------------- */

@media (min-width: 769px) {
  body.anteenti-qa-ui .header-main-inner,
  body.anteenti-qa-ui .header--row-inner,
  body.anteenti-qa-ui .builder-item--logo,
  body.anteenti-qa-ui .site-branding {
    min-height: 72px;
  }

  body.anteenti-qa-ui .site-logo img,
  body.anteenti-qa-ui .custom-logo {
    max-height: 52px;
  }
}


/* ---------------------------------------------------------
   3. Mobile: improve logo and hamburger balance
   --------------------------------------------------------- */

@media (max-width: 768px) {
  body.anteenti-qa-ui .header-main-inner,
  body.anteenti-qa-ui .header--row-inner {
    min-height: 62px;
    padding-left: 14px;
    padding-right: 14px;
  }

  body.anteenti-qa-ui .builder-item--logo,
  body.anteenti-qa-ui .site-branding {
    min-height: 62px;
    display: flex;
    align-items: center;
  }

  body.anteenti-qa-ui .site-logo img,
  body.anteenti-qa-ui .custom-logo {
    max-height: 42px;
  }

  body.anteenti-qa-ui .navbar-toggle,
  body.anteenti-qa-ui .menu-mobile-toggle button,
  body.anteenti-qa-ui .header-menu-sidebar-toggle button {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    margin-left: auto;
  }
}


/* ---------------------------------------------------------
   4. Prevent mobile logo/title cropping
   --------------------------------------------------------- */

@media (max-width: 480px) {
  body.anteenti-qa-ui .site-branding,
  body.anteenti-qa-ui .site-logo {
    max-width: calc(100vw - 86px);
    overflow: visible;
  }

  body.anteenti-qa-ui .site-title,
  body.anteenti-qa-ui .site-title a {
    max-width: calc(100vw - 110px);
    white-space: nowrap;
    overflow: visible;
  }
}