/* Consolidated News Page Styles */
:root {
    --primary: #800000;        /* UChicago Maroon */
    --grey: #767676;
    --light-grey: #f5f5f5;
    --dark-grey: #4d4d4d;
    --white: #ffffff;
    --footer-bg: #404040;      /* UChicago Footer Background */
  }

/* Consolidated News Page Styles with Fixed Headers */

/* ===== HEADER STYLES ===== */
/* Standard header for news page */
.page-header {
    background: var(--primary);
    color: white;
    padding: 80px 0;
  }
  
  .page-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
  }
  
  .page-header p {
    font-size: 18px;
    max-width: 700px;
  }
  
  /* If you want to use a photo banner header instead (like on the research page) */
  /* Uncomment this section and comment out the above .page-header styles */
  /*
  .page-header {
    position: relative;
    height: 400px;
    color: white;
    padding: 80px 0;
    overflow: hidden;
  }
  
  .page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../Images/your-header-image.jpg");
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: -1;
  }
  
  .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;
  }
  */
  
  /* ===== 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);
  }
  
  /* ===== NEWS GRID LAYOUT ===== */
  .news-grid {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  /* ===== NEWS ITEM STYLES ===== */
  .news-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
  }
  
  .news-item-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .news-img {
    height: 240px;
    background: var(--light-grey);
  }
  
  .news-item-featured .news-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .news-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .news-content {
    padding: 25px;
  }
  
  .news-date {
    color: var(--grey);
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .news-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
  }
  
  .news-excerpt {
    margin-bottom: 20px;
  }
  
  .news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
  }
  
  .news-link:hover {
    text-decoration: underline;
  }
  
  /* ===== SIDEBAR STYLES ===== */
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .sidebar-section {
    background: var(--light-grey);
    border-radius: 8px;
    padding: 25px;
  }
  
  .sidebar-title {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
  }
  
  /* ===== EVENT ITEMS ===== */
  .event-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .event-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .event-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  .event-date {
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 5px;
  }
  
  .event-location {
    font-size: 14px;
    color: var(--grey);
  }
  
  /* ===== CATEGORY LIST ===== */
  .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .category-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .category-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .category-list a {
    color: var(--dark-grey);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    justify-content: space-between;
  }
  
  .category-list a:hover {
    color: var(--primary);
  }
  
  .category-count {
    background-color: #e0e0e0;
    color: var(--dark-grey);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
  }
  
  /* ===== PAGINATION ===== */
  .pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
  }
  
  .pagination a {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 5px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--dark-grey);
    background: #e0e0e0;
    transition: background 0.3s;
  }
  
  .pagination a.active {
    background: var(--primary);
    color: white;
  }
  
  .pagination a:hover:not(.active) {
    background: #bdbdbd;
  }
  
  /* ===== BUTTON STYLES ===== */
  .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 RESPONSIVE STYLES ===== */
  @media (max-width: 992px) {
    .page-header h1 {
      font-size: 36px;
    }
    
    .page-header p {
      font-size: 16px;
    }
    
    .section-header h2 {
      font-size: 28px;
    }
    
    .news-grid {
      max-width: 90%;
    }
  }
  
  /* ===== MOBILE RESPONSIVE STYLES ===== */
  @media (max-width: 768px) {
    /* Header adjustments */
    .page-header {
      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 h2 {
      font-size: 26px;
    }
    
    /* News grid and items */
    .news-grid {
      max-width: 95%;
    }
    
    .news-list {
      gap: 20px;
    }
    
    /* Featured news items - convert to column */
    .news-item-featured {
      display: flex;
      flex-direction: column;
      grid-template-columns: unset;
    }
    
    /* Adjust image height for mobile */
    .news-item-featured .news-img {
      height: 200px;
    }
    
    .news-img {
      height: 200px;
    }
    
    .news-img img {
      object-fit: cover;
    }
    
    /* Adjust content padding for smaller screens */
    .news-content {
      padding: 20px 15px;
    }
    
    /* Make titles smaller on mobile */
    .news-title {
      font-size: 20px;
      margin-bottom: 10px;
    }
    
    /* Improve news excerpt readability */
    .news-excerpt {
      font-size: 15px;
      line-height: 1.5;
    }
    
    /* Pagination adjustments */
    .pagination {
      margin-top: 30px;
    }
    
    .pagination a {
      padding: 7px 12px;
      margin: 0 3px;
      font-size: 14px;
    }
  }
  
  /* ===== SMALL MOBILE RESPONSIVE STYLES ===== */
  @media (max-width: 480px) {
    /* Header for smallest screens */
    .page-header {
      padding: 40px 0;
    }
    
    .page-header h1 {
      font-size: 26px;
    }
    
    .page-header p {
      font-size: 15px;
    }
    
    /* Section and layout */
    .section {
      padding: 30px 0;
    }
    
    /* News items adjustments */
    .news-img {
      height: 180px;
    }
    
    .news-content {
      padding: 15px 12px;
    }
    
    .news-title {
      font-size: 18px;
    }
    
    .news-date {
      font-size: 13px;
    }
    
    /* Make news link more tappable */
    .news-link {
      display: block;
      text-align: center;
      padding: 10px 0;
      margin-top: 10px;
      border-top: 1px solid #f0f0f0;
    }
    
    /* Sidebar adjustments */
    .sidebar-section {
      padding: 15px;
    }
    
    .sidebar-title {
      font-size: 18px;
    }
    
    /* Event items */
    .event-item h4 {
      font-size: 15px;
    }
    
    /* Make pagination more compact */
    .pagination a {
      padding: 6px 10px;
      margin: 0 2px;
      font-size: 13px;
    }
    
    /* Button styling */
    .btn {
      display: block;
      width: 100%;
      text-align: center;
      padding: 12px 15px;
    }
  }