/* ==========================================================================
   Deep Sheetal Engineers Pvt. Ltd.
   Bihar RERA Rankings 2026 — component stylesheet
   Upload to:  /assets/css/rera-rankings.css
   Include with: <link rel="stylesheet" href="assets/css/rera-rankings.css">
   ------------------------------------------------------------------------
   All classes are namespaced with .dsr- so nothing here can clash with or
   overwrite your existing site styles. Self-contained: no frameworks, no
   external fonts, no JavaScript required (the counter script is optional).
   ------------------------------------------------------------------------
   TO MATCH YOUR BRAND: change only the 4 colour values in :root below.
   ========================================================================== */

:root {
  --dsr-navy:  #10243c;   /* deep base colour — gradient start */
  --dsr-navy2: #1b3c5f;   /* deep base colour — gradient end   */
  --dsr-gold:  #c9a227;   /* accent / rank numerals */
  --dsr-gold-soft: #f3e3ae;
  --dsr-ink:   #16202b;
  --dsr-muted: #5d6b7a;
  --dsr-line:  rgba(255, 255, 255, .14);
  --dsr-radius: 16px;
}

/* ---------- Section shell ---------------------------------------------- */
.dsr-band {
  position: relative;
  padding: 64px 0 68px;
  background: linear-gradient(135deg, var(--dsr-navy) 0%, var(--dsr-navy2) 100%);
  color: #fff;
  overflow: hidden;
  font-family: inherit;
}
.dsr-band::before,
.dsr-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.dsr-band::before {
  width: 420px; height: 420px;
  top: -190px; right: -120px;
  background: radial-gradient(circle, rgba(201,162,39,.28), transparent 68%);
}
.dsr-band::after {
  width: 340px; height: 340px;
  bottom: -180px; left: -110px;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
}
.dsr-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ---------- Headings ---------------------------------------------------- */
.dsr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--dsr-gold-soft);
  border: 1px solid rgba(201,162,39,.45);
  background: rgba(201,162,39,.10);
  padding: 7px 16px;
  border-radius: 100px;
  margin: 0 0 18px;
}
.dsr-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.22;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.4px;
}
.dsr-title em {
  font-style: normal;
  color: var(--dsr-gold);
}
.dsr-lede {
  margin: 0 auto;
  max-width: 780px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  color: rgba(255,255,255,.80);
}
.dsr-lede strong { color: #fff; font-weight: 700; }
.dsr-center { text-align: center; }

/* ---------- Cards ------------------------------------------------------- */
.dsr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 38px 0 26px;
}
.dsr-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 26px 24px;
  background: rgba(255,255,255,.065);
  border: 1px solid var(--dsr-line);
  border-radius: var(--dsr-radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.dsr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,39,.55);
  background: rgba(255,255,255,.10);
}
.dsr-rank {
  flex: 0 0 auto;
  width: 92px;
  text-align: center;
  padding: 12px 6px 10px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(201,162,39,.95), rgba(160,122,18,.92));
  color: #12202f;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.dsr-rank span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .82;
}
.dsr-rank strong {
  display: block;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1px;
}
.dsr-rank small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  opacity: .85;
}
.dsr-card-body { min-width: 0; }
.dsr-card-body h3 {
  margin: 2px 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.2px;
}
.dsr-card-body p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.74);
}
.dsr-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--dsr-gold-soft);
  margin: 0 0 8px;
}

/* ---------- Buttons ----------------------------------------------------- */
.dsr-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid rgba(201,162,39,.6);
  color: #12202f;
  background: linear-gradient(140deg, #e0bd45, #c9a227);
  transition: filter .25s ease, transform .25s ease;
}
.dsr-btn:hover { filter: brightness(1.08); transform: translateY(-2px); color: #12202f; }
.dsr-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.dsr-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.42);
}
.dsr-btn--ghost:hover { background: rgba(255,255,255,.10); color: #fff; }
.dsr-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ---------- Disclaimer -------------------------------------------------- */
.dsr-note {
  margin: 8px auto 0;
  max-width: 900px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.58);
  border-top: 1px solid var(--dsr-line);
  padding-top: 16px;
}

/* ---------- Announcement ticker (top bar) ------------------------------- */
.dsr-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.dsr-ticker a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.dsr-ticker .dsr-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ffd45e;
  box-shadow: 0 0 0 0 rgba(255,212,94,.7);
  animation: dsr-pulse 2s infinite;
}
@keyframes dsr-pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255,212,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,212,94,0); }
}

