/* =========================================
   EFIMIN — Editorial Magazine CSS
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

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

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #0EA59A;
  --dark: #141414;
  --gray: #5A5A5A;
  --light-gray: #9A9A9A;
  --border: #D8D8D0;
  --bg: #F9F9F6;
  --white: #FFFFFF;
  --cream: #E8E8E6;
  --serif: 'Playfair Display', Georgia, serif;
  --display: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --lara: 'Lara Soft', Georgia, serif;
  --nav-h: 64px;
  --max-w: 1200px;
  --col-gap: 32px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--lara);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--sans); }
input, textarea, select { font-family: var(--sans); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.display-title { font-family: var(--display); }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo {
  font-family: var(--display);
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  color: var(--dark);
  font-style: italic;
}

.navbar-logo span { color: var(--red); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s;
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.25s;
}

.navbar-links a:hover::after,
.navbar-links a.active::after { width: 100%; }
.navbar-links a:hover, .navbar-links a.active { color: var(--red); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 200;
  padding: 16px 0 8px;
  margin-top: 0;
}
.nav-dropdown-toggle {
  padding-bottom: 16px;
  margin-bottom: -16px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  transition: background 0.15s, color 0.15s;
  border-bottom: none !important;
}
.dropdown-item:hover {
  background: var(--bg);
  color: var(--red);
}
.mobile-menu .dropdown-item {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  border-bottom: none;
  color: var(--gray);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  color: var(--light-gray);
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--dark);
  color: var(--white);
}

.lang-btn:hover:not(.active) {
  background: var(--cream);
  color: var(--dark);
}

/* Order CTA button */
.btn-order-nav {
  padding: 7px 18px;
  background: var(--red);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-order-nav:hover { background: #8f1920; color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.1rem; font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .lang-switcher { width: fit-content; }

/* =========================================
   TICKER / BREAKING BAR
   ========================================= */
.ticker-bar {
  background: var(--dark);
  color: var(--white);
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-label {
  background: var(--red);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  -webkit-animation: ticker 30s linear infinite;
  font-size: 0.8rem;
  padding-left: 40px;
  letter-spacing: 0.02em;
  color: var(--white);
  will-change: transform;
}

@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
@-webkit-keyframes ticker {
  0%   { -webkit-transform: translateX(100vw); }
  100% { -webkit-transform: translateX(-100%); }
}

/* =========================================
   HERO / FEATURED
   ========================================= */
.hero-section {
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  min-height: 380px;
}

.hero-main {
  position: relative;
  overflow: hidden;
}

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

.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.hero-main-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  color: var(--white);
}

.hero-category-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--lara);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: normal;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 12px;
  max-width: 600px;
}

.hero-meta {
  font-size: 0.78rem;
  opacity: 0.8;
  letter-spacing: 0.04em;
}

.hero-sidebar {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.hero-sidebar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.hero-sidebar-item:last-child { border-bottom: none; }
.hero-sidebar-item:hover { background: var(--cream); }

.sidebar-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 12px;
}

.sidebar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.hero-sidebar-item:hover .sidebar-img-wrap img { transform: scale(1.04); }

.sidebar-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.sidebar-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
}

.sidebar-meta {
  font-size: 0.72rem;
  color: var(--light-gray);
  margin-top: 8px;
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--dark);
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: var(--lara);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid var(--dark);
  background: var(--bg);
  z-index: 1;
  margin-bottom: 6px;
  margin-right: 10px;
}
.section-header h2::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--dark);
  transform: translate(6px, 6px);
  z-index: -1;
  background: transparent;
}

.section-header-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 20px;
  margin-bottom: 2px;
}

.view-all-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.view-all-link:hover { gap: 10px; color: var(--red); }
.view-all-link::after { content: '→'; }

/* =========================================
   ARTICLE CARDS
   ========================================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.articles-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--cream);
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.article-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  display: block;
}

.article-card-title {
  font-family: var(--lara);
  font-size: 1.15rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--dark);
  transition: color 0.2s;
}

.article-card:hover .article-card-title { color: var(--red); }

.article-card-excerpt {
  font-size: 0.87rem;
  color: var(--gray);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--light-gray);
  letter-spacing: 0.02em;
}

.article-card-meta .author { font-weight: 500; color: var(--gray); }
.article-card-meta .sep { color: var(--border); }

/* =========================================
   COLUMNS / OPINION
   ========================================= */
