:root {
  --red:      #D72638;
  --red-dark: #A51C2A;
  --gold:     #F4A523;
  --ink:      #111318;
  --ink-mid:  #2C2F38;
  --ink-soft: #5A5F6E;
  --paper:    #FBF8F3;
  --paper-2:  #F2EDE4;
  --white:    #FFFFFF;
  --border:   #E0D8CC;
  --radius:   12px;
  --radius-lg:20px;
  --shadow:   0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:0 12px 48px rgba(0,0,0,0.16);
  
}html {
     --viewer-pdf-toolbar-background-color: rgb(148, 15, 15) !important;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}


.header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  /* position: sticky; */
   top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.header-top-bar {
  background: var(--red);
  color: rgba(255,255,255,0.88);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 5px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.date-strip {
    font-size: 13px;
    padding: 3px 0;
}

.header-main {
    display: flex;
    align-items: center;
    padding: 2px 25px;
    gap: 32px;
}

.header-all-main {
    display: flex;
    align-items: center;
    gap: 26px;
    justify-content: center;
    margin: 10px 0;
    flex-wrap: wrap;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-wrap.main {
    margin: 0px auto;
}


.logo-wrap img {
    height: 70px;
    width: 120px;
}



nav.main-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: flex-start;
    max-width: max-content;
}
.nav-link {
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--ink-mid); text-decoration: none;
  padding: 7px 16px;
  border-radius: 8px;
  transition: all .2s;
}
.nav-link:hover { background: var(--paper); color: var(--red); }
.nav-link.active { background: var(--red); color: var(--white); }

.btn-search {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .2s;
}
.btn-search:hover { border-color: var(--red); color: var(--red); }

/* ---- HERO ---- */
.hero {
    background: #2e3854;
    min-height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 14px 32px;
    gap: 60px;
    position: relative;
    overflow: hidden;
    border-bottom:1px solid rgb(211, 47, 47)
}

.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.025) 40px, rgba(255,255,255,0.025) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.025) 40px, rgba(255,255,255,0.025) 41px);
  pointer-events: none;
}

