/* Mana Disha — professional news layout, logo colors */
.theme-manadisha {
  --md-black: #111111;
  --md-red: #d0121a;
  --md-gold: #f0b400;
  --md-paper: #ffffff;
  --md-ink: #1c1c1c;
  --md-muted: #6b7280;
  --md-line: #e6e8ee;
  font-family: "Noto Sans Telugu", "Nirmala UI", Arial, Helvetica, sans-serif;
  background: var(--md-paper);
  color: var(--md-ink);
  -webkit-text-size-adjust: 100%;
}
.theme-manadisha a { color: inherit; text-decoration: none; }
.theme-manadisha #main-content { background: var(--md-paper); }
.md-wrap, .bp-container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.theme-manadisha .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header — white mast, red category bar, breaking ticker */
.md-header { background: #fff; border-bottom: 1px solid #f0f0f0; }
.md-mast { background: #fff; }
.md-mast__inner { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem 0 .55rem; }
.md-brand { min-width: 0; }
.md-brand__logo { display: block; width: auto; max-width: min(220px, 52vw); max-height: 72px; object-fit: contain; }
.md-brand__word { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.md-brand__black { color: var(--md-black); }
.md-brand__red { color: var(--md-red); }
.md-brand__en { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.md-mast__meta { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; flex-wrap: wrap; }
.md-mast__date { margin: 0; display: inline-flex; align-items: center; gap: .35rem; color: #4b5563; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.md-social { display: flex; align-items: center; gap: .28rem; }
.theme-manadisha .md-mast .social-icons__link {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.theme-manadisha .md-mast .social-icons__link--facebook { background: #1877f2; }
.theme-manadisha .md-mast .social-icons__link--x { background: #111; }
.theme-manadisha .md-mast .social-icons__link--instagram { background: #e1306c; }
.theme-manadisha .md-mast .social-icons__link--youtube { background: #ff0000; }
.theme-manadisha .md-mast .social-icons__link--linkedin { background: #0a66c2; }
.theme-manadisha .md-mast .social-icons__link--telegram { background: #229ed9; }
.theme-manadisha .md-mast .social-icons__link--whatsapp { background: #25d366; }
.md-epaper { display: inline-flex; align-items: center; min-height: 32px; padding: 0 .75rem; background: var(--md-red); color: #fff !important; font-size: .78rem; font-weight: 800; border-radius: 3px; }
.md-epaper:hover { background: #b40e16; }

.md-iconbtn {
  width: 40px; height: 40px; border: 0; background: rgba(255,255,255,.55); color: var(--md-black);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px;
}
.md-menu-btn__bars, .md-menu-btn__bars::before, .md-menu-btn__bars::after {
  display: block; width: 16px; height: 2px; background: var(--md-black); position: relative;
}
.md-menu-btn__bars::before, .md-menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.md-menu-btn__bars::before { top: -5px; }
.md-menu-btn__bars::after { top: 5px; }
.md-header.is-menu-open .md-menu-btn__bars { background: transparent; }
.md-header.is-menu-open .md-menu-btn__bars::before { top: 0; transform: rotate(45deg); }
.md-header.is-menu-open .md-menu-btn__bars::after { top: 0; transform: rotate(-45deg); }

.md-search { display: flex; background: #fff; border-radius: 8px; overflow: hidden; min-height: 40px; }
.md-search__input { flex: 1; border: 0; background: transparent; padding: .5rem .75rem; font: inherit; font-size: 16px; min-width: 0; }
.md-search__input:focus { outline: none; }
.md-search__btn { border: 0; background: var(--md-red); color: #fff; font-weight: 800; padding: 0 .9rem; cursor: pointer; }
.md-login {
  border: 0; background: var(--md-black); color: #fff; font-weight: 800; min-height: 40px;
  padding: 0 .85rem; border-radius: 8px; cursor: pointer;
}
.md-user { display: flex; align-items: center; gap: .35rem; }
.md-user__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.md-user__name { font-size: .75rem; font-weight: 800; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-user__out { border: 0; background: #fff; border-radius: 999px; font-size: .68rem; font-weight: 800; padding: .25rem .45rem; cursor: pointer; }

.md-nav { background: var(--md-red); position: sticky; top: 0; z-index: 40; }
.md-nav__bar { display: flex; align-items: stretch; gap: .4rem; }
.md-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.md-nav__list::-webkit-scrollbar { display: none; }
.md-nav__link {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 42px; padding: 0 .8rem;
  color: #fff; font-size: .9rem; font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent;
}
.theme-manadisha .md-nav__link { color: #fff; }
.theme-manadisha .md-nav__link:hover,
.theme-manadisha .md-nav__link.is-active { color: #fff; background: rgba(0,0,0,.14); border-bottom-color: #fff; }
.md-nav__search {
  flex: 0 0 auto; width: 42px; border: 0; background: transparent; color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.md-search-panel { display: none; background: #fff; border-bottom: 1px solid #eee; }
.md-header.is-search-open .md-search-panel { display: block; }
.md-search-panel .md-search { margin: .55rem auto; }

.md-break { background: #fff; border-bottom: 1px solid #f0d4d4; }
.md-break__inner { display: flex; align-items: center; gap: .7rem; min-height: 40px; }
.md-break__label {
  flex: 0 0 auto; background: var(--md-red); color: #fff; font-size: .68rem; font-weight: 800;
  letter-spacing: .04em; padding: .28rem .5rem; border-radius: 2px;
}
.md-break__viewport { overflow: hidden; min-width: 0; flex: 1; }
.md-break__track { display: flex; width: max-content; animation: md-break-scroll var(--md-break-duration, 28s) linear infinite; }
.md-break__text { color: #333; font-size: .9rem; font-weight: 700; white-space: nowrap; padding-right: 3rem; }
.md-break__text::before { content: "•"; color: var(--md-red); margin-right: .55rem; }
@keyframes md-break-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .md-break__track { animation: none; } }

/* Shared photo frame — always 16:9, never a tall crop */
.md-photo { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #ececec; }
.md-photo picture, .md-photo > div, .md-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block;
}

.md-home { background: #fff; padding: 1rem 0 2rem; }
.md-leadgrid { display: grid; gap: 1.1rem; align-items: start; }
.md-photo { border-radius: 4px; }
.md-kicker { margin: .45rem 0 .25rem; color: var(--md-red); font-size: .75rem; font-weight: 800; }
.md-kicker time, .md-catcard time { color: #6b7280; font-weight: 600; margin-left: .25rem; }
.md-feature__title { margin: 0; font-size: 1.35rem; line-height: 1.4; font-weight: 800; }
.md-feature__excerpt, .md-stack__item p { margin: .4rem 0 0; color: #4b5563; font-size: .9rem; line-height: 1.55; }
.md-feature__title a:hover, .md-stack__item h3 a:hover, .md-latest a:hover span, .md-catcard h3 a:hover { color: var(--md-red); }
.md-stack { display: grid; gap: 1rem; }
.md-stack__item h3 { margin: 0; font-size: 1.02rem; line-height: 1.4; font-weight: 800; }

.md-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .65rem; padding-bottom: .35rem; border-bottom: 1px solid #eee; }
.md-head h2 { margin: 0; padding-left: .55rem; border-left: 4px solid var(--md-red); font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.md-head a { color: var(--md-red); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.md-latest ul { list-style: none; margin: 0; padding: 0; }
.md-latest li + li { border-top: 1px solid #f1f1f1; }
.md-latest a { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: start; padding: .55rem 0 .55rem .7rem; position: relative; }
.md-latest a::before { content: ""; position: absolute; left: 0; top: .85rem; width: 6px; height: 6px; border-radius: 50%; background: var(--md-red); }
.md-latest span { font-size: .86rem; font-weight: 700; line-height: 1.4; }
.md-latest time { color: #9ca3af; font-size: .72rem; white-space: nowrap; padding-top: .15rem; }
.md-adslot { margin-top: .8rem; min-height: 90px; background: #f3f4f6; border: 1px dashed #d1d5db; display: grid; place-items: center; color: #9ca3af; font-size: .75rem; font-weight: 800; letter-spacing: .06em; }
.md-adslot:has(.custom-ad), .md-adslot:not(:has(span)) { background: transparent; border: 0; min-height: 0; display: block; }

.md-sections { margin-top: 1.4rem; }
.md-catrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .85rem; }
.md-catcard h3 { margin: 0; font-size: .9rem; line-height: 1.4; font-weight: 800; }
.md-catcard time { display: block; margin-top: .3rem; font-size: .72rem; }
.md-empty { padding: 3rem 0; text-align: center; }

/* Footer */
.md-footer { margin-top: auto; background: #161616; color: #e7e5e4; }
.md-stripes { display: flex; flex-direction: column; }
.md-stripes__gold { height: 4px; background: var(--md-gold); }
.md-stripes__red { height: 3px; background: var(--md-red); }
.md-stripes__orange { height: 0; }
.md-footer__ads { padding-top: .8rem; }
.md-footer__main { padding: 1.4rem 0 1rem; }
.md-footer__grid { display: grid; gap: 1.2rem; }
.md-footer__brand { color: #fff; font-weight: 800; font-size: 1.1rem; }
.md-footer__logo { display: block; max-width: 180px; max-height: 52px; width: auto; background: #fff; border-radius: 6px; padding: .3rem .4rem; }
.md-footer__about { margin: .55rem 0 .7rem; font-size: .84rem; line-height: 1.55; }
.md-footer__social { display: flex; gap: .4rem; }
.theme-manadisha .md-footer .social-icons__link { color: var(--md-gold); }
.md-footer h2 { margin: 0 0 .5rem; color: var(--md-gold); font-size: .9rem; }
.md-footer ul { list-style: none; margin: 0; padding: 0; font-size: .84rem; }
.md-footer li { margin-bottom: .3rem; }
.md-footer a:hover { color: #fff; }
.md-footer__bottom { border-top: 1px solid #2a2a2a; font-size: .75rem; color: #a8a29e; }
.md-footer__bottom-inner { display: flex; flex-direction: column; gap: .4rem; align-items: center; text-align: center; padding: .75rem 0; }
.md-footer__bottom p { margin: 0; }
.md-footer__bottom nav { display: flex; gap: .8rem; }
.md-footer__bottom a { color: #a8a29e; }
.md-top {
  position: fixed; right: 1rem; bottom: 1rem; width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: var(--md-red); color: #fff; font-weight: 800; cursor: pointer; z-index: 30;
}
.md-top.hidden { display: none; }

/* Login */
body.md-login-open { overflow: hidden; }
.md-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.md-modal[hidden] { display: none !important; }
.md-modal__backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.55); }
.md-modal__panel { position: relative; width: min(100%, 400px); background: #fff; border-radius: 14px; padding: 1.4rem 1.2rem 1.5rem; text-align: center; }
.md-modal__close { position: absolute; top: .35rem; right: .6rem; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; }
.md-modal__logo { max-height: 52px; width: auto; margin: 0 auto; }
.md-modal__title { margin: .4rem 0 .25rem; font-size: 1.15rem; }
.md-modal__lead { margin: 0 0 1rem; color: var(--md-muted); font-size: .9rem; }
.md-modal__google { display: flex; justify-content: center; min-height: 44px; }
.md-modal__status { margin: .7rem 0 0; font-size: .85rem; }
.md-modal__status.is-error { color: var(--md-red); }
.md-modal__hint { margin: .75rem 0 0; font-size: .75rem; color: #9ca3af; }

/* Inner pages */
.theme-manadisha .nl-page, .theme-manadisha .cs-search-page { background: var(--md-paper); }
.theme-manadisha .nl-heading, .theme-manadisha .cat-hero { border-left-color: var(--md-red); border-radius: 10px; }
.theme-manadisha .cat-hero__badge, .theme-manadisha .pager__page.is-active { background: var(--md-red); }
.theme-manadisha .nl-card { border-radius: 12px; }
.theme-manadisha nav[aria-label="Breadcrumb"] { background: #fff !important; }

.cs-search-page { padding: 1.2rem 0 2rem; }
.cs-search-page__hero { background: #fff; border: 1px solid var(--md-line); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.cs-search-page__eyebrow { margin: 0 0 .2rem; color: var(--md-red); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cs-search-page__title { margin: 0 0 .8rem; font-size: 1.35rem; font-weight: 800; }
.cs-search-page__form { display: flex; background: #f3f4f6; border-radius: 8px; overflow: hidden; }
.cs-search-page__icon { display: inline-flex; align-items: center; padding-left: .7rem; color: #6b7280; }
.cs-search-page__input { flex: 1; border: 0; background: transparent; padding: .75rem .6rem; font: inherit; font-size: 16px; min-width: 0; }
.cs-search-page__input:focus { outline: none; }
.cs-search-page__btn { border: 0; background: var(--md-red); color: #fff; font-weight: 800; padding: 0 1rem; cursor: pointer; }
.cs-search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cs-search-results__item { background: #fff; border: 1px solid var(--md-line); border-radius: 12px; }
.cs-search-results__link { display: grid; grid-template-columns: 104px 1fr; gap: .7rem; padding: .7rem; }
.cs-search-results__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; display: block; }
.cs-search-results__cat { color: var(--md-red); font-size: .68rem; font-weight: 800; }
.cs-search-results__title { margin: .15rem 0; font-size: .98rem; font-weight: 800; line-height: 1.4; }
.cs-search-results__excerpt, .cs-search-results__meta, .cs-search-page__count { color: var(--md-muted); font-size: .82rem; }
.cs-search-page__empty-box { background: #fff; border: 1px dashed var(--md-line); border-radius: 12px; padding: 1.2rem; text-align: center; }
.cs-search-page__cta { color: var(--md-red); font-weight: 800; }

@media (min-width: 900px) {
  .md-leadgrid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr) 280px; }
  .md-feature__title { font-size: 1.55rem; }
}

@media (min-width: 768px) {
  .md-brand__logo { max-height: 78px; max-width: 240px; }
  .md-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .md-footer__bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (max-width: 767px) {
  .md-mast__meta,
  .md-mast .md-social,
  .md-epaper { display: none; }
  .md-mast__inner { justify-content: center; }
  .md-brand { display: flex; justify-content: center; }
  .md-brand__logo { max-height: 96px !important; max-width: min(280px, 78vw) !important; }
  .md-nav .md-wrap { max-width: none; }
  .md-catrow { grid-auto-flow: column; grid-auto-columns: minmax(210px, 72vw); grid-template-columns: none; overflow-x: auto; }
  .md-nav__list { -webkit-overflow-scrolling: touch; }
  .md-user__name { display: none; }
  .cs-search-results__excerpt { display: none; }
}
