@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #111111;
  --muted: #606266;
  --border: #e8e8ec;
  --surface: #f6f7f9;
  --chip: #1f2937;
  --chip-hover: #111827;
  --accent: #ffd400;
  --link: #0f172a;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: #ffffff;
  line-height: 1.45;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100dvh;
  gap: 0;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100%;
  border-right: none;
  background: rgba(242, 242, 242, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  display: grid;
  gap: 28px;
}

.brand__logo {
  width: 200px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 36px auto 0;
}

.brand__logo img {
  display: block;
  width: 200px;
  height: 34px;
}

.brand__logo small {
  display: none;
}

/* Sidebar Nav — large items with active indicator */
.nav {
  display: grid;
  gap: 12px;
  margin: 24px 0 0 40px;
}

.nav a {
  position: relative;
  display: block;
  border: none;
  background: transparent;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 14px;
  color: #0f0f10;
  padding-left: 12px;
  /* small gap so marker looks adjacent */
  transition: color .2s ease, filter .2s ease;
}

.nav a:hover {
  background: transparent;
  text-decoration: none;
  filter: none;
}

/* Animated indicator base (hidden by default) */
.nav a::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  width: 4px;
  height: 21px;
  background: var(--accent);
  opacity: 0;
  transition: transform .24s cubic-bezier(.22, .61, .36, 1), opacity .2s ease;
}

.nav a[aria-current="page"],
.nav a.active {
  border: none;
  background: transparent;
}

.nav a[aria-current="page"]::before,
.nav a.active::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%) scaleY(1);
  width: 4px;
  height: 21px;
  background: var(--accent);
  opacity: 1;
}

/* Nav submenu */
.nav__group {
  display: grid;
  gap: 0;
}

/* Apply spacing between BLOG and submenu only when open */
.nav__group.is-open {
  gap: 8px;
}

/* Make submenu transitionable instead of display: none */
.nav-sub {
  display: grid;
  margin: 0 0 0 18px;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .28s cubic-bezier(.22, .61, .36, 1), opacity .2s ease, transform .28s cubic-bezier(.22, .61, .36, 1);
}

.nav-sub a {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  color: #111;
  padding-left: 10px;
  position: relative;
}

/* Remove yellow bar for submenu items */
.nav-sub a[aria-current="page"]::before,
.nav-sub a.active::before {
  display: none;
}

/* Active submenu state */
.nav-sub a[aria-current="page"],
.nav-sub a.active {
  font-weight: 600;
}

/* Open state with smooth slide */
.nav__group.is-open>.nav-sub {
  display: grid;
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 4px;
}

.sidebar__bottom {
  display: grid;
  margin-left: 40px;
  margin-bottom: 38px;
  display: grid;
  gap: 0;
  font-size: 12px;
}

/* Hidden by default; shown on mobile */
.menu-toggle {
  display: none;
}

.language-switch {
  position: fixed;
  top: 0;
  right: 30px;
  z-index: 40;
  display: block;
  width: 30px;
  height: 30px;
  line-height: 0;
  text-decoration: none;
}

.language-switch:hover {
  text-decoration: none;
}

.language-switch__icon {
  display: block;
  width: 30px;
  height: 30px;
}

.language-switch__icon--hover {
  position: absolute;
  inset: 0;
  display: none;
}

.language-switch:hover .language-switch__icon--default,
.language-switch:focus-visible .language-switch__icon--default {
  display: none;
}

.language-switch:hover .language-switch__icon--hover,
.language-switch:focus-visible .language-switch__icon--hover {
  display: block;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #f2f2f2;
  z-index: 999;
  display: none;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 16px;
}

.mobile-menu__logo img {
  width: 200px;
  height: 34px;
  display: block;
}

.menu-close {
  width: 28px;
  height: 28px;
  background: transparent url('../img/Group.svg') no-repeat center;
  background-size: 22px 22px;
  border: 0;
  position: relative;
  display: inline-block;
}

.menu-close::before,
.menu-close::after {
  content: none;
}

.mobile-nav {
  display: grid;
  gap: 15px;
  padding: 48px 16px 24px 16px;
  justify-items: center;
}

.mobile-nav a {
  position: relative;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
}

.mobile-nav a[aria-current="page"]::before,
.mobile-nav a.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 21px;
  background: var(--accent);
}