.columns-bg { background: var(--cream); }

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

.column-card {
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.column-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.column-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.column-author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
  flex-shrink: 0;
}

.column-author-name {
  font-family: var(--lara);
  font-weight: normal;
  font-size: 0.95rem;
  color: var(--dark);
}

.column-author-label {
  font-size: 0.7rem;
  color: var(--light-gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.column-featured-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 16px;
}

.column-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.column-card:hover .column-featured-img img { transform: scale(1.04); }

.column-card-title {
  font-family: var(--lara);
  font-size: 1.15rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--dark);
  flex: 1;
}

.column-card:hover .column-card-title { color: var(--red); }

.column-card-excerpt {
  font-family: var(--lara);
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.column-card-footer {
  font-size: 0.72rem;
  color: var(--light-gray);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* =========================================
   FORUM STRIP
   ========================================= */
.forum-strip {
  background: var(--dark);
  padding: 56px 0;
  color: var(--white);
}

.forum-strip .section-header h2 { color: var(--white); border-color: rgba(255,255,255,0.6); background: transparent; }
.forum-strip .section-header h2::before { border-color: rgba(255,255,255,0.25); }
.forum-strip .section-header { border-bottom-color: #333; }
.forum-strip .section-header-line { background: #333; }

.forum-topic-card {
  background: #1E1E1E;
  padding: 32px;
  border: 1px solid #2A2A2A;
}

.forum-topic-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.forum-topic-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.25;
}

.forum-topic-desc {
  font-size: 0.9rem;
  color: #AAAAAA;
  line-height: 1.65;
  margin-bottom: 24px;
}

.forum-stats {
  display: flex;
  gap: 24px;
}

.forum-stat {
  display: flex;
  flex-direction: column;
}

.forum-stat-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.forum-stat-label {
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.forum-join-btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 12px 28px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  transition: background 0.2s;
}

.forum-join-btn:hover { background: #8f1920; color: var(--white); }

.forum-strip-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* =========================================
   FULL PAGE: ARTICLES
   ========================================= */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 32px;
}

.page-header h1 { font-family: var(--display); font-style: italic; }
.page-header p { color: var(--gray); margin-top: 8px; font-size: 1rem; }

.breadcrumb {
  font-size: 0.75rem;
  color: var(--light-gray);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--border); margin: 0 6px; }

/* Article Detail */
/* Article page two-column layout */
.article-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.article-main {
  min-width: 0;
}

.article-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sidebar-block {
  border-top: 2px solid var(--dark);
  padding-top: 20px;
}

.sidebar-block-title {
  font-family: var(--lara);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 20px;
}

.sidebar-related-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-related-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.sidebar-related-item:hover .sidebar-related-title { color: var(--red); }

.sidebar-related-thumb {
  width: 72px;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}

.sidebar-related-info { flex: 1; min-width: 0; }

.sidebar-related-cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 4px;
}

.sidebar-related-title {
  font-family: var(--lara);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dark);
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-subscribe {
  background: var(--dark);
  padding: 24px;
  border-top: none;
}

.sidebar-subscribe .sidebar-block-title { color: var(--white); margin-bottom: 12px; }

.sidebar-subscribe-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 16px;
}

.sidebar-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-subscribe-form input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 10px 14px;
  font-size: 0.82rem;
  outline: none;
  width: 100%;
}

.sidebar-subscribe-form input::placeholder { color: rgba(255,255,255,0.4); }

.sidebar-subscribe-form button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}

.sidebar-subscribe-form button:hover { opacity: 0.85; }

.sidebar-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-cat-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--border);
  padding: 5px 12px;
  text-decoration: none;
  transition: all 0.15s;
  font-family: var(--lara);
}

.sidebar-cat-link:hover { border-color: var(--dark); color: var(--dark); }

/* legacy single-column (kept for safety) */
.article-detail {
  max-width: 740px;
  margin: 0 auto;
}

.article-detail-header {
  margin-bottom: 40px;
}

.article-detail-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
}

.article-detail-title {
  font-family: var(--lara);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: normal;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--dark);
}

