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

:root {
  --bg: #0a0a0a;
  --bg-elev: #121212;
  --bg-elev-2: #181818;
  --text: #f6f3ef;
  --muted: #c8c2b8;
  --muted-2: #9f968c;
  --accent: #ff3b3b;
  --accent-2: #ff8a47;
  --line: rgba(255, 255, 255, 0.12);
  --glow: rgba(255, 59, 59, 0.35);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  --radius: 22px;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Poppins", "Sora", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 380px at 12% 5%, rgba(255, 59, 59, 0.1), transparent 60%),
    radial-gradient(700px 420px at 88% 12%, rgba(255, 138, 71, 0.08), transparent 55%),
    radial-gradient(600px 340px at 50% 70%, rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.6));
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.blog-header {
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  position: sticky;
  align-items: center;
  gap: 16px;
  padding: 14px 10%;
  background:
    radial-gradient(120px 80px at 50% 0%, rgba(255, 59, 59, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(10, 10, 10, 0.82));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.blog-brand {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.blog-brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.blog-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.blog-brand__title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.blog-brand__tag {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-logo img {
  height: 50px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5));
}
.back-home {
  justify-self: start;
  color: white;
  text-decoration: none;

  border: 1px solid rgba(255, 59, 59, 0.6);
  background: linear-gradient(140deg, rgba(255, 59, 59, 0.18), rgba(255, 138, 71, 0.08));

  padding: 10px 26px;

  border-radius: 999px;

  transition: 0.3s ease;

  font-size: 14px;

  letter-spacing: 1px;
  text-transform: uppercase;
}

.back-home:hover {
  background: linear-gradient(140deg, rgba(255, 59, 59, 0.85), rgba(255, 138, 71, 0.7));
  border-color: transparent;

  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 59, 59, 0.35);
}

.blog-hero {
  position: relative;
  padding: 0px 0px 0px 0px;
  text-align: center;
  margin-bottom: 40px;
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: radial-gradient(420px 200px at 50% 20%, rgba(255, 59, 59, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.blog-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 3px;
  margin: 0 0 -5px;
  text-transform: uppercase;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  background: linear-gradient(120deg, #ffffff, #ffb08a 40%, #ff3b3b 85%);
  -webkit-background-clip: text;
  color: transparent;
  animation: float-in 0.7s ease both;
}
.blog-hero p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  animation: float-in 0.8s ease both;
  animation-delay: 0.1s;
}

.blog-tools {
  padding: 0 10% 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-tools__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.blog-tools__row--meta {
  align-items: center;
  justify-content: space-between;
}

.blog-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
  flex: 1 1 180px;
}

.blog-field--search {
  flex: 2 1 280px;
  min-width: 220px;
  max-width: 420px;
}

.blog-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.blog-input,
.blog-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.blog-select {
  display: none;
}

.custom-select {
  position: relative;
}

.custom-select__button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-select__button::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.custom-select.is-open .custom-select__button::after {
  transform: rotate(-135deg);
}

.custom-select__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-elev-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  padding: 6px;
  list-style: none;
  margin: 0;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
}

.custom-select.is-open .custom-select__list {
  display: block;
}

.custom-select__option {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s ease;
}

.custom-select__option:hover,
.custom-select__option[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.08);
}
.blog-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.blog-input:focus,
.blog-select:focus {
  outline: none;
  border-color: rgba(255, 59, 59, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.18);
}

.blog-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.blog-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.blog-clear {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 9px 18px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.blog-clear:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.blog-results {
  font-size: 12px;
  color: var(--muted);
}
.blog-section {
  padding: 0 10% 120px;
}
.blog-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 32px;
  align-items: stretch;
}

.blog-post {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);

  border-radius: var(--radius);

  overflow: hidden;

  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;

  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  animation: float-in 0.6s ease both;
}
.blog-post:hover {
  transform: translateY(-10px) scale(1.01);

  box-shadow: var(--shadow), 0 0 30px rgba(255, 59, 59, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}
.blog-post::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.blog-post:hover::after {
  opacity: 1;
}
.blog-post img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.blog-post:hover img {
  transform: scale(1.05);
  filter: saturate(1.1) contrast(1.05);
}

.blog-image-single {
  height: 220px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.blog-image-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.blog-image-single.is-contain {
  padding: 10px;
}

.blog-image-single.is-contain img {
  object-fit: contain;
}
.blog-post.is-featured {
  border-color: rgba(255, 59, 59, 0.6);
  box-shadow: 0 28px 60px rgba(255, 59, 59, 0.14), 0 30px 60px rgba(0, 0, 0, 0.55);
}
.blog-image-fallback {
  height: 220px;
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.25), rgba(255, 138, 71, 0.1));
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
}

