/*
Theme Name: AutoXMedia
Theme URI: https://autoxmedia.com
Author: AutoX by TECHx
Description: AutoX Media – Automotive Magazine Theme
Version: 2.7.0
Text Domain: autoxmedia
*/

:root {
  --ax-red: #E30613;
  --ax-red-hover: #C10510;
  --ax-black: #0A0A0A;
  --ax-gray-700: #3D3D3D;
  --ax-gray-500: #6B6B6B;
  --ax-gray-100: #EFEFEF;
  --ax-gray-50: #F7F7F7;
  --ax-border: #E8E8E8;
  --ax-radius: 10px;
  --ax-font: 'Barlow Condensed', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ax-container: 1320px;
  --ax-transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--ax-font); font-size: 15px; line-height: 1.6; color: var(--ax-black); background: #fff; min-width: 320px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ax-transition); }
a:hover { color: var(--ax-red); }
ul, ol { list-style: none; }
button, input { font-family: inherit; font-size: inherit; border: none; background: none; outline: none; cursor: pointer; }
.container { width: 100%; max-width: var(--ax-container); margin: 0 auto; padding: 0 28px; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

/* Buttons */
.ax-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; font-weight: 600; font-size: 13px; border-radius: 6px; transition: all var(--ax-transition); white-space: nowrap; }
.ax-btn-primary { background: var(--ax-red); color: #fff !important; }
.ax-btn-primary:hover { background: var(--ax-red-hover); color: #fff !important; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(227,6,19,0.35); }
.ax-btn-sm { padding: 9px 16px; font-size: 12px; }
.ax-btn-play { display: inline-flex; align-items: center; gap: 14px; color: #fff !important; padding: 0; font-weight: 600; font-size: 14px; }
.ax-btn-play .ax-play-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--ax-red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--ax-transition); box-shadow: 0 4px 20px rgba(227,6,19,0.4); }
.ax-btn-play:hover .ax-play-circle { transform: scale(1.08); background: var(--ax-red-hover); }
.ax-btn-play .ax-play-circle i { font-size: 16px; margin-left: 2px; color: #fff; }
.ax-btn-play .ax-play-meta { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; margin-top: 2px; }
.ax-btn-play-light .ax-play-circle { background: #fff; }
.ax-btn-play-light .ax-play-circle i { color: var(--ax-black); }

/* ===== TOP BRAND + LEADERBOARD ===== */
.ax-top-brand { background: #fff; border-bottom: 1px solid var(--ax-border); }
.ax-top-brand-inner { max-width: var(--ax-container); margin: 0 auto; display: flex; align-items: center; min-height: 100px; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.ax-logo-block { flex: 0 0 auto; max-width: 180px; display: flex; align-items: center; padding: 8px 0; }
.ax-logo-block img { max-width: 160px; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.ax-logo-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none !important; }
.ax-logo-en { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--ax-black); line-height: 1; }
.ax-logo-en .ax-red { color: var(--ax-red); }
.ax-logo-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ax-gray-500); margin-top: 3px; }
.ax-leaderboard-full { flex: 1; display: flex; align-items: center; padding: 0px 20px; color: #fff; }
.ax-ad-leaderboard-content { display: flex; align-items: center; gap: 28px; width: 100%; }
.ax-ad-brand { display: flex; flex-direction: column; flex-shrink: 0; }
.ax-ad-brand strong { font-size: 20px; font-weight: 800; letter-spacing: 0.08em; line-height: 1; }
.ax-ad-brand span { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; opacity: 0.6; margin-top: 3px; }
.ax-ad-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ax-ad-text strong { font-size: 15px; font-weight: 700; }
.ax-ad-text span { font-size: 12px; opacity: 0.65; }

/* ===== HEADER / NAV ===== */
.ax-header { background: #fff; border-bottom: 1px solid var(--ax-border); position: sticky; top: 0; z-index: 100; }
.ax-header-bar { max-width: var(--ax-container); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; min-height: 54px; height: auto; gap: 12px; }

.ax-nav { flex: 1; }
.ax-nav-list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.ax-nav-item { position: relative; }
.ax-nav-link { display: block; padding: 17px 15px; font-size: 15px; font-weight: 600; color: #333; position: relative; transition: color 0.2s; }
.ax-nav-link:hover,
.ax-nav-item.active > .ax-nav-link,
.ax-nav-link.active { color: var(--ax-red); }
.ax-nav-item.active > .ax-nav-link::after,
.ax-nav-link.active::after { content: ''; position: absolute; left: 15px; right: 15px; bottom: 0; height: 2.5px; background: var(--ax-red); border-radius: 2px 2px 0 0; }

/* Dropdown */
.ax-dropdown { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--ax-border); border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.2s ease; z-index: 200; list-style: none; margin: 0; }
.ax-nav-item.has-dropdown:hover > .ax-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.ax-dropdown-link { display: block; padding: 10px 18px; font-size: 13.5px; font-weight: 500; color: #444; white-space: nowrap; transition: all 0.15s; }
.ax-dropdown-link:hover { background: #f7f7f7; color: var(--ax-red); }
.ax-dropdown-icon { font-size: 9px; margin-left: 4px; opacity: 0.45; }

/* Right side of header */
.ax-header-date { font-size: 12px; color: #777; font-weight: 500; letter-spacing: 0.03em; white-space: nowrap; margin-left: 0; }
.ax-header-date { font-size: 12px; color: #777; font-weight: 500; letter-spacing: 0.03em; white-space: nowrap; margin-left: 0; }
.ax-lang-switch a { color: #666; }
.ax-lang-switch a.active,
.ax-lang-switch a:hover { color: #E30613; font-weight: 700; }
.ax-lang-sep { color: #ccc; }
.ax-search-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #555; border-radius: 50%; transition: all 0.2s; }
.ax-search-btn:hover { background: #f5f5f5; color: #111; }

/* Mobile toggle */
.ax-menu-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; margin-left: 12px; }
.ax-menu-toggle span { display: block; height: 2px; background: var(--ax-black); border-radius: 1px; transition: all 0.25s; }
.ax-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ax-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.ax-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.ax-mobile-nav { background: #fff; border-bottom: 1px solid var(--ax-border); padding: 16px 0 24px; }
.ax-mobile-nav[hidden] { display: none; }
.ax-mobile-menu a { display: block; padding: 12px 0; font-size: 15px; font-weight: 500; border-bottom: 1px solid #f0f0f0; color: #222; }

/* ===== HERO ===== */
.ax-hero-big { position: relative; margin: 0; padding: 0; }
.ax-hero-big-inner { position: relative; min-height: 560px; overflow: hidden; }
.ax-hero-big-img { width: 100%; height: 560px; object-fit: cover; display: block; }
.ax-hero-big-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 56px 0 48px; background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.1) 100%); color: #fff; }
.ax-hero-big-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ax-red); margin-bottom: 12px; background: rgba(227,6,19,0.15); padding: 5px 12px; border-radius: 4px; }
.ax-hero-big-title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: #fff; max-width: 680px; margin-bottom: 24px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.ax-hero-big-meta { margin-top: 18px; font-size: 13px; opacity: 0.7; }

/* ===== SECTIONS ===== */
.ax-section { padding: 56px 0; }
.ax-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--ax-border); }
.ax-section-title { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ax-black); display: flex; align-items: center; gap: 12px; }
.ax-section-title::before { content: ''; width: 4px; height: 18px; background: var(--ax-red); border-radius: 2px; }
.ax-section-link { font-size: 13px; font-weight: 600; color: var(--ax-gray-500); }
.ax-section-link:hover { color: var(--ax-red); }

/* Cards */
.ax-card { transition: transform var(--ax-transition); }
.ax-card a { display: block; color: inherit; text-decoration: none !important; }
.ax-card:hover { transform: translateY(-3px); }
.ax-card-image { position: relative; overflow: hidden; border-radius: var(--ax-radius); aspect-ratio: 16/10; background: var(--ax-gray-100); margin-bottom: 14px; }
.ax-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.ax-card:hover .ax-card-image img { transform: scale(1.05); }
.ax-card-badge { position: absolute; top: 12px; left: 12px; background: var(--ax-red); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.ax-card-body { padding: 0 2px; }
.ax-card-title { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; color: var(--ax-black); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--ax-transition); }
.ax-card:hover .ax-card-title { color: var(--ax-red); }
.ax-card-meta { font-size: 12px; color: var(--ax-gray-500); }

/* Grids */
.ax-grid { display: grid; gap: 28px 24px; }
.ax-grid-2col { grid-template-columns: repeat(2, 1fr); }
.ax-grid-3col { grid-template-columns: repeat(3, 1fr); }
.ax-grid-4col { grid-template-columns: repeat(4, 1fr); }

/* Latest News */
.ax-latest-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.ax-latest-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 80px; }
.ax-ad-box { background: var(--ax-black); color: #fff; border-radius: var(--ax-radius); padding: 24px 20px; text-align: center; }
.ax-ad-label { display: block; font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.45; margin-bottom: 16px; }
.ax-ad-content strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 6px; }
.ax-ad-content span { display: block; font-size: 12px; opacity: 0.6; margin-bottom: 18px; }
.ax-ad-content .ax-btn { width: 100%; }
.ax-most-read { background: var(--ax-gray-50); border-radius: var(--ax-radius); padding: 22px 20px; border: 1px solid #f0f0f0; }
.ax-most-read-title { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.ax-most-read-list { counter-reset: most-read; }
.ax-most-read-list li { counter-increment: most-read; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--ax-border); align-items: flex-start; }
.ax-most-read-list li:last-child { border-bottom: none; padding-bottom: 0; }
.ax-most-read-list li::before { content: counter(most-read, decimal-leading-zero); font-size: 18px; font-weight: 800; color: var(--ax-red); line-height: 1.2; flex-shrink: 0; min-width: 28px; }
.ax-most-read-list a { font-size: 14px; font-weight: 600; line-height: 1.4; color: #222; }
.ax-most-read-list a:hover { color: var(--ax-red); }

/* Mid ads */
.ax-mid-ad { padding: 8px 0 32px; }
.ax-ad-banner { background: linear-gradient(90deg, #0a0a0a, #1c1c1c 50%, #0a0a0a); border-radius: var(--ax-radius); padding: 28px 36px; color: #fff; display: flex; align-items: center; justify-content: center; min-height: 90px; position: relative; }
.ax-ad-banner .ax-ad-label { position: absolute; top: 10px; left: 16px; margin: 0; font-size: 8px; }
.ax-ad-placeholder { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }

/* Editor's Picks background */
.ax-section:has(.ax-grid-4col) { background: var(--ax-gray-50); border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }

/* Bigger Picture */
.ax-bigger-layout { display: grid; grid-template-columns: 1.4fr 1fr 280px; gap: 28px; align-items: start; }
.ax-bigger-card a { display: block; text-decoration: none !important; color: inherit; }
.ax-bigger-image { border-radius: var(--ax-radius); overflow: hidden; aspect-ratio: 16/10; margin-bottom: 16px; background: var(--ax-gray-100); }
.ax-bigger-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ax-bigger-card:hover .ax-bigger-image img { transform: scale(1.04); }
.ax-bigger-body .ax-card-badge { position: static; display: inline-block; margin-bottom: 10px; box-shadow: none; }
.ax-bigger-body h2 { font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -0.025em; margin-bottom: 10px; transition: color var(--ax-transition); }
.ax-bigger-card:hover .ax-bigger-body h2 { color: var(--ax-red); }
.ax-bigger-body p { font-size: 14.5px; color: var(--ax-gray-500); line-height: 1.55; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Post list */
.ax-post-list { display: flex; flex-direction: column; }
.ax-post-list-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ax-border); text-decoration: none !important; color: inherit; }
.ax-post-list-item:last-child { border-bottom: none; }
.ax-post-list-item:hover .ax-post-list-title { color: var(--ax-red); }
.ax-post-list-thumb { width: 88px; height: 66px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--ax-gray-100); }
.ax-post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ax-post-list-content { flex: 1; min-width: 0; }
.ax-post-list-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ax-red); margin-bottom: 4px; display: block; }
.ax-post-list-title { font-size: 14px; font-weight: 650; line-height: 1.35; color: var(--ax-black); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--ax-transition); }
.ax-post-list-meta { font-size: 11px; color: var(--ax-gray-500); margin-top: 4px; }

/* Film */
.ax-film-section { position: relative; min-height: 480px; display: flex; align-items: center; background: var(--ax-black); overflow: hidden; margin: 0; padding: 80px 0; }
.ax-film-section::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1600&q=80') center/cover no-repeat; opacity: 0.45; }
.ax-film-section::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); }
.ax-film-inner { position: relative; z-index: 2; max-width: 560px; color: #fff; }
.ax-film-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.ax-film-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; color: #fff; }
.ax-film-excerpt { font-size: 15px; line-height: 1.55; opacity: 0.75; margin-bottom: 28px; max-width: 420px; }

/* Video cards */
.ax-video-card a { display: block; text-decoration: none !important; color: inherit; }
.ax-video-card-image { position: relative; border-radius: var(--ax-radius); overflow: hidden; aspect-ratio: 16/10; background: var(--ax-gray-100); margin-bottom: 14px; }
.ax-video-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.ax-video-card:hover .ax-video-card-image img { transform: scale(1.05); }
.ax-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.95); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,0.25); transition: all var(--ax-transition); z-index: 2; }
.ax-play-btn i { font-size: 16px; color: var(--ax-black); margin-left: 2px; }
.ax-video-card:hover .ax-play-btn { transform: translate(-50%, -50%) scale(1.1); background: var(--ax-red); }
.ax-video-card:hover .ax-play-btn i { color: #fff; }
.ax-video-duration { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.75); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 4px; }
.ax-video-type { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ax-red); margin-bottom: 5px; }
.ax-video-title { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; transition: color var(--ax-transition); }
.ax-video-card:hover .ax-video-title { color: var(--ax-red); }
.ax-photo-intro { font-size: 14px; color: var(--ax-gray-500); margin-bottom: 20px; font-style: italic; }