.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--gray);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-detail-meta .author { font-weight: 600; color: var(--dark); }

.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 40px;
}

.article-body {
  font-family: var(--lara);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--dark);
}

.article-body p { margin-bottom: 1.5em; }
.article-body h2 { font-family: var(--serif); font-size: 1.5rem; margin: 2em 0 0.75em; }
.article-body h3 { font-family: var(--serif); font-size: 1.25rem; margin: 1.75em 0 0.6em; }
.article-body blockquote {
  border-left: 3px solid var(--red);
  margin: 2em 0;
  padding: 12px 24px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gray);
  background: var(--cream);
}

.column-body,
.column-body p,
.column-body h2,
.column-body h3 {
  font-family: var(--lara);
}
.column-body blockquote {
  font-family: var(--lara);
}

.article-body img { margin: 2em 0; width: 100%; border-radius: 2px; }

/* =========================================
   FORUM PAGE
   ========================================= */
.forum-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.weekly-topic-banner {
  background: var(--dark);
  color: var(--white);
  padding: 36px;
  margin-bottom: 40px;
}

.weekly-topic-banner .badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.weekly-topic-banner h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.weekly-topic-banner p {
  color: #AAAAAA;
  font-size: 0.92rem;
  line-height: 1.65;
}

.topic-list-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background 0.15s;
}

.topic-list-item:hover { padding-left: 8px; }

.topic-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  margin-top: 2px;
}

.topic-info h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.topic-info h3 a:hover { color: var(--red); }

.topic-info p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.topic-meta {
  font-size: 0.72rem;
  color: var(--light-gray);
  display: flex;
  gap: 12px;
}

.comment-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
  font-weight: 600;
}

/* Comment form & list */
.comment-section {
  margin-top: 56px;
}

.comment-form {
  background: var(--cream);
  padding: 32px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--dark);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--dark); }

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--white);
  padding: 12px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--red); color: var(--white); }

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover { background: #8f1920; }

.comment-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.comment-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.comment-date {
  font-size: 0.72rem;
  color: var(--light-gray);
  margin-left: 10px;
}

.comment-body {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.65;
}

.alert {
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.alert-success { background: #EDFAED; color: #1a6e1a; border-left: 3px solid #2d9d2d; }
.alert-error { background: #FFF0F0; color: #8B0000; border-left: 3px solid var(--red); }

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar-widget {
  border: 1px solid var(--border);
  margin-bottom: 32px;
  overflow: hidden;
}

.sidebar-widget-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  background: var(--dark);
  color: var(--white);
}

.sidebar-widget-body { padding: 16px 20px; }

.sidebar-topic-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-topic-item:last-child { border-bottom: none; }

.sidebar-topic-item h4 {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.sidebar-topic-item h4 a:hover { color: var(--red); }

.sidebar-topic-item span {
  font-size: 0.7rem;
  color: var(--light-gray);
}

/* =========================================
   CART ICON IN NAVBAR
   ========================================= */
.cart-btn {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  padding: 6px 14px 6px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cart-btn:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.cart-btn svg { width: 16px; height: 16px; }
.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--red);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  display: none;
}
.cart-badge.visible { display: flex; }

/* =========================================
   CART SIDEBAR
   ========================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-header h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gray);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.cart-close:hover { color: var(--dark); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--light-gray);
  padding: 40px;
  text-align: center;
}
.cart-empty-icon { font-size: 3rem; }
.cart-empty p { font-size: 0.9rem; }

.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cart-item-cover {
  width: 64px;
  height: 88px;
  object-fit: cover;
  background: var(--dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.7rem;
  color: var(--red);
}
.cart-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--dark);
}
.qty-btn:hover { background: var(--dark); color: var(--white); }
.qty-num {
  width: 36px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 28px;
  line-height: 26px;
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--light-gray);
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: 8px;
  align-self: center;
  padding: 4px;
}
.cart-item-remove:hover { color: var(--red); }

.cart-footer {
  border-top: 2px solid var(--dark);
  padding: 20px 24px;
  flex-shrink: 0;
  background: var(--white);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.cart-total-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }
.cart-total-amount { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--dark); }
.cart-checkout-btn {
  display: block;
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  text-decoration: none;
}
.cart-checkout-btn:hover { background: #8f1920; color: var(--white); }
.cart-continue {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--gray);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
}
.cart-continue:hover { color: var(--dark); }

/* =========================================
   MAGAZINES PAGE
   ========================================= */
.magazines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}
.mag-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

.mag-card-cover {
  aspect-ratio: 2/3;
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 2rem;
  color: var(--red);
  position: relative;
}
.mag-card-cover img { width: 100%; height: 100%; object-fit: cover; }

.mag-card-sold-out {
  position: absolute;
  top: 16px;
  right: 0;
  background: var(--dark);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
}

.mag-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mag-card-issue {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.mag-card-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.25;
}
.mag-card-desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  gap: 12px;
}
.mag-card-price {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}
.mag-card-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray);
  font-family: var(--sans);
}
.add-to-cart-btn {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.add-to-cart-btn:hover { background: var(--red); }
.add-to-cart-btn.added { background: #2d9d2d; }

@media (max-width: 1024px) {
  .magazines-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .magazines-grid { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100vw; }
}

/* =========================================
   MAGAZINE SELECTOR
   ========================================= */
.magazine-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.mag-option {
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--white);
  padding: 12px 8px;
  text-align: center;
  transition: all 0.2s;
  user-select: none;
}

.mag-option:hover {
  border-color: var(--dark);
}

.mag-option.selected {
  border-color: var(--red);
  background: #fff5f5;
}

.mag-option-cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--red);
  margin-bottom: 8px;
  overflow: hidden;
}