/* ---------- Rank badge for project cards / hero ------------------------- */
.dsr-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: #12202f;
  background: linear-gradient(140deg, #f0d271, #c9a227);
  border-radius: 100px;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  white-space: nowrap;
}
.dsr-badge--float {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
}
.dsr-badge svg { width: 14px; height: 14px; }

/* ---------- Inline callout (project detail / about page) ---------------- */
.dsr-callout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  margin: 22px 0;
  border-radius: 14px;
  border: 1px solid rgba(201,162,39,.42);
  border-left: 5px solid var(--dsr-gold);
  background: linear-gradient(120deg, rgba(201,162,39,.10), rgba(201,162,39,.02));
  color: var(--dsr-ink);
}
.dsr-callout .dsr-rank { box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.dsr-callout h4 {
  margin: 0 0 6px;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--dsr-ink);
}
.dsr-callout p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--dsr-muted);
}
.dsr-callout .dsr-note {
  color: var(--dsr-muted);
  border-top-color: rgba(0,0,0,.10);
  margin-top: 12px;
  padding-top: 12px;
  font-size: 12px;
}

/* ---------- Light variant of the band (for About / Media pages) --------- */
.dsr-band--light {
  background: linear-gradient(135deg, #f7f4ec 0%, #ffffff 60%);
  color: var(--dsr-ink);
}
.dsr-band--light::after { background: radial-gradient(circle, rgba(16,36,60,.06), transparent 70%); }
.dsr-band--light .dsr-title { color: var(--dsr-ink); }
.dsr-band--light .dsr-lede { color: var(--dsr-muted); }
.dsr-band--light .dsr-lede strong { color: var(--dsr-ink); }
.dsr-band--light .dsr-eyebrow { color: #8a6d10; background: rgba(201,162,39,.12); }
.dsr-band--light .dsr-card {
  background: #fff;
  border-color: rgba(16,36,60,.10);
  box-shadow: 0 10px 30px rgba(16,36,60,.07);
}
.dsr-band--light .dsr-card:hover { background: #fff; }
.dsr-band--light .dsr-card-body h3 { color: var(--dsr-ink); }
.dsr-band--light .dsr-card-body p { color: var(--dsr-muted); }
.dsr-band--light .dsr-tag { color: #8a6d10; }
.dsr-band--light .dsr-note { color: var(--dsr-muted); border-top-color: rgba(16,36,60,.12); }
.dsr-band--light .dsr-btn--ghost { color: var(--dsr-ink); border-color: rgba(16,36,60,.28); }
.dsr-band--light .dsr-btn--ghost:hover { background: rgba(16,36,60,.06); color: var(--dsr-ink); }

/* ---------- Media / news article card ----------------------------------- */
.dsr-news {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(16,36,60,.10);
  border-radius: var(--dsr-radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(16,36,60,.07);
  margin-bottom: 20px;
}
.dsr-news__date {
  text-align: center;
  padding: 16px 8px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--dsr-navy), var(--dsr-navy2));
  color: #fff;
}
.dsr-news__date strong { display: block; font-size: 30px; font-weight: 900; line-height: 1; }
.dsr-news__date span   { display: block; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; opacity: .8; margin-top: 6px; }
.dsr-news h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--dsr-ink); }
.dsr-news p  { margin: 0 0 14px; font-size: 14.5px; line-height: 1.7; color: var(--dsr-muted); }
.dsr-news .dsr-btn { color: #12202f; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 860px) {
  .dsr-grid { grid-template-columns: 1fr; gap: 18px; }
  .dsr-band { padding: 48px 0 52px; }
  .dsr-news { grid-template-columns: 1fr; }
  .dsr-news__date { display: inline-block; padding: 12px 22px; }
}
@media (max-width: 480px) {
  .dsr-card { flex-direction: column; align-items: center; text-align: center; }
  .dsr-callout { flex-direction: column; align-items: center; text-align: center; }
  .dsr-rank { width: 100%; max-width: 130px; }
  .dsr-badge { font-size: 10.5px; padding: 6px 11px; }
}

/* ---------- Accessibility & print ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .dsr-card, .dsr-btn { transition: none; }
  .dsr-pulse { animation: none; }
}
@media print {
  .dsr-band { background: #fff !important; color: #000 !important; }
  .dsr-band::before, .dsr-band::after { display: none; }
  .dsr-title, .dsr-card-body h3 { color: #000 !important; }
  .dsr-lede, .dsr-card-body p, .dsr-note { color: #333 !important; }
  .dsr-card { border: 1px solid #ccc; background: #fff; }
}
