/* Cream Daily — distinct from Red Navy portal layout */
.theme-telanganagalam {
  --cd-navy: #1A237E;
  --cd-navy-deep: #0F1648;
  --cd-red: #C62828;
  --cd-cream: #FFF8E7;
  --cd-cream-deep: #F3EAD0;
  --cd-mint: #D8EEDC;
  --cd-ink: #1c1917;
  --cd-muted: #57534e;
  font-family: "DM Sans", "Noto Sans Telugu", system-ui, sans-serif;
  color: var(--cd-ink);
  background: #f7f4ec;
  -webkit-text-size-adjust: 100%;
}
.theme-telanganagalam a { text-decoration: none; color: inherit; }
.cd-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.bp-hide-mobile { display: block; }
.bp-hide-desktop { display: none; }
.cd-only-mobile { display: none !important; }
.cd-only-desktop { display: block; }
.m-0 { margin: 0; }
.pt-4 { padding-top: 1rem; }
.mt-auto { margin-top: auto; }
.hidden { display: none !important; }
.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;
}

/* Utility strip */
.cd-utility {
  background: var(--cd-navy-deep);
  color: #c7d2fe;
  font-size: .75rem;
}
.cd-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem 0;
}
.cd-utility__date { flex: 0 0 auto; }
.cd-utility .cd-search--compact {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
}
.cd-utility .cd-search--compact .cd-search__input {
  color: #fff;
  padding: .45rem .75rem;
  font-size: .84rem;
}
.cd-utility .cd-search--compact .cd-search__input::placeholder { color: #a5b4fc; }
.cd-utility .cd-search--compact .cd-search__btn {
  background: var(--cd-red);
  padding: 0 .85rem;
  font-size: .78rem;
}
.cd-social { display: flex; gap: .4rem; flex: 0 0 auto; }

/* Left logo + actions (responsive) */
.cd-masthead {
  background:
    radial-gradient(circle at 12% 20%, rgba(200, 230, 201, .45), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(255, 236, 179, .55), transparent 40%),
    var(--cd-cream);
  border-bottom: 1px solid var(--cd-cream-deep);
  padding: .85rem 0;
}
.cd-masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  min-height: 72px;
}
.cd-masthead__brand {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(100%, 560px);
}
.cd-masthead__logo {
  display: block;
  max-height: 88px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
  border: 1px solid #d6c9a4;
  background: #fff;
  box-shadow: 0 6px 18px rgba(26, 35, 126, .07);
}
.cd-masthead__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  flex: 0 0 auto;
}

