.ejl-home,
.ejl-home * {
  box-sizing: border-box;
}

.ejl-home {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
  overflow-wrap: anywhere;
  color: var(--ejl-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

.ejl-home > .wp-block-group + .wp-block-group {
  margin-top: 72px;
}

.ejl-home h1,
.ejl-home h2,
.ejl-home h3 {
  color: var(--ejl-navy);
}

.ejl-home h2 {
  margin-top: 0;
  margin-bottom: 28px;
}

.ejl-hero {
  position: relative;
  padding: 64px 48px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ejl-white) 0%, var(--ejl-surface) 100%);
  border: 1px solid var(--ejl-border);
  border-radius: 22px;
}

.ejl-hero::before {
  position: absolute;
  top: 0;
  left: 48px;
  width: 72px;
  height: 5px;
  background: var(--ejl-accent);
  border-radius: 0 0 5px 5px;
  content: "";
}

.ejl-hero h1 {
  max-width: 760px;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.12;
}

.ejl-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ejl-muted);
  font-size: 18px;
}

.ejl-home-hero {
  padding: 56px;
}

.ejl-home-hero__columns {
  align-items: center;
  gap: 40px;
  margin: 0;
}

.ejl-home-hero__content {
  flex: 1 1 58%;
  min-width: 0;
  text-align: left;
}

.ejl-home-hero__content h1,
.ejl-home-hero__content p {
  margin-right: 0;
  margin-left: 0;
}

.ejl-home-hero__media {
  display: flex;
  flex: 1 1 42%;
  justify-content: center;
  min-width: 0;
}

.ejl-home-hero__image {
  width: 100%;
  max-width: 360px;
}

.ejl-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ejl-latest .wp-block-latest-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
}

.ejl-latest .wp-block-latest-posts > li {
  min-width: 0;
  margin: 0;
  padding: 20px;
  list-style: none;
  background: var(--ejl-white);
  border: 1px solid var(--ejl-border);
  border-radius: 16px;
}

.ejl-latest .wp-block-latest-posts__featured-image {
  margin: -20px -20px 18px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.ejl-latest .wp-block-latest-posts__featured-image a {
  display: block;
}

.ejl-latest .wp-block-latest-posts__featured-image img {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ejl-latest .wp-block-latest-posts__post-title {
  color: var(--ejl-navy);
  font-weight: 700;
  line-height: 1.35;
}

.ejl-latest .wp-block-latest-posts__post-title:hover {
  color: var(--ejl-link);
}

.ejl-latest .wp-block-latest-posts__post-date {
  margin-top: 10px;
  color: var(--ejl-muted);
  font-size: 0.875rem;
}

.ejl-latest .wp-block-latest-posts__post-excerpt {
  display: -webkit-box;
  margin-top: 12px;
  overflow: hidden;
  color: var(--ejl-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ejl-saki {
  padding: 36px;
  background: var(--ejl-accent-soft);
  border: 1px solid #ead06c;
  border-left: 5px solid var(--ejl-accent);
  border-radius: 20px;
}

.ejl-home-saki {
  padding: 28px 36px;
}

.ejl-home-saki__columns {
  align-items: center;
  gap: 28px;
  margin: 0;
}

.ejl-home-saki__media {
  display: flex;
  flex: 0 1 190px;
  justify-content: center;
  min-width: 160px;
  max-width: 190px;
}

.ejl-home-saki__image {
  width: 100%;
  max-width: 190px;
}

.ejl-home-saki__content {
  flex: 1 1 auto;
  min-width: 0;
}

.ejl-saki h2,
.ejl-saki p,
.ejl-follow h2,
.ejl-follow p {
  margin-top: 0;
}

.ejl-saki p,
.ejl-follow p {
  margin-bottom: 0;
}

.ejl-follow {
  padding: 38px;
  color: var(--ejl-white);
  background: var(--ejl-navy);
  border-radius: 20px;
}

.ejl-follow h2,
.ejl-follow p {
  color: var(--ejl-white);
}

.ejl-follow .wp-block-buttons {
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .ejl-home > .wp-block-group + .wp-block-group {
    margin-top: 60px;
  }

  .ejl-latest .wp-block-latest-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ejl-home-hero {
    padding: 48px 32px;
  }

  .ejl-home-hero__columns {
    gap: 24px;
  }

  .ejl-home-hero__content {
    flex-basis: 56%;
  }

  .ejl-home-hero__media {
    flex-basis: 44%;
  }

  .ejl-home-hero__image {
    max-width: 280px;
  }

  .ejl-home-saki__media,
  .ejl-home-saki__image {
    max-width: 180px;
  }
}

@media (max-width: 767px) {
  .ejl-home {
    padding-right: 18px;
    padding-left: 18px;
  }

  .ejl-home > .wp-block-group + .wp-block-group {
    margin-top: 48px;
  }

  .ejl-hero {
    padding: 40px 22px;
    border-radius: 16px;
  }

  .ejl-hero::before {
    left: 22px;
  }

  .ejl-hero p {
    font-size: 16px;
  }

  .ejl-home-hero {
    padding: 36px 20px;
  }

  .ejl-home-hero__columns,
  .ejl-home-saki__columns {
    flex-direction: column;
  }

  .ejl-home-hero__columns {
    gap: 24px;
  }

  .ejl-home-hero__content,
  .ejl-home-hero__media,
  .ejl-home-saki__media,
  .ejl-home-saki__content {
    flex-basis: auto;
    width: 100%;
  }

  .ejl-home-hero__content,
  .ejl-home-saki__content {
    text-align: center;
  }

  .ejl-home-hero__content h1,
  .ejl-home-hero__content p {
    margin-right: auto;
    margin-left: auto;
  }

  .ejl-home-hero__image {
    width: min(78vw, 280px);
  }

  .ejl-category-grid,
  .ejl-latest .wp-block-latest-posts {
    grid-template-columns: minmax(0, 1fr);
  }

  .ejl-category-grid {
    gap: 16px;
  }

  .ejl-category-card {
    min-height: 0;
    padding: 22px;
  }

  .ejl-category-card::before {
    left: 22px;
  }

  .ejl-saki,
  .ejl-follow {
    padding: 24px;
  }

  .ejl-home-saki {
    padding: 26px 20px;
  }

  .ejl-home-saki__columns {
    gap: 22px;
  }

  .ejl-home-saki__media {
    min-width: 0;
  }

  .ejl-home-saki__image {
    width: min(58vw, 180px);
  }
}

@media (max-width: 480px) {
  .ejl-follow .wp-block-button,
  .ejl-follow .wp-block-button__link {
    width: 100%;
  }

  .ejl-follow .wp-block-button__link {
    text-align: center;
  }
}
