/* ======================================================================
   HJIL HOMEPAGE REDESIGN
   Add these rules to the END of style.css.
   ====================================================================== */

.hjil-home {
  background: #fff;
  color: #171717;
}

.hjil-home main {
  font-family: Georgia, "Times New Roman", serif;
}

.hjil-home a:focus-visible,
.hjil-home button:focus-visible {
  outline: 3px solid #005ea8;
  outline-offset: 3px;
}

.hjil-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  grid-template-rows: minmax(500px, auto);
  position: relative;
  background: #f8f4ec;
  overflow: hidden;
}

.hjil-home-hero-image {
  grid-column: 1;
  grid-row: 1;
  min-height: 500px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.82) 38%, rgba(255,255,255,.12) 72%),
    url("images/hero-background.jpg") center / cover no-repeat;
}

.hjil-home-hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  z-index: 2;
  width: min(620px, 88%);
  padding: 3.5rem 0 3.5rem clamp(1.5rem, 4vw, 4.5rem);
}

.hjil-kicker {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 .9rem;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hjil-kicker::after {
  content: "";
  width: 52px;
  height: 2px;
  background: #c8102e;
}

.hjil-home-hero h1 {
  max-width: 620px;
  margin: 0 0 1rem;
  color: #111;
  font-size: clamp(2.7rem, 5vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .94;
}

.hjil-home-lede {
  max-width: 610px;
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  line-height: 1.45;
}

.hjil-button {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.35rem;
  border: 2px solid #c8102e;
  background: #c8102e;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.hjil-button:hover,
.hjil-button:focus {
  background: #960c22;
  border-color: #960c22;
  color: #fff !important;
}

.hjil-current-feature {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  padding: clamp(2.25rem, 4vw, 4.5rem);
  border-left: 1px solid #ded7cb;
  background: rgba(252,249,241,.97);
}

.hjil-current-feature h2 {
  margin: 0;
  color: #111;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
}

.hjil-issue-season {
  margin: .35rem 0 1.75rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hjil-current-feature h3 {
  max-width: 560px;
  margin: 0 0 .55rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.08;
}

.hjil-current-feature h3 a,
.hjil-article-card h3 a {
  color: #171717;
  text-decoration: none;
}

.hjil-current-feature h3 a:hover,
.hjil-current-feature h3 a:focus,
.hjil-article-card h3 a:hover,
.hjil-article-card h3 a:focus {
  color: #c8102e;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.hjil-author {
  margin: .4rem 0 1.5rem;
  font-style: italic;
  line-height: 1.4;
}

.hjil-home-section,
.hjil-home-lower {
  width: min(1500px, calc(100% - 3rem));
  margin-inline: auto;
}

.hjil-home-section {
  padding: 2.5rem 0 3rem;
}

.hjil-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hjil-section-heading h2,
.hjil-about-feature h2,
.hjil-explore h2 {
  margin: 0;
  color: #171717;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.1;
}

.hjil-section-heading > a {
  color: #c8102e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.hjil-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.hjil-article-card {
  padding: 1.6rem 1.8rem 1.6rem 0;
}

.hjil-article-card + .hjil-article-card {
  padding-left: 1.8rem;
  border-left: 1px solid #ddd;
}

.hjil-card-topic {
  margin: 0 0 .7rem;
  color: #c8102e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hjil-article-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  font-weight: 400;
  line-height: 1.08;
}

.hjil-home-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 0;
  margin-bottom: 3.5rem;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.hjil-about-feature,
.hjil-explore {
  padding: 2.5rem;
}

.hjil-about-feature {
  padding-left: 0;
}

.hjil-about-feature > p:not(.hjil-kicker) {
  max-width: 780px;
  font-size: 1.15rem;
  line-height: 1.55;
}

.hjil-text-link {
  color: #c8102e;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.hjil-text-link:hover,
.hjil-text-link:focus {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.hjil-explore {
  border-left: 1px solid #ddd;
}

.hjil-explore ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.hjil-explore li {
  border-top: 1px solid #ddd;
}

.hjil-explore li:last-child {
  border-bottom: 1px solid #ddd;
}

.hjil-explore li a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  color: #171717;
  text-decoration: none;
}

.hjil-explore li a:hover,
.hjil-explore li a:focus {
  color: #c8102e;
}

/* Tablet */
@media screen and (max-width: 1050px) {
  .hjil-home-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hjil-home-hero-image,
  .hjil-home-hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hjil-home-hero-image {
    min-height: 520px;
  }

  .hjil-current-feature {
    grid-column: 1;
    grid-row: 2;
    border-left: 0;
    border-top: 1px solid #ded7cb;
  }
}

/* Mobile */
@media screen and (max-width: 700px) {
  .hjil-home-hero-image {
    min-height: 560px;
    background:
      linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 70%, rgba(255,255,255,.45) 100%),
      url("images/hero-background.jpg") center / cover no-repeat;
  }

  .hjil-home-hero-copy {
    width: auto;
    padding: 2.5rem 1.5rem;
  }

  .hjil-home-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hjil-current-feature {
    padding: 2.25rem 1.5rem;
  }

  .hjil-home-section,
  .hjil-home-lower {
    width: min(100% - 2rem, 1500px);
  }

  .hjil-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hjil-article-grid {
    grid-template-columns: 1fr;
  }

  .hjil-article-card,
  .hjil-article-card + .hjil-article-card {
    padding: 1.4rem 0;
    border-left: 0;
  }

  .hjil-article-card + .hjil-article-card {
    border-top: 1px solid #ddd;
  }

  .hjil-home-lower {
    grid-template-columns: 1fr;
  }

  .hjil-about-feature,
  .hjil-explore {
    padding: 2rem 0;
  }

  .hjil-explore {
    border-top: 1px solid #ddd;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hjil-home *,
  .hjil-home *::before,
  .hjil-home *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* HJIL homepage upcoming events */
.hjil-home-lower-events { grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); }
.hjil-events { padding: 2.5rem 2.5rem 2.5rem 0; }
.hjil-event-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.hjil-event-list li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; padding: .55rem 0; border-top: 1px solid #ddd; }
.hjil-event-list li:last-child { border-bottom: 1px solid #ddd; }
.hjil-event-list time, .hjil-event-date-tbd { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #faf3df; font-family: Arial,Helvetica,sans-serif; text-align: center; text-transform: uppercase; }
.hjil-event-list time span { font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.hjil-event-list time strong { font-size: 1.15rem; line-height: 1.1; }
.hjil-event-date-tbd { font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.hjil-event-list h3 { margin: 0; color: #171717; font-size: 1.05rem; font-weight: 400; line-height: 1.25; }
.hjil-event-list p { margin: .18rem 0 0; font-size: .9rem; line-height: 1.35; }
.hjil-home-lower-events .hjil-about-feature { padding-left: 2.5rem; border-left: 1px solid #ddd; }
@media screen and (max-width: 800px) { .hjil-home-lower-events { grid-template-columns: 1fr; } .hjil-events { padding: 2rem 0; } .hjil-home-lower-events .hjil-about-feature { padding: 2rem 0; border-top: 1px solid #ddd; border-left: 0; } }

/* Beta-only mobile header: keeps the journal logo compact on phones. */
@media screen and (max-width: 992px) {
  .hjil-home .hjil-beta-mobile-brand { padding: 12px 16px !important; }
  .hjil-home .hjil-beta-mobile-brand p { margin: 0; }
  .hjil-home .hjil-beta-mobile-brand a { display: inline-block; max-width: 100%; }
  .hjil-home .hjil-beta-mobile-logo { display: block; width: auto; height: auto; max-width: min(260px, 75vw); max-height: 72px; object-fit: contain; margin: 0 auto; }
}
@media screen and (max-width: 600px) {
  .hjil-home .hjil-beta-mobile-logo { max-width: min(210px, 70vw); max-height: 58px; }
}


/* ==========================================================
   HJIL LATEST SCHOLARSHIP IMAGE SIZE FIX
   ========================================================== */

.hjil-home .hjil-article-grid .hjil-article-image {
    display: block;
    width: 100%;
    height: 180px;
    aspect-ratio: auto;
    margin-bottom: 0.85rem;
    overflow: hidden;
    background-color: #eee;
}

.hjil-home .hjil-article-grid .hjil-article-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 180px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
}

/* Tablet */
@media screen and (max-width: 1050px) {
    .hjil-home .hjil-article-grid .hjil-article-image {
        height: 160px;
    }

    .hjil-home .hjil-article-grid .hjil-article-image img {
        max-height: 160px;
    }
}

/* Mobile */
@media screen and (max-width: 700px) {
    .hjil-home .hjil-article-grid .hjil-article-image {
        height: 200px;
    }

    .hjil-home .hjil-article-grid .hjil-article-image img {
        max-height: 200px;
    }
}


2. Check the HTML
Each article image should be wrapped in an element with the hjil-article-image class:
<a
    class="hjil-article-image"
    href="articles/hjil-48-3-ruizgarcia.pdf"
    tabindex="-1"
    aria-hidden="true"
>
    <img
        src="images/hjil-48-3-ruizgarcia.jpg"
        alt=""
        width="1200"
        height="800"
        loading="lazy"
        decoding="async"
    >
</a>