/* Newsletter */
.ax-newsletter-section { padding: 48px 0 !important; background: var(--ax-gray-50); border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.ax-newsletter-box { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: #fff; border: 1px solid var(--ax-border); border-radius: 16px; padding: 36px 40px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.ax-newsletter-text h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.ax-newsletter-text p { font-size: 14px; color: var(--ax-gray-500); }
.ax-newsletter-form { display: flex; gap: 10px; flex-shrink: 0; min-width: 340px; }
.ax-newsletter-form input[type="email"] { flex: 1; padding: 13px 18px; border: 1.5px solid var(--ax-border); border-radius: 6px; font-size: 14px; background: #fff; }
.ax-newsletter-form input[type="email"]:focus { border-color: var(--ax-red); outline: none; }
.ax-newsletter-form input::placeholder { color: #aaa; }

/* Two cols */
.ax-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.ax-two-cols .ax-grid-2col { grid-template-columns: 1fr; margin-bottom: 8px; }
.ax-two-cols .ax-card-image { aspect-ratio: 16/9; }
.ax-two-cols .ax-card-title { font-size: 18px; }

/* Footer */
.ax-footer { background: var(--ax-black); color: rgba(255,255,255,0.7); padding: 64px 0 0; font-size: 13.5px; }
.ax-footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ax-footer-brand .ax-logo-main { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.02em; display: inline-block; margin-bottom: 14px; }
.ax-footer-brand .ax-logo-main span { color: var(--ax-red); }
.ax-footer-brand .ax-logo-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: rgba(255,255,255,0.5) !important; display: block; margin-top: 2px; }
.ax-footer-brand p { font-size: 13.5px; line-height: 1.6; max-width: 280px; opacity: 0.7; }
.ax-footer .ax-social { display: flex; gap: 14px; margin-top: 16px; }
.ax-footer .ax-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 15px; transition: all var(--ax-transition); }
.ax-footer .ax-social a:hover { background: var(--ax-red); color: #fff; }
.ax-footer-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.ax-footer-links { display: flex; flex-direction: column; gap: 10px; }
.ax-footer-links a { color: rgba(255,255,255,0.6); }
.ax-footer-links a:hover { color: #fff; }
.ax-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 12px; opacity: 0.55; }
.ax-footer-legal { display: flex; gap: 20px; }

/* Responsive */
@media (max-width: 1100px) {
  .ax-latest-layout { grid-template-columns: 1fr 260px; }
  .ax-bigger-layout { grid-template-columns: 1.3fr 1fr; }
  .ax-bigger-ad { display: none; }
  .ax-grid-4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .ax-nav { display: none; }
  .ax-menu-toggle { display: flex; }
  .ax-header-date, .ax-lang-switch { display: none; }
  .ax-logo-block { flex: 0 0 160px; padding: 12px 16px; }
  .ax-logo-en { font-size: 20px; }
  .ax-ad-text span { display: none; }
  .ax-latest-layout { grid-template-columns: 1fr; }
  .ax-latest-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .ax-latest-sidebar > * { flex: 1 1 260px; }
  .ax-latest-main .ax-grid-3col { grid-template-columns: repeat(2, 1fr); }
  .ax-bigger-layout { grid-template-columns: 1fr; }
  .ax-two-cols { grid-template-columns: 1fr; gap: 40px; }
  .ax-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ax-newsletter-box { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .ax-newsletter-form { width: 100%; min-width: 0; }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .ax-top-brand-inner { flex-direction: column; }
  .ax-logo-block { border-right: none; border-bottom: 1px solid var(--ax-border); justify-content: center; flex: none; min-height: 70px; }
  .ax-leaderboard-full { padding: 16px; }
  .ax-ad-leaderboard-content { flex-direction: column; text-align: center; gap: 12px; }
  .ax-hero-big-inner, .ax-hero-big-img { min-height: 380px; height: 380px; }
  .ax-hero-big-overlay { padding: 32px 0 28px; }
  .ax-hero-big-title { font-size: 28px; }
  .ax-section { padding: 40px 0; }
  .ax-grid-2col, .ax-grid-3col, .ax-grid-4col, .ax-latest-main .ax-grid-3col { grid-template-columns: 1fr; }
  .ax-film-section { min-height: 400px; padding: 56px 0; }
  .ax-footer-top { grid-template-columns: 1fr; gap: 28px; }
  .ax-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .ax-hero-big-inner, .ax-hero-big-img { min-height: 320px; height: 320px; }
  .ax-btn-play .ax-play-circle { width: 44px; height: 44px; }
  .ax-newsletter-form { flex-direction: column; }
  .ax-newsletter-form .ax-btn { width: 100%; }
}

/* ===== BREADCRUMB ===== */
.ax-breadcrumb {
  font-size: 13px;
  color: var(--ax-gray-500);
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ax-breadcrumb a { color: var(--ax-gray-500); }
.ax-breadcrumb a:hover { color: var(--ax-red); }
.ax-breadcrumb-sep { color: #ccc; }
.ax-breadcrumb-current { color: var(--ax-red); font-weight: 600; }

/* ===== CHILD CATEGORY LIST ROWS ===== */
.ax-cat-header { margin-bottom: 32px; }
.ax-cat-title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: var(--ax-red);
  margin-bottom: 8px;
}
.ax-cat-desc { color: var(--ax-gray-500); max-width: 640px; }

.ax-child-list { display: flex; flex-direction: column; gap: 0; }
.ax-list-row {
  border-bottom: 1px solid var(--ax-border);
  padding: 28px 0;
}
.ax-list-row:first-child { padding-top: 0; }
.ax-list-row-link {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
.ax-list-row-thumb {
  border-radius: var(--ax-radius);
  overflow: hidden;
  background: var(--ax-gray-100);
  aspect-ratio: 16/10;
}
.ax-list-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ax-list-row:hover .ax-list-row-thumb img { transform: scale(1.03); }
.ax-list-row-date {
  display: block;
  font-size: 13px;
  color: var(--ax-gray-500);
  margin-bottom: 8px;
  text-align: right;
}
.ax-list-row-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}
.ax-list-row:hover .ax-list-row-title { color: var(--ax-red); }
.ax-list-row-excerpt {
  font-size: 15px;
  color: var(--ax-gray-500);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ax-list-row-meta {
  font-size: 13px;
  color: var(--ax-red);
  font-weight: 500;
}

/* ===== PARENT SUBCAT SECTIONS ===== */
.ax-subcat-section { margin-bottom: 48px; }
.ax-subcat-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ax-subcat-accent {
  width: 8px;
  height: 28px;
  background: var(--ax-red);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== PICK ITEMS (middle column) ===== */
.ax-pick-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ax-border);
}
.ax-pick-item:first-child { padding-top: 0; }
.ax-pick-item:last-child { border-bottom: none; }
.ax-pick-thumb {
  width: 88px;
  height: 66px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ax-gray-100);
}
.ax-pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ax-pick-cat {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ax-red);
  margin-bottom: 4px;
}
.ax-pick-content h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ax-pick-meta { font-size: 12px; color: var(--ax-gray-500); }

/* ===== SINGLE ARTICLE ===== */
.ax-single-container { max-width: 860px; }
.ax-single-header { margin-bottom: 28px; }
.ax-single-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--ax-red);
  line-height: 1.2;
  margin-bottom: 16px;
}
.ax-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--ax-gray-500);
  margin-bottom: 16px;
}
.ax-single-author { font-weight: 600; color: var(--ax-black); }
.ax-meta-sep { opacity: 0.5; }
.ax-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ax-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ax-gray-500);
}
.ax-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ax-gray-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ax-gray-700);
  font-size: 14px;
  transition: all var(--ax-transition);
}
.ax-share-btn:hover { background: var(--ax-red); color: #fff; }
.ax-single-featured {
  margin-bottom: 32px;
  border-radius: var(--ax-radius);
  overflow: hidden;
}
.ax-single-featured img { width: 100%; height: auto; }
.ax-single-content {
  font-size: 17px;
  line-height: 1.75;
  color: #222;
}
.ax-single-content p { margin-bottom: 1.25em; }
.ax-single-content h2,
.ax-single-content h3 { margin: 1.5em 0 0.6em; }
.ax-single-content ul,
.ax-single-content ol { margin: 0 0 1.25em 1.25em; list-style: disc; }
.ax-single-content a { color: var(--ax-red); text-decoration: underline; }
.ax-single-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ax-border);
}
.ax-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}
.ax-single-tags a {
  background: var(--ax-gray-100);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}
