/* ═══════════════════════════════════════════════════════════════
   Ahmed Elshamy Blog — main.css
   Dark tech news theme — same identity as portfolio & CV
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --red:       #B30000;
  --deep-red:  #7A0000;
  --glow:      #FF2A2A;
  --black:     #0B0B0B;
  --bg:        #0d0000;
  --bg-card:   #120000;
  --bg-card2:  #160404;
  --glass:     rgba(255,255,255,0.05);
  --border:    rgba(255,255,255,0.08);
  --border-red:rgba(179,0,0,0.25);
  --text:      #EAEAEA;
  --muted:     #9A9A9A;
  --font:      'Cairo', 'Inter', sans-serif;
  --radius:    12px;
  --radius-lg: 18px;
  --max-w:     1240px;
  --sidebar-w: 320px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: linear-gradient(180deg,
    #3a0000 0%, #1e0000 6%, #120000 15%,
    #0d0000 30%, #080000 60%, #050000 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; transition: color 0.25s; }
ul  { list-style: none; padding: 0; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #050000; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ── Container ── */
.aeblog-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.aeblog-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 32px;
  align-items: start;
}

/* ════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════ */
.aeblog-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5,0,0,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-red);
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.aeblog-header.hide { transform: translateY(-100%); }

.aeblog-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* Logo */
.aeblog-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 900;
  white-space: nowrap; flex-shrink: 0;
  color: var(--text);
}
.aeblog-logo img {
  height: 36px; width: auto; display: block;
}
.aeblog-logo__text span { color: var(--red); }

/* Main nav */
.aeblog-nav {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.aeblog-nav a {
  font-size: 0.88rem; font-weight: 600;
  color: var(--muted); padding: 6px 14px;
  border-radius: 8px; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.aeblog-nav a:hover,
.aeblog-nav .current-menu-item > a {
  color: var(--text);
  background: rgba(179,0,0,0.12);
}

/* Header right: search + hamburger */
.aeblog-header__right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

/* Search */
.aeblog-search-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; color: var(--muted);
  transition: all 0.25s;
}
.aeblog-search-btn:hover { color: var(--text); border-color: var(--red); }
.aeblog-search-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Search overlay */
.aeblog-search-overlay {
  position: fixed; inset: 0;
  background: rgba(5,0,0,0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.aeblog-search-overlay.is-open { opacity: 1; pointer-events: all; }
.aeblog-search-overlay form {
  width: 100%; max-width: 640px;
  display: flex; gap: 12px;
}
.aeblog-search-overlay input {
  flex: 1; padding: 16px 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-red);
  border-radius: 12px;
  color: var(--text); font-family: var(--font);
  font-size: 1.1rem; outline: none;
  transition: border-color 0.25s;
}
.aeblog-search-overlay input:focus { border-color: var(--red); }
.aeblog-search-overlay input::placeholder { color: var(--muted); }
.aeblog-search-close {
  position: absolute; top: 20px; left: 20px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer; color: var(--muted);
  font-size: 1.1rem; transition: all 0.25s;
}
.aeblog-search-close:hover { color: var(--text); border-color: var(--red); }

/* Hamburger */
.aeblog-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px; background: none; border: none;
  z-index: 1003;
}
.aeblog-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s; transform-origin: center;
}
.aeblog-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aeblog-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.aeblog-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.aeblog-mobile-menu {
  position: fixed; inset: 0;
  background: rgba(5,0,0,0.97);
  backdrop-filter: blur(24px);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 60px 32px;
}
body[dir="rtl"] .aeblog-mobile-menu { transform: translateX(100%); }
.aeblog-mobile-menu.is-open { transform: translateX(0) !important; }
.aeblog-mobile-menu .aeblog-nav {
  flex-direction: column; align-items: flex-start; gap: 4px; width: 100%;
}
.aeblog-mobile-menu .aeblog-nav a {
  font-size: 1.2rem; padding: 12px 8px; width: 100%;
}

/* ── Top categories bar ── */
.aeblog-cats-bar {
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow-x: auto;
  scrollbar-width: none;
}
.aeblog-cats-bar::-webkit-scrollbar { display: none; }
.aeblog-cats-bar__inner {
  display: flex; gap: 0; height: 40px;
  align-items: stretch;
  min-width: max-content;
}
.aeblog-cats-bar a {
  display: flex; align-items: center;
  padding: 0 18px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--muted); white-space: nowrap;
  border-left: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
}
body[dir="rtl"] .aeblog-cats-bar a { border-left: none; border-right: 1px solid rgba(255,255,255,0.05); }
.aeblog-cats-bar a:hover { color: var(--text); background: rgba(179,0,0,0.1); }

