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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  /* background: #f5f7fa; */
  /* padding: 2rem; */
}

.unified-csr {
  /* background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%); */
  /* border-radius: 16px; */
  padding: 3rem 0;
  margin: 0 auto;
  max-width: 1200px;
  /* border: 1px solid #e5e9f0; */
  /* box-shadow: 0 10px 40px rgba(0, 33, 71, 0.06); */
}

.csr-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #09cc7f;
  flex-wrap: wrap;
  gap: 2rem;
}

.csr-title-container {
  flex: 1;
  min-width: 300px;
}

.csr-badge {
  background: linear-gradient(135deg, #09cc7f 0%, #07d087 100%);
  color: white;
  padding: 0.5rem 1.3rem;
  /* border-radius: 25px; */
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(9, 204, 127, 0.25);
}

.csr-badge i {
  font-size: 0.85rem;
}

.csr-header h2 {
  color: #002147;
  font-size: 2.2rem;
  margin: 0 0 0.7rem 0;
  line-height: 1.2;
  font-weight: 700;
}

.csr-subtitle {
  color: #64748b;
  font-size: 1.05rem;
  margin: 0;
  font-weight: 500;
}

.csr-foundation-logos {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.eref-logo,
.uhm-logo {
  padding: 0.8rem 1.5rem;
  /* border-radius: 8px; */
  font-weight: 700;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  letter-spacing: 1.5px;
}

.eref-logo {
  background: linear-gradient(135deg, #09cc7f 0%, #07d087 100%);
}

.uhm-logo {
  background: linear-gradient(135deg, #ff8430 0%, #ff9550 100%);
}

.csr-main-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.csr-intro-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  /* border-radius: 12px; */
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #e5e9f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.intro-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.intro-icon i {
  font-size: 1.5rem;
  color: #09cc7f;
}

.intro-content h3 {
  color: #002147;
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.intro-content p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.deadline-highlight {
  background: linear-gradient(
    135deg,
    rgba(255, 132, 48, 0.1) 0%,
    rgba(255, 149, 80, 0.15) 100%
  );
  padding: 0.8rem;
  /* border-radius: 8px; */
  align-items: center;
  gap: 0.8rem;
  color: #ff8430;
  border-left: 4px solid #ff8430;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 132, 48, 0.1);
}

.deadline-highlight i {
  font-size: 1.2rem;
}

.csr-funding-visual {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  /* border-radius: 12px; */
  padding: 1rem;
  border: 1px solid #e5e9f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.csr-funding-visual h4 {
  color: #002147;
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.csr-funding-visual h4 i {
  color: #09cc7f;
  font-size: 1.4rem;
}

.funding-breakdown {
  display: flex;
  height: 50px;
  /* border-radius: 10px; */
  overflow: hidden;
  margin: 1.5rem 0 2rem 0;
  border: 2px solid #e5e9f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.breakdown-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.breakdown-item:hover {
  filter: brightness(1.1);
}

.breakdown-item.endowment {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
}

.breakdown-item.school {
  background: linear-gradient(135deg, #09cc7f 0%, #07d087 100%);
}

.breakdown-item.csr {
  background: linear-gradient(135deg, #ff8430 0%, #ff9550 100%);
}

.breakdown-item.active {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.funding-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: #f8fafc;
  /* border-radius: 8px; */
  border: 1px solid #e5e9f0;
}

.legend-color {
  width: 20px;
  height: 20px;
  /* border-radius: 4px; */
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.legend-color.endowment {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
}

.legend-color.school {
  background: linear-gradient(135deg, #09cc7f 0%, #07d087 100%);
}

.legend-color.csr {
  background: linear-gradient(135deg, #ff8430 0%, #ff9550 100%);
}

.legend-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.legend-percentage {
  font-weight: 700;
  color: #002147;
  font-size: 1rem;
}

.legend-label {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.2;
}

.funding-note {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  font-style: italic;
  text-align: center;
  padding: 0.5rem;
  background: #f8fafc;
  /* border-radius: 8px; */
  border: 1px dashed #cbd5e1;
}

.csr-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.detail-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  /* border-radius: 12px; */
  padding: 1rem;
  display: flex;
  gap: 1rem;
  border: 1px solid #e5e9f0;
  transition: all 0.3s ease;
  height: 100%;
}

.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 33, 71, 0.12);
  border-color: #09cc7f;
}

.detail-icon {
  background: linear-gradient(135deg, #09cc7f 0%, #07d087 100%);
  color: white;
  width: 48px;
  height: 48px;
  /* border-radius: 14px; */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  box-shadow: 0 6px 16px rgba(9, 204, 127, 0.25);
}

.detail-content h4 {
  color: #002147;
  margin: 0 0 0.6rem 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.detail-content p {
  color: #475569;
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.detail-subtext {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.6rem !important;
  font-style: italic;
}

.csr-cta-section {
  background: linear-gradient(135deg, #002147 0%, #003877 100%);
  /* border-radius: 14px; */
  padding: 1rem;
  /* margin-top: 3rem; */
  color: white;
  box-shadow: 0 10px 35px rgba(0, 33, 71, 0.25);
}

.cta-content h3 {
  color: white;
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.cta-content > p {
  color: #cbd5e1;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.primary-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  /* gap: 0.8rem; */
  background: linear-gradient(135deg, #09cc7f 0%, #07d087 100%);
  color: white;
  /* padding: 1rem 2.2rem; */
  /* border-radius: 8px; */
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(9, 204, 127, 0.3);
}

.primary-cta:hover {
  background: linear-gradient(135deg, #07d087 0%, #06b872 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(9, 204, 127, 0.4);
  text-decoration: none;
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
  padding: 1rem 2rem;
  /* border-radius: 8px; */
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.secondary-cta:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  text-decoration: none;
}

.cta-notes {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.note-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.note-item i {
  color: #09cc7f;
  font-size: 1.1rem;
}

.note-item strong {
  color: white;
  font-weight: 700;
}

@media (max-width: 992px) {
  .csr-main-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .csr-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .funding-legend {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .unified-csr {
    padding: 2rem 1.5rem;
  }

  .csr-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .csr-details-grid {
    grid-template-columns: 1fr;
  }

  .csr-header h2 {
    font-size: 1.8rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
    justify-content: center;
  }

  .funding-legend {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .csr-intro-card {
    flex-direction: column;
    text-align: center;
  }

  .intro-icon {
    margin: 0 auto;
  }

  .cta-notes {
    flex-direction: column;
    gap: 1rem;
  }

  .csr-foundation-logos {
    width: 100%;
    justify-content: center;
  }
}
