/* ========================================================
   Sach News Portal - Stylesheet (styles.css)
   Colors: Deep Red/Maroon, Gold/Yellow, Crisp White
   ======================================================== */

:root {
  --maroon-dark: #3a030a;
  --maroon-primary: #6d0a16;
  --maroon-crimson: #8f0e1e;
  --maroon-light: #ab182b;
  --gold-yellow: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-light: #fef3c7;
  --gold-dark: #b45309;
  --pure-white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --footer-bg: #1c0206;
  --footer-card: #2c050c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -5px rgba(109, 10, 22, 0.15);
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif;
  background-color: #f6f7f9;
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* TOP UTILITY BAR */
.top-bar {
  background-color: var(--maroon-dark);
  color: #cbd5e1;
  font-size: 13px;
  border-bottom: 2px solid var(--gold-yellow);
  padding: 6px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-meta i {
  color: var(--gold-bright);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* LANGUAGE SWITCHER */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2px;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.lang-btn {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 18px;
  background: transparent;
  color: #f1f5f9;
  transition: all 0.25s ease;
}

.lang-btn.active {
  background: var(--gold-bright);
  color: var(--maroon-dark);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.social-pills a {
  color: #e2e8f0;
  margin-left: 8px;
  font-size: 13px;
  transition: color 0.2s;
}

.social-pills a:hover {
  color: var(--gold-bright);
}

/* MAIN BRAND HEADER */
.main-header {
  background: linear-gradient(135deg, var(--maroon-primary) 0%, var(--maroon-dark) 100%);
  color: var(--pure-white);
  padding: 20px 0 16px;
  position: relative;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-badge {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #fef08a);
  border: 3px solid var(--gold-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.brand-logo-badge span.letter {
  font-family: 'Rozha One', serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  color: var(--maroon-primary);
}

.brand-logo-badge span.sub {
  font-size: 8px;
  font-weight: 800;
  color: var(--maroon-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-text h1 {
  font-family: 'Rozha One', serif;
  font-size: 38px;
  line-height: 1.1;
  color: var(--pure-white);
  letter-spacing: 0.5px;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.4);
}

.brand-text h1 span {
  color: var(--gold-bright);
}

.brand-tagline {
  font-size: 13.5px;
  color: var(--gold-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-quick-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-tv-pill {
  background: #dc2626;
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.6);
  border: 1px solid #fecaca;
}

.live-dot {
  width: 9px;
  height: 9px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.epaper-btn {
  background: var(--gold-bright);
  color: var(--maroon-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.epaper-btn:hover {
  background: #ffffff;
  color: var(--maroon-primary);
  transform: translateY(-1px);
}

/* NAVIGATION BAR */
.nav-bar {
  background: var(--pure-white);
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 0;
}

.nav-menu li a {
  display: block;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--maroon-primary);
  border-bottom-color: var(--maroon-primary);
  background: #fdf2f4;
}

.nav-search {
  position: relative;
  margin-left: 10px;
}

.nav-search input {
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  border-radius: 20px;
  padding: 7px 32px 7px 14px;
  font-size: 13px;
  width: 170px;
  transition: all 0.3s;
}

.nav-search input:focus {
  width: 220px;
  outline: none;
  background: #fff;
  border-color: var(--maroon-crimson);
}

.nav-search i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-700);
  font-size: 13px;
  pointer-events: none;
}

/* BREAKING NEWS TICKER */
.breaking-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.breaking-label {
  background: var(--maroon-crimson);
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 12px;
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0% 100%);
  padding-right: 24px;
}

.breaking-content {
  padding: 6px 16px;
  font-size: 13.5px;
  color: var(--gray-900);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* MAIN CONTENT GRID */
.portal-main {
  padding: 24px 0 48px;
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 26px;
}

/* HERO FEATURED STORY */
.featured-card {
  background: var(--pure-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 26px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.featured-card:hover {
  box-shadow: var(--shadow-lg);
}

.featured-img-wrap {
  position: relative;
  height: 380px;
  background: #1e293b;
  overflow: hidden;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-card:hover .featured-img-wrap img {
  transform: scale(1.03);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(28,2,6,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.badge-cat {
  background: var(--gold-bright);
  color: var(--maroon-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
  width: fit-content;
}

.featured-title {
  font-family: 'Rozha One', serif;
  font-size: 27px;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 10px;
  cursor: pointer;
}

.featured-title:hover {
  color: var(--gold-bright);
}

.featured-meta {
  color: #e2e8f0;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* STORY TILES GRID */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 8px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--maroon-primary);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 45px;
  height: 3px;
  background: var(--gold-yellow);
}

.articles-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-yellow);
}

.news-thumb {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gray-900);
  margin: 8px 0 10px;
  cursor: pointer;
}

.card-title:hover {
  color: var(--maroon-crimson);
}

.card-desc {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}

.card-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #64748b;
  border-top: 1px dashed var(--gray-200);
  padding-top: 10px;
}

/* UPSC & EDUCATION CORNER */
.edu-banner {
  background: linear-gradient(135deg, #1c0206 0%, #450810 100%);
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  margin: 32px 0 10px;
  border: 1px solid var(--gold-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.edu-banner h3 {
  font-size: 21px;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.edu-banner p {
  font-size: 13px;
  color: #e2e8f0;
  max-width: 600px;
}

.edu-btn {
  background: var(--gold-bright);
  color: var(--maroon-dark);
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s;
}

.edu-btn:hover {
  background: #ffffff;
  color: var(--maroon-primary);
}

/* SIDEBAR STYLES */
.sidebar-widget {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--maroon-dark);
  border-left: 4px solid var(--maroon-primary);
  padding-left: 10px;
  margin-bottom: 16px;
}

/* TRENDING LIST */
.trending-item {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
  cursor: pointer;
}

.trending-item:last-child {
  border-bottom: none;
}

.trend-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold-dark);
  line-height: 1;
  min-width: 24px;
}

.trend-text h4 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gray-900);
  transition: color 0.2s;
}

.trending-item:hover .trend-text h4 {
  color: var(--maroon-crimson);
}

.trend-text span {
  font-size: 11px;
  color: #64748b;
}

/* POLL WIDGET */
.poll-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 14px;
}

.poll-question {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--maroon-dark);
}

.poll-option {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.poll-option:hover {
  border-color: var(--maroon-primary);
  background: #fdf2f4;
}

/* NEWSLETTER WIDGET */
.newsletter-card {
  background: linear-gradient(135deg, var(--maroon-primary), var(--maroon-dark));
  color: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
}

.newsletter-card h4 {
  color: var(--gold-bright);
  font-size: 16px;
  margin-bottom: 6px;
}

.newsletter-card p {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.newsletter-form {
  display: flex;
  gap: 6px;
}

.newsletter-form input {
  flex: 1;
  padding: 8px 12px;
  font-size: 12.5px;
  border-radius: 6px;
  border: none;
}

.newsletter-form button {
  background: var(--gold-bright);
  color: var(--maroon-dark);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12.5px;
}

/* HIGH-CONTRAST FOOTER */
.site-footer {
  background: var(--footer-bg);
  color: #e2e8f0;
  padding: 56px 0 0;
  border-top: 4px solid var(--gold-yellow);
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand h2 {
  font-family: 'Rozha One', serif;
  font-size: 30px;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand h2 span {
  color: var(--gold-bright);
}

.footer-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--footer-card);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--gold-bright);
  font-weight: 600;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-dark);
  display: inline-block;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.footer-links a i {
  color: var(--gold-bright);
  font-size: 10px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--gold-bright);
  font-size: 15px;
  margin-top: 2px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--footer-card);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
}

.footer-social-btn:hover {
  background: var(--gold-bright);
  color: var(--maroon-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  background: #110103;
  padding: 18px 0;
  font-size: 12.5px;
  color: #94a3b8;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom strong {
  color: var(--gold-bright);
}

/* READING MODAL POPUP */
.article-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.article-modal.show {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
}

.modal-head-bar {
  position: sticky;
  top: 0;
  background: var(--pure-white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-btn {
  background: var(--gray-100);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--gray-900);
  font-weight: 600;
}

.modal-btn:hover {
  background: var(--gray-200);
}

.close-modal-btn {
  background: #fee2e2;
  color: #dc2626;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.modal-content-area {
  padding: 24px;
}

.modal-content-area h2 {
  font-family: 'Rozha One', serif;
  font-size: 26px;
  color: var(--maroon-primary);
  margin-bottom: 14px;
}

.modal-content-area img {
  width: 100%;
  border-radius: 8px;
  max-height: 350px;
  object-fit: cover;
  margin-bottom: 16px;
}

.modal-content-area p {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 16px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .articles-subgrid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .brand-text h1 {
    font-size: 30px;
  }
  .featured-img-wrap {
    height: 280px;
  }
  .featured-title {
    font-size: 21px;
  }
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
