/* ESRC Project Page Styles - Matching Site Color Scheme */

/* Hero Section */
.esrc-hero {
  background: linear-gradient(135deg, #702283 0%, #5a1b6a 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.esrc-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
  background-size: 40px 40px;
}

.esrc-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: white;
}

.esrc-hero .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.esrc-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.esrc-hero .hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.95;
  font-weight: 400;
}

/* Completely redesigned partner logos section for better full-width usage */
/* Partner Logos Section */
.esrc-partners {
  padding: 80px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
  border-bottom: 1px solid #e5e7eb;
}

.partners-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  max-width: 1600px;
  margin: 0 auto;
}

.partners-section {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.partners-section h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #702283;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 16px;
}

.partners-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #702283, #5a1b6a);
  border-radius: 2px;
}

.logo-showcase {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.logo-item {
  background: white;
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid #f3f4f6;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.logo-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(112, 34, 131, 0.05), transparent);
  transition: left 0.6s ease;
}

.logo-item:hover::before {
  left: 100%;
}

.logo-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(112, 34, 131, 0.15);
  border-color: #702283;
}

.partner-logo {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  display: block;
  filter: grayscale(0%);
  transition: all 0.3s ease;
}

.logo-item:hover .partner-logo {
  filter: grayscale(0%) brightness(1.05);
}

.partners-divider {
  width: 2px;
  height: 300px;
  background: linear-gradient(to bottom, transparent 0%, #d1d5db 20%, #702283 50%, #d1d5db 80%, transparent 100%);
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
  margin-top: 56px;
}

/* Introduction Section */
.esrc-intro {
  padding: 80px 0;
  background: #f9fafb;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto 60px;
}

.intro-content .lead {
  font-size: 20px;
  line-height: 1.7;
  color: #1f2937;
  margin-bottom: 24px;
  font-weight: 500;
}

.intro-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #4b5563;
}

.sector-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 60px 0;
}

.stat-item {
  background: white;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: #702283;
}

.stat-item .stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #702283;
  display: block;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.quote-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  margin: 60px 0;
  border-left: 4px solid #702283;
}

.quote-box .fa-quote-left {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 32px;
  color: #702283;
  opacity: 0.2;
}

.quote-box p {
  font-size: 18px;
  line-height: 1.7;
  color: #1f2937;
  font-style: italic;
  margin: 0 0 16px 0;
  padding-left: 40px;
}

.quote-box cite {
  display: block;
  text-align: right;
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  font-style: normal;
}

.project-description {
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
  text-align: center;
}

/* Infographic Placeholders */
.esrc-infographic {
  padding: 64px 0;
  background: white;
}

.esrc-infographic.alt {
  background: #f9fafb;
}

.infographic-placeholder {
  background: #f3f4f6;
  border: 3px dashed #d1d5db;
  border-radius: 24px;
  padding: 80px;
  text-align: center;
  transition: all 0.3s ease;
}

.infographic-placeholder:hover {
  border-color: #702283;
  background: #f9fafb;
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  color: #9ca3af;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.infographic-placeholder p {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.infographic-placeholder small {
  font-size: 14px;
  color: #9ca3af;
  font-style: italic;
}

.infographic-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Why This Matters Section */
.esrc-why-matters {
  padding: 80px 0;
  background: white;
}

.esrc-why-matters h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 24px;
}

.section-intro {
  max-width: 900px;
  margin: 0 auto 60px;
  font-size: 18px;
  line-height: 1.8;
  color: #4b5563;
  text-align: center;
}

.balance-content {
  max-width: 900px;
  margin: 60px auto 0;
  background: #f9fafb;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.balance-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.balance-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 16px;
}

.balance-content p:last-child {
  margin-bottom: 0;
}

/* Unlocking Section */
.esrc-unlocking {
  padding: 80px 0;
  background: #f9fafb;
}

.esrc-unlocking h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 24px;
}

.examples-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.example-item {
  background: white;
  border-radius: 16px;
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.example-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #702283;
}

.example-item .example-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #702283, #5a1b6a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.example-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.example-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

/* Addressing Challenges Section */
.esrc-challenges {
  padding: 80px 0;
  background: white;
}

.esrc-challenges h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 24px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.principle-card {
  background: #f9fafb;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: #702283;
  background: white;
}

.principle-card i {
  font-size: 36px;
  color: #702283;
  margin-bottom: 16px;
}

.principle-card h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.principle-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

/* Collaborative Future Section */
.esrc-future {
  padding: 80px 0;
  background: #f9fafb;
}

.esrc-future h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 24px;
}

.highlight-text {
  max-width: 900px;
  margin: 60px auto;
  background: linear-gradient(135deg, #702283, #5a1b6a);
  color: white;
  padding: 32px;
  border-radius: 16px;
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  box-shadow: 0 20px 40px rgba(112, 34, 131, 0.3);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 60px;
  flex-wrap: wrap;
}

/* Enhanced responsive design for partner logos */
/* Responsive Design */
@media (max-width: 1024px) {
  .partners-wrapper {
    flex-direction: column;
    gap: 60px;
    align-items: center;
  }

  .partners-section {
    max-width: 500px;
    width: 100%;
  }

  .partners-divider {
    width: 80%;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(to right, transparent 0%, #d1d5db 20%, #702283 50%, #d1d5db 80%, transparent 100%);
  }

  .logo-item {
    max-width: 400px;
  }

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

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

  .example-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .example-item .example-icon {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .esrc-hero {
    padding: 100px 0 60px;
  }

  .esrc-hero h1 {
    font-size: 32px;
  }

  .esrc-hero .hero-subtitle {
    font-size: 16px;
  }

  .esrc-partners {
    padding: 60px 0;
  }

  .partners-wrapper {
    gap: 40px;
  }

  .logo-showcase {
    gap: 20px;
  }

  .logo-item {
    padding: 24px 32px;
    min-height: 120px;
    max-width: 100%;
  }

  .partner-logo {
    max-height: 90px;
  }

  .partners-divider {
    width: 60%;
    height: 2px;
  }

  .sector-stats {
    grid-template-columns: 1fr;
  }

  .quote-box {
    padding: 24px;
  }

  .quote-box p {
    padding-left: 24px;
    font-size: 16px;
  }

  .infographic-placeholder {
    padding: 48px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-item {
    padding: 20px 24px;
    min-height: 110px;
  }

  .partner-logo {
    max-height: 80px;
  }

  .partners-section h3 {
    font-size: 14px;
    margin-bottom: 32px;
  }
}