.hero-content {
    flex: 1;
    animation: fadeUp .7s ease both;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase; font-weight: 600;
  margin-bottom: 18px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero-title em {
  color: var(--gold);
  font-style: italic;
}
.hero-sub {
  font-size: 15px; color: #ffff00;
  font-weight: 600;
  /* margin-bottom: 25px; */
  font-family: 'Noto Sans Telugu', sans-serif;
}
.hero-date-picker {
  display: flex; align-items: center;
  gap: 14px; flex-wrap: wrap;
}
.hero-date-picker label {
  font-size: 13px; color: rgba(255,255,255,0.55);
  font-family: 'Noto Sans Telugu', sans-serif;
}
.hero-date-picker input {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 9px 14px;
  color: #ffff00;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.hero-date-picker input:hover { border-color: var(--gold); }

/* Newspaper stack illustration */
.hero-visual {
  flex-shrink: 0;
  animation: fadeUp .7s .18s ease both;
}
.newspaper-stack { position: relative; width: 220px; height: 280px; }
.paper {
  position: absolute;
  width: 200px; height: 260px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}
.paper-3 { transform: rotate(-6deg) translate(-10px, 8px); background: #e0d8cc; }
.paper-2 { transform: rotate(-2deg) translate(-4px, 4px); background: #f0ebe0; }
.paper-1 {
  transform: rotate(1deg);
  padding: 14px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.paper-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
}
.paper-logo { font-size: 12px; font-weight: 800; color: var(--red); letter-spacing: -0.01em; }
.paper-date { font-size: 9px; color: var(--ink-soft); }
.paper-headline {
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--ink);
  line-height: 1.4;
}
.paper-score {
  font-size: 36px; font-weight: 900;
  color: var(--red);
  font-family: 'Playfair Display', serif;
}
.paper-lines { display: flex; flex-direction: column; gap: 5px; }
.paper-lines span {
  height: 6px; border-radius: 3px;
  background: var(--paper-2);
  animation: shimmer 2s infinite;
}
.paper-lines span:nth-child(1) { width: 100%; }
.paper-lines span:nth-child(2) { width: 88%; }
.paper-lines span:nth-child(3) { width: 95%; }
.paper-lines span:nth-child(4) { width: 75%; }
.paper-lines span:nth-child(5) { width: 90%; }
.paper-cols { display: flex; gap: 8px; margin-top: 4px; }
.paper-col { flex: 1; height: 48px; background: var(--paper-2); border-radius: 4px; }

/* ---- SECTION COMMON ---- */
section { padding: 40px 32px; }
.section-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
}
.section-header h2 {
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--ink); white-space: nowrap;
}
.section-line { flex: 1; height: 2px; background: var(--border); border-radius: 2px; }
.see-all {
  font-size: 13px; font-weight: 600; color: var(--red);
  text-decoration: none; white-space: nowrap;
  transition: opacity .2s;
}
.see-all:hover { opacity: 0.7; }

/* ---- EDITION CARDS ---- */
.edition-section { background: var(--white); }
.edition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.edition-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  transition: all .25s;
  background: var(--paper);
}
.edition-card:hover, .edition-card.active {
  border-color: var(--red);
  background: #FFF8F8;
  box-shadow: 0 0 0 4px rgba(215,38,56,0.08);
}
.edition-icon { font-size: 28px; }
.edition-info h3 {
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.edition-info p { font-size: 12px; color: var(--ink-soft); }
.edition-badge {
  margin-left: auto;
  background: var(--paper-2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.edition-card.active .edition-badge { background: var(--red); color: var(--white); }

/* ---- PAPER CARDS ---- */
.paper-section {
    background: var(--paper);
    width: 90%;
    margin: 0 auto;
}
.paper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.paper-card {
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .28s, box-shadow .28s;
  border-radius: 15px;
}
.paper-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.paper-card.featured { grid-row: span 1; }

.paper-card-thumb {
  position: relative;
  height: fit-content;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}


.thumb-inner {
    width: 100%;
}
.thumb-inner img {
    height: 600px;
    width: 100%;
    border: 2px solid #d5005e61;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.thumb-logo {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 6px; margin-bottom: 10px;
}
.thumb-headline {
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1.4; margin-bottom: 6px;
}
.thumb-score {
  font-family: 'Playfair Display', serif;
  font-size: 56px; font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.thumb-headline-big {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: var(--white);
  line-height: 1.3; margin-bottom: 12px;
}
.thumb-headline-big em { color: var(--gold); font-style: italic; font-size: 30px; }
.thumb-sub { font-size: 11px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.thumb-lines { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.thumb-lines span {
  height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.15);
}
.thumb-lines span:nth-child(odd)  { width: 90%; }
.thumb-lines span:nth-child(even) { width: 75%; }


.paper-card:hover .paper-card-overlay { opacity: 1; }
.read-btn {
  background: var(--white); color: var(--red);
  border: none; border-radius: 30px;
  padding: 12px 28px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans Telugu', sans-serif;
  transition: transform .15s;
}
.read-btn:hover { transform: scale(1.05); }

.featured-tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: var(--ink);
  font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: 0.04em;
  font-family: 'Noto Sans Telugu', sans-serif;
}

.paper-card-info {
  padding: 18px 20px;
}
.paper-card-info h3 {
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.paper-card-info p { font-size: 12px; color: var(--ink-soft); margin: 3px 0 10px; }
.paper-card-meta { display: flex; gap: 14px; }
.paper-card-meta span { font-size: 12px; color: var(--ink-soft); }

/* ---- DISTRICTS ---- */
.districts-section { background: var(--white); padding-bottom: 70px; }
.districts-tabs {
  display: flex; gap: 8px; margin-bottom: 22px;
}
.tab-btn {
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 9px 22px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s;
}
.tab-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }

.district-list {
  display: flex; flex-wrap: wrap; gap: 10px;
  display: none;
}
.district-list.active { display: flex; }
.district-pill {
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 13px; font-weight: 600;
  padding: 8px 18px;
  border-radius: 24px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  color: var(--ink-mid);
  text-decoration: none;
  transition: all .2s;
}
.district-pill:hover {
  background: var(--red); color: var(--white);
  border-color: var(--red);
  transform: translateY(-2px);
}


/* ---- PAPER CARDS ---- */
.district-paper-section {
    background: var(--paper);
    width: 90%;
    margin: 0 auto;
}
.district-paper-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin:30px 0;
}
.district-paper-card {
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .28s, box-shadow .28s;
  border-radius: 15px;
}
.district-paper-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.district-paper-card.featured { grid-row: span 1; }

.district-paper-card-thumb {
  position: relative;
  height: fit-content;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}


.district-thumb-inner {
    width: 100%;
}
.district-thumb-inner img {
    height: 400px;
    width: 100%;
    border: 2px solid #d5005e61;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.thumb-logo {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 6px; margin-bottom: 10px;
}
.thumb-headline {
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1.4; margin-bottom: 6px;
}
.thumb-score {
  font-family: 'Playfair Display', serif;
  font-size: 56px; font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.thumb-headline-big {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: var(--white);
  line-height: 1.3; margin-bottom: 12px;
}
.thumb-headline-big em { color: var(--gold); font-style: italic; font-size: 30px; }
.thumb-sub { font-size: 11px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.thumb-lines { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.thumb-lines span {
  height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.15);
}
.thumb-lines span:nth-child(odd)  { width: 90%; }
.thumb-lines span:nth-child(even) { width: 75%; }


.paper-card:hover .paper-card-overlay { opacity: 1; }
.read-btn {
  background: var(--white); color: var(--red);
  border: none; border-radius: 30px;
  padding: 12px 28px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans Telugu', sans-serif;
  transition: transform .15s;
}
.read-btn:hover { transform: scale(1.05); }

.featured-tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: var(--ink);
  font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: 0.04em;
  font-family: 'Noto Sans Telugu', sans-serif;
}

.district-paper-card-info {
  padding: 18px 20px;
}
.district-paper-card-info h3 {
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.district-paper-card-info p { font-size: 12px; color: var(--ink-soft); margin: 3px 0 10px; }
.district-paper-card-meta { display: flex; gap: 14px; }
.district-paper-card-meta span { font-size: 12px; color: var(--ink-soft); }












/* ---- FOOTER ---- */
.footer {
  background: #2f3954;
  padding: 36px 32px 28px;
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; padding: 10px;
  border-radius: 10px;
  /* border: 1px solid white; */
} 

.footer-logo-wrap img {
    height: 60px;
    width: 120px;
}

.footer-links {   
    color: #ffffff8f; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-family: 'Noto Sans Telugu', sans-serif;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    min-width: 65%;
}
.footer-copy span { color: rgba(255,255,255,0.5); font-weight: 600; }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  animation: fadeIn .2s;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  text-align: center;
  position: relative;
  max-width: 380px; width: 90%;
  animation: fadeUp .25s;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 18px;
  cursor: pointer; color: var(--ink-soft);
}
.modal-icon { font-size: 40px; margin-bottom: 14px; }
.modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: var(--ink); margin-bottom: 8px;
}
.modal p {
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 14px; color: var(--ink-soft); margin-bottom: 24px;
}
.modal-btn {
  background: var(--red); color: var(--white);
  border: none; border-radius: 8px;
  padding: 12px 30px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Noto Sans Telugu', sans-serif;
  transition: background .2s;
}
.modal-btn:hover { background: var(--red-dark); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.5; }
}


@media (max-width:1400px)  {

   .thumb-inner img {
    height: 500px;
   }
   .district-paper-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
   }

}



/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .edition-grid, .paper-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .hero { flex-direction: column; gap: 32px; padding: 40px 20px; }
  section { padding: 40px 20px; }
    .pdf-container {
    height: 650px;
  }

  .pdf-frame {
    transform: scale(1.05);
  }
}
@media (max-width: 580px) {
  .edition-grid, .paper-grid , .district-paper-grid { grid-template-columns: 1fr; }
  .header-main { padding: 6px 16px; }
  .header-all-main {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    margin: 5px 0;
    flex-wrap: wrap;
}
.nav-link {
    font-family: 'Noto Sans Telugu', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-mid);
    text-decoration: none;
    padding: 7px 6px;
    border-radius: 8px;
    transition: all .2s;
    display: block;
}
       .hero {
        flex-direction: column;
        gap: 10px;
        padding: 15px 15px;
        justify-content: space-around;
    }
    .hero-date-picker {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.logo-wrap img {
    height: 55px;
    width: 110px;
}
  .header-top-bar { padding: 5px 16px; }





  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { align-items: flex-start; }
}