.ax-single-tags a:hover { background: var(--ax-red); color: #fff; }
.ax-related-posts { background: var(--ax-gray-50); }

/* Pagination */
.ax-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ax-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ax-border);
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}
.ax-pagination .page-numbers.current,
.ax-pagination .page-numbers:hover {
  background: var(--ax-red);
  border-color: var(--ax-red);
  color: #fff;
}

@media (max-width: 768px) {
  .ax-list-row-link {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ax-list-row-date { text-align: left; }
  .ax-list-row-thumb { aspect-ratio: 16/9; }
}

/* ===== HIGHLIGHTED CATEGORY PAIR ===== */
.ax-highlight-pair {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: start;
}
.ax-highlight-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ax-highlight-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  flex: 1;
}
.ax-highlight-title a:hover { color: var(--ax-red); }
.ax-highlight-featured-title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}
.ax-highlight-featured:hover .ax-highlight-featured-title { color: var(--ax-red); }
.ax-highlight-date {
  display: block;
  font-size: 13px;
  color: var(--ax-gray-500);
  margin-bottom: 14px;
}
.ax-highlight-featured-image {
  border-radius: var(--ax-radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--ax-gray-100);
}
.ax-highlight-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ax-highlight-featured:hover .ax-highlight-featured-image img { transform: scale(1.03); }