/* ════════════════════════════════════════════════════════════════
   BREAKING NEWS TICKER
   ════════════════════════════════════════════════════════════════ */
.aeblog-ticker {
  background: var(--red);
  display: flex; align-items: center;
  overflow: hidden; height: 38px;
}
.aeblog-ticker__label {
  flex-shrink: 0; padding: 0 20px;
  font-size: 0.8rem; font-weight: 900;
  background: var(--deep-red);
  height: 100%; display: flex; align-items: center;
  letter-spacing: 0.08em; white-space: nowrap;
}
.aeblog-ticker__track {
  overflow: hidden; flex: 1;
}
.aeblog-ticker__items {
  display: flex; gap: 60px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.aeblog-ticker__items a {
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.aeblog-ticker__items a:hover { text-decoration: underline; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ════════════════════════════════════════════════════════════════
   AD AREAS
   ════════════════════════════════════════════════════════════════ */
.aeblog-ad {
  text-align: center;
  padding: 12px 0;
  overflow: hidden;
}
.aeblog-ad--header { background: rgba(0,0,0,0.3); padding: 10px; }
.aeblog-ad--in-content { margin: 32px 0; }
.aeblog-ad--sidebar { margin-bottom: 28px; }
.aeblog-ad--footer { margin: 32px auto; max-width: 728px; }

/* AdSense label */
.aeblog-ad::before {
  display: block;
  content: 'إعلان';
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 6px;
  letter-spacing: 0.1em;
}

/* ════════════════════════════════════════════════════════════════
   HERO / FEATURED POST
   ════════════════════════════════════════════════════════════════ */
.aeblog-featured {
  position: relative;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.aeblog-featured__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 0.6s ease;
}
.aeblog-featured:hover .aeblog-featured__img { transform: scale(1); }

.aeblog-featured__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,0,0,0.95) 0%,
    rgba(5,0,0,0.6) 50%,
    rgba(5,0,0,0.2) 100%
  );
}

.aeblog-featured__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px;
  z-index: 1;
}

.aeblog-featured__content .aeblog-cat-badge {
  margin-bottom: 14px;
}

.aeblog-featured__title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aeblog-featured__title a:hover { color: var(--glow); }

.aeblog-featured__meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.82rem; color: rgba(255,255,255,0.65);
}
.aeblog-featured__meta span { display: flex; align-items: center; gap: 5px; }
.aeblog-featured__meta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ════════════════════════════════════════════════════════════════
   ARTICLE CARDS
   ════════════════════════════════════════════════════════════════ */
.aeblog-cat-badge {
  display: inline-flex; align-items: center;
  background: var(--red);
  color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.25s;
}
.aeblog-cat-badge:hover { background: var(--glow); }

/* ── Main card ── */
.aeblog-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.aeblog-posts-grid--three { grid-template-columns: repeat(3, 1fr); }

.aeblog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  display: flex; flex-direction: column;
}
.aeblog-card:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 24px rgba(179,0,0,0.06);
}

.aeblog-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden; position: relative;
  background: rgba(0,0,0,0.3);
}
.aeblog-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.aeblog-card:hover .aeblog-card__thumb img { transform: scale(1.05); }