/*   PDF Viewer    */


.pdf-section {
      max-width: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 800px;
    margin: 50px auto;
    background: #ffffff;
    padding: 20px;
    border-top: 3px solid #2e3854;
    border-bottom: 3px solid #2e3854;
    border-radius: 10px;
}
.pdf-container {
  width: 100%;
  height: 1000px;
  background: #ffffff;
  overflow: hidden;              /* hides black edges */
  border-radius: 10px;
}

.pdf-frame {

  height: 1000px;
  border: none;

}
.edition-bar {
  padding: 10px 20px;
  background: #fff;
  /* border-top: 2px solid #d32f2f; */
  border-bottom: 1px solid #eee;
}

.edition-label {
  font-size: 14px;
  color: #555;
}

.edition-name {
  font-size: 20px;
  font-weight: bold;
  color: #d32f2f;
}
.pdf-section .pdf-frame #toolbar {
    align-items: center;
    height: 100px !important;
    background: rgb(46 56 84) !important;
}

@media (max-width:768px) {
    .paper-section {
    background: var(--paper);
    width: 100%;
    margin: 0 auto;
}

.pdf-section {
    max-width: 93%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    max-height: 600px;
    margin: 20px auto;
    background: #ffffff;
    padding: 7px;
    border-top: 3px solid #2e3854;
    border-bottom: 3px solid #2e3854;
    border-radius: 10px;
}
    section {
        padding: 20px 20px;
    }
    .section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
}