/* =========================================
   ADR INDIA — MASTER REPORT STYLESHEET
   Reuse across all report pages
   ========================================= */
/* Drupal attachment fields above the report */
.field--name-field-english-attachment,
.field--name-field-hindi-attachment {
  max-width: 100%;
  min-width: 0;
}

.field--name-field-english-attachment .field__items,
.field--name-field-hindi-attachment .field__items,
.field--name-field-english-attachment .field__item,
.field--name-field-hindi-attachment .field__item {
  display: block;
  float: none;
  width: auto;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.field--name-field-english-attachment a,
.field--name-field-hindi-attachment a {
  display: inline;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}


.adr-report {
  --report-red: #af251c;
  --report-red-dark: #8c1c14;
  --report-pink: #fff6f6;
  --report-text: #333;
  --report-muted: #666;

  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--report-text);
  line-height: 1.6;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.adr-report *,
.adr-report *::before,
.adr-report *::after {
  box-sizing: border-box;
}

/* Kept from the original file: makes h2 text white.
   Remove this if headings ever disappear on a white background. */
.adr-report h2 {
  color: #ffff !important;
}

/* ---- Overflow protection ---- */
.adr-report {
  overflow-x: hidden;          /* last-resort safety net */
  overflow-wrap: anywhere;     /* wraps long URLs only when they don't fit */
}

.adr-report a {
  overflow-wrap: anywhere;
  word-break: normal;          /* no mid-word breaking */
  white-space: normal;         /* overrides any theme nowrap */
}

.adr-report p,
.adr-report li,
.adr-report .meta {
  min-width: 0;
}

/* Main title and publication details */
.adr-report .header {
  margin-bottom: 30px;
}

.adr-report .header h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--report-red);
  text-align: center;
}

.adr-report .meta {
  font-size: 0.9rem;
  color: var(--report-muted);
  text-align: center;
}

/* English / Hindi report buttons: wrap instead of overflowing */
.adr-report .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  max-width: 100%;
  min-width: 0;
}

.adr-report .tab {
  flex: 1 1 240px;
  min-width: 0;
  display: block;
  text-align: center;
  padding: 15px;
  background: var(--report-red);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  overflow-wrap: anywhere;
  transition: background-color 0.3s ease;
}

.adr-report .tab:hover,
.adr-report .tab:focus {
  background: var(--report-red-dark);
  color: #fff;
}

/* Summary and report content */
.adr-report .key-findings,
.adr-report .executive-summary {
  margin-bottom: 30px;
}

.adr-report .key-findings h2,
.adr-report .executive-summary h2 {
  color: var(--report-red);
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 28px 0 16px;
}

.adr-report .key-findings h3,
.adr-report .executive-summary h3 {
  line-height: 1.4;
}

.adr-report .key-findings p,
.adr-report .executive-summary p {
  line-height: 1.7;
  margin-bottom: 20px;
}

.adr-report .key-findings li,
.adr-report .executive-summary li {
  margin-bottom: 12px;
}

.adr-report .key-findings ul,
.adr-report .executive-summary ul {
  padding-left: 25px;
}

/* Key finding cards, if used */
.adr-report .key-box {
  background: var(--report-pink);
  border: 2px solid var(--report-red);
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.adr-report .key-box p {
  margin-bottom: 10px;
}

/* Share buttons, if used */
.adr-report .share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.adr-report .share-buttons a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.adr-report .facebook { background: #3b5998; }
.adr-report .twitter { background: #1da1f2; }
.adr-report .linkedin { background: #0077b5; }
.adr-report .whatsapp { background: #25d366; }

.adr-report .facebook:hover { background: #2d4373; }
.adr-report .twitter:hover { background: #0d95e8; }
.adr-report .linkedin:hover { background: #005983; }
.adr-report .whatsapp:hover { background: #1ebe5d; }

/* Report images */
.adr-report .image-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  max-width: 100%;
  min-width: 0;
}

.adr-report img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Audio player, if used */
.adr-report .audio-section {
  background: #fff;
  border: 2px solid var(--report-red);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
}

.adr-report .audio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--report-red);
}

.adr-report .audio-desc {
  font-size: 0.85rem;
  color: var(--report-muted);
  margin-bottom: 14px;
}

.adr-report .custom-player {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--report-pink);
  border: 1px solid #e8b0ab;
  border-radius: 10px;
  padding: 12px 16px;
}

.adr-report .play-btn {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--report-red);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.adr-report .play-btn:hover {
  background: var(--report-red-dark);
}

.adr-report .progress-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adr-report .progress-bar-bg {
  width: 100%;
  height: 5px;
  background: #e0c0be;
  border-radius: 3px;
  cursor: pointer;
}

.adr-report .progress-bar-fill {
  width: 0%;
  height: 5px;
  background: var(--report-red);
  border-radius: 3px;
}

.adr-report .time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #888;
}

/* PDF viewer — desktop and tablet */
.adr-report .pdf-viewer {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 800px;
  border: 0;
  margin: 0 auto 30px;
}

.adr-report .pdf-heading {
  display: block;
  text-align: center;
  color: #000;
  font-size: 1.7rem;
  margin: 28px 0 15px;
}

/* ---- Theme overrides: stop injected URLs / icons and force wrapping ---- */
/* Many themes (print styles, "external link" icons) add the href text or an
   icon after every link with ::after. A long URL there overflows the page. */
.adr-report a::before,
.adr-report a::after {
  content: none !important;
  display: none !important;
}

.adr-report a,
.adr-report a:link,
.adr-report a:visited {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* Clip anything that still escapes, and keep every block inside the column */
.adr-report {
  overflow-x: clip;
}

.adr-report .key-findings,
.adr-report .key-findings li,
.adr-report .key-findings p,
.adr-report .header,
.adr-report .meta {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Tablet and mobile */
@media (max-width: 768px) {
  .adr-report {
    padding: 12px;
  }

  .adr-report .header h1 {
    font-size: 1.5rem;
  }

  .adr-report .pdf-viewer {
    height: 500px;
  }

  .adr-report .custom-player {
    padding: 10px;
    gap: 10px;
  }
}

/* Hide PDF viewers and headings on mobile */
@media screen and (max-width: 767px) {
  .adr-report .pdf-viewer,
  .adr-report .pdf-heading,
  .adr-report .pdf-reports {
    display: none !important;
  }
}