/* ===================================================================
   CSR PAGES STYLESHEET
   Distinctive design for CSR/Foundation pages while staying in
   the Sugal Group site theme (maroon, gold, charcoal palette).
   =================================================================== */

/* ===== CSR PAGE WRAPPER =====
   The hero banner is no longer a CSR-specific component — these pages
   now use the site-wide .about-hero (real background image, left-
   aligned heading + breadcrumb) for full consistency with every other
   page instead of the old centred, imageless .csr-hero gradient. */
.csr-page {
  padding: 60px 20px 80px;
  background: #fff;
}

.csr-container {
  max-width: 1200px;
  margin: auto;
}

/* ===== CSR INTRO / ABOUT SECTION ===== */
.csr-intro {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: start;
  margin-bottom: 70px;
}

.csr-intro-text h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.15;
}

.csr-intro-text h2 span {
  color: var(--maroon);
}

.csr-intro-text .csr-tagline {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--maroon);
  background: var(--maroon-tint);
  margin-bottom: 20px;
}

.csr-intro-text p {
  font-size: 15px;
  color: var(--charcoal-light);
  line-height: 1.85;
  margin-bottom: 16px;
  text-align: justify;
}
/* Closing note under the awards table (bhagwan-mahaveer.php) — was an
   unconstrained paragraph stretching the full 1200px container, which
   read too wide for comfortable reading. Given a proper measure and
   a light divider so it reads as a deliberate closing statement. */
.csr-intro-text1 {
  max-width: 760px;
  margin: 36px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(212, 148, 58, 0.18);
  text-align: center;
}
.csr-intro-text1 p {
  font-size: 15px;
  color: var(--charcoal-light);
  line-height: 1.85;
  text-align: justify;
  margin: 0;
}

.csr-intro-visual {
  position: relative;
}

.csr-intro-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(139, 26, 74, 0.12);
}

.csr-intro-visual::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold-light);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.5;
}

/* ===== CSR HIGHLIGHTS / KEY STATS ===== */
.csr-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 70px;
}

.csr-highlight-card {
  background: linear-gradient(135deg, var(--accent-bg) 0%, #fff 100%);
  border: 1px solid rgba(212, 148, 58, 0.15);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.csr-highlight-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.csr-highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(139, 26, 74, 0.1);
}

.csr-highlight-card:hover::after {
  transform: scaleX(1);
}

.csr-highlight-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--maroon-tint), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: var(--maroon);
}

.csr-highlight-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.csr-highlight-card p {
  font-size: 13px;
  color: var(--charcoal-light);
  line-height: 1.6;
}

.csr-highlight-card .card-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--maroon);
  margin-bottom: 4px;
}

/* ===== CSR SECTION HEADING ===== */
.csr-section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.csr-section-heading h3 {
  font-size: 34px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.csr-section-heading p {
  font-size: 15px;
  color: var(--charcoal-light);
  max-width: 600px;
  margin: 0 auto;
}

.csr-section-heading .accent-line {
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Body copy under a section heading — for when there's real paragraph
   content to say (not just a one-line subtitle). .csr-section-heading
   p is deliberately narrow (600px) and centred for short subtitles;
   forcing multi-sentence paragraphs into that same mould centres each
   wrapped line individually and reads jagged. This gives that copy a
   proper reading measure and justifies it like the rest of the body
   text on these pages. */
.csr-heading-body {
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: justify;
}
.csr-heading-body p {
  font-size: 15px;
  color: var(--charcoal-light);
  line-height: 1.85;
  margin-bottom: 16px;
}
.csr-heading-body p:last-child {
  margin-bottom: 0;
}

/* ===== CSR INITIATIVES / CONTENT BLOCKS ===== */
.csr-initiatives {
  margin-bottom: 70px;
}

.csr-initiative-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
  padding: 40px;
  background: var(--accent-bg);
  border-radius: 24px;
  border: 1px solid rgba(212, 148, 58, 0.1);
}

.csr-initiative-block.reverse {
  direction: rtl;
}

.csr-initiative-block.reverse > * {
  direction: ltr;
}

.csr-initiative-block:last-child {
  margin-bottom: 0;
}

.csr-init-image {
  border-radius: 16px;
  overflow: hidden;
}

.csr-init-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s ease;
}

.csr-initiative-block:hover .csr-init-image img {
  transform: scale(1.03);
}

.csr-init-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 14px;
}

.csr-init-content p {
  font-size: 15px;
  color: var(--charcoal-light);
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: justify;
}

.csr-init-content ul {
  padding-left: 18px;
}

.csr-init-content li {
  font-size: 14px;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.6;
}

.csr-init-content li b {
  color: var(--maroon);
}

/* ===== CSR AWARDS TABLE ===== */
.csr-awards-table {
  margin-bottom: 70px;
}

.csr-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(212, 148, 58, 0.15);
}

.csr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.csr-table thead th {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.csr-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--charcoal);
}

.csr-table tbody tr:nth-child(even) {
  background: var(--accent-bg);
}

.csr-table tbody tr:hover {
  background: var(--gold-tint);
}

.csr-table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== CSR IMPACT NUMBERS ===== */
.csr-impact {
  padding: 60px 40px;
  background: linear-gradient(135deg, #faf6f1 0%, #f5ede3 50%, #f9f4ee 100%);
  border-radius: 24px;
  margin-bottom: 70px;
  position: relative;
}

.csr-impact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(212, 148, 58, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.csr-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.csr-impact-item {
  text-align: center;
  padding: 30px 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(212, 148, 58, 0.1);
  transition: all 0.4s ease;
}

.csr-impact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.csr-impact-item .impact-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--maroon);
  margin-bottom: 8px;
}