.mobile-nav__group {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.mobile-sub {
  display: grid;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .28s cubic-bezier(.22, .61, .36, 1), opacity .2s ease, transform .28s cubic-bezier(.22, .61, .36, 1);
}

.mobile-nav__group.is-open>.mobile-sub {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-sub a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  color: rgba(0, 0, 0, .65);
}

.mobile-sub a[aria-current="page"],
.mobile-sub a.active {
  color: var(--text);
  font-weight: 800;
}

.mobile-sub a[aria-current="page"]::before,
.mobile-sub a.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--text);
}

.mobile-social {
  display: grid;
  gap: 12px;
  padding: 32px 16px;
  justify-items: center;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

.mobile-social a {
  color: #000;
  text-decoration: none;
}

.mobile-copy {
  text-align: center;
  font-size: 12px;
  color: #000;
  padding: 2px 0 24px;
}

.social {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.social a {
  color: #0f0f10;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}

.social a:hover {
  text-decoration: none;
  color: #000;
  font-weight: 700;
}

/* Mobile social hover to match sidebar */
.mobile-social a:hover {
  text-decoration: none;
  color: #bfbfbf;
  font-weight: 700;
}

.copyright {
  font-size: 8px;
  color: rgba(0, 0, 0, 1);
}

.copyright strong {
  font-weight: 700;
}

.privacy-link {
  font-size: 10px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.privacy-link a {
  color: #000;
  text-decoration: none;
}

.privacy-link a:hover {
  color: #bfbfbf;
  text-decoration: none;
  font-weight: 700;
}

.mobile-privacy {
  text-align: center;
  font-size: 12px;
  padding: 8px 16px 2px;
}

.mobile-privacy a {
  color: #000;
  text-decoration: none;
}

.mobile-privacy a:hover {
  color: #bfbfbf;
  text-decoration: none;
}

/* Main */
main {
  padding: 29px 0px 0px 40px;
  max-width: 1080px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 268px;
  align-items: center;
  gap: 92px;
  width: 418px;
}

.hero h1 {
  font-weight: bold;
  margin: 0;
  /* spacing handled on the paragraph */
  width: 418px;
  min-height: 98px;
  height: auto;
  color: rgba(0, 0, 0, 1);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0px;
  text-align: left;
  text-transform: none;
}

.hero p {
  color: rgba(0, 0, 0, 1);
  width: 415px;
  min-height: 86px;
  height: auto;
  margin: 20px 0 0 0;
  font-size: 14px;
}

/* center hero text on very small widths */
@media (max-width: 480px) {
  .hero-text {
    text-align: center;
  }
}

.portrait {
  position: relative;
  width: 268px;
  height: 268px;
  border-radius: 50%;
  overflow: hidden;
  justify-self: end;
  background: #eee;
}

.portrait img {
  width: 100%;
  height: 100%;
}

/* Highlight (Seçkin Projeler) */
.highlight {
  width: 740px;
  min-height: 178px;
  height: auto;
  margin: 40px 0 24px 0;
  background: rgba(242, 242, 242, 1);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 36px 24px 40px 24px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0;
  /* use explicit margins between items */
}

.highlight h3 {
  margin: 0;
  /* keep heading snug; spacing handled on paragraph */
  font-size: 16px;
}

.highlight p {
  margin: 2px auto 16px auto;
  /* 2px below title, 16px above button */

  color: rgba(0, 0, 0, 1);
  width: 584px;
  min-height: 35px;
  height: auto;
  line-height: 17.5px;
  text-align: center;
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0px;
  text-align: center;
}

/* Exact specs for highlight button */
.highlight .btn {
  width: 95px;
  height: 30px;
  padding: 0;
  border-radius: 0;
  /* no round corners */
  border: none;
  background: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.highlight .btn__label {
  min-width: 56px;
  width: auto;
  height: 18px;
  color: rgba(255, 255, 255, 1);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  /* vertical center to avoid clipping */
  letter-spacing: 0px;
  text-align: center;
  text-transform: uppercase;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  width: fit-content;
}

.btn:hover {
  background: #FFD300;
  border-color: #FFD300;
  color: #000;
  text-decoration: none;
  filter: none;
}

/* Highlight button hover: turn yellow with black text */
.highlight .btn:hover {
  background: #FFD300;
}

.highlight .btn:hover .btn__label {
  color: #000;
}

/* Stock section — match screenshot */
.stock {
  margin-top: 36px;
  margin-left: 46px;
  text-align: center;
  width: 649px;
}

.stock p {
  color: rgba(0, 0, 0, 1);
  width: 414px;
  margin: 0 auto 10px auto;
  font-size: 14px;
  line-height: 17.5px;
  letter-spacing: 0px;
}

.stock-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: stretch;
  gap: 10px;
}

.stock-row--wide {
  width: 649px;
  margin-left: auto;
  margin-right: auto;
}

.stock-row--narrow {
  width: 434px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 82px 93px 91px 138px;
}

.stock-row+.stock-row {
  margin-top: 10px;
}

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 30px;
  padding: 0;
  border-radius: 0;
  background: #000000;
  color: rgba(255, 255, 255, 1);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
}

.chip:hover {
  background: #FFD300;
  color: #000;
  text-decoration: none;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 840px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 7;
    height: 56px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    background: #F2F2F2;
    padding: 8px 16px;
    overflow: hidden;
  }

  /* Top bar: logo left, hamburger right */
  .brand {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0;
  }

  .brand__logo {
    margin: 0;
    justify-content: start;
  }

  .nav {
    display: none;
    margin: 0;
  }

  .menu-toggle {
    width: 28px;
    height: 28px;
    background: transparent url('../img/Union.svg') no-repeat center;
    background-size: 22px 22px;
    border: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 68px;
    display: block;
  }

  .menu-toggle::before,
  .menu-toggle::after {
    content: none;
  }

  .language-switch {
    position: absolute;
    top: 50%;
    right: 16px;
    z-index: 8;
    transform: translateY(-50%);
  }

  .sidebar__bottom {
    display: none;
  }

  main {
    padding: 72px 16px 16px 16px;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    width: auto;
  }

  .hero h1 {
    font-size: 28px;
    height: auto;
    width: 100%;
    text-align: center;
  }

  .hero p {
    width: 100%;
    height: auto;
    text-align: center;
  }

  .portrait {
    justify-self: center;
    width: 180px;
    height: 180px;
    order: -1;
  }

  .highlight {
    width: 100%;
    height: auto;
    padding: 20px 16px;
  }

  .highlight p {
    width: 100%;
    height: auto;
  }

  .blog-header h2 {
    text-align: center;
  }
}

@media (max-width: 700px) {
  .stock {
    width: 100%;
    margin-left: 0;
  }

  .stock-row--wide,
  .stock-row--narrow {
    width: 100%;
  }

  .stock-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chip {
    height: 44px;
    font-size: 14px;
    width: 78%;
    max-width: 320px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .stock p {
    width: 100%;
  }
}

/* Page switching */
.page {
  display: none;
}

.page.is-active {
  display: block;
  animation: fadeIn .24s cubic-bezier(.22, .61, .36, 1);
}

#page-iletisim {
  margin-top: -40px;
}

/* Blog page styles */
.blog-header {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  margin-bottom: 16px;
}

.blog-header h2 {
  font-size: 32px;
  margin: 0;
  font-weight: 800;
  letter-spacing: .5px;
}

.blog-search input {
  width: 730px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 0 12px 0 40px;
  background-color: #f2f2f2;
  background-image: url('../img/search.svg');
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px 16px;
}

.is-blog .blog-search input {
  width: 739px;
}

.blog-search {
  margin-bottom: 8px;
}

.blog-search input:focus,
.blog-search input:focus-visible {
  border-color: #FFD300;
  outline: none;
  box-shadow: 0 0 0 3px #FFD300;
}

.blog-search input::placeholder {
  color: rgba(0, 0, 0, 1);
  opacity: 1;
}

.search-suggest {
  position: absolute;
  width: 739px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
  display: none;
  z-index: 50;
}

.search-suggest.is-open {
  display: block;
}

.search-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 8px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.search-item:hover {
  background: #f6f7f9;
}

.search-thumb {
  width: 56px;
  height: 40px;
  background: #eee;
  overflow: hidden;
  border-radius: 4px;
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-meta {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
}

.search-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.search-more {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  text-decoration: none;
  padding: 10px;
  border-radius: 0 0 6px 6px;
}

.search-more:hover {
  text-decoration: none;
  filter: none;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 352px);
  gap: 24px;
  padding-bottom: 32px;
}

.post-card {
  display: grid;
  gap: 8px;
  width: 352px;
}

.post-thumb {
  width: 352px;
  height: 198px;
  background: #000;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.post-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 10px #FFD300;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.post-card:hover .post-thumb::after,
.post-thumb:hover::after {
  opacity: 1;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: rgba(0, 0, 0, 1);
}

.post-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

/* Blog more button - full width */
.blog-more {
  display: block;
  width: 740px;
  margin: 18px 0 48px 0;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  text-align: center;
  height: 32px;
  line-height: 32px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

/* Blog list — mobile */
@media (max-width: 840px) {
  .blog-header {
    gap: 10px;
    margin-top: 0;
    margin-bottom: 14px;
  }

  .blog-header h2 {
    font-size: 24px;
    text-align: left;
  }

  .blog-search input {
    width: 100%;
    height: 40px;
  }

  /* Ensure detail page variant also becomes fluid on mobile */
  .is-blog .blog-search input {
    width: 100% !important;
    height: 40px;
  }

  .search-suggest {
    width: 100%;
  }

  .blog-search {
    margin-bottom: 16px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 57px;
  }

  .post-card {
    width: 100%;
  }

  .post-thumb {
    width: 100%;
    height: auto;
  }

  .post-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .blog-more {
    width: 100%;
  }

  /* Stick blog header under mobile top bar (closer to top) */
  .blog-header {
    position: sticky;
    top: 0px;
    background: #fff;
    z-index: 6;
    padding-top: 0;
    padding-bottom: 14px;
  }

  /* Ensure the first post image is fully visible under sticky header */
  #page-blog .posts-grid {
    padding-top: 4px;
  }
}

/* Contact page */
.contact__title {
  font-size: 42px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center;
  width: 740px;
}

.contact__subtitle {
  margin-left: 150px;
  margin-top: -5px;
  margin-bottom: 36px;
  max-width: 415px;
  text-align: center;
  color: rgba(0, 0, 0, 1);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0px;
  text-align: center;
}

.contact__card {
  background: #f2f2f2;
  border: 1px solid var(--border);
  padding: 24px;
  width: 740px;
  margin-bottom: 40px;
}

.contact__info {
  display: flex;
  align-items: center;
  justify-content: left;
  margin-bottom: 16px;
}

.contact__info img {
  max-width: 35%;
  height: auto;
  display: block;
}

.contact__form {
  display: grid;
  gap: 0;
}

.contact-trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__form .form-field {
  margin-bottom: 10px;
}

.contact__form .form-field:last-of-type {
  margin-bottom: 0;
}

.form-field {
  position: relative;
  display: block;
  width: 660px;
}

.form-label {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 1);
  pointer-events: none;
}

.form-input {
  width: 660px;
  height: 47px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 22px 12px 10px 12px;
  font-family: 'Montserrat';
}

.form-input:focus,
.form-input:focus-visible {
  border-color: #FFD300;
  outline: none;
  box-shadow: 0 0 0 3px #FFD300;
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
  -webkit-text-fill-color: #000;
  caret-color: #000;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(0, 0, 0, 1);
  opacity: 1;
}

.form-textarea {
  width: 660px;
  min-height: 217px;
  height: auto;
  border: 1px solid var(--border);
  background: #fff;
  padding: 28px 12px 28px 12px;
  resize: none;
  overflow: hidden;
  font-family: 'Montserrat';
}

.form-textarea:focus,
.form-textarea:focus-visible {
  border-color: #FFD300;
  outline: none;
  box-shadow: 0 0 0 3px #FFD300;
}

.char-count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.captcha-field {
  display: grid;
  gap: 8px;
  min-height: 128px;
}

.captcha-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 660px;
}

.captcha-image {
  width: 220px;
  height: 72px;
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  object-fit: cover;
}

.captcha-refresh {
  width: 92px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-family: 'Montserrat';
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.captcha-refresh:hover,
.captcha-refresh:focus-visible {
  background: #FFD300;
  color: #000;
  outline: none;
}

.captcha-input-wrap {
  position: relative;
  width: 660px;
}

.captcha-input {
  text-transform: uppercase;
  letter-spacing: 2px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.contact-btn {
  background: #000;
  color: #fff;
  height: 30px;
  min-width: 129px;
  width: auto;
  padding: 0 14px;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.contact-btn:hover {
  background: #FFD300;
  color: #000;
}

.contact-btn[disabled] {
  cursor: wait;
  opacity: .72;
}

.form-error {
  color: #cc1f1a;
  font-size: 12px;
  font-weight: 600;
}

.form-success {
  color: #0d7a2a;
  font-size: 12px;
  font-weight: 700;
}

/* Contact – mobile layout */
@media (max-width: 840px) {
  .contact__title {
    width: 100%;
    margin: 24px 0 0 0;
    font-size: 28px;
  }

  .contact__subtitle {
    margin: 8px auto 24px auto;
    max-width: 360px;
  }

  .contact__card {
    width: 100%;
    height: auto;
    padding: 16px;
    border: none;
    background: #f2f2f2;
  }

  .contact__info {
    margin-bottom: 12px;
  }

  .form-field {
    width: 100%;
  }

  .form-input {
    width: 100%;
    height: 44px;
    padding: 22px 12px 10px 12px;
  }

  .form-textarea {
    width: 100%;
    min-height: 220px;
    height: auto;
    padding: 28px 12px 28px 12px;
  }

  .captcha-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .captcha-image {
    width: 100%;
    max-width: 220px;
  }

  .captcha-input-wrap {
    width: 100%;
  }

  .form-actions {
    justify-content: center;
    margin-top: 12px;
  }

  .contact-btn {
    width: 170px;
    height: 36px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .nav a::before,
  .nav-sub,
  .page.is-active {
    transition: none !important;
    animation: none !important;
  }
}

/* Blog detail (article) */
.article {
  max-width: 740px;
}

.article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  margin-bottom: 20px;
}

/* Back button styled as solid black with white arrow */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 27px;
  width: 109px;
  padding: 0 16px;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: none;
  background: #FFD300;
  color: #000;
  filter: none;
}

.back-link:hover::before {
  border-left-color: #000;
  border-bottom-color: #000;
}

.back-link::before {
  content: '';
  width: 8px;
  height: 8px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  margin-left: 3px;
  transform: rotate(45deg);
  display: inline-block;
}

/* Hide the slash separator to match design */
.article-breadcrumb .sep {
  display: none;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #000;
  text-transform: uppercase;
  font-weight: 800;
}

.article-cat {
  color: #000;
  text-decoration: none;
}

.article-date {
  font-size: 10px;
  color: #000;
}

.article-hero {
  width: 740px;
  height: 418px;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 0 16px 0;
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
}

.media-placeholder--wide {
  width: 740px;
  height: 178px;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
}

.article-title {
  width: 740px;
  margin: 0 0 12px 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.article-content {
  width: 740px;
  font-size: 14px;
}

/* Media in article body */
.article-content img,
.article-content video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Iframes: keep editor-defined sizes on desktop; only ensure block layout */
.article-content iframe {
  display: block;
}

/* If no explicit height is provided, allow auto height on desktop */
.article-content iframe:not([height]) {
  height: auto;
}

/* Default responsive embed only when no explicit size is set */
.article-content iframe:not([width]):not([height]):not([style]) {
  width: 100%;
  aspect-ratio: 16/9;
}

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

.article-content h4 {
  margin: 18px 0 6px 0;
  font-size: 12px;
  text-transform: none;
}

.article-content ul {
  margin: 0 0 12px 18px;
  padding: 0;
  font-size: 12px;
}

.article-content p {
  margin: 0 0 8px 0;
}

.article-media {
  margin: 18px 0 12px 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-bottom: 30px;
}

.tag {
  display: inline-block;
  background: #000;
  color: #fff;
  border-radius: 2px;
  padding: 6px 18px;
  font-size: 10px;
  font-weight: 700;
  text-transform: lowercase;
  text-decoration: none;
}

.tag:hover {
  background: #FFD300;
  color: #000;
  text-decoration: none;
}

@media (max-width: 840px) {

  /* Mobile adjustments for article page */
  .blog-header {
    position: sticky;
    top: 56px;
    background: #fff;
    z-index: 6;
    padding: 8px 0 10px;
  }

  .article,
  .article-hero,
  .article-title,
  .article-content,
  .media-placeholder--wide {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .article-hero {
    height: auto;
    border-radius: 8px;
    overflow: hidden;
  }

  .article-hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .article-title {
    font-size: 22px;
  }

  .article-topbar {
    margin-bottom: 12px;
  }

  .back-link {
    width: 120px;
    height: 32px;
    font-size: 12px;
  }

  /* Prevent horizontal overflow from long words/URLs */
  .article-content {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .article-content p {
    line-height: 1.6;
  }

  .article-breadcrumb {
    font-size: 11px;
  }

  /* Side padding for comfortable reading on phones */
  .article,
  .article-topbar,
  .article-title,
  .article-hero,
  .article-content,
  .article-media,
  .article-tags {
    padding-left: 0;
    padding-right: 0;
  }

  /* Center remaining blocks (excluding .article-topbar) */
  .article-media,
  .article-tags {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  /* Allow header row to wrap and shrink properly */
  .article-topbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .article-topbar>* {
    min-width: 0;
  }

  .article-breadcrumb {
    flex-wrap: wrap;
    min-width: 0;
  }

  /* Force article body to fit phone width regardless of inline sizes */
  .article-content,
  .article-content * {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .article-content img,
  .article-content video,
  .article-content iframe {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Keep article body inside main padding to avoid clipping */
  .article-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Keep common embeds readable */
  .article-content iframe {
    aspect-ratio: 16/9;
  }

  /* Avoid horizontal scroll on wider blocks */
  .article-content table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
  }

  .article-content figure {
    margin-left: 0;
    margin-right: 0;
  }

  /* Kill any remaining horizontal overflow in article */
  .article,
  .article-content {
    overflow-x: hidden;
  }

  main {
    overflow-x: hidden;
  }

  /* Override inline width/min-width attributes/styles */
  .article-content *[width] {
    width: 100% !important;
  }

  .article-content *[style*="width"] {
    width: 100% !important;
  }

  .article-content *[style*="min-width"] {
    min-width: 0 !important;
  }

  .article-content pre {
    white-space: pre-wrap;
    word-break: break-word;
  }

}

/* Make post card links look like plain content */
.post-card .post-title a {
  color: inherit;
  text-decoration: none;
}

.post-card .post-title a:hover {
  text-decoration: none;
}

/* Blog detail: fixed sidebar on desktop */
@media (min-width: 841px) {
  body.is-blog .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    overflow: auto;
    z-index: 10;
  }

  body.is-blog .layout {
    grid-template-columns: 280px 1fr;
  }

  body.is-blog main {
    grid-column: 2;
  }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #bdbdbd;
  color: #000000;
  padding: 18px 48px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-banner.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__content {
  flex: 0 1 720px;
}

.cookie-banner__text {
  margin: 0 0 4px 0;
  color: #000000;
}

.cookie-banner__link-line {
  margin: 0;
  color: #000000;
}

.cookie-banner__link-line a {
  color: #000000;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.4);
}

.cookie-banner__link-line a:hover {
  color: #000000;
  border-color: #000000;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-transform: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.cookie-btn:active {
  transform: translateY(1px);
}

.cookie-btn--customize,
.cookie-btn--reject {
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.cookie-btn--customize:hover,
.cookie-btn--reject:hover {
  background: #f2f2f2;
}

.cookie-btn--accept {
  background: #ffd400;
  color: #000000;
}

.cookie-btn--accept:hover {
  background: #e6bf00;
}

.cookie-btn--save {
  background: #000000;
  color: #ffffff;
  height: 32px;
  padding: 0 14px;
}

.cookie-btn--save:hover {
  background: #333333;
}

.cookie-customize {
  max-width: 1200px;
  margin: 0 auto;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.28s ease, margin-top 0.28s ease;
}

.cookie-customize.is-open {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 14px;
}

.cookie-customize__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.15);
}

.cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #000000;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: relative;
  width: 36px;
  height: 20px;
  background: #999999;
  border-radius: 999px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: #000000;
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(16px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  background: #777777;
  cursor: not-allowed;
}

.cookie-toggle input:focus-visible + .cookie-toggle__slider {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

@media (max-width: 840px) {
  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner__actions {
    justify-content: stretch;
    gap: 8px;
  }

  .cookie-btn {
    flex: 1;
    height: 42px;
    padding: 0 10px;
    font-size: 12px;
  }

  .cookie-customize.is-open {
    max-height: 200px;
  }

  .cookie-customize__inner {
    gap: 12px;
  }
}
