/*
Theme Name: AirlineFeed
Theme URI: https://airlinefeed.com
Author: AirlineFeed
Author URI: https://airlinefeed.com
Description: A modern, professional blogging theme designed for travel, baggage, airports and airline content. Clean layout, fully responsive, SEO-friendly and built for category-focused blogs.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: airlinefeed
Tags: blog, travel, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, custom-logo, custom-colors, wide-blocks
*/

/* ========== CSS VARIABLES ========== */
:root {
  --af-primary: #0c4a7a;
  --af-primary-dark: #083352;
  --af-primary-light: #1768b0;
  --af-accent: #d4a017;
  --af-accent-light: #f0c14a;
  --af-text: #0f172a;
  --af-text-muted: #64748b;
  --af-bg: #ffffff;
  --af-bg-soft: #f8fafc;
  --af-bg-muted: #f1f5f9;
  --af-bg-dark: #0a1628;
  --af-border: #e2e8f0;
  --af-border-light: #f1f5f9;
  --af-radius: 10px;
  --af-radius-lg: 16px;
  --af-radius-xl: 24px;
  --af-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --af-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 4px rgba(15, 23, 42, 0.04);
  --af-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
  --af-shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.12);
  --af-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --af-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --af-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ========== RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--af-font);
  color: var(--af-text);
  background: var(--af-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
}

/* ========== LAYOUT ========== */
.af-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.af-container-wide {
  max-width: 1280px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--af-text);
  letter-spacing: -0.02em;
}

.af-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--af-primary);
  margin-bottom: 14px;
}

.af-section-title {
  font-family: var(--af-font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.4rem);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.af-section-desc {
  color: var(--af-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 520px;
}

/* ========== BUTTONS ========== */
.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 100px;
  transition: all var(--af-transition);
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
}

.af-btn-primary {
  background: var(--af-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(12, 74, 122, 0.25);
}
.af-btn-primary:hover {
  background: var(--af-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(12, 74, 122, 0.35);
  color: #fff;
}

.af-btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.af-btn-outline:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.af-btn-outline-dark {
  border: 1.5px solid var(--af-primary);
  color: var(--af-primary);
  background: transparent;
}
.af-btn-outline-dark:hover {
  background: var(--af-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(12, 74, 122, 0.25);
}

/* ========== HEADER ========== */
.af-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: 0 1px 0 rgba(15, 76, 129, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  /* prevent any accidental upward shift */
  transform: none !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* WordPress admin bar support */
.admin-bar .af-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .af-header {
    top: 46px;
  }
}

.af-header.scrolled {
  border-bottom-color: rgba(15, 76, 129, 0.12);
  box-shadow: 0 2px 16px rgba(15, 76, 129, 0.08);
}

.af-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.af-desktop-nav {
  display: flex;
  align-items: center;
}

/* Logo */
.af-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--af-text);
  transition: opacity 0.2s ease;
}
.af-logo:hover {
  opacity: 0.85;
}

.af-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #0f4c81, #1a6bb5);
  color: #fff;
  border-radius: 9px;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.25);
}

.af-logo-text {
  font-weight: 700;
}
.af-logo-text span {
  color: var(--af-primary);
  font-weight: 700;
}

/* Custom logo image support */
.af-logo img,
.custom-logo {
  max-height: 36px;
  width: auto;
}

/* Navigation */
.af-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.af-nav a,
.af-nav .menu-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #3d4a5c;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.af-nav a:hover,
.af-nav .menu-item > a:hover {
  color: var(--af-primary);
  background: rgba(15, 76, 129, 0.05);
}

.af-nav a.current-menu-item,
.af-nav .current-menu-item > a,
.af-nav .current_page_item > a {
  color: var(--af-primary);
  font-weight: 600;
}

/* Active underline indicator */
.af-nav a.current-menu-item::after,
.af-nav .current-menu-item > a::after,
.af-nav .current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--af-primary);
  border-radius: 2px;
}

/* Header actions */
.af-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.af-search-toggle,
.af-menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #3d4a5c;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.af-search-toggle:hover,
.af-menu-toggle:hover {
  background: rgba(15, 76, 129, 0.06);
  color: var(--af-primary);
}

