/*
Theme Name: Anshop - Architecture & Interior Design Magazine
Theme URI: https://anshop.co.il/
Author: Anshop Editorial Team
Description: מגזין אדריכלות, עיצוב פנים, עיצוב הבית והום סטיילינג בעיצוב נקי, בהיר, מודרני ואלגנטי. כולל תוסף נגישות מלא מובנה, משיכת מאמרים דינמית, ופוטר תקני.
Version: 2.0.0
Text Domain: anshop
*/

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-primary: 'Heebo', Arial, Helvetica, sans-serif !important;

  /* Clean Light Editorial Color Palette */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-subtle: #f1f5f9;
  
  /* Accent Colors */
  --accent-terracotta: #c26d48;
  --accent-gold: #b45309;
  --accent-dark: #0f172a;
  --accent-blue-anchor: #2563eb;
  --accent-blue-hover: #1d4ed8;
  
  /* Text & Borders */
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-accent: rgba(194, 109, 72, 0.35);

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
}

html {
  font-family: var(--font-primary);
  direction: rtl;
  scroll-behavior: smooth;
  background-color: var(--bg-body);
  color: var(--text-main);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: var(--font-primary);
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   STRICT REQUIREMENT: ANCHOR TEXT LINKS IN ARTICLES (BOLD & BLUE)
   ========================================================================== */
.single-article-content a,
.article-body-content a,
.entry-content a,
.post-content a,
.article-text a {
  color: var(--accent-blue-anchor) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  text-decoration-thickness: 2px !important;
  transition: var(--transition) !important;
  display: inline !important;
}

.single-article-content a:hover,
.article-body-content a:hover,
.entry-content a:hover,
.post-content a:hover,
.article-text a:hover {
  color: var(--accent-blue-hover) !important;
  text-decoration-color: var(--accent-blue-hover) !important;
  background-color: rgba(37, 99, 235, 0.08) !important;
}

/* ==========================================================================
   MAGAZINE TOP BAR (LIGHT CLEAN STYLE)
   ========================================================================== */
.mag-top-ticker {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.mag-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.mag-ticker-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mag-date {
  color: var(--text-sub);
  font-weight: 600;
}

.mag-trending-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-terracotta);
  font-weight: 700;
}

.mag-trending-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent-terracotta);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.mag-edition-pill {
  padding: 3px 12px;
  background: rgba(194, 109, 72, 0.1);
  border: 1px solid rgba(194, 109, 72, 0.25);
  border-radius: 12px;
  color: var(--accent-terracotta);
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================================
   MAGAZINE HEADER & MASTHEAD (LIGHT & CLEAN)
   ========================================================================== */
.mag-site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}

.mag-masthead {
  padding: 22px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.mag-logo-wrap a {
  display: flex;
  flex-direction: column;
}

.mag-logo-text {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #0f172a;
  text-transform: uppercase;
  line-height: 1;
}

.mag-logo-text span {
  color: var(--accent-terracotta);
}

.mag-tagline {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 600;
}

.mag-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mag-edition-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 600;
}

.mag-edition-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-gold);
}

/* Primary Nav */
.mag-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}

.mag-primary-nav ul.menu,
.primary-menu-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mag-primary-nav ul li a {
  display: inline-block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.mag-primary-nav ul li a:hover,
.mag-primary-nav ul li.current-menu-item > a {
  color: var(--accent-terracotta);
  background-color: rgba(194, 109, 72, 0.08);
}

.mag-mobile-toggle {
  display: none;
  padding: 8px;
  color: var(--text-main);
}

/* ==========================================================================
   HERO EDITORIAL HEADER (LIGHT & CLEAN WITH BACKGROUND IMAGE & OVERLAY)
   ========================================================================== */
.mag-hero-editorial {
  position: relative;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 60px 0 50px;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.98) 100%), url('assets/images/hero-villa.jpg');
  background-size: cover;
  background-position: center;
}

.mag-hero-header-box {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 40px;
}

.mag-hero-kicker {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(194, 109, 72, 0.1);
  border: 1px solid rgba(194, 109, 72, 0.3);
  border-radius: 20px;
  color: var(--accent-terracotta);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.mag-hero-h1 {
  font-size: 42px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
}

.mag-hero-lead {
  font-size: 18px;
  color: var(--text-sub);
  line-height: 1.85;
}

/* Magazine Cover Story Grid */
.mag-hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 32px;
}

.cover-story-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.cover-story-media {
  position: relative;
  height: 440px;
  overflow: hidden;
}

.cover-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.cover-story-card:hover .cover-story-media img {
  transform: scale(1.04);
}

.cover-story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.cover-story-floating-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-terracotta);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.cover-story-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 32px 28px;
  z-index: 10;
}

.story-category-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fde68a;
  margin-bottom: 8px;
}

.cover-story-title {
  font-size: 30px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.cover-story-title a {
  color: #ffffff;
}

.cover-story-title a:hover {
  color: #fed7aa;
}

.cover-story-excerpt {
  font-size: 15px;
  color: #f1f5f9;
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 16px;
}

.story-meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #cbd5e1;
}

