@font-face {
  font-family: "Abar";
  src: url("../fonts/AbarVF.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --el-navy: #002f48;
  --el-navy-deep: #00263a;
  --el-cream: #fff1d6;
  --el-red: #c11020;
  --el-maroon: #7a1315;
  --el-line: rgba(255, 241, 214, 0.16);
}

#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

body.eleman-blog {
  margin: 0;
  min-height: 100vh;
  background: var(--el-cream);
  color: var(--el-navy);
  font-family: "Abar", Tahoma, Arial, sans-serif;
  direction: rtl;
  overflow-x: hidden;
}

.eleman-blog *,
.eleman-blog *::before,
.eleman-blog *::after {
  box-sizing: border-box;
}

.eleman-blog a {
  color: inherit;
  text-decoration: none;
}

.blog-header {
  min-height: 86px;
  padding: 16px clamp(22px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: var(--el-cream);
  background: var(--el-navy);
  border-bottom: 1px solid var(--el-line);
}

.blog-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.blog-brand__mark {
  width: 40px;
  height: auto;
  object-fit: contain;
}

.blog-brand__word {
  width: 99px;
  height: auto;
  object-fit: contain;
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 16px;
  font-weight: 600;
}

.blog-nav a {
  position: relative;
  padding: 10px 0;
  opacity: 0.72;
}

.blog-nav a:hover,
.blog-nav a.is-active {
  opacity: 1;
}

.blog-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--el-red);
}

.blog-header__cta {
  justify-self: end;
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--el-navy) !important;
  background: var(--el-cream);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.blog-header__cta:hover {
  transform: translateY(-2px);
}

.blog-search {
  position: relative;
  z-index: 30;
  justify-self: end;
}

.blog-search summary {
	width: 46px;
	min-height: 46px;
	padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  border-radius: 999px;
  color: var(--el-navy);
  background: var(--el-cream);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.blog-search summary::-webkit-details-marker {
  display: none;
}

.blog-search summary:hover {
  transform: translateY(-2px);
}

.blog-search[open] summary {
  color: var(--el-cream);
  background: var(--el-red);
}

.blog-search summary svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.blog-search__form {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(360px, calc(100vw - 36px));
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 47, 72, 0.14);
  border-radius: 18px;
  background: var(--el-cream);
  box-shadow: 0 22px 55px rgba(0, 22, 34, 0.25);
}

.blog-search__form input[type="search"] {
  min-width: 0;
  height: 44px;
  flex: 1 1 auto;
  padding: 0 14px;
  border: 1px solid rgba(0, 47, 72, 0.18);
  border-radius: 12px;
  outline: 0;
  color: var(--el-navy);
  background: rgba(255, 255, 255, 0.5);
  font: inherit;
}

.blog-search__form input[type="search"]:focus {
  border-color: var(--el-red);
  box-shadow: 0 0 0 3px rgba(193, 16, 32, 0.1);
}

.blog-search__form button {
  height: 44px;
  padding: 0 17px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  color: var(--el-cream);
  background: var(--el-red);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-hero {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  padding: 92px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--el-cream);
  background:
    radial-gradient(circle at 12% 25%, rgba(193, 16, 32, 0.28), transparent 25%),
    linear-gradient(135deg, #073e58, var(--el-navy) 60%, var(--el-navy-deep));
  overflow: hidden;
}

.blog-hero::after {
  content: "e";
  position: absolute;
  z-index: -1;
  left: clamp(20px, 8vw, 120px);
  top: 50%;
  transform: translateY(-53%);
  color: rgba(255, 241, 214, 0.055);
  font-family: Arial, sans-serif;
  font-size: clamp(260px, 35vw, 520px);
  font-weight: 800;
  line-height: 1;
}

.blog-hero__eyebrow {
  margin-bottom: 14px;
  color: #e6646e;
  font-size: 16px;
  font-weight: 700;
}

.blog-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.blog-hero p {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(255, 241, 214, 0.75);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.85;
}

.blog-feed {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 110px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.post-card {
  min-width: 0;
  border: 1px solid rgba(0, 47, 72, 0.13);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.38);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.post-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 58px rgba(0, 47, 72, 0.12);
}

.post-card__media {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 70% 28%, rgba(193, 16, 32, 0.78), transparent 22%),
    linear-gradient(145deg, #073e58, var(--el-navy-deep));
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

.post-card__monogram {
  color: var(--el-cream);
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
}

.post-card__body {
  padding: 27px 26px 28px;
}

.post-card__meta,
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(0, 47, 72, 0.58);
  font-size: 14px;
}

.post-card__meta span + span::before,
.article-meta span + span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 16px;
  display: inline-block;
  border-radius: 50%;
  background: var(--el-red);
  vertical-align: middle;
}