.af-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}
.af-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.af-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.af-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.af-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.af-mobile-nav {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 24px 28px;
  border-bottom: 1px solid var(--af-border);
  box-shadow: 0 12px 32px rgba(15, 76, 129, 0.1);
  flex-direction: column;
  gap: 2px;
}
.af-mobile-nav.open {
  display: flex;
}
.af-mobile-nav a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--af-text);
  padding: 12px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.af-mobile-nav a:hover {
  background: rgba(15, 76, 129, 0.05);
  color: var(--af-primary);
}

/* Search Panel (slides down under header) */
.af-search-panel {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--af-border);
  box-shadow: 0 12px 32px rgba(15, 76, 129, 0.1);
  padding: 20px 0;
  z-index: 999;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.af-search-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.af-search-panel .af-search-form {
  max-width: 640px;
  margin: 0 auto;
}
.af-search-panel .af-search-form input[type="search"] {
  border: 1.5px solid var(--af-border);
  background: var(--af-bg-soft, #f7f9fc);
}
.af-search-panel .af-search-form input[type="search"]:focus {
  border-color: var(--af-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}
.af-search-toggle.active {
  background: rgba(15, 76, 129, 0.08);
  color: var(--af-primary);
}

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ========== HERO ========== */
.af-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 90px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

/* Background Image */
.af-hero-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: af-hero-kenburns 28s ease-in-out infinite alternate;
}

@keyframes af-hero-kenburns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* Dark Overlay */
.af-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 18, 35, 0.5) 0%, rgba(7, 18, 35, 0.7) 45%, rgba(7, 18, 35, 0.88) 100%),
    linear-gradient(90deg, rgba(12, 58, 102, 0.3) 0%, transparent 50%, rgba(12, 58, 102, 0.2) 100%);
  pointer-events: none;
}

/* Decorative Details */
.af-hero-details {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.af-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
}

.af-hero-glow-1 {
  width: 420px;
  height: 420px;
  background: rgba(212, 160, 23, 0.4);
  top: -12%;
  right: -6%;
}

.af-hero-glow-2 {
  width: 380px;
  height: 380px;
  background: rgba(23, 104, 176, 0.45);
  bottom: 0%;
  left: -10%;
}

.af-hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

/* Content */
.af-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.af-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.af-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--af-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.7);
  animation: af-pulse 2s ease-in-out infinite;
}

@keyframes af-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.65; transform: scale(0.85); }
}

.af-hero-title {
  font-family: var(--af-font-display);
  font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 22px;
  color: #fff;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.af-hero-title span {
  color: var(--af-accent-light);
  display: inline-block;
}

.af-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 530px;
  margin: 0 auto 40px;
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0,0,0,0.2);
}

.af-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 52px;
}

/* Hero buttons */
.af-hero .af-btn-primary {
  background: #fff;
  color: var(--af-primary-dark);
  padding: 15px 30px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  gap: 8px;
}
.af-hero .af-btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  color: var(--af-primary-dark);
}
.af-hero .af-btn-primary svg {
  transition: transform 0.2s ease;
}
.af-hero .af-btn-primary:hover svg {
  transform: translateX(3px);
}

.af-hero .af-btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 14px 28px;
  font-size: 14.5px;
  font-weight: 500;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.af-hero .af-btn-outline:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  transform: translateY(-2px);
}

/* Stats — glass card */
.af-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 18px 32px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: fit-content;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.af-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 68px;
}

.af-stat + .af-stat::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.18);
}

.af-stat strong {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.af-stat span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  text-transform: uppercase;
}

/* Scroll hint */
.af-hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  z-index: 2;
}

.af-hero-scroll span {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.af-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
  animation: af-scroll-anim 1.8s ease-in-out infinite;
}

@keyframes af-scroll-anim {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1) translateY(8px); }
}

/* ========== CATEGORIES SECTION ========== */
.af-categories {
  padding: 110px 0;
  background: var(--af-bg-soft);
}

.af-section-header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 56px;
}

.af-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.af-category-card {
  background: #fff;
  border-radius: var(--af-radius-lg);
  padding: 30px 26px;
  box-shadow: var(--af-shadow-sm);
  transition: all var(--af-transition);
  border: 1px solid var(--af-border-light);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.af-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}
