/* ==========================================================================
   Evangel Responsive Header & Body Style
   ========================================================================== */

/* Import premium fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap');

/* Modern CSS Reset & Base styling */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f7fafc;
  color: #2d3748;
  -webkit-font-smoothing: antialiased;
}

/* 
   THEME VARIABLES
   We have matched the active theme to the exact Red (#eb2228) and Blue (#0c50a1) 
   colors found in the logo.svg file.
*/
:root {
  /* =====================================================================
     OPTION A: ACTIVE THEME - MATCHED TO LOGO.SVG (Red & Blue)
     ===================================================================== */
  --theme-pill-bg: linear-gradient(135deg, #672e95 0%, #fe3983 100%);
  --theme-pill-bg-hover: linear-gradient(135deg, #672e95 0%, #fe3983 100%);
  --theme-border-color: #fe3983;
  --theme-pill-shadow: rgba(235, 34, 40, 0.15);
  --theme-badge-bg: rgba(235, 34, 40, 0.08);
  --theme-badge-text: #fe3983;

  /* Card and editor color variables */
  --theme-blue: #672e95;
  --theme-red: #fe3983;
  --card-border-color: #672e9524;
  --theme-black: #000000;

  /* =====================================================================
     OPTION B: ALTERNATIVE SCREENSHOT THEME (Teal/Green)
     To use this, uncomment the lines below and comment the Option A lines
     ===================================================================== 
  --theme-pill-bg: #007e7a;
  --theme-pill-bg-hover: #00938f;
  --theme-border-color: #0e5d3c;
  --theme-pill-shadow: rgba(0, 126, 122, 0.15);
  --theme-badge-bg: rgba(0, 126, 122, 0.08);
  --theme-badge-text: #007e7a;
  --theme-blue: #007e7a;
  --theme-red: #0e5d3c;
  --card-border-color: #007e7a;
  */

  --header-bg: #ffffff;
  --text-light: #ffffff;
}

/* ==========================================================================
   Header Layout
   ========================================================================== */
.main-header {
  background-color: var(--header-bg);
  border-bottom: 5px solid var(--theme-black);
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  width: 100%;
  position: relative;
  z-index: 100;
  transition: border-color 0.3s ease, padding 0.3s ease;
}

/* Content wrapper to constrain width on ultra-wide screens */
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

/* Logo Styling */
.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.header-logo-link:hover {
  transform: scale(1.02);
}

.header-logo-img {
  height: 62px;
  width: auto;
  display: block;
}

/* Pill Banner/Button Styling */
.header-banner {
  background: var(--theme-pill-bg);
  color: var(--text-light);
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--theme-pill-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  border: none;
  cursor: pointer;
}

.header-banner:hover {
  background: var(--theme-pill-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--theme-pill-shadow);
}

.header-banner:active {
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design & Media Queries for Header
   ========================================================================== */

/* Tablet & Mobile Layout transition */
@media (max-width: 768px) {
  .main-header {
    padding: 1.25rem 1.5rem;
  }

  .header-container {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }

  .header-logo-img {
    height: 42px;
  }

  .header-banner {
    width: 100%;
    max-width: 480px;
    font-size: 1rem;
    padding: 0.65rem 1.5rem;
  }
}

/* Small mobile layout adjustment */
@media (max-width: 480px) {
  .main-header {
    padding: 1rem 1rem;
  }

  .header-banner {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}

/* ==========================================================================
   Premium Showcase Content Style (Non-Inline Styles)
   ========================================================================== */
.main-content {
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 2.5rem;
  transition: padding 0.3s ease;
}

.showcase-card {
  background: white;
  border-radius: 16px;
  padding: 3.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--theme-badge-bg);
  color: var(--theme-badge-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, color 0.3s ease;
}

.series-tag {
  display: table;
  margin: 0 auto;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 52px;
  margin-bottom: 2.25rem;
}

.showcase-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  margin: 0.25rem 0 1.1rem 0;
  color: #1a202c;
  line-height: 1.25;
  text-align: center;
  font-weight: 400;
}

/* About Case Series card */
.about-section {
  background: #f8fafc;
  padding: 2.25rem;
  border-radius: 12px;
  border-left: 5px solid var(--theme-blue);
  margin-bottom: 2rem;
  text-align: left;
}

.about-section .section-title {
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
  color: var(--theme-black);
  text-align: left;
}

.showcase-subtitle {
  font-size: 1.05rem;
  color: #4a5568;
  max-width: 100%;
  margin: 0;
  line-height: 1.7;
}

/* Editors Grid Layout */
.editors-section {
  text-align: left;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  color: #2d3748;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Editors List Stack */
.editors-list-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

/* Premium Horizontal Card matching screenshot */
.editor-row-card {
  display: flex;
  align-items: start;
  background: #ffffff;
  border: 2px solid var(--card-border-color);
  border-radius: 16px;
  padding: 2.5rem;
  gap: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  background: linear-gradient(132deg, #f4f4f5 0%, #0c50a100 100%, #135eb505 0%);
}

.editor-row-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(12, 80, 161, 0.07);
  border-color: #fe39831f;
  /* Transitions to the brand red on hover */
}

/* Pop-out Photo Container on Left */
.editor-photo-container {
  flex-shrink: 0;
  width: 250px;
  height: 200px;
  position: relative;
}

.editor-photo-bg {
  width: 100%;
  height: 100%;
  /* background-color: var(--theme-blue); */
  /* Solid brand color matching logo/screenshot */
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 2px #0c50a124 solid;
}

/* Overlapping doctor cutout photo */
.editor-photo-img {
  width: 100%;
  object-fit: cover;
  display: block;
  z-index: 10;
}

/* .editor-row-card:hover .editor-photo-img {
  transform: translateX(-50%) scale(1.03);

} */

/* Details on Right */
.editor-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Outline role badge from screenshot */
.editor-role-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--theme-blue);
  border: 1px solid var(--theme-blue);
  padding: 0.3rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
  display: inline-block;
}

.editor-row-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  color: var(--theme-black);
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.editor-row-info {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Responsive adjustments for showcase section
   ========================================================================== */
@media (max-width: 992px) {
  .editor-row-card {
    gap: 2rem;
    padding: 2rem;
  }

  .editor-photo-container {
    width: 220px;
    height: 180px;
  }

  .editor-photo-img {
    height: 210px;
  }

  .editor-row-name {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .main-content {
    margin: 2rem auto;
    padding: 0 1.5rem;
  }

  .showcase-card {
    padding: 2rem 1.5rem;
  }

  .showcase-title {
    font-size: 1.7rem;
    margin-bottom: 1.65rem;
  }

  .about-section {
    padding: 1.5rem;
  }

  /* Stack editor cards vertically on tablet/mobile */
  .editor-row-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem 1rem;
    align-items: center;
  }

  .editor-photo-container {
    width: 230px;
    height: 180px;
  }

  .editor-photo-img {
    height: 210px;
  }

  .editor-details {
    align-items: center;
    text-align: center;
  }

  .editor-row-name {
    font-size: 1.2rem;
  }

  .editor-row-info {
    font-size: 0.90rem;
  }

  .about-section .section-title {
    text-align: center;
  }

  .showcase-subtitle {
    text-align: center;
  }

}

@media (max-width: 480px) {
  .editor-photo-container {
    width: 190px;
    height: 150px;
  }

  .editor-photo-img {
    height: 175px;
  }
}

/* ==========================================================================
   Explore the Issues Section
   ========================================================================== */
.issues-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.issues-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
  text-align: center;
}

.issues-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  color: var(--theme-black);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.issues-title-rule {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--theme-pill-bg);
  /* Use the premium gradient */
  border-radius: 2px;
}

.issues-grid {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
  gap: 3rem;
  justify-content: center;
  grid-template-columns: repeat(1, 33%);
}

/* Issue Card Styling */
.issue-card {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--card-border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.issue-card-bg-anim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(103, 46, 149, 0.03) 0%, rgba(254, 57, 131, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.issue-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(103, 46, 149, 0.08);
  border-color: var(--theme-red);
}

.issue-card:hover .issue-card-bg-anim {
  opacity: 1;
}

/* Book Wrapper with subtle 3D hover effect */
.issue-book-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
  perspective: 1000px;
  transition: transform 0.3s ease;
}

.issue-book-img {
  width: 100%;
  height: auto;
  border-radius: 4px 12px 12px 4px;
  /* classic book-like corners */
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15),
    -2px 0 5px rgba(0, 0, 0, 0.05);
  /* book shadow */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  display: block;
  object-fit: contain;
}