.ax-highlight-side-list {
  display: flex;
  flex-direction: column;
}
.ax-highlight-left .ax-highlight-side-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.ax-highlight-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ax-border);
}
.ax-highlight-mini:last-child { border-bottom: none; }
.ax-highlight-mini-thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ax-gray-100);
}
.ax-highlight-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ax-highlight-mini-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ax-highlight-mini:hover .ax-highlight-mini-title { color: var(--ax-red); }

/* ===== CATEGORY CARDS PAIR ===== */
.ax-cat-cards-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.ax-cat-cards-block { margin-bottom: 8px; }
.ax-cat-cards-col .ax-grid-4col {
  grid-template-columns: repeat(2, 1fr);
}

/* Promo banner inner */
.ax-promo-banner {
  min-height: 100px;
  display: flex;
  align-items: center;
  padding: 20px 32px;
  position: relative;
}
.ax-promo-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fff;
  flex-wrap: wrap;
}
.ax-promo-brand {
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.75;
  font-weight: 600;
}
.ax-promo-title {
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .ax-highlight-pair,
  .ax-cat-cards-pair {
    grid-template-columns: 1fr;
  }
  .ax-highlight-left .ax-highlight-side-list {
    grid-template-columns: 1fr;
  }
}

/* ===== HIGHLIGHTED PAIR – corrected (image | related + right category) ===== */
.ax-hl {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 48px;
  align-items: start;
}
.ax-hl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.ax-hl-cat-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  flex: 1;
  line-height: 1.2;
}
.ax-hl-cat-title a:hover { color: var(--ax-red); }

.ax-hl-featured-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}
.ax-hl-featured a:hover .ax-hl-featured-title { color: var(--ax-red); }
.ax-hl-date {
  display: block;
  font-size: 13px;
  color: var(--ax-gray-500);
  margin-bottom: 14px;
}

/* Featured image + related list side by side */
.ax-hl-featured-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: start;
}
.ax-hl-featured-image {
  display: block;
  border-radius: var(--ax-radius);
  overflow: hidden;
  background: var(--ax-gray-100);
  aspect-ratio: 4/3;
}
.ax-hl-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ax-hl-featured:hover .ax-hl-featured-image img { transform: scale(1.03); }

.ax-hl-related {
  display: flex;
  flex-direction: column;
}
.ax-hl-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ax-border);
}
.ax-hl-mini:first-child { padding-top: 0; }
.ax-hl-mini:last-child { border-bottom: none; }
.ax-hl-mini-thumb {
  width: 70px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ax-gray-100);
}
.ax-hl-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ax-hl-mini-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ax-hl-mini:hover .ax-hl-mini-title { color: var(--ax-red); }

/* Right column is just a vertical list */
.ax-hl-related-solo { margin-top: 0; }

@media (max-width: 1024px) {
  .ax-hl { grid-template-columns: 1fr; gap: 36px; }
  .ax-hl-featured-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ax-hl-featured-row { grid-template-columns: 1fr; }
}

/* ============================================================
   MAGAZINE POLISH – elegant spacing & consistent cards
   ============================================================ */

/* Rhythm */
.ax-section {
  padding: 64px 0 !important;
}
.ax-section + .ax-section {
  padding-top: 48px !important;
}
.ax-section[style*="padding-top:0"] {
  padding-top: 8px !important;
}
.ax-mid-ad {
  padding: 8px 0 8px !important;
}

/* Section headers – clean, single accent */
.ax-section-header {
  margin-bottom: 32px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #ebebeb !important;
  align-items: center;
}
.ax-section-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  gap: 10px !important;
}
/* Hide duplicate accent when .ax-subcat-accent is present */
.ax-subcat-title-wrap + .ax-section-title::before,
.ax-subcat-title-wrap .ax-section-title::before,
.ax-section-header .ax-subcat-title-wrap ~ * .ax-section-title::before {
  display: none;
}
.ax-section-header .ax-subcat-title-wrap .ax-section-title::before {
  display: none !important;
}
.ax-subcat-accent {
  width: 5px !important;
  height: 20px !important;
  border-radius: 1px !important;
}
.ax-section-link {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: #999 !important;
  text-transform: none;
}
.ax-section-link:hover {
  color: var(--ax-red) !important;
}

/* Cards – equal visual weight */
.ax-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: none !important;
}
.ax-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.ax-card:hover {
  transform: none !important;
}
.ax-card-image {
  aspect-ratio: 3 / 2 !important;
  border-radius: 8px !important;
  margin-bottom: 16px !important;
  background: #f0f0f0;
}
.ax-card:hover .ax-card-image img {
  transform: scale(1.04);
}
.ax-card-badge {
  font-size: 9px !important;
  padding: 4px 8px !important;
  letter-spacing: 0.1em !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}
.ax-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 !important;
  gap: 6px;
}
.ax-card-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.015em !important;
  margin-bottom: 0 !important;
  -webkit-line-clamp: 2 !important;
  min-height: 2.8em;
}
.ax-card-meta {
  font-size: 11px !important;
  color: #999 !important;
  margin-top: auto;
  padding-top: 4px;
  letter-spacing: 0.01em;
}

/* Grids – consistent gaps */
.ax-grid {
  gap: 32px 28px !important;
}
.ax-grid-4col {
  grid-template-columns: repeat(4, 1fr) !important;
}
.ax-cat-cards-pair {
  gap: 48px !important;
  align-items: start;
}
.ax-cat-cards-col .ax-grid-4col,
.ax-cat-cards-col .ax-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 28px 24px !important;
}
.ax-cat-cards-block {
  margin-bottom: 0 !important;
}

/* Remove alternating gray backgrounds that break rhythm */
.ax-section:has(.ax-grid-4col) {
  background: transparent !important;
  border: none !important;
}

/* Pair sections share one visual band */
.ax-cat-cards-pair .ax-section-header {
  margin-bottom: 24px !important;
}

/* Soft separator between major blocks */
.ax-section + .ax-section::before {
  content: none;
}

/* Newsletter breathe */
.ax-newsletter-section {
  padding: 48px 0 48px !important;
}
.ax-newsletter-box {
  border-radius: 12px;
  padding: 40px 48px !important;
}

/* Highlighted block spacing */
.ax-hl {
  gap: 56px !important;
}
.ax-hl-featured-row {
  gap: 24px !important;
}
.ax-hl-featured-image {
  border-radius: 8px !important;
}

/* Featured list / bigger layout */
.ax-bigger-layout {
  gap: 36px !important;
  align-items: start;
}
.ax-bigger-image {
  border-radius: 8px !important;
}
.ax-pick-item {
  padding: 14px 0 !important;
}

/* Latest layout */
.ax-latest-layout {
  gap: 36px !important;
}