/* Secondary Lead Column */
.secondary-lead-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.secondary-lead-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  height: 208px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.secondary-lead-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.secondary-lead-card:hover img {
  transform: scale(1.06);
}

.sec-lead-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.88) 85%);
  z-index: 2;
}

.sec-lead-content {
  position: relative;
  z-index: 3;
  padding: 18px 22px;
}

.sec-lead-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
}

.sec-lead-title a {
  color: #ffffff;
}

.sec-lead-title a:hover {
  color: #fed7aa;
}

/* ==========================================================================
   CATEGORY QUICK JUMP ROW (LIGHT)
   ========================================================================== */
.mag-quick-topics {
  padding: 20px 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.topics-scroll-row {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topics-scroll-row::-webkit-scrollbar {
  display: none;
}

.topic-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  white-space: nowrap;
  transition: var(--transition);
}

.topic-chip:hover {
  background: var(--accent-terracotta);
  color: #ffffff;
  border-color: var(--accent-terracotta);
}

.topic-chip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   EDITORIAL ARTICLE SECTIONS (LIGHT & CRISP)
   ========================================================================== */
.mag-section {
  padding: 70px 0;
}

.mag-section.bg-white {
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.mag-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 16px;
}

.mag-sec-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mag-sec-subtitle {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-terracotta);
}

.mag-sec-title {
  font-size: 30px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
}

.mag-sec-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mag-sec-link:hover {
  color: var(--accent-dark);
  gap: 10px;
}

/* 3-Column Magazine Grid */
.mag-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mag-article-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.mag-article-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.mag-card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.mag-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mag-article-card:hover .mag-card-media img {
  transform: scale(1.06);
}

.mag-card-cat-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.mag-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mag-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mag-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 12px;
}

.mag-card-title a {
  color: #0f172a;
}

.mag-card-title a:hover {
  color: var(--accent-terracotta);
}

.mag-card-excerpt {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.mag-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  font-size: 13px;
}

.mag-author-name {
  color: var(--text-muted);
  font-weight: 600;
}

.mag-read-more {
  color: var(--accent-terracotta);
  font-weight: 700;
}

/* ==========================================================================
   FEATURED HOME TOUR & LOOKBOOK (LIGHT)
   ========================================================================== */
.mag-home-tour-section {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 80px 0;
}

.home-tour-feature-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.home-tour-img-wrap {
  min-height: 420px;
  position: relative;
}

.home-tour-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-tour-content {
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-tour-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(194, 109, 72, 0.12);
  border: 1px solid var(--accent-terracotta);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-terracotta);
  width: fit-content;
  margin-bottom: 14px;
}

.home-tour-title {
  font-size: 30px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 14px;
}

.home-tour-title a {
  color: #0f172a;
}

.home-tour-title a:hover {
  color: var(--accent-terracotta);
}

.home-tour-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 22px;
}

.home-tour-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.spec-cell span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.spec-cell strong {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
}

/* ==========================================================================
   EXTENSIVE EDITORIAL CONTENT BLOCK (2,500+ WORDS COMPREHENSIVE GUIDE)
   ========================================================================== */
.editorial-essay-section {
  padding: 80px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.essay-container {
  max-width: 920px;
  margin: 0 auto;
}

.essay-container h2 {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  margin: 40px 0 18px;
  border-right: 4px solid var(--accent-terracotta);
  padding-right: 16px;
}

.essay-container h3 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 30px 0 14px;
}

.essay-container p {
  font-size: 17px;
  color: #334155;
  line-height: 2;
  margin-bottom: 22px;
}

.essay-container ul,
.essay-container ol {
  margin: 18px 28px 26px;
  color: #334155;
  line-height: 1.9;
}

.essay-container li {
  margin-bottom: 10px;
  font-size: 16px;
}

.essay-pullquote {
  margin: 36px 0;
  padding: 24px 30px;
  background: var(--bg-body);
  border-right: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  font-size: 19px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.7;
}

/* ==========================================================================
   TRENDING RANKING LIST (LIGHT)
   ========================================================================== */
.mag-trending-section {
  padding: 70px 0;
  background: var(--bg-body);
}

.trending-ranking-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trending-rank-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.trending-rank-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-terracotta);
  box-shadow: var(--shadow-sm);
}

.rank-number {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: rgba(194, 109, 72, 0.25);
  margin-bottom: 10px;
}

.trending-rank-card:hover .rank-number {
  color: var(--accent-terracotta);
}

.rank-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 10px;
}

.rank-title a {
  color: #0f172a;
}

.rank-title a:hover {
  color: var(--accent-terracotta);
}

.rank-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   SINGLE POST TEMPLATE (LIGHT & BOLD BLUE ANCHOR LINKS)
   ========================================================================== */
.single-post-wrapper {
  padding: 50px 0 90px;
  background-color: var(--bg-body);
}

.single-post-header {
  max-width: 880px;
  margin: 0 auto 30px;
  text-align: center;
}