.csr-impact-item .impact-label {
  font-size: 13px;
  color: var(--charcoal-light);
  line-height: 1.5;
}

/* ===== CSR CATEGORY CARDS (Awards, Trusts, etc.) ===== */
.csr-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 70px;
}

.csr-category-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.csr-category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.csr-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(139, 26, 74, 0.08);
}

.csr-category-card:hover::before {
  transform: scaleX(1);
}

.csr-category-card .cat-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--maroon-tint);
  color: var(--maroon);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.csr-category-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.csr-category-card p {
  font-size: 14px;
  color: var(--charcoal-light);
  line-height: 1.7;
  text-align: justify;
}

/* ===== CSR INSTITUTIONS GRID ===== */
.csr-institutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 70px;
}

.csr-inst-card {
  background: var(--accent-bg);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(212, 148, 58, 0.1);
  transition: all 0.4s ease;
}

.csr-inst-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 148, 58, 0.25);
}

.csr-inst-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 12px;
}

.csr-inst-card p {
  font-size: 14px;
  color: var(--charcoal-light);
  line-height: 1.75;
  margin-bottom: 14px;
  text-align: justify;
}

.csr-inst-card ul {
  padding-left: 18px;
}

.csr-inst-card li {
  font-size: 13px;
  color: var(--charcoal);
  margin-bottom: 6px;
  line-height: 1.6;
}

.csr-inst-card .inst-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.csr-inst-card .inst-link:hover {
  color: var(--maroon);
}

/* ===== CSR PALLIATIVE / SPECIAL BLOCKS ===== */
.csr-special-block {
  padding: 50px;
  background: linear-gradient(135deg, var(--maroon-tint) 0%, #fff 100%);
  border-radius: 24px;
  margin-bottom: 70px;
  border: 1px solid rgba(139, 26, 74, 0.08);
}

.csr-special-block h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 16px;
}

.csr-special-block p {
  font-size: 15px;
  color: var(--charcoal-light);
  line-height: 1.85;
  margin-bottom: 16px;
  text-align: justify;
}

.csr-special-block ul {
  padding-left: 20px;
  margin-top: 10px;
}

.csr-special-block li {
  font-size: 14px;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ===== CSR KEY HIGHLIGHTS LIST ===== */
.csr-key-highlights {
  margin-bottom: 60px;
}

.csr-key-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.csr-key-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--accent-bg);
  border-radius: 14px;
  border: 1px solid rgba(212, 148, 58, 0.08);
  transition: all 0.3s ease;
}

.csr-key-item:hover {
  background: var(--gold-tint);
  border-color: rgba(212, 148, 58, 0.2);
}

.csr-key-item .key-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--maroon-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-size: 18px;
}

.csr-key-item p {
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.65;
}

/* ===== CSR QUOTE/VISION BLOCK ===== */
.csr-vision-quote {
  text-align: center;
  padding: 50px 40px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  border-radius: 24px;
  margin-bottom: 70px;
  position: relative;
  overflow: hidden;
}

.csr-vision-quote::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 30px;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.06);
  font-family: Georgia, serif;
  line-height: 1;
}

.csr-vision-quote p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 16px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.csr-vision-quote .quote-author {
  font-size: 14px;
  color: var(--gold-light);
  font-weight: 600;
  font-style: normal;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .csr-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .csr-intro-visual {
    max-width: 400px;
  }
  .csr-initiative-block {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .csr-initiative-block.reverse {
    direction: ltr;
  }
  .csr-special-block {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .csr-page {
    padding: 40px 16px 60px;
  }
  .csr-intro-text h2 {
    font-size: 28px;
  }
  .csr-section-heading h3 {
    font-size: 26px;
  }
  .csr-categories {
    grid-template-columns: 1fr;
  }
  .csr-institutions {
    grid-template-columns: 1fr;
  }
  .csr-init-image img {
    height: 220px;
  }
  .csr-vision-quote {
    padding: 35px 24px;
  }
  .csr-vision-quote p {
    font-size: 16px;
  }
  .csr-table {
    font-size: 12px;
  }
  .csr-table thead th,
  .csr-table tbody td {
    padding: 10px 12px;
  }
  .csr-impact {
    padding: 40px 20px;
  }
}

/* ---- Awards table on phones: card stack, not horizontal scroll ----
   At narrow widths a 4-column scrollable table hides most of each row
   off-screen — a short cell (e.g. "President of India") can scroll
   fully out of view while longer ones in the same column still show
   trailing text, which reads as a blank/broken row. Below 640px each
   row becomes its own labelled card instead, so nothing is ever
   scrolled out of sight. */
@media (max-width: 640px) {
  .csr-table-wrap {
    overflow-x: visible;
    border: none;
  }
  .csr-table {
    display: block;
    font-size: 13px;
  }
  .csr-table thead {
    display: none;
  }
  .csr-table tbody {
    display: block;
  }
  .csr-table tbody tr {
    display: block;
    background: #fff !important;
    border: 1px solid rgba(212, 148, 58, 0.18);
    border-radius: 14px;
    padding: 6px 16px;
    margin-bottom: 12px;
  }
  .csr-table tbody tr:last-child {
    margin-bottom: 0;
  }
  .csr-table tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-align: right;
  }
  .csr-table tbody td:last-child {
    border-bottom: none;
  }
  .csr-table tbody td::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--maroon);
    text-align: left;
  }
}

@media (max-width: 480px) {
  .csr-intro-text h2 {
    font-size: 24px;
  }
  .csr-highlights {
    grid-template-columns: 1fr 1fr;
  }
  .csr-key-list {
    grid-template-columns: 1fr;
  }
}