@media (max-width: 1100px) {
  .ax-grid-4col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 960px) {
  .ax-cat-cards-pair {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  .ax-section {
    padding: 48px 0 !important;
  }
}
@media (max-width: 640px) {
  .ax-grid-4col,
  .ax-cat-cards-col .ax-grid-4col,
  .ax-cat-cards-col .ax-grid {
    grid-template-columns: 1fr !important;
  }
  .ax-card-title {
    min-height: 0;
  }
}
.ax-cat-head-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}
.ax-cat-head-title a { color: inherit; }
.ax-cat-head-title a:hover { color: var(--ax-red); }
.ax-cat-head {
  border-bottom: 1px solid #ebebeb;
}

/* ===== 3 EQUAL COLUMN HIGHLIGHT / LATEST ===== */
.ax-hl3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.ax-hl3-col {
  min-width: 0;
}
.ax-hl3-feature-card a {
  display: block;
  color: inherit;
}
.ax-hl3-feature-image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0f0f0;
  margin-bottom: 14px;
}
.ax-hl3-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ax-hl3-feature-card:hover .ax-hl3-feature-image img {
  transform: scale(1.03);
}
.ax-hl3 .ax-hl-featured-title {
  font-size: 20px !important;
  margin-top: 6px;
  margin-bottom: 8px;
}
.ax-hl-excerpt {
  font-size: 14px;
  color: var(--ax-gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ax-hl-head-spacer {
  min-height: 38px;
  margin-bottom: 18px;
  visibility: hidden;
}
.ax-hl-head-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Larger mini thumbs */
.ax-hl3 .ax-hl-mini-thumb {
  width: 100px !important;
  height: 72px !important;
  border-radius: 8px !important;
}
.ax-hl3 .ax-hl-mini {
  gap: 14px !important;
  padding: 14px 0 !important;
}
.ax-hl3 .ax-hl-mini-title {
  font-size: 15px !important;
  -webkit-line-clamp: 3 !important;
}
.ax-hl-mini-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Load more */
.ax-load-more-wrap {
  margin-top: 48px;
  text-align: center;
}
.ax-load-more-wrap .ax-load-more {
  min-width: 180px;
  padding: 14px 32px;
}

/* Child list refinements (cybersecurity style) */
.ax-child-list .ax-list-row-link {
  grid-template-columns: 260px 1fr !important;
  gap: 32px !important;
}
.ax-list-row-date {
  text-align: right;
  position: absolute;
  right: 0;
  top: 0;
}
.ax-list-row {
  position: relative;
  padding: 32px 0 !important;
}
.ax-list-row-body {
  padding-right: 120px;
  position: relative;
}
.ax-list-row-title {
  font-size: 20px !important;
}

@media (max-width: 1024px) {
  .ax-hl3 {
    grid-template-columns: 1fr 1fr;
  }
  .ax-hl3-other {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .ax-hl3 {
    grid-template-columns: 1fr;
  }
  .ax-hl-head-spacer {
    display: none;
  }
  .ax-child-list .ax-list-row-link {
    grid-template-columns: 1fr !important;
  }
  .ax-list-row-body {
    padding-right: 0;
  }
  .ax-list-row-date {
    position: static;
    text-align: left;
  }
}

/* ===== HL3: 1.3fr / .85fr / .85fr + equal column height ===== */
.ax-hl3 {
  display: grid !important;
  grid-template-columns: 1.3fr 0.85fr 0.85fr !important;
  gap: 32px !important;
  align-items: stretch !important;
}
.ax-hl3-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.ax-hl3-related .ax-hl-related,
.ax-hl3-other .ax-hl-related {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ax-hl3-feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ax-hl3-feature-card > a {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ax-hl3-feature-image {
  flex: 1;
  min-height: 220px;
  aspect-ratio: auto !important;
  max-height: none;
}

/* Bigger mini thumbs + badge inside image */
.ax-hl3 .ax-hl-mini {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--ax-border) !important;
  flex: 1;
  min-height: 0;
}
.ax-hl3 .ax-hl-mini:last-child {
  border-bottom: none !important;
}
.ax-hl3 .ax-hl-mini-thumb {
  position: relative !important;
  width: 120px !important;
  height: 88px !important;
  flex-shrink: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
.ax-hl3 .ax-hl-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ax-hl-mini-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--ax-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  z-index: 2;
  line-height: 1.2;
  max-width: calc(100% - 12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ax-hl3 .ax-hl-mini-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 0;
}
.ax-hl3 .ax-hl-mini-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  -webkit-line-clamp: 3 !important;
}

/* Most-read column fills height */
.ax-hl3-other {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ax-hl3-other .ax-most-read {
  flex: 1;
}

@media (max-width: 1024px) {
  .ax-hl3 {
    grid-template-columns: 1fr 1fr !important;
  }
  .ax-hl3-other {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .ax-hl3 {
    grid-template-columns: 1fr !important;
  }
  .ax-hl3 .ax-hl-mini-thumb {
    width: 100px !important;
    height: 74px !important;
  }
}

/* ===== LATEST NEWS – 2 columns (featured | list) ===== */
.ax-ln {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: stretch;
}
.ax-ln-featured,
.ax-ln-list {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ax-ln-feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ax-ln-feature-card > a {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.ax-ln-feature-image {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/11;
  background: #f0f0f0;
  margin-bottom: 16px;
}
.ax-ln-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ax-ln-feature-card:hover .ax-ln-feature-image img {
  transform: scale(1.03);
}
.ax-ln .ax-hl-featured-title {
  font-size: 22px !important;
  margin: 6px 0 8px;
}
.ax-ln-list {
  justify-content: space-between;
  gap: 0;
}
.ax-ln-list .ax-hl-mini {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--ax-border) !important;
  flex: 1;
}
.ax-ln-list .ax-hl-mini:first-child {
  padding-top: 0 !important;
}
.ax-ln-list .ax-hl-mini:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.ax-ln-list .ax-hl-mini-thumb {
  position: relative;
  width: 120px !important;
  height: 88px !important;
  border-radius: 8px !important;
  overflow: hidden;
  flex-shrink: 0;
}
.ax-ln-list .ax-hl-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== MOST READ standalone section ===== */
.ax-most-read-section {
  padding-top: 8px !important;
  padding-bottom: 48px !important;
}
.ax-most-read-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ax-most-read-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 10px;
}
.ax-most-read-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--ax-red);
  line-height: 1;
  flex-shrink: 0;
}
.ax-most-read-item a {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ax-black);
}
.ax-most-read-item a:hover {
  color: var(--ax-red);
}

/* Highlighted stays 1.3 / 0.85 / 0.85 with 4 items equal height */
.ax-hl3 {
  grid-template-columns: 1.3fr 0.85fr 0.85fr !important;
}
.ax-hl3-related .ax-hl-related,
.ax-hl3-other .ax-hl-related {
  justify-content: space-between !important;
  flex: 1;
}

@media (max-width: 960px) {
  .ax-ln {
    grid-template-columns: 1fr;
  }
  .ax-most-read-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .ax-most-read-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Latest News + Highlighted: equal 4-row columns ===== */
.ax-hl3 {
  display: grid !important;
  grid-template-columns: 1.3fr 0.85fr 0.85fr !important;
  gap: 32px !important;
  align-items: stretch !important;
}
.ax-hl3-col {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}
.ax-hl3-related .ax-hl-related,
.ax-hl3-other .ax-hl-related {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 0 !important;
}
.ax-hl3 .ax-hl-mini {
  flex: 1 1 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--ax-border) !important;
  min-height: 0;
}
.ax-hl3 .ax-hl-mini:last-child {
  border-bottom: none !important;
}
.ax-hl3 .ax-hl-mini-thumb {
  width: 110px !important;
  height: 80px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.ax-hl3 .ax-hl-mini-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.ax-hl3-feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ax-hl3-feature-card > a {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.ax-hl3-feature-image {
  flex: 1 1 auto;
  min-height: 240px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.ax-hl3-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide spacer head on middle column for Latest News (no label needed) */
.ax-hl3-related > .ax-hl-head-spacer {
  display: none;
}

/* ===== Latest News: header only over 2 cols + Most Read aside ===== */
.ax-ln3 {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: 36px;
  align-items: start;
}
.ax-ln3-main {
  min-width: 0;
}
.ax-ln3-header {
  margin-bottom: 24px !important;
}
.ax-ln3-body {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}
.ax-ln3-featured,
.ax-ln3-related {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ax-ln3-related .ax-hl-related {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ax-ln3-aside {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ax-ln3-aside .ax-hl-related {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ax-ln3 .ax-hl-mini {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ax-border);
}
.ax-ln3 .ax-hl-mini:last-child {
  border-bottom: none;
}
.ax-ln3 .ax-hl-mini-thumb {
  position: relative;
  width: 110px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.ax-ln3 .ax-hl-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .ax-ln3 {
    grid-template-columns: 1fr;
  }
  .ax-ln3-body {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .ax-ln3-body {
    grid-template-columns: 1fr;
  }
}

/* ===== CHILD CATEGORY – TechX cybersecurity layout ===== */
.ax-cat-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.ax-cat-main {
  min-width: 0;
}
.ax-cat-sidebar {
  position: relative;
}
.ax-ad-box-sticky {
  position: sticky;
  top: 90px;
}

.ax-child-list {
  display: flex;
  flex-direction: column;
}
.ax-list-row {
  border-bottom: 1px solid var(--ax-border);
  padding: 28px 0 !important;
  position: relative;
}
.ax-list-row:first-child {
  padding-top: 0 !important;
}
.ax-list-row-link {
  display: grid !important;
  grid-template-columns: 240px 1fr auto !important;
  gap: 24px !important;
  align-items: start !important;
  color: inherit;
}
.ax-list-row-thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #f0f0f0;
}
.ax-list-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ax-list-row:hover .ax-list-row-thumb img {
  transform: scale(1.03);
}
.ax-list-row-body {
  padding-right: 0 !important;
  min-width: 0;
}
.ax-list-row-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin-bottom: 10px !important;
  color: var(--ax-black);
}
.ax-list-row:hover .ax-list-row-title {
  color: var(--ax-red);
}
.ax-list-row-excerpt {
  font-size: 15px !important;
  color: var(--ax-gray-500) !important;
  line-height: 1.55 !important;
  margin-bottom: 12px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ax-list-row-meta {
  font-size: 13px;
}
.ax-list-row-read {
  color: var(--ax-red) !important;
  font-weight: 600;
}
.ax-list-row-date {
  font-size: 13px !important;
  color: var(--ax-gray-500) !important;
  white-space: nowrap;
  text-align: right !important;
  position: static !important;
  padding-top: 4px;
}

/* Category title in breadcrumb is enough; hide large cat header if present */
.ax-cat-header {
  display: none;
}

@media (max-width: 960px) {
  .ax-cat-layout {
    grid-template-columns: 1fr;
  }
  .ax-cat-sidebar {
    display: none;
  }
}
@media (max-width: 640px) {
  .ax-list-row-link {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .ax-list-row-date {
    text-align: left !important;
    order: -1;
  }
}

/* ===== Unified section headers (Latest News / Most Read / Highlighted) ===== */
.ax-ln3-header,
.ax-hl-pair .ax-ln3-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 24px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #ebebeb !important;
}
.ax-ln3-header .ax-cat-head-title,
.ax-ln3-header .ax-section-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}
.ax-ln3-aside .ax-ln3-header {
  margin-bottom: 24px !important;
}
.ax-hl-pair .ax-ln3-body {
  align-items: stretch;
}
.ax-hl-pair .ax-ln3-related .ax-hl-related,
.ax-hl-pair .ax-ln3-aside .ax-hl-related {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ===== CYBERSECURITY CATEGORY LAYOUT ===== */
.ax-cyb-top {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
  margin-bottom: 40px;
}
.ax-cyb-top-list {
  min-width: 0;
}
.ax-cyb-sidebar {
  position: relative;
}
.ax-cyb-grid {
  margin-bottom: 16px;
}
.ax-cyb-grid .ax-grid-4col {
  gap: 28px 24px !important;
}
.ax-cyb-grid .ax-card-image {
  aspect-ratio: 16/10 !important;
  border-radius: 10px !important;
}
.ax-cyb-grid .ax-card-title {
  font-size: 14px !important;
  min-height: 2.6em;
}

/* List rows refined for top section */
.ax-cyb-top .ax-list-row {
  padding: 24px 0 !important;
}
.ax-cyb-top .ax-list-row:first-child {
  padding-top: 0 !important;
}
.ax-cyb-top .ax-list-row-link {
  grid-template-columns: 260px 1fr 110px !important;
  gap: 22px !important;
}
.ax-cyb-top .ax-list-row-title {
  font-size: 20px !important;
}
.ax-cyb-top .ax-list-row-date {
  font-size: 13px !important;
  color: #888 !important;
}

.ax-load-more-wrap {
  margin-top: 40px;
  text-align: center;
}
.ax-load-more-wrap .ax-btn {
  min-width: 160px;
  border-radius: 6px;
}

@media (max-width: 960px) {
  .ax-cyb-top {
    grid-template-columns: 1fr;
  }
  .ax-cyb-sidebar {
    display: none;
  }
}
@media (max-width: 640px) {
  .ax-cyb-top .ax-list-row-link {
    grid-template-columns: 1fr !important;
  }
}
/* Mid-unit ad alignment */
.ax-mid-ad {
  padding: 12px 0 20px;
}
.ax-mid-ad .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ax-mid-ad img,
.ax-mid-ad .advads-ad,
.ax-mid-ad .advads-ad img,
.ax-mid-ad .container > div,
.ax-mid-ad .container > a {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.ax-mid-ad .container > * {
  width: 100%;
  max-width: 100%;
}
/*-------------------------------*/

/* =========================================================
   CLEAN OVERRIDES – header tools, ad, lang, search, newsletter, RTL
   ========================================================= */

/* Header bar: menu left, tools right in one row */
.ax-header-bar {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
}
.ax-nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.ax-header-tools {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

/* Leaderboard ad */
.ax-leaderboard {
  flex: 1 1 auto !important;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 12px 0 12px 24px !important;
}
.ax-leaderboard img,
.ax-leaderboard .advads-ad,
.ax-leaderboard .advads-ad img,
.ax-leaderboard a img {
      max-width: 100% !important;
    max-height: 164px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

/* Language switch */
.ax-lang-switch {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap;
}
.ax-lang-switch a {
  color: #666 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: inline-block;
}
.ax-lang-switch a.active {
  color: #E30613 !important;
  font-weight: 700 !important;
  border-bottom-color: #E30613 !important;
}
.ax-lang-switch a:hover {
  color: #E30613 !important;
  transform: scale(1.08);
}

/* Search in navbar */
.ax-search-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  position: relative;
}
.ax-search-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  border-radius: 50%;
  flex-shrink: 0;
}
.ax-search-btn:hover,
.ax-search-btn[aria-expanded="true"] {
  background: #f5f5f5;
  color: #111;
}
.ax-search-form[hidden] {
  display: none !important;
}
.ax-search-form:not([hidden]) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px;
  margin-left: 6px;
}
.ax-search-input {
  width: 160px;
  padding: 8px 12px;
  border: 1px solid #E8E8E8 !important;
  border-radius: 6px;
  font-size: 13px;
  background: #fff !important;
  color: #111 !important;
}
.ax-search-input:focus {
  border-color: #E30613 !important;
  outline: none;
}
.ax-search-submit {
  color: #E30613;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Newsletter */
.ax-newsletter-section {
  padding: 40px 0 !important;
  background: transparent !important;
  border: none !important;
}
.ax-newsletter-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
  min-height: 200px;
  padding: 40px 48px !important;
  border-radius: 16px !important;
  overflow: hidden;
  border: none !important;
  box-shadow: none !important;
  background:
    linear-gradient(90deg, rgba(20,20,20,0.82) 0%, rgba(20,20,20,0.4) 55%, rgba(20,20,20,0.2) 100%),
    url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1400&q=80') center/cover no-repeat !important;
}
.ax-newsletter-text {
  max-width: 52%;
  position: relative;
  z-index: 1;
}
.ax-newsletter-text h3 {
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  color: rgba(255,255,255,0.92) !important;
  margin-bottom: 10px !important;
  text-transform: uppercase;
}
.ax-newsletter-text p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px !important;
}
.ax-newsletter-form {
  position: relative;
  z-index: 1;
  display: flex !important;
  gap: 10px !important;
  min-width: 300px;
}
.ax-newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px !important;
  border: none !important;
  border-radius: 6px !important;
  background: #fff !important;
}

/* Mid ads */
.ax-mid-ad { padding: 12px 0 20px; }
.ax-mid-ad .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ax-mid-ad img,
.ax-mid-ad .advads-ad img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* Ad cards / sidebars */
.ax-card-ad { display: flex; align-items: stretch; }
.ax-card-ad img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}
.ax-latest-sidebar img,
.ax-cyb-sidebar img {
  width: 100%;
  height: auto;
  display: block;
}

/* RTL */
html[dir="rtl"] body,
body.rtl,
body.lang-ar {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .ax-header-tools {
  margin-left: 0 !important;
  margin-right: auto !important;
  flex-direction: row-reverse !important;
}
html[dir="rtl"] .ax-dropdown { left: auto; right: 0; }
html[dir="rtl"] .ax-card-badge,
html[dir="rtl"] .ax-hl-mini-badge { left: auto; right: 12px; }
html[dir="rtl"] .ax-hero-big-title { unicode-bidi: plaintext; }
html[dir="rtl"] .ax-list-row-date { text-align: left; }

@media (max-width: 960px) {
  .ax-header-date { display: none; }
  .ax-newsletter-box {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 32px 24px !important;
  }
  .ax-newsletter-text { max-width: 100%; }
  .ax-newsletter-form { min-width: 0; width: 100%; }
}

/* ============================================================
   v2.7.0 FINAL HEADER / TOOLS / AD / LANG / SEARCH (do not reorder)
   ============================================================ */
.ax-header .ax-header-bar.container,
.ax-header .container.ax-header-bar,
.ax-header-bar {
  display: flex ;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  min-height: 54px !important;
  height: auto !important;
  gap: 12px !important;
}
.ax-header-bar > .ax-nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: visible !important;
}
.ax-header-bar > .ax-header-tools {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}
.ax-header-tools > * {
  flex: 0 0 auto !important;
}
.ax-header-tools .ax-header-date {
  display: inline-block !important;
  margin: 0 !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  color: #777 !important;
}
.ax-header-tools .ax-lang-switch {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}
.ax-header-tools .ax-lang-switch a {
  color: #666 !important;
  font-weight: 500 !important;
  border-bottom: 2px solid transparent !important;
  padding-bottom: 2px !important;
  text-decoration: none !important;
  transition: color .2s, transform .2s, border-color .2s !important;
}
.ax-header-tools .ax-lang-switch a.active,
.ax-header-tools .ax-lang-switch a.ax-lang-current {
  color: #E30613 !important;
  font-weight: 700 !important;
  border-bottom-color: #E30613 !important;
}
.ax-header-tools .ax-lang-switch a:hover {
  color: #E30613 !important;
  transform: scale(1.08);
}
.ax-header-tools .ax-search-wrap {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
}
.ax-header-tools .ax-search-form[hidden] {
  display: none !important;
}
.ax-header-tools .ax-search-form:not([hidden]) {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: 6px !important;
}
.ax-header-tools .ax-search-input {
  width: 160px !important;
  padding: 8px 12px !important;
  border: 1px solid #E8E8E8 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 13px !important;
}

/* Top brand + ad padding */
.ax-top-brand-inner.container,
.container.ax-top-brand-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 24px !important;
  min-height: 100px !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}
.ax-logo-block {
  flex: 0 0 auto !important;
  max-width: 180px !important;
  padding: 0 !important;
}
.ax-logo-block img {
  max-width: 230px !important;
    max-height: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.ax-leaderboard {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 8px 0 8px 20px !important;
}
.ax-leaderboard img {
  max-width: 100% !important;
  max-height: 90px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 1100px) {
  .ax-header-tools .ax-header-date { display: none !important; }
}
@media (max-width: 900px) {
  .ax-header-tools .ax-lang-switch { display: none !important; }
}

/* Search closed by default – only icon */
.ax-search-wrap .ax-search-form {
  display: none !important;
}
.ax-search-wrap.is-open .ax-search-form {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}
.ax-search-wrap.is-open .ax-search-submit {
  display: none !important; /* hide second magnifier; Enter submits */
}

.ax-footer { background: #0a0a0a; color: rgba(255,255,255,0.85); padding: 56px 0 28px; }
.ax-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ax-footer-logo { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.ax-footer-logo span { color: #E30613; }
.ax-footer-tag { font-size: 13px; opacity: 0.55; margin: 8px 0 20px; }
.ax-footer-follow { font-size: 11px; letter-spacing: 0.12em; margin-bottom: 12px; opacity: 0.7; }
.ax-footer .ax-social { display: flex; gap: 10px; }
.ax-footer .ax-social a {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #111;
  display: flex; align-items: center; justify-content: center;
}
.ax-footer-nav { display: flex; gap: 20px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.ax-footer-nav a { color: #fff; font-weight: 600; font-size: 14px; }
.ax-footer-title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.04em; }
.ax-footer-nl label { display: block; font-size: 13px; margin: 10px 0 6px; }
.ax-footer-nl label span { color: #E30613; }
.ax-footer-nl input {
  width: 100%; max-width: 320px; padding: 10px 12px; border-radius: 4px;
  border: none; margin-bottom: 4px; background: #fff; color: #111;
}
.ax-footer-nl .ax-btn { margin-top: 12px; }
.ax-footer-contact p { font-size: 14px; margin-bottom: 10px; }
.ax-footer-contact i { width: 18px; color: #E30613; margin-right: 6px; }
.ax-footer-legal { margin-top: 18px; display: flex; gap: 16px; }
.ax-footer-legal a { font-size: 13px; opacity: 0.75; }
.ax-footer-copy { text-align: center; padding-top: 22px; font-size: 12px; opacity: 0.5; }
@media (max-width: 900px) {
  .ax-footer-grid { grid-template-columns: 1fr; }
}
/* In Motion – Coming soon */
.ax-video-card-image {
  position: relative;
  overflow: hidden;
}
.ax-coming-soon-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: #E30613;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}
html[dir="rtl"] .ax-coming-soon-badge {
  left: auto;
  right: 12px;
}
/* Arabic nav – slightly smaller type */
html[dir="rtl"] .ax-nav-link,
body.rtl .ax-nav-link,
body.lang-ar .ax-nav-link {
  font-size: 13px !important;
  padding: 17px 11px !important;
}
html[dir="rtl"] .ax-dropdown-link,
body.rtl .ax-dropdown-link,
body.lang-ar .ax-dropdown-link {
  font-size: 12.5px !important;
}
.ax-coming-soon-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.ax-video-soon:hover .ax-coming-soon-hover {
  opacity: 1;
}
.ax-video-soon:hover .ax-play-btn {
  opacity: 0;
}
.ax-hero-big {
  padding: 0px 24px;
}
.ax-hero-big-inner {
  position: relative;
  overflow: hidden;
}
.ax-hero-big-img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
}
.ax-hero-big-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 40px 36px 36px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.1) 100%
  );
  color: #fff;
}
.ax-hero-big-title {
  max-width: 640px;
}
html[dir="rtl"] .ax-hero-big-overlay {
  align-items: flex-end;
  text-align: right;
}
@media (max-width: 768px) {
  .ax-hero-big-img { height: 340px; }
  .ax-hero-big-overlay { padding: 28px 20px 24px; }
}

/* ========== MOBILE (single clean block) ========== */
.ax-m-topbar,
.ax-header-mobile,
.ax-m-drawer {
  display: none;
}
.ax-header-desktop {
  display: flex;
}

@media (max-width: 900px) {
  .ax-header-desktop {
    display: none !important;
  }
  .ax-logo-desktop {
    display: none !important;
  }

  /* Date bar */
  .ax-m-topbar {
    display: block !important;
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    text-align: center;
    font-size: 12px;
    color: #666;
  }

  /* Leaderboard full width */
  .ax-top-brand-inner {
    flex-direction: column !important;
    padding: 10px 0 !important;
    min-height: auto !important;
  }
  .ax-leaderboard {
    width: 100% !important;
    padding: 0 !important;
  }
  .ax-leaderboard img {
    width: 100% !important;
    max-height: 80px !important;
    object-fit: contain !important;
  }

  /* Mobile header: ☰ | logo | EN */
  .ax-header-mobile {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    gap: 12px;
  }
  .ax-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none !important;
    border: none !important;
  }
  .ax-menu-toggle span {
    display: block !important;
    width: 22px;
    height: 2px;
    background: #111 !important;
    border-radius: 1px;
    transition: 0.2s;
  }
  .ax-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .ax-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .ax-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .ax-m-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .ax-m-logo .custom-logo-link {
    display: block !important;
    line-height: 0 !important;
    max-width: 180px !important;
  }
  .ax-m-logo img,
  .ax-m-logo .custom-logo {
    width: auto !important;
    max-width: 180px !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
  }

  .ax-m-lang {
    position: relative;
  }
  .ax-m-lang-btn {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
  }
  .ax-m-lang-drop {
    position: absolute;
    right: 0;
    top: 110%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 200;
    padding: 6px 0;
  }
  .ax-m-lang-drop[hidden] {
    display: none !important;
  }
  .ax-m-lang-drop a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
  }
  .ax-m-lang-drop a.active {
    color: #e30613;
    font-weight: 700;
  }

  /* Drawer */
  .ax-m-drawer {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    overflow-y: auto;
  }
  .ax-m-drawer[hidden] {
    display: none !important;
  }
  .ax-m-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
  }
  .ax-m-drawer-logo img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain !important;
  }
  .ax-m-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e30613;
    color: #fff;
    font-size: 22px;
    border: none;
    line-height: 1;
  }
  .ax-m-menu {
    list-style: none;
    margin: 0;
    padding: 0 20px;
  }
  .ax-m-menu > li {
    border-bottom: 1px solid #f0f0f0;
  }
  .ax-m-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
  }
  .ax-m-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 12px;
    display: none;
  }
  .ax-m-menu > li.is-open > .sub-menu {
    display: block;
  }
  .ax-m-menu .sub-menu a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: #555;
  }

  /* Ads: only leaderboard + mid-unit */
  .ax-card-ad,
  .ax-latest-sidebar,
  .ax-cyb-sidebar {
    display: none !important;
  }
  .ax-mid-ad img {
    width: 100% !important;
    height: auto !important;
  }

  /* Grids */
  .ax-grid-4col,
  .ax-grid-3col,
  .ax-grid-2col,
  .ax-ln3,
  .ax-ln3-body,
  .ax-hl3,
  .ax-cat-cards-pair,
  .ax-cyb-top,
  .ax-latest-layout,
  .ax-footer-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer center */
  .ax-footer-grid {
    text-align: center !important;
    gap: 28px !important;
  }
  .ax-footer-brand,
  .ax-footer-mid,
  .ax-footer-contact,
  .ax-footer-nl {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .ax-footer-nav {
    flex-direction: column;
    align-items: center;
    border: none;
    gap: 12px;
  }
  .ax-footer .ax-social {
    justify-content: center;
  }

  /* Hero */
  .ax-hero-big {
    padding: 8px 0 0 !important;
  }
  .ax-hero-big .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .ax-hero-big-img {
    height: 300px !important;
    min-height: 300px !important;
  }
  .ax-hero-big-overlay {
    padding: 24px 20px 20px !important;
  }
}
/* ===== MEGA MENU — fixed to 1320px container, reference layout ===== */
@media (min-width: 901px) {
  .ax-header {
    position: sticky;
    top: 0;
    z-index: 200;
  }

  /* Critical: every mega shares the same anchor (header), not the <li> */
  .ax-nav-item.has-mega {
    position: static;
  }
  .ax-header-bar,
  .ax-nav,
  .ax-nav-list {
    position: static;
  }

  .ax-mega {
    position: absolute;
    top: 85%;
    left: 50%;
    right: auto;
    /* Center on viewport; width = site container */
    width: var(--ax-container);          /* 1320px */
    max-width: calc(100vw - 48px);
    margin: 0;
    padding: 24px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 250;
  }

  .ax-nav-item.has-mega:hover > .ax-mega,
  .ax-nav-item.has-mega:focus-within > .ax-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
  }

  .ax-mega-inner {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) 245px;
    gap: 24px;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* LEFT — categories (reference style) */
  .ax-mega-col-cats {
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 6px 0;
    overflow: hidden;
  }
  .ax-mega-cats,
  .ax-mega-cats-all {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .ax-mega-cat-link {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .ax-mega-cat-link:hover {
    background: #fff;
    color: #111;
  }
  .ax-mega-cat-item.is-active .ax-mega-cat-link,
  .ax-mega-cat-link.is-active {
    background: #fff;
    color: var(--ax-red);
    border-left-color: var(--ax-red);
    font-weight: 700;
  }

  /* CENTER — 3 cards */
  .ax-mega-col-posts {
    min-width: 0;
  }
  .ax-mega-posts-panel {
    display: none;
  }
  .ax-mega-posts-panel.is-active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .ax-mega-post a {
    display: block;
    color: inherit;
    text-decoration: none !important;
  }
  .ax-mega-post-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
    margin-bottom: 10px;
  }
  .ax-mega-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
  }
  .ax-mega-post:hover .ax-mega-post-img img {
    transform: scale(1.03);
  }
  .ax-mega-post-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--ax-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
  }
  .ax-mega-post-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ax-mega-post:hover .ax-mega-post-title {
    color: var(--ax-red);
  }
  .ax-mega-empty {
    grid-column: 1 / -1;
    color: #888;
    font-size: 13px;
  }

  /* RIGHT — ad */
  .ax-mega-col-ad img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }
}

/* RTL: same centered panel (do not flip left/right) */
html[dir="rtl"] .ax-mega,
body.rtl .ax-mega,
body.lang-ar .ax-mega {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(8px);
}
html[dir="rtl"] .ax-nav-item.has-mega:hover > .ax-mega,
body.rtl .ax-nav-item.has-mega:hover > .ax-mega,
body.lang-ar .ax-nav-item.has-mega:hover > .ax-mega {
  transform: translateX(-50%) translateY(10px);
}

@media (max-width: 900px) {
  .ax-mega {
    display: none !important;
  }
}