.aeblog-card__body {
  padding: 20px;
  display: flex; flex-direction: column; flex: 1;
}
.aeblog-card__badge { margin-bottom: 10px; }
.aeblog-card__title {
  font-size: 1rem; font-weight: 700; line-height: 1.45;
  margin-bottom: 10px; color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.aeblog-card__title a:hover { color: var(--glow); }
.aeblog-card__excerpt {
  font-size: 0.85rem; color: var(--muted); line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.aeblog-card__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.75rem; color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px; margin-top: auto;
  flex-wrap: wrap;
}
.aeblog-card__meta span { display: flex; align-items: center; gap: 4px; }
.aeblog-card__meta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── List card (sidebar) ── */
.aeblog-card--list {
  flex-direction: row; gap: 14px;
  background: transparent; border: none; border-radius: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transform: none !important; box-shadow: none !important;
}
.aeblog-card--list:last-child { border-bottom: none; }
.aeblog-card--list:hover { border-bottom-color: var(--border-red); }
.aeblog-card--list .aeblog-card__thumb {
  width: 90px; min-width: 90px;
  aspect-ratio: 1; border-radius: 8px;
}
.aeblog-card--list .aeblog-card__body { padding: 0; gap: 4px; }
.aeblog-card--list .aeblog-card__title {
  font-size: 0.88rem; -webkit-line-clamp: 2;
}
.aeblog-card--list .aeblog-card__meta {
  border-top: none; padding-top: 0; margin-top: 0;
}

/* ════════════════════════════════════════════════════════════════
   SECTION HEADER
   ════════════════════════════════════════════════════════════════ */
.aeblog-section-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.aeblog-section-hd__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700;
}
.aeblog-section-hd__title::before {
  content: '';
  display: block; width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--red), var(--glow));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(179,0,0,0.5);
}
.aeblog-section-hd__more {
  font-size: 0.8rem; font-weight: 600;
  color: var(--red); padding: 5px 12px;
  border: 1px solid var(--border-red);
  border-radius: 6px;
  transition: all 0.25s;
}
.aeblog-section-hd__more:hover {
  background: var(--red); color: #fff;
  box-shadow: 0 0 16px rgba(179,0,0,0.3);
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════ */
.aeblog-sidebar {
  position: sticky;
  top: 80px;
  display: flex; flex-direction: column; gap: 28px;
}

.aeblog-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.aeblog-widget__title {
  font-size: 0.92rem; font-weight: 700;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-red);
  color: var(--text);
}
.aeblog-widget__title::before {
  content: '';
  display: block; width: 3px; height: 16px;
  background: var(--red); border-radius: 2px;
}

/* ════════════════════════════════════════════════════════════════
   SINGLE POST
   ════════════════════════════════════════════════════════════════ */
.aeblog-single__header { margin-bottom: 36px; }
.aeblog-single__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700; line-height: 1.35;
  margin-bottom: 20px;
}
.aeblog-single__meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.aeblog-single__meta span { display: flex; align-items: center; gap: 6px; }
.aeblog-single__meta svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.aeblog-single__meta .aeblog-cat-badge { font-size: 0.72rem; }

.aeblog-single__thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  aspect-ratio: 16/9;
  background: rgba(0,0,0,0.3);
}
.aeblog-single__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Article content typography */
.aeblog-entry-content {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(234,234,234,0.88);
}
.aeblog-entry-content h2 {
  font-size: 1.4rem; font-weight: 700;
  margin: 36px 0 16px;
  color: var(--text);
  padding-right: 14px;
  border-right: 3px solid var(--red);
}
.aeblog-entry-content h3 {
  font-size: 1.15rem; font-weight: 700;
  margin: 28px 0 12px; color: var(--text);
}
.aeblog-entry-content p { margin-bottom: 20px; }
.aeblog-entry-content ul, .aeblog-entry-content ol {
  padding-right: 24px; margin-bottom: 20px;
}
.aeblog-entry-content li { margin-bottom: 8px; }
.aeblog-entry-content a { color: var(--glow); text-decoration: underline; text-underline-offset: 3px; }
.aeblog-entry-content a:hover { color: var(--red); }
.aeblog-entry-content blockquote {
  border-right: 4px solid var(--red);
  padding: 16px 20px; margin: 28px 0;
  background: rgba(179,0,0,0.06);
  border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--muted);
}
.aeblog-entry-content img {
  border-radius: var(--radius); margin: 24px auto;
  max-width: 100%; height: auto;
}
.aeblog-entry-content code {
  background: rgba(255,255,255,0.08); padding: 2px 7px;
  border-radius: 4px; font-size: 0.88em;
  font-family: 'Courier New', monospace;
}
.aeblog-entry-content pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px; margin: 24px 0;
  overflow-x: auto; font-size: 0.88em;
  line-height: 1.6;
}

/* Tags */
.aeblog-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.aeblog-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 12px;
  font-size: 0.8rem; color: var(--muted);
  transition: all 0.25s;
}
.aeblog-tag:hover { border-color: var(--red); color: var(--text); }

