/* --- ESSAYS LAYOUT --- */
.essays-wrapper {
    padding: 40px 20px;
  }
  
  .essays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 1;
    transition: opacity .35s ease;
  }
  
  /* --- CARD --- */
  .essay-card {
    background: linear-gradient(to bottom right, var(--panel-0), var(--panel-1));
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity .6s cubic-bezier(.19,1,.22,1),
      transform .6s cubic-bezier(.19,1,.22,1),
      box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .essay-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .essay-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 34px rgba(0,0,0,0.08);
  }
  
  /* --- IMAGE --- */
  .essay-img-link img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
  }
  .essay-card:hover .essay-img-link img {
    transform: scale(1.015);
  }
  
  /* --- INFO --- */
  .essay-info {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .essay-title {
    font-family: Georgia, 'Libre Baskerville', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink);
  }
  .essay-meta {
    font-size: 13px;
    opacity: .62;
    margin-bottom: 14px;
  }
  .essay-excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 20px;
    flex-grow: 1;
  }
  
  /* --- BUTTON --- */
  .read-more {
    font-family: 'Georgia', serif;
    font-size: 15px;
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    align-self: flex-start;
    transition: background .28s ease, color .28s ease, transform .25s ease, box-shadow .25s ease;
  }
  .read-more:hover {
    background: var(--ink);
    color: var(--panel-0);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  }
  .read-more:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  /* --- RESPONSIVE --- */
  @media (max-width: 600px) {
    .essay-img-link img { height: 190px; }
  }
  
  /* --- FILTER + NAV --- */
  .filter-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid var(--ink);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    font-family: 'Georgia', serif;
    opacity: 0;
    transform: translateY(-12px);
    animation: dropFadeIn 0.65s ease-out forwards;
    animation-delay: 0.2s;
    z-index: 10;
  }
  .filter-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.15px;
  }
  .filter-dropdown {
    background-color: transparent;
    border: 1px solid var(--ink);
    padding: 5px 26px 5px 8px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    font-family: 'Georgia', serif;
    color: var(--ink);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23192231' d='M2 0L0 2h4zM2 5l2-2H0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 8px;
    transition: background .25s ease, color .25s ease, box-shadow .3s ease;
  }
  .filter-dropdown option {
    color: var(--ink);
    background-color: white;
    font-family: 'Georgia', serif;
  }
  
  /* NAV */
  .nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    z-index: 10;
    opacity: 0;
    animation: fadeDownIn .6s ease-out .3s forwards;
  }
  .nav-arrow {
    font-family: 'Georgia', serif;
    font-size: 13.5px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 6px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background .3s ease, color .3s ease, transform .2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  .page-number {
    font-family: 'Georgia', serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .2px;
  }
  
  /* --- ANIMATIONS --- */
  @keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeDownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  /* --- MOBILE + HOVER FIXES --- */
  @media (max-width: 600px) {
    .filter-container { top:10px; left:10px; padding:4px 8px; gap:6px; }
    .filter-label { font-size:12.5px; }
    .filter-dropdown { font-size:12px; padding:4px 7px; background-size:8px; }
    .nav-arrow { font-size:12px; padding:5px 10px; }
    .page-number { font-size:12.5px; }
  }
  @media (hover: hover) and (pointer: fine) {
    .nav-arrow:hover { background:#192231; color:#fff; transform:translateY(-1px); }
    .filter-dropdown:hover { background:#192231; color:#fff; }
  }
  @media (hover: none) {
    .nav-arrow, .filter-dropdown { -webkit-tap-highlight-color:transparent; }
    .nav-arrow:hover, .filter-dropdown:hover {
      background:transparent; color:var(--ink); transform:none;
    }
  }
  .filter-dropdown:focus {
    outline:none;
    box-shadow:0 0 0 2px rgba(25,34,49,0.12);
    background:transparent; color:var(--ink);
  }
  .filter-dropdown:focus-visible { box-shadow:0 0 0 2px rgba(25,34,49,0.18); }
  .nav-arrow:focus { outline:none; }
  .nav-arrow:active { transform:translateY(0); }
  