.cd-epaper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .95rem;
  background: var(--cd-red);
  color: #fff !important;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid #9f1d1d;
  min-height: 40px;
}
.cd-epaper:hover { background: #9f1d1d; }
.cd-epaper--block { width: 100%; }
.cd-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #d6c9a4;
  background: #fff;
  color: var(--cd-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cd-search-wrap { margin-top: .75rem; }
.cd-search-wrap[hidden] { display: none !important; }
.cd-search-wrap--mobile { display: none; }
.cd-masthead.is-search-open .cd-search-wrap--mobile {
  display: block;
}
.cd-search {
  display: flex;
  align-items: stretch;
  border: 1px solid #d6c9a4;
  background: #fff;
  overflow: hidden;
}
.cd-search__input {
  flex: 1;
  border: 0;
  padding: .7rem .9rem;
  font-size: .92rem;
  min-width: 0;
  background: transparent;
}
.cd-search__input:focus { outline: none; }
.cd-search__btn {
  border: 0;
  background: var(--cd-navy);
  color: #fff;
  font-weight: 700;
  padding: 0 1.1rem;
  cursor: pointer;
}
.cd-search__close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  padding: 0 .5rem;
  cursor: pointer;
  color: var(--cd-muted);
}

/* Soft cream nav strip (vs solid navy Red Navy bar) */
.cd-nav {
  background: #fff;
  border-bottom: 3px solid var(--cd-navy);
  position: sticky;
  top: 0;
  z-index: 40;
}
.cd-nav__list {
  display: flex;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: .35rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cd-nav__list::-webkit-scrollbar { display: none; }
.cd-nav__link {
  display: inline-flex;
  align-items: center;
  padding: .55rem .85rem;
  font-size: .86rem;
  font-weight: 700;
  color: var(--cd-navy);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.cd-nav__link:hover,
.cd-nav__link.is-active {
  color: var(--cd-red);
  border-bottom-color: var(--cd-red);
}


.bp-container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

.cd-home picture,
.cd-home .news-image-box,
.cd-home [class*="aspect-"] {
  display: block;
  width: 100%;
  height: 100%;
}
.cd-home .bp-carousel__media img,
.cd-home .bp-story-row__thumb img,
.cd-home .bp-latest-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Hero — CS News style */
.bp-hero { padding: 1rem 0; }
.bp-hero__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.bp-carousel { position: relative; border-radius: .5rem; overflow: hidden; background: var(--cd-navy-deep); }
.bp-carousel__slide { display: none; }
.bp-carousel__slide.is-active { display: block; }
.bp-carousel__link { display: block; color: #fff; }
.bp-carousel__media { position: relative; aspect-ratio: 16 / 9; background: var(--cd-navy-deep); overflow: hidden; }
.bp-carousel__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1rem 2.5rem;
  background: linear-gradient(transparent, rgba(15, 22, 72, .92));
  color: #fff;
}
.theme-telanganagalam .bp-carousel__link,
.theme-telanganagalam .bp-carousel__overlay,
.theme-telanganagalam .bp-carousel__title,
.theme-telanganagalam .bp-carousel__title a,
.theme-telanganagalam .bp-carousel__meta,
.theme-telanganagalam .bp-carousel__meta time {
  color: #fff !important;
}
.bp-carousel__badge {
  display: inline-block;
  background: var(--cd-red);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: .2rem .5rem;
  margin-bottom: .5rem;
}
.bp-carousel__title {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 800;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bp-carousel__meta { margin: 0; font-size: .75rem; opacity: .95; color: #fff; }
.bp-carousel__arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  font-size: .85rem;
}
.bp-carousel__arrow--prev { left: .5rem; }
.bp-carousel__arrow--next { right: .5rem; }
.bp-carousel__dots {
  position: absolute;
  bottom: .75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
  z-index: 2;
}
.bp-carousel__dot {
  width: 7px; height: 7px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.4); cursor: pointer; padding: 0;
}
.bp-carousel__dot.is-active { background: #fff; width: 18px; border-radius: 999px; }

.bp-topnews {
  background: #fff;
  border: 1px solid var(--cd-cream-deep);
  border-radius: .5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.bp-topnews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--cd-red);
}
.bp-topnews__title { margin: 0; font-size: 1rem; font-weight: 800; color: var(--cd-navy-deep); }
.bp-topnews__list { list-style: none; margin: 0; padding: 0; flex: 1; }
.bp-topnews__item {
  position: relative;
  padding-left: .85rem;
  margin-bottom: .75rem;
  border-left: 2px solid #d6d3d1;
}
.bp-topnews__item:last-child { margin-bottom: 0; }
.bp-topnews__time { display: block; font-size: .68rem; color: #78716c; margin-bottom: .15rem; }
.bp-topnews__headline {
  color: var(--cd-navy-deep);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bp-topnews__headline:hover { color: var(--cd-red); }
.bp-topnews__more {
  display: inline-flex;
  align-items: center;
  margin-top: .75rem;
  color: var(--cd-red);
  font-size: .82rem;
  font-weight: 700;
  min-height: 44px;
}

.bp-main { padding: .25rem 0 1.75rem; }
.bp-main__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.bp-panel {
  background: #fff;
  border: 1px solid var(--cd-cream-deep);
  border-radius: .5rem;
  padding: 1rem;
}
.bp-panel__title {
  margin: 0 0 .85rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--cd-navy-deep);
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--cd-red);
}

.bp-story-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: .65rem;
  padding: .7rem 0;
  border-bottom: 1px solid #f5f5f4;
  align-items: start;
}
.bp-story-row:last-child { border-bottom: 0; }
.bp-story-row__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: .35rem;
  background: #e7e5e4;
}
.bp-story-row__title {
  margin: 0 0 .25rem;
  font-size: .88rem;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bp-story-row__title a { color: var(--cd-navy-deep); }
.bp-story-row__title a:hover { color: var(--cd-red); }
.bp-story-row__meta { margin: 0; font-size: .72rem; color: #78716c; }

.bp-tabs__nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 1px solid #e7e5e4;
  margin-bottom: .75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.bp-tabs__nav::-webkit-scrollbar { display: none; }
.bp-tabs__btn {
  border: 0;
  background: transparent;
  padding: .65rem .85rem;
  font-size: .78rem;
  font-weight: 700;
  color: #78716c;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
}
.bp-tabs__btn.is-active { color: var(--cd-red); border-bottom-color: var(--cd-red); }
.bp-tabs__panel { display: none; }
.bp-tabs__panel.is-active { display: block; }

.bp-latest-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: .6rem;
  padding: .65rem 0;
  border-bottom: 1px solid #f5f5f4;
  align-items: start;
}
.bp-latest-row:last-child { border-bottom: 0; }
.bp-latest-row__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: .3rem;
  background: #e7e5e4;
}
.bp-latest-row__title {
  margin: 0 0 .2rem;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bp-latest-row__title a { color: var(--cd-navy-deep); }
.bp-latest-row__title a:hover { color: var(--cd-red); }
.bp-latest-row__meta {
  margin: 0;
  font-size: .7rem;
  color: #78716c;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.bp-latest-row__tag {
  background: #ffe8e8;
  color: var(--cd-red);
  padding: .1rem .35rem;
  border-radius: .15rem;
  font-size: .62rem;
  font-weight: 700;
}

.bp-sidebar-widgets { display: flex; flex-direction: column; gap: 1rem; }
.bp-newsletter {
  background: linear-gradient(135deg, var(--cd-navy-deep), var(--cd-red));
  color: #fff;
  border-radius: .5rem;
  padding: 1.25rem;
  text-align: center;
}
.bp-newsletter__icon { font-size: 2rem; margin-bottom: .35rem; }
.bp-newsletter__title { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; }
.bp-newsletter__text { margin: 0 0 .85rem; font-size: .8rem; opacity: .95; }
.bp-newsletter__form { display: flex; flex-direction: column; gap: .5rem; }
.bp-newsletter__input {
  border: 0;
  border-radius: .35rem;
  padding: .65rem .75rem;
  font-size: .85rem;
  min-height: 44px;
}
.bp-newsletter__btn {
  border: 0;
  background: #fff;
  color: var(--cd-navy);
  font-weight: 800;
  padding: .65rem;
  border-radius: .35rem;
  cursor: pointer;
  min-height: 44px;
}

.cd-epaper-panel {
  background: linear-gradient(160deg, var(--cd-cream), #fff);
  border: 1px solid var(--cd-cream-deep);
  border-left: 4px solid var(--cd-red);
  border-radius: .5rem;
  padding: 1rem;
}
.cd-epaper-panel__title {
  margin: 0 0 .35rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--cd-navy);
}
.cd-epaper-panel__text {
  margin: 0 0 .75rem;
  color: var(--cd-muted);
  font-size: .85rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .bp-story-row { grid-template-columns: 110px 1fr; }
  .bp-latest-row { grid-template-columns: 96px 1fr; }
}
@media (min-width: 960px) {
  .bp-hero__grid { grid-template-columns: 2fr 1fr; align-items: stretch; }
  .bp-main__grid { grid-template-columns: 1fr 1.1fr .85fr; gap: 1.25rem; align-items: start; }
  .bp-story-row { grid-template-columns: 120px 1fr; }
  .bp-carousel__title { font-size: 1.2rem; -webkit-line-clamp: 2; }
}
@media (max-width: 767px) {
  .bp-hero { padding: .75rem 0 0; }
  .bp-hero.bp-container { padding-left: 0; padding-right: 0; }
  .bp-carousel { border-radius: 0; }
  .bp-carousel__overlay { padding: 1rem .85rem 2.25rem; }
  .bp-carousel__title { font-size: 1rem; }
  .bp-topnews { margin: 0 .85rem; }
  .bp-topnews__item:nth-child(n+6) { display: none; }
  .bp-main.bp-container { padding-left: .85rem; padding-right: .85rem; }
}

/* Footer */
.cd-footer { background: var(--cd-navy-deep); color: #c7d2fe; }
.cd-footer__main { padding: 2rem 0 1.5rem; }
.cd-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.cd-footer__brand { color: #fff; font-weight: 800; font-size: 1.15rem; }
.cd-footer__logo { max-height: 56px; width: auto; background: #fff; padding: .25rem; }
.cd-footer__about { margin: .75rem 0; line-height: 1.5; font-size: .9rem; }
.cd-footer__epaper { margin: 0 0 1rem; }
.cd-footer__heading {
  margin: 0 0 .75rem;
  color: #ffe082;
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cd-footer__links,
.cd-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .4rem;
  font-size: .88rem;
}
.cd-footer__links a,
.cd-footer__contact a { color: #e0e7ff; }
.cd-footer__links a:hover,
.cd-footer__contact a:hover { color: #fff; }
.cd-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: .85rem 0;
  font-size: .8rem;
}
.cd-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
}
.cd-footer__legal { display: flex; gap: .9rem; }
.cd-footer__legal a { color: #c7d2fe; }
.cd-scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--cd-red);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 60;
}

/* Login modal (shared IDs with theme.js) */
.bp-login-modal[hidden] { display: none !important; }
.bp-login-modal {
  position: fixed; inset: 0; z-index: 10040;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.bp-login-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.bp-login-modal__panel {
  position: relative; z-index: 1; width: min(100%, 400px);
  background: #fff; border: 1px solid #e7e5e4; padding: 1.4rem; text-align: center;
}
.bp-login-modal__close {
  position: absolute; top: .4rem; right: .55rem; border: 0; background: transparent;
  font-size: 1.5rem; cursor: pointer; color: #78716c;
}
.bp-login-modal__logo { max-height: 64px; width: auto; margin: 0 auto .75rem; }
.bp-login-modal__title { margin: 0 0 .35rem; font-size: 1.15rem; color: var(--cd-navy); }
.bp-login-modal__lead { margin: 0 0 1rem; color: var(--cd-muted); font-size: .9rem; }
.bp-login-modal__hint { margin: .75rem 0 0; font-size: .8rem; color: #78716c; }
.bp-user-chip { display: inline-flex; align-items: center; gap: .4rem; }
.bp-user-chip__avatar { border-radius: 999px; object-fit: cover; }
.bp-user-chip__logout {
  border: 1px solid #d6c9a4; background: #fff; color: var(--cd-navy);
  font-size: .75rem; font-weight: 700; padding: .35rem .55rem; cursor: pointer;
}

@media (max-width: 960px) {
  .cd-footer__grid { grid-template-columns: 1fr 1fr; }
  .cd-masthead__logo { max-height: 72px; }
}

@media (max-width: 767px) {
  .bp-hide-mobile { display: none !important; }
  .bp-hide-desktop { display: inline-flex !important; }
  .cd-only-desktop { display: none !important; }
  .cd-only-mobile { display: inline-flex !important; }
  .cd-masthead { padding: .65rem 0; }
  .cd-masthead__inner {
    gap: .5rem;
    min-height: 56px;
  }
  .cd-masthead__brand { max-width: calc(100% - 7.5rem); }
  .cd-masthead__logo {
    max-height: 48px;
    border-width: 0;
    box-shadow: none;
  }
  .cd-epaper {
    padding: .4rem .65rem;
    font-size: .7rem;
    min-height: 36px;
  }
  .cd-masthead.is-search-open .cd-search-wrap--mobile {
    display: block !important;
  }
  .cd-search-wrap--mobile[hidden] { display: none !important; }
  .cd-masthead.is-search-open .cd-search-wrap--mobile[hidden] { display: block !important; }
  
  
  
  
  
  .cd-band__grid,
  .cd-footer__grid { grid-template-columns: 1fr; }
  .cd-nav__link { padding: .5rem .7rem; font-size: .82rem; }
}

@media (max-width: 420px) {
  .cd-masthead__logo { max-height: 40px; }
  .cd-epaper { padding: .35rem .5rem; font-size: .65rem; }
}