.issue-card:hover .issue-book-img {
  transform: rotateY(-8deg) scale(1.03);
  box-shadow: 12px 12px 25px rgba(0, 0, 0, 0.2),
    -2px 0 5px rgba(0, 0, 0, 0.05);
}

/* Issue Label */
.issue-label {
  position: relative;
  z-index: 2;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

.issue-label span {
  color: var(--theme-red);
  font-size: 1.4rem;
  font-weight: 700;
}

/* Button for individual issue */
.issue-btn {
  position: relative;
  z-index: 2;
  display: inline-block;
  width: 100%;
  max-width: 200px;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--theme-blue);
  background: #ffffff;
  border: 2px solid var(--theme-blue);
  box-shadow: 0 4px 10px rgba(103, 46, 149, 0.05);
  transition: all 0.3s ease;
}

.issue-card:hover .issue-btn {
  color: #ffffff;
  background: var(--theme-pill-bg);
  border-color: transparent;
  box-shadow: 0 8px 20px var(--theme-pill-shadow);
}

.issue-btn:hover {
  transform: scale(1.05);
}

/* Responsive styling for Issues section */
@media (max-width: 992px) {
  .issues-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .issues-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 360px;
    margin: 0 auto;
  }

  .issues-section {
    margin-top: 3.5rem;
    padding-top: 2rem;
  }

  .issues-section-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Copyright Footer Styling
   ========================================================================== */