.mag-option-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mag-option-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.mag-option-issue {
  font-size: 0.68rem;
  color: var(--light-gray);
  margin-top: 2px;
}

.mag-option.selected .mag-option-name {
  color: var(--red);
}

.mag-option .check-mark {
  display: none;
  color: var(--red);
  font-size: 1rem;
  margin-top: 4px;
}

.mag-option.selected .check-mark {
  display: block;
}

@media (max-width: 600px) {
  .magazine-selector { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   ORDER PAGE
   ========================================= */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}

.order-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px;
}

.order-form-wrap h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.order-form-wrap p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-info {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.payment-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.payment-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.payment-info p {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0;
  padding: 0;
  border: none;
}

.order-sidebar-info {
  position: sticky;
  top: 80px;
}

.magazine-preview {
  background: var(--dark);
  padding: 40px 32px;
  color: var(--white);
  text-align: center;
  margin-bottom: 24px;
}

.magazine-cover-placeholder {
  width: 160px;
  height: 220px;
  background: #2A2A2A;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #444;
  font-family: var(--display);
  font-size: 2rem;
  font-style: italic;
  color: var(--red);
}

.magazine-preview h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 6px;
}

.magazine-preview p {
  font-size: 0.82rem;
  color: #AAAAAA;
}

.order-info-list { margin-top: 8px; }

.order-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--gray);
}

.order-info-item:last-child { border-bottom: none; }
.order-info-item span:first-child { font-size: 1.1rem; flex-shrink: 0; }

/* =========================================
   COLUMNS PAGE
   ========================================= */
.columns-page-header {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: 64px 0;
  overflow: hidden;
}
.columns-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/logo.png');
  background-repeat: repeat;
  background-size: 120px 120px;
  opacity: 0.045;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.columns-page-header h1 {
  font-family: var(--lara);
  font-style: normal;
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 12px;
}

.columns-page-header p { color: #AAAAAA; font-size: 1rem; }

.columns-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.column-page-item {
  background: var(--white);
  padding: 32px;
  display: flex;
  gap: 24px;
  transition: background 0.2s;
}

.column-page-item:hover { background: var(--cream); }

.column-page-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}

.column-page-content h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
  line-height: 1.25;
}

.column-page-content h3 a:hover { color: var(--red); }

.column-page-content .author-line {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.column-page-content p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   ABOUT / BANNER
   ========================================= */
.banner-strip {
  background: var(--red);
  padding: 56px 0;
  text-align: center;
  color: var(--white);
}

.banner-strip h2 {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 8px;
}

.banner-strip p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 24px;
}