.post-card h2 {
  margin: 18px 0 12px;
  font-size: clamp(22px, 1.8vw, 29px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.post-card h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-card__excerpt {
  min-height: 76px;
  color: rgba(0, 47, 72, 0.72);
  font-size: 15.5px;
  line-height: 1.65;
}

.post-card__excerpt p {
  margin: 0;
}

.post-card__link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--el-red) !important;
  font-weight: 700;
}

.blog-pagination {
  margin-top: 62px;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.blog-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 47, 72, 0.16);
  border-radius: 999px;
}

.blog-pagination .current {
  color: var(--el-cream);
  background: var(--el-navy);
}

.blog-empty {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 40px;
  text-align: center;
  border: 1px solid rgba(0, 47, 72, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.35);
}

.blog-empty > span {
  color: var(--el-red);
  font-weight: 700;
}

.blog-empty h2 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 54px);
}

.blog-empty p {
  margin: 0;
  color: rgba(0, 47, 72, 0.68);
  font-size: 17px;
  line-height: 1.8;
}

.blog-footer {
  min-height: 100px;
  padding: 28px clamp(22px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: rgba(255, 241, 214, 0.72);
  background: var(--el-navy-deep);
  border-top: 1px solid var(--el-line);
}

.blog-footer a {
  color: var(--el-cream);
}

/* Single article */
.article-shell {
  padding: 86px 24px 120px;
  background:
    linear-gradient(rgba(0, 47, 72, 0.045) 1px, transparent 1px),
    var(--el-cream);
  background-size: 100% 48px;
}

.article {
  width: min(900px, 100%);
  margin: 0 auto;
}

.article-header {
  text-align: center;
}

.article-back {
  display: inline-flex;
  color: var(--el-red) !important;
  font-weight: 700;
}

.article-meta {
  margin-top: 34px;
  justify-content: center;
}

.article-header h1 {
  max-width: 840px;
  margin: 26px auto 0;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.article-lead {
  max-width: 680px;
  margin: 28px auto 0;
  color: rgba(0, 47, 72, 0.68);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.8;
}

.article-cover {
  margin: 58px 0 0;
  overflow: hidden;
  border-radius: 32px;
}

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  max-width: 760px;
  margin: 66px auto 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 2;
}

.article-content h2,
.article-content h3 {
  margin: 1.8em 0 0.7em;
  line-height: 1.35;
}

.article-content h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.article-content h3 {
  font-size: clamp(25px, 3vw, 34px);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.article-content blockquote {
  margin: 2em 0;
  padding: 18px 26px;
  color: var(--el-maroon);
  border-right: 4px solid var(--el-red);
  background: rgba(193, 16, 32, 0.06);
}

.article-footer {
  max-width: 760px;
  margin: 64px auto 0;
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(0, 47, 72, 0.14);
}

.article-footer a {
  color: var(--el-red);
  font-weight: 700;
}

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .blog-header {
    min-height: 74px;
    padding: 12px 18px;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .blog-brand__mark {
    width: 32px;
    height: auto;
  }

  .blog-brand__word {
    width: 76px;
    height: auto;
  }

  .blog-nav {
    justify-self: center;
    gap: 18px;
    font-size: 14px;
  }

  .blog-header__cta {
    display: none;
  }

  .blog-search summary {
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .blog-search__form {
    position: fixed;
    top: 78px;
    right: 18px;
    left: 18px;
    width: auto;
  }

  .blog-hero {
    min-height: 350px;
    padding: 72px 24px;
  }

  .blog-hero h1 {
    font-size: clamp(52px, 18vw, 74px);
  }

  .blog-feed {
    width: min(100% - 32px, 560px);
    padding: 56px 0 76px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card__body {
    padding: 24px 22px 25px;
  }

  .post-card__excerpt {
    min-height: 0;
  }

  .blog-empty {
    padding: 50px 24px;
  }

  .blog-footer {
    min-height: 120px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .article-shell {
    padding: 58px 20px 84px;
  }

  .article-header h1 {
    font-size: clamp(34px, 9.5vw, 46px);
    line-height: 1.25;
  }

  .article-cover {
    margin-top: 40px;
    border-radius: 22px;
  }

  .article-content {
    margin-top: 44px;
  }

  .article-footer {
    margin-top: 48px;
    flex-direction: column;
  }
}