.main-footer {
  background-color: #ffffff;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  margin-top: 4rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #718096;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.2px;
}

.developer-highlight {
  color: var(--theme-red);
  font-weight: 600;
  transition: color 0.3s ease;
}

.developer-highlight:hover {
  color: var(--theme-blue);
}

/* ==========================================================================
   Issue Detail Page (issue1.html) Case Studies Styling
   ========================================================================== */
.main-content.issue1 {
  margin-top: 2.5rem;
}

/* Navigation bar at the top of Issue details */
.issue-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.issue-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--theme-blue);
  border: 2px solid var(--theme-blue);
  padding: 0.5rem 1.75rem;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  letter-spacing: 0.5px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--theme-blue);
  background: #ffffff;
  border: 2px solid var(--theme-blue);
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.btn-back-home:hover {
  background: var(--theme-pill-bg);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--theme-pill-shadow);
  transform: translateY(-2px);
}

/* Case Row Layout */
.cases-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.case-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

/* Alternating layout on desktop */
.case-row:nth-child(odd) {
  grid-template-areas: "media info";
}

.case-row:nth-child(even) {
  grid-template-columns: 1fr 1.2fr;
  grid-template-areas: "info media";
}

/* Image Container */
.case-media {
  grid-area: media;
  background: #ffffff;
  border: 2px solid var(--card-border-color);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.case-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.case-media:hover {
  transform: translateY(-2px);
  border-color: var(--theme-red);
}

/* Information Container (Teal/Brand Colored Box) */
.case-info {
  grid-area: info;
  background-color: var(--theme-blue);
  /* Dynamically matches active theme! */
  color: #ffffff;
  padding: 1.1rem 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.case-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.case-rule {
  display: block;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.25);
  margin-bottom: .5rem;
}

.case-description {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  letter-spacing: 0.2px;
}

/* White Button inside the Teal Info Card */
.case-view-btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--theme-blue);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.65rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.case-view-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  color: var(--theme-red);
}

/* ==========================================================================
   Responsive Case Details Stacking
   ========================================================================== */
