/* =========================================================
   Site Header — News Portal Style
   ========================================================= */

:root {
  --brand-blue: #1560bd;
  --brand-blue-dark: #0e4c99;
  --brand-orange: #c0392b;
  --brand-orange-dark: #a5301f;
  --gold: #f4c430;
  --white: #ffffff;
  --gray-light: #eef2f6;
  --gray-border: #dfe6ee;
  --text-dark: #1e2a35;
  --nav-height: 46px;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

*{ box-sizing: border-box; }

.site-header{
  font-family: 'Poppins', 'Noto Sans Telugu', sans-serif;
  width: 100%;
  position: relative;
  z-index: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.site-header {
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 2px;
}

/* ---------- Top utility bar ---------- */
.header-topbar{
  background: var(--brand-blue-dark);
  color: var(--white);
  font-size: 12.5px;
}
.header-topbar .topbar-inner{
  max-width: 1300px;
  margin: 0 auto;
  padding: 5px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-trending{
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.topbar-links{
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-links a{
  color: var(--white);
  text-decoration: none;
  opacity: .92;
  white-space: nowrap;
}
.topbar-links a:hover{ opacity: 1; text-decoration: underline; }
.topbar-sep{ opacity: .5; }
.topbar-search-btn{
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.topbar-search-btn:hover{ background: rgba(255,255,255,.25); }

/* ---------- Middle: logo / ad / actions ---------- */
.header-main{
  background: var(--white);
}
.header-main-inner{
  max-width: 1300px;
  margin: 0 auto;
  padding: 0px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Logo block */
.brand-block{
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1;
}
.brand-name{
  font-family: 'Playfair Display', 'Noto Sans Telugu', serif;
  font-weight: 800;
  font-size: 40px;
  color: var(--brand-orange);
  letter-spacing: .5px;
  text-decoration: none;
  position: relative;
}
.brand-name::after{
  content:'';
  display:block;
  width: 60%;
  height: 3px;
  margin-top: 2px;
  background: linear-gradient(90deg,var(--brand-orange),transparent);
  border-radius: 2px;
}
.brand-sub{
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-blue);
}
.brand-sub i{ font-size: 13px; color: var(--brand-blue); }

/* Ad slot */
.header-ad{
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  padding: 6px 18px;
  background: var(--gray-light);
  gap: 12px;
  overflow: hidden;
}
.header-ad .ad-mark{
  width: 34px; height: 34px;
  background: repeating-linear-gradient(45deg, var(--brand-orange) 0 4px, transparent 4px 8px);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  flex-shrink: 0;
}
.header-ad .ad-text{
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--brand-orange-dark);
  white-space: nowrap;
}
.header-ad .ad-badge{
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--brand-blue-dark);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
}

/* Right action icons */
.header-actions{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.action-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
}
.action-item i{
  font-size: 18px;
  color: var(--brand-blue);
}
.action-item.breaking i{ color: var(--brand-orange); }
.epaper-badge{
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Nav bar ---------- */
.header-nav{
  background: var(--brand-blue);
}
.header-nav-inner{
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav-inner::-webkit-scrollbar{ display: none; }

.nav-home{
  flex-shrink: 0;
  width: var(--nav-height);
  height: var(--nav-height);
  background: rgba(255,255,255,.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
}
.nav-home:hover{ background: rgba(255,255,255,.28); }

.nav-menu{
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.nav-menu li{ flex-shrink: 0; position: relative; }
.nav-menu a{
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--nav-height);
  padding: 0 14px;
  color: var(--white);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.15);
  transition: background .15s;
}
.nav-menu a:hover{ background: rgba(255,255,255,.14); }

.nav-menu a .caret{ font-size: 10px; opacity: .8; }

/* Mobile hamburger */
.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  width: var(--nav-height);
  height: var(--nav-height);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991px){
  .header-ad{ display: none; }
  .brand-name{ font-size: 32px; }
}

@media (max-width: 768px){
  .topbar-links a:not(.topbar-search-link){ display: none; }
  .topbar-links .topbar-sep{ display: none; }

  .header-main-inner{ padding: 8px 12px; gap: 10px; }
  .brand-name{ font-size: 26px; }
  .brand-sub{ font-size: 12px; }
  .header-actions{ gap: 12px; }
  .epaper-badge{ padding: 5px 7px; font-size: 10px; }

  .nav-toggle{ display: flex; order: -1; }
  .header-nav{ position: relative; }
  .header-nav-inner{
    position: static;
    overflow: visible;   /* was overflow-x: auto, which was clipping the dropdown vertically */
  }
  .nav-menu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--brand-blue-dark);
    box-shadow: 0 6px 12px rgba(0,0,0,.2);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 600;
  }
  .header-nav.nav-open .nav-menu{ display: flex; }
  .nav-menu a{
    height: auto;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-home{ display: none; }
}

@media (max-width: 480px){
  .brand-name{ font-size: 22px; }
  .action-item span{ display: none; }
  .action-item i{ font-size: 20px; }
}


.brand-wrap {
    display: flex;
    flex-direction: column;
}

.brand-date {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #333;
}