/* Share buttons */
.aeblog-share {
  display: flex; align-items: center; gap: 10px;
  margin: 28px 0; flex-wrap: wrap;
}
.aeblog-share__label {
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
}
.aeblog-share a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600;
  transition: all 0.25s;
}
.aeblog-share a svg { width: 15px; height: 15px; }
.aeblog-share--x   { background: #000; border: 1px solid #333; }
.aeblog-share--wa  { background: #25D366; }
.aeblog-share--tg  { background: #2CA5E0; }
.aeblog-share a:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════════ */
.aeblog-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin: 48px 0;
  flex-wrap: wrap;
}
.aeblog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  color: var(--muted); transition: all 0.25s;
}
.aeblog-pagination .page-numbers:hover,
.aeblog-pagination .page-numbers.current {
  background: var(--red); border-color: var(--red);
  color: #fff; box-shadow: 0 0 16px rgba(179,0,0,0.3);
}

/* ════════════════════════════════════════════════════════════════
   COMMENTS
   ════════════════════════════════════════════════════════════════ */
.aeblog-comments {
  margin-top: 48px; padding-top: 36px;
  border-top: 1px solid var(--border);
}
.aeblog-comments .comment-form-comment textarea,
.aeblog-comments .comment-form input[type="text"],
.aeblog-comments .comment-form input[type="email"],
.aeblog-comments .comment-form input[type="url"] {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text); font-family: var(--font);
  font-size: 0.92rem; outline: none;
  transition: border-color 0.25s;
}
.aeblog-comments input:focus,
.aeblog-comments textarea:focus { border-color: var(--red); }
.aeblog-comments .submit {
  background: var(--red); color: #fff;
  border: none; padding: 10px 28px;
  border-radius: var(--radius); font-family: var(--font);
  font-size: 0.92rem; font-weight: 700;
  cursor: pointer; transition: all 0.25s;
}
.aeblog-comments .submit:hover {
  background: var(--glow);
  box-shadow: 0 0 20px rgba(255,42,42,0.4);
}
.comment-list li { list-style: none; }

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
.aeblog-footer {
  background: rgba(0,0,0,0.5);
  border-top: 1px solid var(--border-red);
  margin-top: 80px;
  padding: 56px 0 0;
}

.aeblog-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.aeblog-footer__brand { max-width: 320px; }
.aeblog-footer__brand-name {
  font-size: 1.3rem; font-weight: 900; margin-bottom: 10px;
}
.aeblog-footer__brand-name span { color: var(--red); }
.aeblog-footer__desc {
  font-size: 0.88rem; color: var(--muted); line-height: 1.8;
  margin-bottom: 20px;
}
.aeblog-footer__social {
  display: flex; gap: 10px;
}
.aeblog-footer__social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px; color: var(--muted);
  transition: all 0.25s;
}
.aeblog-footer__social a:hover {
  color: var(--text); border-color: var(--red);
  box-shadow: 0 0 14px rgba(179,0,0,0.2);
}
.aeblog-footer__social svg { width: 17px; height: 17px; }

.aeblog-footer__col-title {
  font-size: 0.88rem; font-weight: 700;
  margin-bottom: 18px; color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-red);
}

.aeblog-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.aeblog-footer__col ul a {
  font-size: 0.85rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.aeblog-footer__col ul a::before {
  content: '›'; color: var(--red); font-size: 1rem;
}
.aeblog-footer__col ul a:hover { color: var(--text); }

.aeblog-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: 0.78rem; color: var(--muted);
}
.aeblog-footer__bottom a { color: var(--text); font-weight: 600; }
.aeblog-footer__bottom a:hover { color: var(--glow); }

/* ════════════════════════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════════════════════════ */
.aeblog-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--muted);
  margin-bottom: 28px; flex-wrap: wrap;
}
.aeblog-breadcrumb a { color: var(--muted); transition: color 0.2s; }
.aeblog-breadcrumb a:hover { color: var(--glow); }
.aeblog-breadcrumb__sep { color: rgba(255,255,255,0.2); }

/* ════════════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════════════ */
.aeblog-section { padding: 48px 0; }
.aeblog-divider { height: 1px; background: var(--border); margin: 48px 0; }
.aeblog-no-posts {
  text-align: center; padding: 80px 20px;
  color: var(--muted); font-size: 1rem;
}

/* Scroll reveal */
.aeblog-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.aeblog-reveal.is-visible { opacity: 1; transform: none; }
.aeblog-reveal--d1 { transition-delay: 0.08s; }
.aeblog-reveal--d2 { transition-delay: 0.16s; }
.aeblog-reveal--d3 { transition-delay: 0.24s; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 280px; }
  .aeblog-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .aeblog-layout { grid-template-columns: 1fr; }
  .aeblog-sidebar { position: static; }
  .aeblog-posts-grid { grid-template-columns: 1fr; }
  .aeblog-posts-grid--three { grid-template-columns: repeat(2,1fr); }
  .aeblog-nav { display: none; }
  .aeblog-hamburger { display: flex; }
  .aeblog-featured { height: 360px; }
  .aeblog-footer__grid { grid-template-columns: 1fr; }
  .aeblog-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .aeblog-posts-grid--three { grid-template-columns: 1fr; }
  .aeblog-featured { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