@media (max-width: 992px) {
  .case-row {
    gap: 2rem;
  }

  /* .case-info {
    padding: 2.5rem 2rem;
  } */

  .case-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {

  .case-row,
  .case-row:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "info" !important;
    gap: .5rem;
  }

  .case-media {
    padding: 1rem;
  }



  .case-description {
    font-size: 1.15rem;
  }

  .issue-nav-bar {
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .issue-card {
    padding: 1rem 1rem;
  }

  .main-footer {
    margin-top: 0;
  }

}

@media (max-width: 480px) {
  .issue-badge {
    font-size: 1.3rem;
    padding: 0.4rem 1.25rem;
  }

  .btn-back-home {
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
  }

  .case-number {
    font-size: 1.5rem;
  }

  .case-description {
    font-size: 1.05rem;
  }

  .case-view-btn {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    width: 100%;
  }
}

/* ==========================================================================
   Case details page styling (e.g. /issue2/case1.html)
   ========================================================================== */
.case-details-page {
  /* margin-top: 3.5rem; */
}

.case-header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0rem;
}

.case-badge-box {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--theme-blue);
  border: 2px solid var(--theme-blue);
  padding: 0.5rem 2rem;
  border-radius: 8px;
  background-color: #ffffff;
  display: inline-block;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  letter-spacing: 0.5px;
}

.case-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  color: var(--theme-black);
  font-weight: 500;
  line-height: 1.35;
  max-width: 1000px;
  margin: 0 auto 2rem auto;
}

.btn-back-issue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--theme-blue);
  background: #ffffff;
  border: 2px solid var(--theme-blue);
  padding: 0.6rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.btn-back-issue:hover {
  background: var(--theme-pill-bg);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--theme-pill-shadow);
  transform: translateY(-2px);
}

.contributors-heading-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.contributors-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  color: var(--theme-blue);
  font-weight: 400;
  margin-bottom: 0.65rem;
  position: relative;
  margin-top: 0.55rem;
}

.contributors-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--theme-blue);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* Contributors Grid */
.contributors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contributor-card {
  display: flex;
  align-items: flex-start;
  background: linear-gradient(132deg, #f4f4f5 0%, rgba(12, 80, 161, 0) 100%);
  border: 2px solid var(--card-border-color);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.contributor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(12, 80, 161, 0.05);
  border-color: var(--theme-red);
}

.contributor-photo-wrap {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  position: relative;
}

.contributor-photo-bg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(12, 80, 161, 0.12);
  overflow: hidden;
  position: relative;
  background-color: #f7fafc;
}

.contributor-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.contributor-card:hover .contributor-photo-img {
  transform: scale(1.05);
}

.contributor-info-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.contributor-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  color: var(--theme-black);
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.contributor-details {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.5;
}

.contributor-details p {
  margin-bottom: 0.5rem;
}

.contributor-details p:last-child {
  margin-bottom: 0;
}

.contributor-main-qual {
  font-weight: 600;
  color: #2d3748;
}

.contributor-org {
  color: #718096;
}

.contributor-loc {
  font-weight: 500;
  color: var(--theme-blue);
}

/* Responsive details for contributors */
@media (max-width: 992px) {
  .contributors-grid {
    gap: 2rem;
  }

  .contributor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .contributor-info-details {
    align-items: center;
    text-align: center;
  }

  .case-main-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .contributors-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .case-main-title {
    font-size: 1.5rem;
  }

  .contributors-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Case Study Videos Section Styling
   ========================================================================== */
.case-videos-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.videos-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
  text-align: center;
}

.videos-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  color: var(--theme-blue);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.videos-title-rule {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--theme-pill-bg);
  /* Use theme gradient */
  border-radius: 2px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  justify-content: center;
}

/* Video Card Styling */
.video-card {
  background: #ffffff;
  border: 2px solid var(--card-border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(12, 80, 161, 0.05);
  border-color: var(--theme-red);
}

.video-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--theme-blue);
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 0.5rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background-color: #000000;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  outline: none;
}

/* Responsive styles for Video section */
@media (max-width: 992px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
  }

  .case-videos-section {
    margin-top: 3.5rem;
    padding-top: 2rem;
  }

  .videos-section-title {
    font-size: 1.65rem;
  }
}