/* Complete Consolidated Research Page Styles */

/* ===== HEADER STYLES ===== */
/* Photo Banner Header */
.page-header {
    position: relative;
    height: 400px;
    color: white;
    padding: 80px 0;
    overflow: hidden;
  }
  
  /* Background image with overlay */
  .page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../Images/KingLab-byJasonSmith-1319_down.jpeg");
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: -1;
  }
  
  /* Additional darkening gradient overlay */
  .page-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: -1;
  }
  
  .page-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
  }
  
  .page-header p {
    font-size: 18px;
    max-width: 700px;
  }
  
  /* ===== SECTION STYLES ===== */
  .section {
    padding: 60px 0;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .section-header h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
  }
  
  .section-header h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    margin: 0.5rem auto;
  }
  
  .section-header p {
    font-size: 18px;
    color: var(--grey);
  }
  
  /* ===== RESEARCH OVERVIEW ===== */
  .research-overview {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
  }
  
  /* ===== RESEARCH THEME STYLES ===== */
  .research-theme {
    margin-bottom: 80px;
  }
  
  /* Theme Header (with number) */
  .theme-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
  }
  
  .theme-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 28px;
    flex-shrink: 0; /* Prevents the circle from shrinking */
  }
  
  .theme-title {
    font-size: 28px;
    color: var(--primary);
    margin: 0; /* Remove default margins */
  }
  
  /* Theme Content */
  .theme-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }
  
  .theme-content.reversed {
    direction: rtl;
  }
  
  .theme-content.reversed .theme-text,
  .theme-content.reversed .theme-image {
    direction: ltr;
  }
  
  /* Theme Text */
  .theme-text {
    padding: 20px 0;
  }
  
  .theme-text p {
    margin-bottom: 15px;
  }
  
  .theme-text p:last-child {
    margin-bottom: 0;
  }
  
  /* Theme Image */
  .theme-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .theme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* Key Papers Section */
  .key-papers {
    background-color: var(--light-grey);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
  }
  
  .key-papers h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
  }
  
  .papers-list {
    list-style: none;
  }
  
  .papers-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .papers-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .paper-title {
    font-weight: 600;
    margin-bottom: 5px;
  }
  
  .paper-authors {
    font-style: italic;
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 5px;
  }
  
  .paper-journal {
    font-size: 14px;
    color: var(--dark-grey);
  }
  
  /* CTA Section */
  .theme-cta {
    text-align: center;
    margin-top: 40px;
  }
  
  .btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
  }
  
  .btn:hover {
    background: #a00000;
  }
  
  /* ===== TABLET STYLES ===== */
  @media (max-width: 992px) {
    .page-header h1 {
      font-size: 36px;
    }
    
    .page-header p {
      font-size: 16px;
    }
    
    .theme-content {
      gap: 30px;
    }
    
    .theme-title {
      font-size: 26px;
    }
    
    .theme-icon {
      width: 55px;
      height: 55px;
      font-size: 26px;
    }
    
    .research-overview {
      max-width: 90%;
    }
  }
  
  /* ===== MOBILE STYLES ===== */
  @media (max-width: 768px) {
    /* Header adjustments */
    .page-header {
      height: 300px;
      padding: 60px 0;
    }
    
    .page-header h1 {
      font-size: 30px;
    }
    
    .page-header p {
      font-size: 16px;
      max-width: 100%;
    }
    
    /* Section adjustments */
    .section {
      padding: 40px 0;
    }
    
    .section-header {
      margin-bottom: 25px;
    }
    
    .section-header h2 {
      font-size: 26px;
    }
    
    /* Research overview */
    .research-overview {
      margin-bottom: 40px;
    }
    
    .research-overview p {
      font-size: 16px;
    }
  
    /* Theme adjustments */
    .research-theme {
      margin-bottom: 40px;
    }
    
    /* Theme header adjustments - from your pasted styles */
    .theme-icon {
      width: 48px;
      height: 48px;
      font-size: 24px;
      margin-right: 15px;
    }
    
    .theme-title {
      font-size: 24px;
    }
    
    /* Stack content vertically */
    .theme-content,
    .theme-content.reversed {
      display: flex;
      flex-direction: column;
      grid-template-columns: unset;
      gap: 25px;
      direction: ltr;
      margin-bottom: 20px;
    }
    
    /* Ensure image is shown first in standard layout, text second */
    .theme-content:not(.reversed) {
      display: flex;
      flex-direction: column-reverse;
    }
    
    .theme-text {
      padding: 0;
      margin-bottom: 15px;
    }
    
    .theme-text p {
      margin-bottom: 12px;
      line-height: 1.5;
    }
    
    /* Image adjustments */
    .theme-image {
      width: 100%;
      max-height: 220px;
      margin-bottom: 15px;
    }
    
    .theme-image img {
      object-fit: cover;
    }
    
    /* Key papers adjustments */
    .key-papers {
      padding: 15px;
      margin-top: 20px;
    }
    
    .key-papers h4 {
      font-size: 16px;
      margin-bottom: 10px;
    }
    
    .papers-list li {
      margin-bottom: 12px;
      padding-bottom: 12px;
    }
    
    /* CTA adjustments */
    .theme-cta {
      margin-top: 30px;
    }
    
    .btn {
      padding: 8px 18px;
      font-size: 15px;
    }
  }
  
  /* ===== SMALL MOBILE STYLES ===== */
  @media (max-width: 480px) {
    /* Header for small screens */
    .page-header {
      height: 250px;
      padding: 50px 0;
    }
    
    .page-header h1 {
      font-size: 26px;
    }
    
    .page-header p {
      font-size: 14px;
    }
    
    /* Theme header small screen adjustments - from your pasted styles */
    .theme-icon {
      width: 40px;
      height: 40px;
      font-size: 20px;
      margin-right: 12px;
    }
    
    .theme-title {
      font-size: 20px;
    }
    
    .theme-header {
      align-items: flex-start; /* Align to top for better small screen layout */
      margin-bottom: 15px;
    }
    
    /* Content adjustments */
    .theme-text p {
      font-size: 15px;
    }
    
    .theme-image {
      max-height: 180px;
    }
    
    /* Key papers small screen */
    .key-papers {
      padding: 12px;
    }
    
    .paper-title {
      font-size: 14px;
    }
    
    .paper-authors, 
    .paper-journal {
      font-size: 13px;
    }
    
    /* Research overview */
    .research-overview {
      text-align: left;
    }
    
    .research-overview p {
      font-size: 15px;
      line-height: 1.5;
    }
    
    /* Button on small screens */
    .btn {
      display: block;
      width: 100%;
      text-align: center;
    }
  }

  .funding-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
  }
  
  .funder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .funder-logo {
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .funder-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
  }
  
  .funder-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-grey);
  }
  
  .funding-statement {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
  }
  
  /* Responsive adjustments */
  @media (max-width: 992px) {
    .funding-logos {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .funding-logos {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .funding-logos {
      grid-template-columns: 1fr;
    }
    
    .funder-logo {
      height: 100px;
    }
  }