.btn-outline-white {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-outline-white:hover { background: var(--white); color: var(--red); }

/* =========================================
   HOME MAGAZINES STRIP
   ========================================= */
.magazines-home-section { background: var(--white); border-top: 1px solid var(--border); }

.magazines-home-subtitle {
  font-size: 0.85rem;
  color: var(--light-gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: -16px;
  margin-bottom: 40px;
}

.home-mags-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.home-mag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.home-mag-cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--dark);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.home-mag-item:hover .home-mag-cover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.22);
}
.home-mag-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.home-mag-cover img[src=""] { display: none; }
.home-mag-placeholder {
  font-family: var(--display);
  font-style: italic;
  font-size: 2rem;
  color: var(--red);
  z-index: 1;
}
/* hide placeholder when cover image loaded */
.home-mag-cover img:not([src=""]) ~ .home-mag-placeholder { display: none; }

.home-mag-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 4px;
}
.home-mag-item:hover .home-mag-name { color: var(--red); }

.home-mag-issue {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 4px;
}

.home-mag-price {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.home-mags-actions {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-dark {
  display: inline-block;
  padding: 12px 36px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.btn-dark:hover { background: var(--red); color: var(--white); }

@media (max-width: 900px) {
  .home-mags-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 500px) {
  .home-mags-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .home-mag-name { font-size: 0.82rem; }
}

/* =========================================
   NEWSLETTER
   ========================================= */
.newsletter-section {
  background: var(--dark);
  padding: 64px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-text h2 {
  font-family: var(--display);
  font-style: italic;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.newsletter-text p {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input[type="email"]:focus { border-color: var(--red); }

.newsletter-form button {
  padding: 14px 28px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: #8f1a20; }

.newsletter-msg {
  font-size: 0.85rem;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-left: 3px solid;
}
.newsletter-msg-success { color: #6fcf97; border-color: #6fcf97; background: rgba(111,207,151,0.08); }
.newsletter-msg-exists  { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 28px; }
  .newsletter-form input[type="email"] { min-width: 0; }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--dark);
  color: var(--white);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2A2A2A;
}

.footer-logo {
  font-family: var(--display);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-logo span { color: var(--red); }

.footer-about {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #888;
  transition: all 0.2s;
  text-decoration: none;
}

.social-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links-list { display: flex; flex-direction: column; gap: 10px; }
.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.footer-links-list a {
  font-size: 0.85rem;
  color: #888;
  transition: color 0.2s;
}

.footer-links-list a:hover { color: var(--white); }


.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: #666;
  border-top: 1px solid #2a2a2a;
  letter-spacing: 0.02em;
}

/* =========================================
   ADMIN PANEL
   ========================================= */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: var(--dark);
  color: var(--white);
  padding: 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.admin-logo {
  padding: 24px 20px;
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: italic;
  border-bottom: 1px solid #2A2A2A;
}

.admin-logo span { color: var(--red); }
.admin-logo small { display: block; font-family: var(--sans); font-size: 0.65rem; font-style: normal; color: #666; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

.admin-nav-section {
  padding: 20px 12px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: #999;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.admin-nav-link:hover { color: var(--white); background: #1E1E1E; }
.admin-nav-link.active { color: var(--white); border-left-color: var(--red); background: #1E1E1E; }
.admin-nav-link .icon { width: 16px; text-align: center; flex-shrink: 0; }

.admin-content { flex: 1; background: #F0F0EC; }

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-topbar h1 { font-size: 1.1rem; font-weight: 600; }

.admin-main { padding: 32px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  padding: 24px;
  border: 1px solid var(--border);
}

.stat-card-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light-gray);
}

.stat-card-change {
  font-size: 0.75rem;
  color: #2d9d2d;
  margin-top: 6px;
}

.data-table {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-collapse: collapse;
}

.data-table th {
  background: var(--dark);
  color: var(--white);
  padding: 12px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.data-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--cream); }

.badge-status {
  display: inline-block;
  padding: 3px 9px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}

.badge-published { background: #EDFAED; color: #1a6e1a; }
.badge-pending { background: #FFF8E1; color: #856404; }
.badge-draft { background: #F0F0F0; color: #666; }
.badge-approved { background: #EDFAED; color: #1a6e1a; }
.badge-rejected { background: #FFF0F0; color: #8B0000; }

.table-actions { display: flex; gap: 6px; }

.btn-sm {
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-sm:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-sm.danger { border-color: var(--red); color: var(--red); }
.btn-sm.danger:hover { background: var(--red); color: var(--white); }
.btn-sm.success { border-color: #2d9d2d; color: #2d9d2d; }
.btn-sm.success:hover { background: #2d9d2d; color: var(--white); }

.admin-form {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 900px;
}

.admin-form h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.form-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.form-tab {
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--light-gray);
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: -1px;
}

.form-tab.active { color: var(--dark); border-bottom-color: var(--dark); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}

.login-card {
  background: var(--white);
  padding: 48px;
  width: 100%;
  max-width: 420px;
}

.login-card h1 {
  font-family: var(--display);
  font-style: italic;
  font-size: 2rem;
  margin-bottom: 4px;
}

.login-card h1 span { color: var(--red); }
.login-card p { color: var(--gray); font-size: 0.85rem; margin-bottom: 32px; }

/* =========================================
   RESPONSIVE
   ========================================= */
/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { display: none; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .columns-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .forum-strip-grid { grid-template-columns: 1fr; }
  .order-layout { grid-template-columns: 1fr; }
  .forum-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .columns-page-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-block { position: static; }
  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
  .mission-label-col { position: static; }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { height: auto; min-height: 64px; padding: 8px 0; }
  .navbar-inner { flex-wrap: wrap; gap: 8px; }
  .navbar-inner > a img { height: 72px !important; margin-left: -8px !important; }
  .navbar-links { display: none; }
  .btn-order-nav { display: none; }
  .hamburger { display: flex; }

  /* Cart sidebar full-width on mobile */
  .cart-sidebar { width: 100% !important; max-width: 100%; }

  /* Sections */
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }

  /* Grids */
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid-4 { grid-template-columns: 1fr; }
  .columns-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .data-table { display: block; overflow-x: auto; }

  /* Hero */
  .hero-main { min-height: 320px; }
  .hero-main-content { padding: 20px; }
  .hero-title { font-size: 1.4rem !important; }
  .hero-category-tag { font-size: 0.6rem; }

  /* Article sidebar stacks below on tablet */
  .article-page-layout { grid-template-columns: 1fr; gap: 48px; }
  .article-sidebar { position: static; }

  /* Ticker */
  .ticker-bar { font-size: 0.72rem; }

  /* Columns page */
  .column-page-item { flex-direction: column; gap: 0; }
  .column-page-img { width: 100%; height: 200px; object-fit: cover; }

  /* Forum */
  .forum-topic-card { padding: 24px 20px; }

  /* Article detail */
  .article-layout { grid-template-columns: 1fr; }

  /* Banner */
  .banner-strip { padding: 40px 0; }
  .banner-strip h2 { font-size: 1.8rem; }

  /* About */
  .about-cta-inner { flex-direction: column; text-align: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-block { position: static; }
  .mission-grid { grid-template-columns: 1fr; gap: 32px; }
  .mission-label-col { position: static; }
  .mission-pull-quote { font-size: 1.2rem; }

  /* Footer */
  .footer-grid { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---- Small phones (≤480px) ---- */
@media (max-width: 480px) {
  .navbar-inner > a img { height: 60px !important; }
  .navbar-right { gap: 8px; }
  .lang-btn { padding: 4px 8px; font-size: 0.7rem; }

  /* Typography scale down */
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }

  /* Hero */
  .hero-main { min-height: 260px; }
  .hero-title { font-size: 1.2rem !important; }
  .hero-main-content { padding: 16px; }

  /* Magazines strip */
  .home-mags-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .home-mag-name { font-size: 0.78rem; }
  .home-mag-issue { font-size: 0.65rem; }
  .home-mag-price { font-size: 0.85rem; }

  /* Magazines shop grid */
  .magazines-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .mag-card-body { padding: 12px; }
  .mag-card-price { font-size: 1.1rem; }
  .add-to-cart-btn { padding: 8px 10px; font-size: 0.68rem; }

  /* Cart badge */
  .cart-btn { padding: 6px 10px; gap: 4px; }

  /* Section spacing */
  .section { padding: 36px 0; }
  .section-header { margin-bottom: 24px; }

  /* Forum */
  .forum-stats { gap: 16px; }
  .forum-stat-num { font-size: 2rem; }

  /* About stats */
  .about-stats-row { grid-template-columns: repeat(3, 1fr); }
  .about-stat-num { font-size: 1.6rem; }
  .about-stat { padding: 12px 8px; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { border-right: 1px solid rgba(255,255,255,0.2); border-bottom: none; }
  .newsletter-form button { width: 100%; }
  .newsletter-inner { gap: 20px; }

  /* Checkout */
  .order-sidebar-info { display: none; }

  /* Columns page item */
  .column-page-img { height: 160px; }

  /* Footer */
  .footer { padding: 40px 0 0; }
  .footer-logo { font-size: 1.8rem; }
}

/* =========================================
   UTILITIES
   ========================================= */
.text-red { color: var(--red); }
.text-gray { color: var(--gray); }
.text-light { color: var(--light-gray); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* =========================================
   ARTICLES PAGE
   ========================================= */

/* Category filter bar */
.articles-filter-bar {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 64px;
  z-index: 90;
}
.articles-filter-row {
  display: flex;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.articles-filter-row::-webkit-scrollbar { display: none; }

.filter-tag {
  display: inline-block;
  padding: 6px 16px;
  font-family: var(--lara);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all 0.18s;
  cursor: pointer;
}
.filter-tag:hover { border-color: var(--dark); color: var(--dark); }
.filter-tag.active { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* Featured top article */
.articles-featured-row { margin-bottom: 56px; }

.articles-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.articles-featured-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

.articles-featured-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.articles-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.articles-featured-card:hover .articles-featured-img img { transform: scale(1.03); }

.articles-featured-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.articles-featured-body .article-card-tag { margin-bottom: 14px; }
.articles-featured-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}
.articles-featured-body p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rest of articles grid */
.articles-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

@media (max-width: 1024px) {
  .articles-page-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-featured-card { grid-template-columns: 1fr; }
  .articles-featured-img { aspect-ratio: 16/7; }
  .articles-featured-body { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .articles-page-grid { grid-template-columns: 1fr; gap: 24px; }
  .articles-featured-body { padding: 20px 16px; }
  .articles-featured-body h2 { font-size: 1.2rem; }
  .articles-filter-bar { top: 0; }
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-hero {
  background: var(--dark);
  padding: 64px 0 56px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/logo.png');
  background-repeat: repeat;
  background-size: 120px 120px;
  opacity: 0.045;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.about-hero .breadcrumb { color: rgba(255,255,255,0.45); margin-bottom: 20px; }
.about-hero .breadcrumb a { color: rgba(255,255,255,0.45); }
.about-hero .breadcrumb a:hover { color: var(--white); }
.about-hero h1 {
  font-family: var(--lara);
  font-style: normal;
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
}
.about-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.about-hero-text {
  flex: 1;
}
.about-hero-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-hero-psaltir {
  height: 200px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.about-hero-sub {
  font-family: var(--lara);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.7;
}

.about-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border-left: 3px solid var(--red);
  padding-left: 10px;
  margin-bottom: 20px;
}

.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text-col h2 {
  font-family: var(--lara);
  font-style: normal;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--dark);
  margin-bottom: 28px;
  line-height: 1.1;
}

.about-body p {
  font-family: var(--lara);
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-body p:last-child { margin-bottom: 0; }

.about-image-block {
  position: sticky;
  top: 100px;
}

.about-psaltir-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px 32px;
  background: var(--cream);
  border: 1px solid var(--border);
}
.about-psaltir-img {
  width: 75%;
  max-width: 300px;
  height: auto;
  margin-bottom: 24px;
}
.about-logo-caption {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
  text-align: center;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.about-stat {
  background: var(--white);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-stat-num {
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--red);
  line-height: 1;
}
.about-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-gray);
}

/* About Divider */
.about-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* Mission Section */
.mission-section { background: var(--cream); }

.mission-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}

.mission-label-col {
  position: sticky;
  top: 100px;
}

.mission-pull-quote {
  font-family: var(--lara);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: var(--dark);
  line-height: 1.4;
  margin-top: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
}

.mission-text-col h2 {
  font-family: var(--lara);
  font-style: normal;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--dark);
  margin-bottom: 28px;
}

.mission-pillars {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mission-pillar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
}
.mission-pillar-icon {
  font-size: 1rem;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}
.mission-pillar h4 {
  font-family: var(--lara);
  font-size: 1rem;
  font-weight: normal;
  color: var(--dark);
  margin-bottom: 6px;
}
.mission-pillar p {
  font-family: var(--lara);
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
  margin: 0;
}

/* CTA Strip */
.about-cta-strip {
  background: var(--dark);
  padding: 56px 0;
}
.about-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.about-cta-inner h3 {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--white);
  margin-bottom: 8px;
}
.about-cta-inner p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}
.about-cta-inner .btn-dark {
  background: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}
.about-cta-inner .btn-dark:hover { background: #8f1a20; color: var(--white); }

/* Responsive About */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-block { position: static; }
  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
  .mission-label-col { position: static; }
  .about-cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .about-hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .about-hero-psaltir { height: 140px; }
}
@media (max-width: 600px) {
  .about-hero h1 { font-size: 2.4rem; }
}

/* =========================================
   MOBILE OPTIMIZATIONS
   ========================================= */

/* Newsletter — stack on mobile */
@media (max-width: 768px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] {
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: none;
  }
  .newsletter-form button { width: 100%; }
}

/* Touch targets — minimum 44px height for all interactive elements */
@media (max-width: 768px) {
  .lang-btn { min-height: 36px; padding: 6px 12px; }
  .cart-btn { min-height: 44px; padding: 8px 14px; }
  .hamburger { min-height: 44px; min-width: 44px; justify-content: center; align-items: center; }
  .filter-tag { padding: 10px 18px; min-height: 40px; }
  .add-to-cart-btn { min-height: 44px; font-size: 0.78rem; }
  .btn-dark, .btn-outline-white { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu a { min-height: 48px; display: flex; align-items: center; }
  input, textarea, select { font-size: 16px !important; } /* prevents iOS zoom on focus */
}

/* Navbar logo size on mobile */
@media (max-width: 768px) {
  .navbar-inner > a img { height: 80px !important; }
}
@media (max-width: 480px) {
  .navbar-inner > a img { height: 64px !important; }
}

/* Hero — better mobile layout */
@media (max-width: 480px) {
  .hero-main { min-height: 55vw; }
  .hero-main-img { object-position: center top; }
}

/* Section spacing — tighter on small phones */
@media (max-width: 480px) {
  .section { padding: 32px 0; }
  .container { padding: 0 14px; }
  .columns-page-header { padding: 40px 0; }
}

/* Magazine grid — 2 columns on small phones */
@media (max-width: 480px) {
  .magazines-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mag-card-cover { max-height: 220px; }
  .mag-card-body { padding: 10px; }
  .mag-card-name { font-size: 0.82rem; }
  .mag-card-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Checkout — single column, hide sidebar on mobile */
@media (max-width: 768px) {
  .order-layout { grid-template-columns: 1fr; gap: 32px; }
  .order-form-wrap { padding: 24px 20px; }
  .order-sidebar-info { display: none; }
}

/* Forum topic cards — better mobile padding */
@media (max-width: 480px) {
  .forum-topic-card { padding: 20px 16px; }
  .forum-topic-title { font-size: 1rem; }
}

/* Footer — tighter mobile spacing */
@media (max-width: 480px) {
  .footer { padding: 32px 0 0; }
  .footer-grid { gap: 24px; }
}

/* Article page — readable body text on mobile */
@media (max-width: 480px) {
  .article-body { font-size: 1rem; line-height: 1.75; }
  .article-detail-title { font-size: 1.5rem; }
}

/* Columns page — single column on mobile */
@media (max-width: 600px) {
  .columns-page-grid { grid-template-columns: 1fr; }
  .column-page-item { flex-direction: column; gap: 0; padding: 20px 16px; }
  .column-page-img { width: 100%; height: 180px; }
}

/* Cart sidebar — full screen on mobile */
@media (max-width: 480px) {
  .cart-sidebar { width: 100vw !important; }
}

/* Horizontal scroll fix */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
}