.single-post-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(194, 109, 72, 0.1);
  border: 1px solid rgba(194, 109, 72, 0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-terracotta);
  margin-bottom: 16px;
}

.single-post-title {
  font-size: 40px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.single-featured-image {
  max-width: 1000px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.single-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.single-content-container {
  max-width: 840px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-sm);
}

.article-body-content p {
  font-size: 17px;
  color: #334155;
  line-height: 1.95;
  margin-bottom: 22px;
}

.article-body-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 36px 0 16px;
  border-right: 4px solid var(--accent-terracotta);
  padding-right: 14px;
}

.article-body-content h3 {
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  margin: 28px 0 12px;
}

.article-body-content ul,
.article-body-content ol {
  margin: 16px 24px 24px;
  color: #334155;
  line-height: 1.85;
}

.article-body-content li {
  margin-bottom: 10px;
  font-size: 16px;
}

/* ==========================================================================
   ACCESSIBILITY TOOLBAR WIDGET (תוסף נגישות מובנה)
   ========================================================================== */
.a11y-float-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.a11y-float-btn:hover {
  transform: scale(1.1);
  background: var(--accent-terracotta);
}

.a11y-float-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.a11y-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99998;
  display: none;
}

.a11y-modal-backdrop.is-active {
  display: block;
}

.a11y-panel {
  position: fixed;
  bottom: 84px;
  left: 24px;
  z-index: 99999;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.a11y-panel.is-active {
  display: flex;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.a11y-panel-header {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.a11y-panel-header h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.a11y-close-btn {
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
}

.a11y-grid-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
  background: #ffffff;
}

.a11y-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.a11y-action-btn:hover,
.a11y-action-btn.active {
  background: var(--accent-terracotta);
  color: #ffffff;
  border-color: var(--accent-terracotta);
}

.a11y-action-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.a11y-panel-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-body);
  font-size: 12px;
}

.a11y-reset-btn {
  color: #dc2626;
  font-weight: 700;
}

/* Accessibility Modes (Applied to <body>) */
body.a11y-font-large {
  font-size: 118% !important;
}

body.a11y-font-small {
  font-size: 88% !important;
}

body.a11y-grayscale {
  filter: grayscale(100%) !important;
}

body.a11y-high-contrast {
  filter: contrast(180%) !important;
  background: #000000 !important;
  color: #ffff00 !important;
}

body.a11y-high-contrast * {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

body.a11y-negative-contrast {
  filter: invert(100%) hue-rotate(180deg) !important;
}

body.a11y-underline-links a {
  text-decoration: underline !important;
  font-weight: bold !important;
}

body.a11y-readable-font * {
  font-family: Arial, sans-serif !important;
}

/* ==========================================================================
   FOOTER (LIGHT/CLEAN BACKGROUND WITH MANDATORY LINKS IN EXACT PLACEMENT)
   ========================================================================== */
.mag-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 24px;
  color: var(--text-muted);
}

.mag-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-bio {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
  max-width: 320px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 2px;
  background: var(--accent-terracotta);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list li a {
  font-size: 14px;
  color: var(--text-sub);
  transition: var(--transition);
}

.footer-links-list li a:hover {
  color: var(--accent-terracotta);
  transform: translateX(-4px);
}

/* Mandatory Legal Links in Footer */
.footer-legal-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.footer-legal-bar a {
  color: var(--text-sub);
  font-weight: 600;
  transition: var(--transition);
}

.footer-legal-bar a:hover {
  color: var(--accent-terracotta);
}

/* Mandatory Bottom Line (All 3 Links on the EXACT same bottom line!) */
.mag-footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.mag-credits-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mag-credits-bar a {
  color: var(--text-sub) !important;
  text-decoration: none !important;
  transition: var(--transition);
  font-weight: 600;
}

.mag-credits-bar a:hover {
  color: var(--accent-terracotta) !important;
}

.credits-divider {
  color: var(--border-strong);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .mag-hero-grid {
    grid-template-columns: 1fr;
  }
  
  .secondary-lead-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .mag-grid-three {
    grid-template-columns: 1fr 1fr;
  }
  
  .home-tour-feature-box {
    grid-template-columns: 1fr;
  }
  
  .trending-ranking-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mag-footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mag-top-ticker {
    display: none;
  }
  
  .mag-mobile-toggle {
    display: block;
  }
  
  .mag-primary-nav {
    position: fixed;
    top: 75px;
    right: 0;
    left: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  
  .mag-primary-nav.is-open {
    display: block;
  }
  
  .mag-primary-nav ul.menu,
  .primary-menu-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  
  .mag-hero-h1 {
    font-size: 28px;
  }
  
  .cover-story-media {
    height: 320px;
  }
  
  .cover-story-title {
    font-size: 24px;
  }
  
  .secondary-lead-col,
  .mag-grid-three,
  .trending-ranking-grid,
  .mag-footer-top {
    grid-template-columns: 1fr;
  }
  
  .single-content-container {
    padding: 28px 18px;
  }
  
  .single-post-title {
    font-size: 28px;
  }
  
  .mag-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