.blog-image-grid.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.blog-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.blog-featured {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0a0a0a;
  background: linear-gradient(120deg, #ffb08a, #ff3b3b);
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.blog-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}
.blog-content {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.blog-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;

  color: var(--accent);
  border: 1px solid rgba(255, 59, 59, 0.35);
  background: rgba(255, 59, 59, 0.08);

  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 59, 59, 0.08);
}
.blog-content h3 {
  margin: 14px 0 10px;

  font-size: 20px;
  letter-spacing: 0.6px;
  line-height: 1.4;
}
.blog-content p {
  color: var(--muted-2);

  line-height: 1.6;
  margin: 0;
}
.blog-footer {
  text-align: center;

  padding: 40px 10%;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: #777;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
}

.blog-empty {
  text-align: center;
  color: var(--muted);
  margin: 30px auto 0;
  display: none;
}

.blog-load-more {
  margin: 26px auto 0;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 12px 26px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 59, 59, 0.2);
}

.blog-modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.blog-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.blog-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.blog-modal__panel {
  position: relative;
  width: min(900px, 92vw);
  max-height: 86vh;
  margin: 6vh auto 0;
  background: var(--bg-elev-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: translateY(18px);
  transition: transform 0.3s ease;
}

.blog-modal.is-open .blog-modal__panel {
  transform: translateY(0);
}

.blog-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

.blog-modal__media img,
.blog-modal__media .blog-image-fallback,
.blog-modal__media .blog-image-grid,
.blog-modal__media .blog-image-single {
  width: 100%;
  height: 280px;
}

.blog-modal__content {
  padding: 24px 26px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.blog-modal__date,
.blog-modal__category,
.blog-modal__badge {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-modal__badge {
  background: linear-gradient(120deg, #ffb08a, #ff3b3b);
  color: #111;
}

.blog-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.blog-modal-open {
  overflow: hidden;
}

.blog-footer p {
  margin: 0;
  letter-spacing: 0.6px;
}

.lang-switcher {
  position: relative;
  top: 0px;
  left: 0px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

body.menu-open .lang-switcher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.lang-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 0, 0.45);
  background: rgba(255, 0, 0, 0.18);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-btn {
  border: 0;
  color: #ffffff;
  background: transparent;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lang-btn.is-active {
  background: #ff0000;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(255, 0, 0, 0.32);
}

@media (max-width: 900px) {
  .blog-header {
    padding: 12px 6%;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .back-home {
    justify-self: center;
  }

  .blog-hero,
  .blog-tools,
  .blog-section,
  .blog-footer {
    padding-left: 6%;
    padding-right: 6%;
  }
}

@media (max-width: 600px) {
  .blog-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .blog-logo img {
    height: 42px;
  }

  .back-home {
    padding: 8px 16px;
    font-size: 14px;
  }

  .blog-hero {
    padding-top: 10px;
  }

  .blog-tools__row--meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-clear,
  .blog-results {
    margin-left: 0;
    width: 100%;
  }

  .blog-post img {
    height: 200px;
  }

  .blog-image-single {
    height: 200px;
  }

  .blog-modal__panel {
    margin: 4vh auto 0;
    max-height: 90vh;
  }

  .blog-modal__media img,
  .blog-modal__media .blog-image-fallback,
  .blog-modal__media .blog-image-grid {
    height: 210px;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