.af-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--af-shadow-lg);
  border-color: transparent;
}
.af-cat-baggage:hover::before { background: linear-gradient(90deg, #0c4a7a, #1768b0); }
.af-cat-airports:hover::before { background: linear-gradient(90deg, #166534, #22c55e); }
.af-cat-airlines:hover::before { background: linear-gradient(90deg, #9a3412, #ea580c); }
.af-cat-travel:hover::before { background: linear-gradient(90deg, #5b21b6, #8b5cf6); }

.af-category-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #fff;
  font-size: 22px;
}

.af-cat-baggage .af-category-icon { background: linear-gradient(145deg, #0c4a7a, #1768b0); }
.af-cat-airports .af-category-icon { background: linear-gradient(145deg, #166534, #22c55e); }
.af-cat-airlines .af-category-icon { background: linear-gradient(145deg, #9a3412, #ea580c); }
.af-cat-travel .af-category-icon { background: linear-gradient(145deg, #5b21b6, #8b5cf6); }

.af-category-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.af-category-card p {
  font-size: 0.9rem;
  color: var(--af-text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 18px;
}

.af-category-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--af-primary);
  letter-spacing: 0.02em;
}

/* ========== POSTS GRID ========== */
.af-posts-section {
  padding: 110px 0;
  background: var(--af-bg);
}

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

.af-post-card {
  background: #fff;
  border-radius: var(--af-radius-lg);
  overflow: hidden;
  box-shadow: var(--af-shadow-sm);
  transition: all var(--af-transition);
  border: 1px solid var(--af-border-light);
  display: flex;
  flex-direction: column;
}
.af-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--af-shadow-lg);
  border-color: transparent;
}

.af-post-thumb {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0c4a7a, #1768b0);
}
.af-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.af-post-card:hover .af-post-thumb img {
  transform: scale(1.06);
}

.af-post-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.96);
  color: var(--af-text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 100px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.af-post-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.af-post-meta {
  font-size: 12.5px;
  color: var(--af-text-muted);
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  font-weight: 500;
}

.af-post-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.af-post-title a:hover {
  color: var(--af-primary);
}

.af-post-excerpt {
  font-size: 0.9rem;
  color: var(--af-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.af-post-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--af-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.af-post-link:hover {
  gap: 8px;
}

.af-section-cta {
  text-align: center;
  margin-top: 52px;
}

/* ========== NEWSLETTER ========== */
.af-newsletter {
  padding: 88px 0;
  background: linear-gradient(145deg, #0a1628 0%, #0c3a66 50%, #0c4a7a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.af-newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,160,23,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.af-newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.af-newsletter-content h2 {
  font-family: var(--af-font-display);
  font-size: 1.85rem;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: -0.02em;
}

.af-newsletter-content p {
  color: rgba(255,255,255,0.75);
  max-width: 360px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.af-newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.af-newsletter-form input[type="email"] {
  padding: 14px 22px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14.5px;
  min-width: 280px;
  outline: none;
  transition: all 0.2s ease;
}
.af-newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}
.af-newsletter-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
}

.af-newsletter-form .af-btn-primary {
  background: var(--af-accent);
  color: #0a1628;
  box-shadow: 0 2px 12px rgba(212,160,23,0.3);
}
.af-newsletter-form .af-btn-primary:hover {
  background: var(--af-accent-light);
  box-shadow: 0 6px 20px rgba(212,160,23,0.4);
  color: #0a1628;
}

/* ========== ABOUT ========== */
.af-about {
  padding: 110px 0;
  background: var(--af-bg-soft);
}

.af-about-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.af-about-text p {
  color: var(--af-text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.af-about-text .af-btn {
  margin-top: 8px;
}

.af-about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.af-about-card {
  background: #fff;
  border-radius: var(--af-radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--af-shadow-sm);
  border: 1px solid var(--af-border-light);
}

.af-about-stat-big {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--af-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.af-about-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--af-text-muted);
  letter-spacing: 0.02em;
}

/* ========== SINGLE POST ========== */
.af-single-header {
  padding: 140px 0 56px;
  background: var(--af-bg-soft);
  text-align: center;
}

.af-single-header .af-post-category {
  position: static;
  display: inline-block;
  margin-bottom: 18px;
  background: var(--af-primary);
  color: #fff;
  box-shadow: none;
}

.af-single-title {
  font-family: var(--af-font-display);
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  max-width: 1040px;
  margin: 0 auto 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.af-single-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--af-text-muted);
  font-size: 13.5px;
  font-weight: 500;
}

.af-single-content {
  padding: 56px 0 80px;
}

.af-single-content .af-container {
  max-width: 1040px;
}

.af-entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--af-text);
}

.af-entry-content h2,
.af-entry-content h3,
.af-entry-content h4 {
  margin: 2em 0 0.75em;
  letter-spacing: -0.02em;
}

.af-entry-content p {
  margin-bottom: 1.4em;
}

.af-entry-content ul,
.af-entry-content ol {
  margin: 0 0 1.4em 1.5em;
  list-style: disc;
}

.af-entry-content ol {
  list-style: decimal;
}

.af-entry-content a {
  color: var(--af-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.af-entry-content img {
  border-radius: var(--af-radius-lg);
  margin: 2em 0;
}

.af-entry-content blockquote {
  border-left: 3px solid var(--af-primary);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--af-bg-soft);
  border-radius: 0 var(--af-radius) var(--af-radius) 0;
  font-style: italic;
  color: var(--af-text-muted);
}

/* ========== ARCHIVE / CATEGORY ========== */
.af-archive-header {
  padding: 140px 0 52px;
  background: linear-gradient(155deg, #0a1628 0%, #0c3a66 55%, #0c4a7a 100%);
  color: #fff;
  text-align: center;
}

.af-archive-header h1 {
  font-family: var(--af-font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.af-archive-header p {
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.af-archive-posts {
  padding: 56px 0 100px;
}

/* ========== PAGINATION ========== */
.af-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.af-pagination a,
.af-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  background: #fff;
  border: 1px solid var(--af-border);
  color: var(--af-text);
  transition: all var(--af-transition);
}

.af-pagination a:hover {
  background: var(--af-primary);
  color: #fff;
  border-color: var(--af-primary);
}

.af-pagination .current {
  background: var(--af-primary);
  color: #fff;
  border-color: var(--af-primary);
}

/* ========== COMMENTS ========== */
.af-comments {
  padding: 40px 0 80px;
  border-top: 1px solid var(--af-border);
}

.af-comments h3 {
  font-size: 1.35rem;
  margin-bottom: 24px;
}

/* ========== FOOTER ========== */
.af-footer {
  background: var(--af-bg-dark);
  color: #fff;
  padding: 72px 0 0;
}

.af-footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.af-footer-brand .af-logo {
  color: #fff;
  margin-bottom: 16px;
}
.af-footer-brand .af-logo-icon {
  background: linear-gradient(135deg, #1768b0, #0c4a7a);
}

.af-footer-brand p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  line-height: 1.65;
}

.af-footer-col h4 {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

.af-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.af-footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--af-transition);
}
.af-footer-col a:hover {
  color: #fff;
}

.af-footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
}

/* ========== SEARCH FORM ========== */
.af-search-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.af-search-form input[type="search"] {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1px solid var(--af-border);
  font-size: 15px;
  outline: none;
}

.af-search-form button {
  padding: 14px 24px;
  border-radius: 50px;
  background: var(--af-primary);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* ========== 404 ========== */
.af-404 {
  padding: 160px 0 100px;
  text-align: center;
}

.af-404 h1 {
  font-family: var(--af-font-display);
  font-size: 4rem;
  color: var(--af-primary);
  margin-bottom: 16px;
}

.af-404 p {
  color: var(--af-text-muted);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .af-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .af-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .af-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .af-nav {
    display: none;
  }
  .af-menu-toggle {
    display: flex;
  }

  .af-hero {
    min-height: auto;
    padding: 130px 0 100px;
    text-align: center;
  }
  .af-hero-stats {
    gap: 28px;
    padding: 16px 20px;
  }
  .af-stat + .af-stat::before {
    display: none;
  }
  .af-stat strong {
    font-size: 1.45rem;
  }
  .af-hero-scroll {
    display: none;
  }

  .af-category-grid,
  .af-posts-grid {
    grid-template-columns: 1fr;
  }

  .af-about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .af-newsletter-inner {
    flex-direction: column;
    text-align: center;
  }
  .af-newsletter-content p {
    margin: 0 auto;
  }
  .af-newsletter-form {
    justify-content: center;
    width: 100%;
  }
  .af-newsletter-form input[type="email"] {
    min-width: 100%;
  }

  .af-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .af-categories,
  .af-posts-section,
  .af-about {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .af-hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .af-hero .af-btn-primary,
  .af-hero .af-btn-outline {
    width: 100%;
    max-width: 280px;
  }
  .af-hero-stats {
    gap: 20px;
    width: 100%;
    max-width: 300px;
  }
  .af-btn {
    width: 100%;
  }
}
