/* ============================================
   TheAIPublisher.in — Light Editorial Theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-alt: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e1;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #94a3b8;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: #eff6ff;
  --color-accent-border: #dbeafe;
  --bg-pattern: radial-gradient(#e2e8f0 1px, transparent 1px);
  --bg-pattern-size: 24px 24px;
  --cat-ai: #2563eb; --cat-ai-bg: #eff6ff;
  --cat-seo: #16a34a; --cat-seo-bg: #f0fdf4;
  --cat-social: #9333ea; --cat-social-bg: #faf5ff;
  --cat-auto: #ea580c; --cat-auto-bg: #fff7ed;
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Bricolage Grotesque', sans-serif;
  --font-hero: clamp(3.5rem, 8vw, 6rem);
  --font-h1: clamp(2.75rem, 6vw, 4.5rem);
  --font-h2: clamp(2rem, 4vw, 3rem);
  --font-h3: clamp(1.5rem, 3vw, 2rem);
  --font-body-size: 1.2rem; /* Increased from 1.125rem */
  --font-sm: 1.05rem; /* Increased from 1rem */
  --font-xs: 0.95rem; /* Increased from 0.9rem */
  --max-width: 1400px; /* Increased from 1320px */
  --content-width: 800px; /* Increased from 720px */
  --section-gap: 3.5rem; /* Reduced from 6rem */
  --card-radius: 16px; /* Increased from 12px */
  --btn-radius: 12px; /* Increased from 8px */
  --header-h: 72px; /* Increased from 64px */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

/* Reset */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font-body);font-size:var(--font-body-size);line-height:1.7;color:var(--color-text);background:var(--color-bg);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,svg{display:block;max-width:100%}
a{color:var(--color-accent);text-decoration:none;transition:color var(--transition-fast)}
a:hover{color:var(--color-accent-hover)}
ul,ol{list-style:none}
button,input,textarea,select{font-family:inherit;font-size:inherit;color:inherit;border:none;outline:none;background:none}
button{cursor:pointer}

/* Utility */
.container{width:100%;max-width:var(--max-width);margin:0 auto;padding:0 24px}
.container--narrow{max-width:var(--content-width)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.text-gradient{background:linear-gradient(135deg,#2563eb,#7c3aed);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

/* Typography */
h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);font-weight:700;line-height:1.2;color:var(--color-text)}
h1{font-size:var(--font-h1)}
h2{font-size:var(--font-h2)}
h3{font-size:var(--font-h3);font-weight:600}
h4{font-size:1.1rem;font-weight:600}
p{margin-bottom:1rem}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-ui);font-weight:600;border-radius:var(--btn-radius);transition:all var(--transition-fast);white-space:nowrap}
.btn:active{transform:scale(0.98)}
.btn--primary,.btn-primary{background:var(--color-accent);color:#fff;padding:12px 24px;font-size:var(--font-sm)}
.btn--primary:hover,.btn-primary:hover{background:var(--color-accent-hover);color:#fff}
.btn--outline,.btn-outline{background:transparent;border:2px solid var(--color-accent);color:var(--color-accent);padding:10px 22px;font-size:var(--font-sm)}
.btn--outline:hover,.btn-outline:hover{background:var(--color-accent-light)}
.btn--sm,.btn-sm{padding:8px 16px;font-size:14px}
.btn--ghost{color:var(--color-text-muted)}
.btn--ghost:hover{color:var(--color-accent)}

/* Category Badges */
.post-card-category,.badge{display:inline-block;font-family:var(--font-ui);font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;text-transform:uppercase;letter-spacing:0.5px}
.badge-ai,.post-card[data-category="ai-tools"] .post-card-category{background:var(--cat-ai-bg);color:#1d4ed8}
.badge-seo,.post-card[data-category="seo"] .post-card-category{background:var(--cat-seo-bg);color:#15803d}
.badge-social,.post-card[data-category="social-media"] .post-card-category{background:var(--cat-social-bg);color:#7e22ce}
.badge-auto,.post-card[data-category="automation"] .post-card-category{background:var(--cat-auto-bg);color:#c2410c}
.post-card-category{background:var(--cat-ai-bg);color:#1d4ed8}

/* ===== HEADER ===== */
.header{position:fixed;top:0;left:0;right:0;z-index:1000;height:var(--header-h);display:flex;align-items:center;background:#fff;border-bottom:1px solid var(--color-border);transition:box-shadow var(--transition-base)}
.header.scrolled{box-shadow:0 1px 12px rgba(0,0,0,0.06)}
.header .container{display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:10px;color:var(--color-text)}
.logo:hover{color:var(--color-text)}
.logo img{height:48px;width:auto;object-fit:contain}
.logo span{font-family:var(--font-heading);font-size:1.6rem;font-weight:800;color:var(--color-text);white-space:nowrap;letter-spacing:-0.5px}
.nav-links{display:flex;align-items:center;gap:32px}
.nav-links a{font-family:var(--font-ui);font-size:1.05rem;font-weight:600;color:var(--color-text-muted);position:relative;padding:8px 0}
.nav-links a::after{content:'';position:absolute;bottom:-2px;left:0;width:0;height:2px;background:var(--color-accent);transition:width var(--transition-base)}
.nav-links a:hover{color:var(--color-text)}
.nav-links a:hover::after{width:100%}
.nav-links a.active{color:var(--color-accent)}
.nav-links a.active::after{width:100%;background:var(--color-accent)}
.nav-cta{margin-left:8px;border-radius:999px;padding:8px 20px}

/* Hamburger */
.hamburger{display:none;flex-direction:column;gap:5px;padding:8px;z-index:1001}
.hamburger span{display:block;width:22px;height:2px;background:var(--color-text);transition:all var(--transition-base);border-radius:2px}
.hamburger.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.hamburger.active span:nth-child(2){opacity:0}
.hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* Mobile Nav */
.mobile-nav{display:flex;position:fixed;top:0;left:0;right:0;background:#fff;flex-direction:column;padding:80px 24px 32px;gap:8px;transform:translateY(-100%);transition:transform 0.4s ease, visibility 0.4s;z-index:999;box-shadow:var(--shadow-lg);pointer-events:none;visibility:hidden}
.mobile-nav.open{transform:translateY(0);pointer-events:auto;visibility:visible}
.mobile-nav a{font-family:var(--font-ui);font-size:1.1rem;font-weight:500;color:var(--color-text-muted);padding:12px 0;border-bottom:1px solid var(--color-border)}
.mobile-nav a:hover{color:var(--color-accent)}
.mobile-nav .btn{margin-top:16px;text-align:center;justify-content:center;border-radius:var(--btn-radius)}
.mobile-overlay{display:block;position:fixed;inset:0;background:rgba(0,0,0,0.3);z-index:998;opacity:0;transition:opacity 0.4s ease, visibility 0.4s;pointer-events:none;visibility:hidden}
.mobile-overlay.show{opacity:1;pointer-events:auto;visibility:visible}

@media(max-width:768px){
  .nav-links,.nav-cta{display:none}
  .hamburger{display:flex}
}

/* ===== FOOTER ===== */
.footer{background:#0f172a;border-top:3px solid var(--color-accent);padding:40px 0 0;margin-top:2rem;color:#e2e8f0}
.footer a{color:#cbd5e1}
.footer a:hover{color:var(--color-accent)}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.5fr;gap:48px}
.footer-brand .logo img{height:44px;filter:brightness(0) invert(1)}
.footer-brand .logo span{color:#fff}
.footer-brand p{color:#94a3b8;font-size:var(--font-sm);margin-top:12px;line-height:1.7;font-family:var(--font-body)}
.footer h4{font-family:var(--font-ui);font-size:var(--font-xs);text-transform:uppercase;letter-spacing:1.5px;color:#94a3b8;margin-bottom:20px}
.footer-links a{display:block;font-family:var(--font-ui);font-size:var(--font-sm);padding:6px 0;transition:color var(--transition-fast),padding-left var(--transition-fast)}
.footer-links a:hover{padding-left:6px;color:#fff}
.footer-newsletter p{color:#94a3b8;font-size:var(--font-sm);margin-bottom:16px;font-family:var(--font-body)}
.footer-newsletter-form{display:flex;gap:8px}
.footer-newsletter-form input{flex:1;padding:10px 16px;background:#1e293b;border:1px solid #334155;border-radius:var(--btn-radius);color:#fff;font-size:var(--font-sm);font-family:var(--font-ui)}
.footer-newsletter-form input::placeholder{color:#64748b}
.footer-newsletter-form input:focus{border-color:var(--color-accent)}
.footer-social{display:flex;gap:16px;margin-top:24px}
.footer-social a{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #334155;color:#94a3b8;transition:all var(--transition-fast)}
.footer-social a:hover{border-color:var(--color-accent);color:var(--color-accent);background: rgba(37,99,235,0.1);}
.footer-social a svg{width:18px;height:18px}
.footer-bottom{margin-top:48px;padding:20px 0;background:#1e293b;font-family:var(--font-ui);font-size:var(--font-xs);color:#64748b;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.footer-bottom .container{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.footer-bottom a{color:#64748b}
.footer-bottom a:hover{color:var(--color-accent)}
.footer-bottom-links{display:flex;gap:20px}

@media(max-width:768px){
  .footer-grid{grid-template-columns:1fr;gap:32px}
  .footer-bottom .container{flex-direction:column;text-align:center}
}

/* ===== HERO ===== */
.hero{min-height:80vh;display:flex;align-items:center;padding:120px 24px 60px;position:relative;overflow:hidden;background-image:radial-gradient(var(--color-border) 1px,transparent 1px);background-size:24px 24px}
.hero .container{display:grid;grid-template-columns:1.1fr 0.9fr;gap:48px;align-items:center}
.hero-content{max-width:580px}
.hero-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 16px;border-radius:999px;background:var(--color-accent-light);border:1px solid var(--color-accent-border);font-family:var(--font-ui);font-size:var(--font-xs);font-weight:600;color:var(--color-accent);margin-bottom:24px}
.hero-badge svg{width:14px;height:14px}
.hero h1{font-size:var(--font-hero);font-weight:800;margin-bottom:24px;line-height:1.05;letter-spacing:-2px}
.hero p{font-family:var(--font-body);font-size:1.25rem;color:var(--color-text-muted);max-width:540px;margin-bottom:40px;line-height:1.8}
.hero-ctas{display:flex;gap:16px;flex-wrap:wrap}

/* Hero Graphic */
.hero-graphic{position:relative;height:380px}
.hero-float-card{position:absolute;background:#fff;border-radius:var(--card-radius);padding:16px 20px;box-shadow:var(--shadow-md);border:1px solid var(--color-border);display:flex;align-items:center;gap:12px;font-family:var(--font-ui);font-size:var(--font-sm);font-weight:600;animation:float 4s ease-in-out infinite}
.hero-float-card svg{width:24px;height:24px;color:var(--color-accent);flex-shrink:0}
.hero-float-card:nth-child(1){top:20px;right:10%;animation-delay:0s}
.hero-float-card:nth-child(2){top:45%;left:5%;animation-delay:1.3s}
.hero-float-card:nth-child(3){bottom:20px;right:15%;animation-delay:2.6s}
.hero-float-card .metric-value{color:var(--color-accent);font-size:1.1rem;font-weight:700}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}

/* Trusted Strip */
.trusted-strip{padding:32px 0;border-top:1px solid var(--color-border);border-bottom:1px solid var(--color-border)}
.trusted-strip .container{display:flex;align-items:center;justify-content:center;gap:40px;flex-wrap:wrap}
.trusted-strip span{font-family:var(--font-ui);font-size:16px;color:var(--color-text-light);font-weight:500;letter-spacing:0.5px}

@media(max-width:768px){
  .hero .container{grid-template-columns:1fr}
  .hero-graphic{display:none}
  .hero{min-height:auto;padding:120px 24px 48px}
}

/* ===== SECTIONS ===== */
.section{padding:var(--section-gap) 0}
.section-header{margin-bottom:24px}
.section-header h2{border-left:4px solid var(--color-accent);padding-left:12px}
.section-header p{color:var(--color-text-muted);margin-top:8px;padding-left:16px}

/* ===== POST CARDS ===== */
.posts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:24px}
.post-card{background:#fff;border:1px solid var(--color-border);border-radius:var(--card-radius);overflow:hidden;transition:all 0.2s ease;position:relative;border-left:3px solid var(--cat-ai)}
.post-card[data-category="seo"]{border-left-color:var(--cat-seo)}
.post-card[data-category="social-media"]{border-left-color:var(--cat-social)}
.post-card[data-category="automation"]{border-left-color:var(--cat-auto)}
.post-card:hover{transform:translateY(-5px);box-shadow:0 20px 25px -5px rgba(0,0,0,0.1),0 10px 10px -5px rgba(0,0,0,0.04);border-color:var(--color-accent)}
.post-card-thumb{height:200px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}
.post-card-thumb{background:linear-gradient(135deg,#dbeafe,#bfdbfe)}
.post-card[data-category="seo"] .post-card-thumb{background:linear-gradient(135deg,#dcfce7,#bbf7d0)}
.post-card[data-category="social-media"] .post-card-thumb{background:linear-gradient(135deg,#f3e8ff,#e9d5ff)}
.post-card[data-category="automation"] .post-card-thumb{background:linear-gradient(135deg,#ffedd5,#fed7aa)}
.post-card-thumb-icon{position:absolute;width:80px;height:80px;opacity:0.15;color:var(--cat-ai)}
.post-card[data-category="seo"] .post-card-thumb-icon{color:var(--cat-seo)}
.post-card[data-category="social-media"] .post-card-thumb-icon{color:var(--cat-social)}
.post-card[data-category="automation"] .post-card-thumb-icon{color:var(--cat-auto)}
.post-card-body{padding:24px}
.post-card-title{font-family:var(--font-heading);font-size:1.25rem;font-weight:600;color:var(--color-text);margin-bottom:8px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-card-title a{color:inherit}
.post-card-title a:hover{color:var(--color-accent)}
.post-card-excerpt{font-family:var(--font-body);font-size:1rem;color:var(--color-text-muted);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:16px;line-height:1.6}
.post-card-meta{display:flex;align-items:center;gap:12px;font-family:var(--font-ui);font-size:var(--font-xs);color:var(--color-text-light)}
.post-card-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--color-accent),#7c3aed);display:flex;align-items:center;justify-content:center;font-family:var(--font-ui);font-size:var(--font-xs);font-weight:700;color:#fff;flex-shrink:0}
.post-card-meta-text span{display:block}
.post-card-meta-text .author-name{color:var(--color-text);font-weight:600}
.post-card-meta-right{margin-left:auto;text-align:right}

/* Featured Ribbon */
.ribbon{position:absolute;top:16px;right:-8px;background:var(--color-accent);color:#fff;font-family:var(--font-ui);font-size:13px;font-weight:700;padding:4px 14px 4px 10px;text-transform:uppercase;letter-spacing:0.5px;z-index:2}
.ribbon::after{content:'';position:absolute;bottom:-8px;right:0;border:4px solid transparent;border-top-color:var(--color-accent-hover);border-right-color:var(--color-accent-hover)}
.ribbon.trending{background:#ea580c}.ribbon.trending::after{border-top-color:#c2410c;border-right-color:#c2410c}
.ribbon.new{background:var(--cat-seo)}.ribbon.new::after{border-top-color:#15803d;border-right-color:#15803d}

/* ===== CATEGORIES GRID ===== */
.categories-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.category-pill{display:flex;align-items:center;gap:14px;padding:20px 24px;background:#fff;border:1px solid var(--color-border);border-left:3px solid var(--color-accent);border-radius:var(--card-radius);transition:all 0.2s ease;cursor:pointer;text-decoration:none;color:var(--color-text)}
.category-pill:hover{transform:scale(1.02);color:var(--color-text)}
.category-pill.cat-ai{border-left-color:var(--cat-ai)}.category-pill.cat-ai:hover{background:var(--cat-ai-bg)}
.category-pill.cat-seo{border-left-color:var(--cat-seo)}.category-pill.cat-seo:hover{background:var(--cat-seo-bg)}
.category-pill.cat-social{border-left-color:var(--cat-social)}.category-pill.cat-social:hover{background:var(--cat-social-bg)}
.category-pill.cat-auto{border-left-color:var(--cat-auto)}.category-pill.cat-auto:hover{background:var(--cat-auto-bg)}
.category-pill-icon{width:48px;height:48px;border-radius:var(--card-radius);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.cat-ai .category-pill-icon{background:var(--cat-ai-bg);color:var(--cat-ai)}
.cat-seo .category-pill-icon{background:var(--cat-seo-bg);color:var(--cat-seo)}
.cat-social .category-pill-icon{background:var(--cat-social-bg);color:var(--cat-social)}
.cat-auto .category-pill-icon{background:var(--cat-auto-bg);color:var(--cat-auto)}
.category-pill-icon svg{width:22px;height:22px}
.category-pill-text h3{font-size:1.15rem;margin-bottom:2px;font-family:var(--font-heading)}
.category-pill-text span{font-size:var(--font-xs);color:var(--color-text-muted);font-family:var(--font-ui)}

/* ===== NEWSLETTER ===== */
.newsletter{background:linear-gradient(135deg,#eff6ff,#f0fdf4);border:1px solid var(--color-accent-border);border-radius:20px;padding:56px 48px;text-align:center;position:relative;overflow:hidden}
.newsletter h2{margin-bottom:8px;font-family:var(--font-heading)}
.newsletter>p{color:var(--color-text-muted);margin-bottom:28px}
.newsletter-form{display:flex;gap:10px;max-width:460px;margin:0 auto 16px}
.newsletter-form input{flex:1;padding:14px 20px;background:#fff;border:1px solid var(--color-border);border-radius:var(--btn-radius);color:var(--color-text);font-family:var(--font-ui)}
.newsletter-form input::placeholder{color:var(--color-text-light)}
.newsletter-form input:focus{border-color:var(--color-accent);box-shadow:0 0 0 3px rgba(37,99,235,0.1)}
.newsletter .privacy,.newsletter .trust-row{font-size:var(--font-xs);color:var(--color-text-light);font-family:var(--font-ui)}
.trust-row{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:12px}
.trust-row span{display:flex;align-items:center;gap:6px}
.trust-row svg{width:14px;height:14px}

@media(max-width:768px){
  .newsletter{padding:36px 24px}
  .newsletter-form{flex-direction:column}
}

/* ===== BLOG LISTING ===== */
.page-header{padding:24px 0;background:var(--color-surface);background-image:var(--bg-pattern);background-size:var(--bg-pattern-size);border-bottom:1px solid var(--color-border)}
.page-header h1{font-family:var(--font-heading)}
.page-header p{color:var(--color-text-muted);margin-top:8px}
.breadcrumb{display:flex;gap:8px;font-family:var(--font-ui);font-size:var(--font-sm);color:var(--color-text-light);margin-bottom:16px;flex-wrap:wrap}
.breadcrumb a{color:var(--color-text-muted)}.breadcrumb a:hover{color:var(--color-accent)}
.stats-row{font-family:var(--font-ui);font-size:var(--font-sm);color:var(--color-text-light);margin-top:12px;display:flex;gap:16px;flex-wrap:wrap}
.stats-row span{display:flex;align-items:center;gap:4px}

/* Search */
.search-bar{max-width:100%;margin:0 0 24px;position:relative}
.search-bar input{width:100%;padding:10px 16px 10px 42px;background:#fff;border:1px solid var(--color-border);border-radius:var(--btn-radius);color:var(--color-text);font-family:var(--font-ui);font-size:0.875rem;height:42px}
.search-bar input::placeholder{color:var(--color-text-light)}
.search-bar input:focus{border-color:var(--color-accent);box-shadow:0 0 0 3px rgba(37,99,235,0.1)}
.search-bar svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--color-text-light)}

/* Filter Tabs */
.filter-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:32px}
.filter-tab{padding:8px 18px;border-radius:999px;font-family:var(--font-ui);font-size:var(--font-sm);font-weight:500;color:var(--color-text-muted);border:1px solid var(--color-border);background:transparent;transition:all var(--transition-fast)}
.filter-tab:hover{border-color:var(--color-accent);color:var(--color-accent)}
.filter-tab.active{background:var(--color-accent);color:#fff;border-color:var(--color-accent)}

/* Pagination */
.pagination{display:flex;gap:6px;justify-content:center;margin-top:24px;font-family:var(--font-ui)}
.pagination a,.pagination span{padding:10px 16px;border-radius:var(--btn-radius);font-size:var(--font-sm);font-weight:500;border:1px solid var(--color-border);color:var(--color-text-muted);transition:all var(--transition-fast)}
.pagination a:hover{border-color:var(--color-accent);color:var(--color-accent)}
.pagination .active{background:var(--color-accent);color:#fff;border-color:var(--color-accent);border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;padding:0}
.pagination .disabled{opacity:.4;pointer-events:none}
.no-results{text-align:center;padding:60px 20px;color:var(--color-text-muted);display:none;font-family:var(--font-ui)}
.no-results svg{width:48px;height:48px;margin:0 auto 16px;color:var(--color-text-light)}

/* ===== SINGLE POST ===== */
.reading-progress{position:fixed;top:0;left:0;height:3px;background:var(--color-accent);z-index:9999;transition:width 0.1s linear;width:0}
.post-header-section{background:var(--color-surface);padding:100px 0 40px;border-bottom:1px solid var(--color-border)}
.post-layout{display:grid;grid-template-columns:1fr 340px;gap:48px;padding-top:40px}
@media(max-width:1024px){.post-layout{grid-template-columns:1fr}}

.article-header{margin-bottom:24px}
.article-header .post-card-category{margin-bottom:16px}
.article-header h1{margin-bottom:12px;font-size:clamp(1.8rem,3.5vw,2.5rem)}
.article-subtitle{font-family:var(--font-body);font-style:italic;color:var(--color-text-muted);font-size:1.1rem;margin-bottom:20px}
.author-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.author-bar-left{display:flex;align-items:center;gap:12px}
.author-avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,var(--color-accent),#7c3aed);display:flex;align-items:center;justify-content:center;font-family:var(--font-ui);font-weight:700;font-size:var(--font-sm);color:#fff}
.author-info{font-family:var(--font-ui)}
.author-info .author-name{font-weight:600;font-size:var(--font-sm)}
.author-info .author-date{font-size:var(--font-xs);color:var(--color-text-muted)}
.share-buttons{display:flex;gap:8px;margin-left:auto}
.share-btn{width:36px;height:36px;border-radius:var(--btn-radius);border:1px solid var(--color-border);display:flex;align-items:center;justify-content:center;color:var(--color-text-muted);transition:all var(--transition-fast)}
.share-btn:hover{border-color:var(--color-accent);color:var(--color-accent);background:var(--color-accent-light)}
.share-btn svg{width:16px;height:16px}

.article-hero-img{width:100%;aspect-ratio:16/9;border-radius:var(--card-radius);background:linear-gradient(135deg,#dbeafe,#bfdbfe);margin-bottom:40px;position:relative;overflow:hidden}
.article-hero-img::after{content:'📸 Featured Image';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--color-text-light);font-size:1.1rem;font-family:var(--font-ui)}

/* Article Content */
.article-content{font-family:var(--font-body);font-size:var(--font-body-size);line-height:1.85;color:#334155;max-width:var(--content-width)}
.article-content h2{font-family:var(--font-heading);font-weight:700;font-size:1.5rem;color:var(--color-text);margin-top:48px;margin-bottom:16px;padding-bottom:8px;border-bottom:2px solid var(--color-accent-border)}
.article-content h2:first-of-type{margin-top:0}
.article-content h3{font-family:var(--font-heading);font-weight:600;font-size:1.2rem;margin-top:32px;margin-bottom:12px;color:var(--color-text)}
.article-content p{margin-bottom:20px}
.article-content ul,.article-content ol{margin:16px 0;padding-left:24px}
.article-content ul{list-style:disc}
.article-content ol{list-style:decimal}
.article-content li{margin-bottom:8px}
.article-content strong{color:var(--color-text)}
.article-content a{color:var(--color-accent);text-decoration:underline}
.article-content blockquote{border-left:4px solid var(--color-accent);padding:16px 20px;margin:24px 0;background:var(--color-accent-light);border-radius:0 var(--btn-radius) var(--btn-radius) 0;font-style:italic}
.article-content code{background:var(--color-surface-alt);font-family:'Fira Code',monospace;border-radius:4px;padding:2px 6px;font-size:0.9em}

/* Pros/Cons */
.pros-cons{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0 24px}
.pros-cons div{padding:16px;border-radius:var(--btn-radius)}
.pros{background:#f0fdf4;border:1px solid #bbf7d0}
.cons{background:#fef2f2;border:1px solid #fecaca}
.pros h4{color:#15803d;margin-bottom:8px;font-family:var(--font-heading)}
.cons h4{color:#dc2626;margin-bottom:8px;font-family:var(--font-heading)}
.pros li::marker{color:#15803d}
.cons li::marker{color:#dc2626}
@media(max-width:500px){.pros-cons{grid-template-columns:1fr}}

/* Author Card */
.author-card{display:flex;gap:20px;padding:24px;background:#fff;border:1px solid var(--color-border);border-radius:var(--card-radius);margin-top:48px}
.author-card .author-avatar{width:64px;height:64px;font-size:1.1rem;flex-shrink:0}
.author-card h4{margin-bottom:4px;font-family:var(--font-heading)}
.author-card p{font-size:var(--font-sm);color:var(--color-text-muted);margin:0}
@media(max-width:500px){.author-card{flex-direction:column;text-align:center;align-items:center}}

/* Sidebar */
.sidebar{position:relative}
.sidebar-widget{background:#fff;border:1px solid var(--color-border);border-radius:var(--card-radius);padding:24px;margin-bottom:24px}
.sidebar-widget h3{font-family:var(--font-heading);font-size:1rem;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--color-border)}

/* TOC */
.sidebar-widget.toc-widget{border-left:3px solid var(--color-accent)}
.toc-list{display:flex;flex-direction:column;gap:4px}
.toc-list a{display:block;padding:8px 12px;border-left:2px solid var(--color-border);font-family:var(--font-ui);font-size:var(--font-sm);color:var(--color-text-muted);transition:all var(--transition-fast)}
.toc-list a:hover,.toc-list a.active{color:var(--color-accent);border-left-color:var(--color-accent);background:var(--color-accent-light)}

/* Sidebar Newsletter */
.sidebar-newsletter-card{background:linear-gradient(135deg,var(--color-accent),#1d4ed8);border:none;color:#fff}
.sidebar-newsletter-card h3{color:#fff;border-bottom-color:rgba(255,255,255,0.2)}
.sidebar-newsletter-card p{color:rgba(255,255,255,0.85)}
.sidebar-newsletter-card input{padding:12px 16px;background:rgba(255,255,255,0.15);border:1px solid rgba(255,255,255,0.3);border-radius:var(--btn-radius);color:#fff;font-family:var(--font-ui);font-size:var(--font-sm);width:100%;margin-bottom:10px}
.sidebar-newsletter-card input::placeholder{color:rgba(255,255,255,0.6)}
.sidebar-newsletter-card .btn{width:100%;justify-content:center;background:#fff;color:var(--color-accent);font-family:var(--font-ui)}
.sidebar-newsletter-card .btn:hover{background:#f0f0f0}
.sidebar-newsletter input{width:100%;padding:12px 16px;background:#fff;border:1px solid var(--color-border);border-radius:var(--btn-radius);color:var(--color-text);margin-bottom:10px;font-family:var(--font-ui);font-size:var(--font-sm)}
.sidebar-newsletter input::placeholder{color:var(--color-text-light)}
.sidebar-newsletter .btn{width:100%;justify-content:center}

/* Popular Posts */
.popular-post{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--color-border)}
.popular-post:last-child{border-bottom:none}
.popular-post-thumb{width:60px;height:48px;border-radius:6px;flex-shrink:0}
.popular-post-title{font-family:var(--font-heading);font-size:var(--font-sm);font-weight:500;color:var(--color-text);line-height:1.4}
.popular-post-title:hover{color:var(--color-accent)}
.popular-post-date{font-family:var(--font-ui);font-size:var(--font-xs);color:var(--color-text-light);margin-top:4px}

/* Sidebar Categories */
.sidebar-categories a{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--color-border);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--font-sm)}
.sidebar-categories a:last-child{border-bottom:none}
.sidebar-categories a:hover{color:var(--color-accent)}
.sidebar-categories .count{background:var(--color-surface);padding:2px 10px;border-radius:999px;font-size:var(--font-xs)}

@media(min-width:1025px){.sidebar-sticky{position:sticky;top:80px}}

/* Related Posts */
.related-posts{margin-top:64px}
.related-posts h2{margin-bottom:28px;border:none;padding:0;border-left:4px solid var(--color-accent);padding-left:12px}

/* ===== ABOUT PAGE ===== */
.about-hero{padding:120px 0 60px}
.about-hero .container{display:grid;grid-template-columns:1.2fr 0.8fr;gap:48px;align-items:center}
.about-hero-text h1{margin-bottom:16px}
.about-hero-text p{color:var(--color-text-muted);font-size:1.1rem;line-height:1.8}
.about-hero-graphic{position:relative;height:300px}
.about-shape{position:absolute;border-radius:50%;border:3px solid}
.about-shape-1{width:180px;height:180px;border-color:var(--color-accent-border);top:10%;right:10%;animation:float 5s ease-in-out infinite}
.about-shape-2{width:120px;height:120px;border-color:#e9d5ff;bottom:15%;left:15%;animation:float 4s ease-in-out infinite 1s}
.about-shape-3{width:80px;height:80px;border-color:#bbf7d0;top:40%;left:40%;animation:float 6s ease-in-out infinite 2s}

@media(max-width:768px){
  .about-hero .container{grid-template-columns:1fr}
  .about-hero-graphic{display:none}
  .about-hero{padding:120px 0 40px}
}

.mission{padding:40px 0 60px}
.mission-content{background:#fff;border:1px solid var(--color-border);border-radius:16px;padding:48px;font-size:var(--font-body-size);line-height:1.9;color:var(--color-text-muted);position:relative;overflow:hidden}
.mission-content::before{content:'"';position:absolute;top:-10px;left:24px;font-size:8rem;color:var(--color-accent-light);font-family:Georgia,serif;line-height:1}

/* Stats Strip */
.stats-strip{background:#0f172a;padding:56px 0}
.stats-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center}
.stat-item h3{font-family:var(--font-heading);font-size:clamp(2rem,4vw,3.5rem);font-weight:800;color:#fff;margin-bottom:4px}
.stat-item p{color:#94a3b8;font-family:var(--font-ui);font-size:var(--font-sm)}
@media(max-width:600px){.stats-bar{grid-template-columns:repeat(2,1fr);gap:32px}}

/* Team */
.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:28px}
.team-card{background:#fff;border:1px solid var(--color-border);border-radius:var(--card-radius);padding:32px;text-align:center;transition:all 0.2s ease}
.team-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.team-avatar{width:80px;height:80px;border-radius:50%;background:linear-gradient(135deg,var(--color-accent),#7c3aed);display:flex;align-items:center;justify-content:center;font-family:var(--font-ui);font-size:1.5rem;font-weight:700;color:#fff;margin:0 auto 16px}
.team-card h3{margin-bottom:4px;font-family:var(--font-heading)}
.team-card .role{color:var(--color-accent);font-family:var(--font-ui);font-size:var(--font-sm);font-weight:500;margin-bottom:12px}
.team-card p{font-size:var(--font-sm);color:var(--color-text-muted)}

/* Values */
.values-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}
.value-card{background:#fff;border:1px solid var(--color-border);border-radius:var(--card-radius);padding:28px;border-top:3px solid var(--color-accent);transition:all 0.2s ease}
.value-card:nth-child(2){border-top-color:var(--cat-seo)}
.value-card:nth-child(3){border-top-color:var(--cat-social)}
.value-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.value-card-icon{width:48px;height:48px;border-radius:var(--card-radius);background:var(--color-accent-light);display:flex;align-items:center;justify-content:center;color:var(--color-accent);margin-bottom:16px}
.value-card:nth-child(2) .value-card-icon{background:var(--cat-seo-bg);color:var(--cat-seo)}
.value-card:nth-child(3) .value-card-icon{background:var(--cat-social-bg);color:var(--cat-social)}
.value-card-icon svg{width:22px;height:22px}
.value-card h3{font-family:var(--font-heading);margin-bottom:8px}
.value-card p{font-size:var(--font-sm);color:var(--color-text-muted);margin:0}

/* CTA Strip */
.cta-strip{background:linear-gradient(135deg,var(--color-accent),#1d4ed8);padding:56px 0;text-align:center}
.cta-strip h2{color:#fff;font-family:var(--font-heading);margin-bottom:8px}
.cta-strip p{color:rgba(255,255,255,0.85);margin-bottom:28px}
.cta-strip .btn--primary{background:#fff;color:var(--color-accent)}
.cta-strip .btn--primary:hover{background:#f0f0f0}
.cta-strip .btn--outline{border-color:#fff;color:#fff}
.cta-strip .btn--outline:hover{background:rgba(255,255,255,0.15)}

/* ===== CONTACT PAGE ===== */
.contact-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:48px;padding-bottom:60px}
@media(max-width:768px){.contact-grid{grid-template-columns:1fr}}
.contact-form{background:#fff;border:1px solid var(--color-border);border-radius:16px;padding:40px}
.form-group{margin-bottom:20px}
.form-group label{display:block;font-family:var(--font-ui);font-size:var(--font-sm);font-weight:500;margin-bottom:8px;color:var(--color-text-muted)}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:12px 16px;background:#fff;border:1px solid var(--color-border);border-radius:var(--btn-radius);color:var(--color-text);height:48px;font-family:var(--font-ui);transition:border-color var(--transition-fast),box-shadow var(--transition-fast)}
.form-group textarea{height:auto;resize:vertical;min-height:140px;font-family:var(--font-body)}
.form-group select{appearance:auto}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--color-accent-border)}
.form-group .error-text{font-family:var(--font-ui);font-size:var(--font-xs);color:#ef4444;margin-top:6px;display:none}
.form-group.has-error .error-text{display:block}
.form-group.has-error input,.form-group.has-error select,.form-group.has-error textarea{border-color:#ef4444}
.form-success{display:none;text-align:center;padding:40px}
.form-success.show{display:block}
.form-success svg{width:56px;height:56px;color:var(--cat-seo);margin:0 auto 16px}
.form-success h3{margin-bottom:8px;font-family:var(--font-heading)}
.form-success p{color:var(--color-text-muted)}

.contact-info-cards{display:flex;flex-direction:column;gap:20px}
.contact-info-card{background:#fff;border:1px solid var(--color-border);border-radius:var(--card-radius);padding:24px;display:flex;align-items:center;gap:16px;transition:all 0.2s ease}
.contact-info-card:hover{border-color:var(--color-accent);transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.contact-info-icon{width:48px;height:48px;border-radius:50%;background:var(--color-accent-light);display:flex;align-items:center;justify-content:center;color:var(--color-accent);flex-shrink:0}
.contact-info-icon svg{width:20px;height:20px}
.contact-info-text h4{margin-bottom:2px;font-family:var(--font-heading);font-size:var(--font-sm)}
.contact-info-text p{color:var(--color-text-muted);font-size:var(--font-sm);margin:0}
.contact-info-text a{color:var(--color-accent)}

/* FAQ Accordion */
.faq-section{margin-top:28px}
.faq-section h3{font-family:var(--font-heading);font-size:1rem;margin-bottom:16px}
.faq-item{border:1px solid var(--color-border);border-radius:var(--btn-radius);margin-bottom:8px;overflow:hidden}
.faq-question{width:100%;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;font-family:var(--font-ui);font-size:var(--font-sm);font-weight:600;color:var(--color-text);background:#fff;cursor:pointer;transition:background var(--transition-fast)}
.faq-question:hover{background:var(--color-surface)}
.faq-question svg{width:18px;height:18px;transition:transform 0.3s ease;flex-shrink:0;color:var(--color-text-muted)}
.faq-item.open .faq-question svg{transform:rotate(180deg)}
.faq-answer{max-height:0;overflow:hidden;transition:max-height 0.3s ease;padding:0 20px}
.faq-item.open .faq-answer{max-height:200px;padding:0 20px 16px}
.faq-answer p{font-size:var(--font-sm);color:var(--color-text-muted);margin:0;line-height:1.7}

/* ===== 404 PAGE ===== */
.error-page{min-height:100vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:120px 24px 80px}
.error-page .error-code{font-family:var(--font-heading);font-size:clamp(6rem,15vw,12rem);font-weight:900;line-height:1}
.error-page h1{font-family:var(--font-heading);font-size:var(--font-h2);margin:16px 0 8px}
.error-page p{color:var(--color-text-muted);margin-bottom:32px;max-width:420px;margin-left:auto;margin-right:auto}
.error-page .error-ctas{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.error-robot{width:120px;height:120px;margin:0 auto 24px;position:relative}
.error-robot svg{width:100%;height:100%;color:var(--color-text-light)}
.suggested-posts{margin-top:64px;width:100%;max-width:900px}
.suggested-posts h2{font-family:var(--font-heading);font-size:var(--font-h3);margin-bottom:24px;text-align:center}

/* ===== SCROLL REVEAL ===== */
.reveal{opacity:0;transform:translateY(20px);transition:opacity 0.5s ease,transform 0.5s ease}
.reveal.visible{opacity:1;transform:translateY(0)}
.reveal-stagger>*:nth-child(1){transition-delay:0s}
.reveal-stagger>*:nth-child(2){transition-delay:0.1s}
.reveal-stagger>*:nth-child(3){transition-delay:0.2s}
.reveal-stagger>*:nth-child(4){transition-delay:0.3s}
.reveal-stagger>*:nth-child(5){transition-delay:0.4s}
.reveal-stagger>*:nth-child(6){transition-delay:0.5s}

/* ===== AD SLOTS ===== */
.ad-slot{background:var(--color-surface);border:1px dashed var(--color-border);border-radius:var(--btn-radius);min-height:90px;display:flex;align-items:center;justify-content:center;color:var(--color-text-light);font-family:var(--font-ui);font-size:12px;margin:24px 0}

/* ===== BACK TO TOP ===== */
.back-to-top{position:fixed;bottom:32px;right:32px;width:48px;height:48px;border-radius:50%;background:var(--color-accent);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-lg);z-index:900;opacity:0;transform:translateY(20px);transition:all 0.3s ease;cursor:pointer}
.back-to-top.visible{opacity:1;transform:translateY(0)}
.back-to-top:hover{background:var(--color-accent-hover);transform:translateY(-5px);}
.back-to-top svg{width:24px;height:24px}

/* ===== COOKIE CONSENT ===== */
.cookie-banner{position:fixed;bottom:24px;right:24px;background:#0f172a;color:#e2e8f0;z-index:9998;padding:20px;display:none;align-items:center;gap:16px;max-width:380px;border-radius:12px;box-shadow:var(--shadow-lg);border:1px solid rgba(255,255,255,0.1);font-family:var(--font-ui);font-size:13px;line-height:1.5}
.cookie-banner.show{display:flex}
.cookie-banner p{margin:0}
.cookie-banner .btn{padding:8px 16px;font-size:12px;flex-shrink:0}

/* ===== COPY TOAST ===== */
.copy-toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%) translateY(100px);background:var(--color-accent);color:#fff;padding:12px 24px;border-radius:var(--btn-radius);font-family:var(--font-ui);font-size:var(--font-sm);font-weight:500;z-index:9999;transition:transform var(--transition-base);pointer-events:none}
.copy-toast.show{transform:translateX(-50%) translateY(0)}
/* ===== NEW PAGES: JOBS & INTERVIEW PREP ===== */

/* Job Filters */
.jobs-filter-section { background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 12px 0 4px; }
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-row--skills { gap: 8px; }
.skill-pill { padding: 4px 12px; border-radius: 999px; font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: var(--color-text-muted); border: 1px solid var(--color-border); cursor: pointer; transition: all var(--transition-fast); }
.skill-pill:hover, .skill-pill.active { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-light); }
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--color-surface-alt); border-radius: 6px; font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--color-text); }
.chip button { color: var(--color-text-light); border: none; background: none; cursor: pointer; display: flex; font-size: 14px; line-height: 1; }
.chip button:hover { color: #ef4444; }

/* Job Cards */
.job-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--card-radius); padding: 24px; transition: all 0.2s ease; position: relative; display: flex; flex-direction: column; height: 100%; border-left: 1px solid var(--color-border); }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--color-accent-border); }
.job-card-header { display: flex; gap: 16px; margin-bottom: 16px; }
.company-logo { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-weight: 700; color: #fff; flex-shrink: 0; }
.job-title-area h3 { font-size: 1.15rem; margin-bottom: 4px; font-family: var(--font-heading); font-weight: 600; }
.company-meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: 13px; color: var(--color-text-muted); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.job-tag { padding: 4px 10px; border-radius: 6px; font-family: var(--font-ui); font-size: 11px; font-weight: 600; background: var(--color-surface); color: var(--color-text-muted); }
.job-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--color-surface); }
.salary { font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--color-text); }
.job-actions { display: flex; gap: 10px; align-items: center; }
.save-btn { color: var(--color-text-light); transition: all var(--transition-fast); background: none; border: none; cursor: pointer; }
.save-btn:hover, .save-btn.active { color: #ef4444; }
.job-type-badge { position: absolute; top: 16px; right: 16px; font-family: var(--font-ui); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content { background: #fff; width: 100%; max-width: 680px; max-height: 90vh; border-radius: 16px; position: relative; display: flex; flex-direction: column; transform: translateY(20px); transition: transform 0.3s ease; box-shadow: var(--shadow-lg); }
.modal-overlay.show .modal-content { transform: translateY(0); }
.modal-header { padding: 40px 40px 20px; border-bottom: 1px solid var(--color-border); }
.modal-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--color-surface); color: var(--color-text-muted); transition: all 0.2s ease; border: none; cursor: pointer; }
.modal-close:hover { background: #fee2e2; color: #ef4444; }
.modal-body { padding: 40px; overflow-y: auto; font-family: var(--font-body); line-height: 1.7; }
.modal-body h4 { margin: 24px 0 12px; font-family: var(--font-heading); color: var(--color-text); font-size: 1.1rem; }
.modal-body ul { padding-left: 24px; margin-bottom: 24px; }
.modal-body li { margin-bottom: 8px; }
.modal-footer { padding: 24px 40px 40px; display: flex; gap: 12px; border-top: 1px solid var(--color-border); }

/* Alerts & CTAs */
.alert-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--color-accent);
}
.alert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--color-accent-light), transparent);
  opacity: 0.5;
  pointer-events: none;
}
.alert-card h2 { margin-bottom: 12px; font-size: 2rem; }
.alert-card p { color: var(--color-text-muted); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

.hire-section { background: #0f172a; border-radius: 20px; padding: 80px 40px; text-align: center; color: #fff; margin-top: 60px; }
.hire-section h2 { color: #fff; margin-bottom: 12px; }
.hire-section p { color: rgba(255,255,255,0.7); margin-bottom: 40px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto 40px; }
.pricing-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 40px; text-align: left; transition: border-color 0.2s ease; }
.pricing-card:hover { border-color: var(--color-accent); }
.pricing-card h3 { color: #fff; margin-bottom: 8px; font-family: var(--font-heading); }
.price { font-size: 1.75rem; font-weight: 800; color: #fff; margin-bottom: 20px; display: block; font-family: var(--font-heading); }
.pricing-card ul { margin-bottom: 32px; font-size: 14px; color: rgba(255,255,255,0.6); list-style: none; padding: 0; }
.pricing-card ul li { margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.pricing-card ul li::before { content: '✓'; color: var(--color-accent); font-weight: bold; }

/* Interview Hub Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 40px; }
.service-card { background: #fff; border: 1px solid var(--color-border); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; position: relative; transition: all 0.3s ease; box-shadow: var(--shadow-sm); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-badge { position: absolute; top: -14px; left: 32px; padding: 6px 14px; border-radius: 999px; font-family: var(--font-ui); font-size: 11px; font-weight: 800; text-transform: uppercase; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.service-price { font-size: 2.5rem; font-weight: 900; color: var(--color-text); margin: 24px 0 4px; font-family: var(--font-heading); }
.service-delivery { font-family: var(--font-ui); font-size: 13px; color: var(--color-text-light); margin-bottom: 32px; display: block; font-weight: 500; }
.service-includes { margin-bottom: 40px; flex-grow: 1; list-style: none; padding: 0; }
.service-includes li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14px; color: var(--color-text-muted); align-items: flex-start; }
.service-includes svg { color: #16a34a; flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; }
.savings-badge { background: #fee2e2; color: #ef4444; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; margin-left: 8px; vertical-align: middle; }
.old-price { text-decoration: line-through; color: var(--color-text-light); font-size: 1.25rem; }

/* Timeline */
.timeline-section { padding: 80px 0; background: var(--color-surface); border-radius: 24px; margin: 60px 0; }
.timeline { display: flex; justify-content: space-between; position: relative; max-width: 900px; margin: 40px auto 0; gap: 20px; }
.timeline::before { content: ''; position: absolute; top: 20px; left: 10%; right: 10%; height: 2px; background: var(--color-border); z-index: 1; }
.timeline-step { position: relative; z-index: 2; text-align: center; flex: 1; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-weight: 800; margin: 0 auto 16px; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.timeline-step p { font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--color-text); }

/* Order Form */
.order-form-card { max-width: 680px; margin: 0 auto; background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 56px; box-shadow: var(--shadow-lg); }
.order-form-card h2 { margin-bottom: 8px; }
.order-form-card p { color: var(--color-text-muted); margin-bottom: 40px; }
.form-file-label { display: block; width: 100%; padding: 32px; background: var(--color-surface); border: 2px dashed var(--color-border); border-radius: 12px; font-size: 14px; text-align: center; cursor: pointer; transition: all 0.2s ease; margin-bottom: 24px; font-family: var(--font-ui); color: var(--color-text-muted); }
.form-file-label:hover { border-color: var(--color-accent); background: var(--color-accent-light); color: var(--color-accent); }
.form-file-label span { display: block; font-weight: 600; margin-bottom: 4px; }
.form-file-label input { display: none; }

@media(max-width: 768px) {
    .service-grid { grid-template-columns: 1fr; }
    .timeline { flex-direction: column; align-items: flex-start; }
    .timeline::before { display: none; }
    .timeline-step { display: flex; align-items: center; gap: 16px; width: 100%; border-left: 2px solid var(--color-border); padding-left: 24px; margin-bottom: 24px; text-align: left; }
    .step-num { margin: 0; box-shadow: none; }
    .order-form-card { padding: 32px 24px; }
}
/* Jobs Page Compactness */
.jobs-page .page-header { padding: 40px 0 20px; }
.jobs-page .section { padding: 3rem 0; }
.jobs-page .page-header .stats-row { margin-top: 8px; }
.jobs-page .filter-tabs { margin-top: 20px; }

/* ===== NEWS HOMEPAGE STYLES ===== */

/* --- Top Bar (Row 1) --- */
.news-topbar {
  background: #0f172a;
  height: 60px; /* Increased from 52px */
  display: flex;
  align-items: center;
  border-bottom: 3px solid #2563eb;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}
.news-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.news-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.news-logo img { height: 46px; filter: brightness(0) invert(1); }
.news-logo span { color: #fff; font-size: 1.25rem; font-family: var(--font-heading); font-weight: 700; white-space: nowrap; }
.news-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.news-date, .news-topbar-date {
  font-family: var(--font-ui);
  font-size: 13px; /* Increased from 11px */
  color: #94a3b8;
  white-space: nowrap;
  font-weight: 500;
}
.news-btn-sub {
  background: var(--color-accent);
  color: #fff;
  padding: 8px 20px; /* Increased padding */
  font-size: 13px; /* Increased from 11px */
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}
.news-btn-sub:hover { background: var(--color-accent-hover); color: #fff; }

/* --- Category Nav (Row 2) --- */
.news-catbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 60px; /* Matched to topbar height */
  margin-top: 60px; /* Offset for the fixed topbar */
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 2px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.news-catbar .container {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.news-catbar .container::-webkit-scrollbar { display: none; }
.news-cat-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.news-cat-link {
  font-family: var(--font-ui);
  font-size: 17px; /* Increased from 15px */
  font-weight: 600;
  color: #64748b;
  padding: 8px 16px; /* Increased padding */
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.15s ease;
  text-decoration: none;
  flex-shrink: 0;
}
.news-cat-link:hover { color: #0f172a; background: #f1f5f9; }
.news-cat-link.active { background: #2563eb; color: #fff; }
.news-catbar .hamburger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.news-catbar .hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .news-topbar .hamburger {
    display: flex;
    margin-left: 0;
    padding: 4px;
  }
  .news-topbar .hamburger span {
    background: #fff;
  }
}

/* --- Collapsing Header on Scroll --- */
.news-topbar {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
.news-catbar {
  transition: top 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s ease, box-shadow 0.3s ease;
}

/* Collapsed state — topbar hides, catbar becomes the sole header */
body.nav-collapsed .news-topbar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
body.nav-collapsed .news-catbar {
  top: 0;
  background: #0f172a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-bottom-color: #1e293b;
}
body.nav-collapsed .news-cat-link {
  color: #94a3b8;
}
body.nav-collapsed .news-cat-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
body.nav-collapsed .news-cat-link.active {
  background: #2563eb;
  color: #fff;
}
body.nav-collapsed .news-catbar .hamburger span {
  background: #fff;
}

/* Show inline logo in catbar when collapsed */
.news-catbar-logo {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-right: 16px;
  flex-shrink: 0;
}
.news-catbar-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
}
.news-catbar-logo span {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  white-space: nowrap;
}
body.nav-collapsed .news-catbar-logo {
  display: flex;
}

/* --- Breaking News Ticker --- */
.news-ticker {
  background: #2563eb;
  height: 40px; /* Increased from 34px */
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0; /* Eliminated gap between ticker and header */
  position: relative;
  z-index: 999;
}
.news-ticker-label {
  background: #fff;
  color: #2563eb;
  font-family: var(--font-ui);
  font-size: 12px; /* Increased from 10px */
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 3px;
  margin: 0 16px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.news-ticker-track {
  overflow: hidden;
  flex: 1;
  position: relative;
}
.ticker-text {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px; /* Increased from 12px */
  font-weight: 500;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Hero Grid --- */
.news-hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 0.8fr;
  gap: 24px;
  margin-top: 16px;
  align-items: stretch;
}

/* Stack for featured column */
.news-main-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Sub-feature under hero */
.news-main-sub {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.news-main-sub:hover { background: #fff; border-color: #2563eb; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.news-main-sub-thumb {
  width: 100px;
  height: 60px;
  border-radius: 6px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}
.news-main-sub-content { flex: 1; }
.news-main-sub-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  color: #2563eb;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.news-main-sub-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  line-height: 1.3;
}

/* Ad Fallbacks */
.ad-slot { position: relative; }
.ad-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  z-index: 1;
}
.ad-fallback-icon { font-size: 24px; margin-bottom: 8px; }
.ad-fallback-title { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: #1e293b; margin-bottom: 4px; }
.ad-fallback-text { font-family: var(--font-ui); font-size: 12px; color: #64748b; margin-bottom: 12px; }

/* Leaderboard specific fallback */
.ad-slot--leaderboard .ad-fallback {
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
}
.ad-slot--leaderboard .ad-fallback-content { flex: 1; margin-left: 16px; }
.ad-slot--leaderboard .btn { padding: 6px 16px; font-size: 12px; }

/* Telegram Premium Theme */
.ad-fallback--telegram {
  background: linear-gradient(135deg, #24A1DE 0%, #229ED9 50%, #0088CC 100%) !important;
  border: none !important;
  color: #ffffff !important;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.3);
}

.ad-fallback--telegram::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: telegram-glow 8s infinite linear;
  pointer-events: none;
}

@keyframes telegram-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ad-fallback--telegram .ad-fallback-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 0;
  transition: transform 0.3s ease;
}

.ad-fallback--telegram:hover .ad-fallback-icon {
  transform: scale(1.1) rotate(-10deg);
}

.ad-fallback--telegram .ad-fallback-title {
  color: #ffffff !important;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.ad-fallback--telegram .ad-fallback-text {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.9rem;
}

.ad-fallback--telegram .btn--primary {
  background: #ffffff !important;
  color: #24A1DE !important;
  border: none !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ad-fallback--telegram .btn--primary:hover {
  background: #f8fafc !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Hero Main Feature */
.news-hero-main {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.news-hero-main:hover .news-hero-thumb { transform: scale(1.01); }
.news-hero-thumb {
  height: 340px;
  background: linear-gradient(160deg, #1e3a5f 0%, #2563eb 60%, #1e40af 100%);
  transition: transform 0.3s ease;
  position: relative;
}
.news-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.news-hero-overlay .news-badge-featured {
  background: #ef4444;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 10px;
}
.news-hero-overlay h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 34px;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}
.news-hero-overlay .news-hero-meta {
  font-family: var(--font-ui);
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
}
.news-hero-overlay .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 999px;
  width: fit-content;
}
.news-hero-overlay .btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* Secondary Stories (Col 2) */
.news-side-stack { display: flex; flex-direction: column; gap: 10px; }
.news-side-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--cat-ai);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  flex: 1;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.news-side-card:hover { border-left-color: #2563eb; }
.news-side-card:hover .news-side-title { color: #2563eb; }
.news-side-card.cat-seo { border-left-color: var(--cat-seo); }
.news-side-card.cat-social { border-left-color: var(--cat-social); }
.news-side-card.cat-auto { border-left-color: var(--cat-auto); }
.news-side-thumb {
  height: 88px;
  flex-shrink: 0;
}
.news-side-thumb.thumb-ai { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.news-side-thumb.thumb-seo { background: linear-gradient(135deg, #dcfce7, #86efac); }
.news-side-thumb.thumb-social { background: linear-gradient(135deg, #f3e8ff, #c084fc); }
.news-side-thumb.thumb-auto { background: linear-gradient(135deg, #ffedd5, #fb923c); }
.news-side-body { padding: 10px 12px; }
.news-side-body .post-card-category { font-size: 10px; margin-bottom: 4px; }
.news-side-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  transition: color 0.15s ease;
}
.news-side-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #94a3b8;
}

/* Trending Sidebar (Col 3) */
.news-trending-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}
.news-trending-head {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px; /* Increased from 13px */
  color: #0f172a;
  border-bottom: 2px solid #ef4444;
  padding-bottom: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-trend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0; /* Increased padding */
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.news-trend-item:last-child { border-bottom: none; }
.news-trend-item:hover .news-trend-title { color: #2563eb; }
.news-list-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: #e2e8f0;
  min-width: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.news-trend-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px; /* Increased from 15px */
  color: #0f172a;
  line-height: 1.4;
  transition: color 0.15s ease;
  margin-bottom: 4px;
}
.news-trend-cat {
  font-size: 12px; /* Increased from 10px */
  font-family: var(--font-ui);
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  display: inline-block;
}
.news-trend-mini-sub {
  background: #eff6ff;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}
.news-trend-mini-sub h4 {
  font-family: var(--font-heading);
  font-size: 15px; /* Increased from 13px */
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 10px;
}
.news-trend-mini-sub input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  height: 36px;
  margin-bottom: 8px;
  color: var(--color-text);
}
.news-trend-mini-sub input::placeholder { color: #94a3b8; }
.news-trend-mini-sub .btn--primary {
  width: 100%;
  justify-content: center;
  font-size: 12px;
  padding: 8px;
}

/* --- Jobs Highlight Strip --- */
.news-jobs-strip {
  background: #0f172a;
  padding: 14px 24px;
  margin-top: 16px;
  border-radius: 10px;
}
.news-jobs-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.news-jobs-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-jobs-left svg { width: 20px; height: 20px; color: #fff; flex-shrink: 0; }
.news-jobs-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px; /* Increased from 18px */
  color: #fff;
}
.news-jobs-sub {
  font-family: var(--font-ui);
  font-size: 16px; /* Increased from 14px */
  color: #94a3b8;
}
.news-jobs-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
}
.news-jobs-pills::-webkit-scrollbar { display: none; }
.news-job-pill {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.15s ease;
  text-decoration: none;
  cursor: pointer;
}
.news-job-pill:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.news-jobs-cta .btn--primary {
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 6px;
}

/* --- Ad Slots --- */
.ad-slot {
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 8px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-family: var(--font-ui);
  font-size: 12px;
  margin: 16px 0;
}
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--sidebar { min-height: 250px; }

/* --- Two-Column Layout --- */
.news-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
.news-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.news-section-head h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px; /* Increased from 13px */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
}
.news-section-head a {
  font-family: var(--font-ui);
  font-size: 13px; /* Increased from 11px */
  color: #2563eb;
  font-weight: 600;
}

/* News List Items */
.news-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.news-list-item:hover .news-list-title { color: #2563eb; }
.news-list-item .news-list-num {
  font-size: 28px;
  min-width: 36px;
}
.news-list-body { flex: 1; }
.news-list-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px; /* Increased from 16px */
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 6px;
  transition: color 0.15s ease;
}
.news-list-meta {
  font-family: var(--font-ui);
  font-size: 13px; /* Increased from 11px */
  color: #94a3b8;
}
.news-mini-thumb {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Sidebar Widgets */
.news-sidebar-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.news-sidebar-widget .news-section-head { margin-bottom: 12px; }
.news-sidebar-widget .news-section-head h3 { border-bottom: none; }
.news-sidebar-head-blue { border-bottom: 2px solid #2563eb; padding-bottom: 6px; margin-bottom: 12px; }
.news-rank-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.news-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}
.news-cat-row:hover { background: #f8fafc; }
.news-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.news-cat-icon svg { width: 16px; height: 16px; }
.news-cat-row-text {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.news-cat-count {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
}

/* --- Latest Articles Grid --- */
.news-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.news-article-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  transition: all 0.2s ease;
  border-left: 3px solid var(--cat-ai);
}
.news-article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #2563eb; }
.news-article-card.cat-seo { border-left-color: var(--cat-seo); }
.news-article-card.cat-social { border-left-color: var(--cat-social); }
.news-article-card.cat-auto { border-left-color: var(--cat-auto); }
.news-article-thumb { height: 140px; position: relative; }
.news-article-body { padding: 16px; }
.news-article-body .post-card-category { margin-bottom: 6px; }
.news-article-body .post-card-title { font-size: 22px; font-weight: 700; }
.news-article-body .post-card-excerpt {
  font-family: var(--font-body);
  font-size: 17px; /* Increased from 15px */
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  line-height: 1.6;
}

/* Ribbon */
.news-ribbon {
  position: absolute;
  top: 12px;
  right: -8px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 12px 3px 8px;
  color: #fff;
  z-index: 2;
}
.news-ribbon::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  border: 3px solid transparent;
}
.news-ribbon.trending { background: #ea580c; }
.news-ribbon.trending::after { border-top-color: #c2410c; border-right-color: #c2410c; }
.news-ribbon.new { background: #16a34a; }
.news-ribbon.new::after { border-top-color: #15803d; border-right-color: #15803d; }

/* Load More */
.news-load-more {
  text-align: center;
  margin-top: 24px;
}
.news-load-more .btn--outline {
  border: 2px solid #2563eb;
  color: #2563eb;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 32px;
}
.news-load-more .btn--outline:hover { background: #eff6ff; }

/* --- Interview Prep CTA Banner --- */
.news-cta-banner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0;
}
.news-cta-left {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  padding: 40px 32px;
  color: #fff;
}
.news-cta-eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 10px;
}
.news-cta-left h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
}
.news-cta-left p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.news-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.news-cta-btns .btn--primary {
  background: #fff;
  color: #2563eb;
  font-weight: 700;
}
.news-cta-btns .btn--primary:hover { background: #f0f9ff; }
.news-cta-btns .btn--outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.news-cta-btns .btn--outline:hover { background: rgba(255,255,255,0.1); }
.news-cta-right {
  background: #1e293b;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.news-cta-service {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  transition: border-color 0.15s ease;
  text-decoration: none;
}
.news-cta-service:hover { border-color: #2563eb; color: #fff; }
.news-cta-service svg { width: 18px; height: 18px; color: #2563eb; flex-shrink: 0; }
.news-cta-service-name {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}
.news-cta-service-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #2563eb;
  font-size: 15px;
}
.news-cta-service-arrow { color: #64748b; font-size: 14px; }

/* --- Newsletter (news homepage) --- */
.news-newsletter {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 40px 24px;
  max-width: 600px;
  margin: 24px auto;
  text-align: center;
}
.news-newsletter .news-nl-badge {
  display: inline-block;
  background: var(--cat-ai-bg);
  color: #2563eb;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.news-newsletter h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.news-newsletter > p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.news-nl-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 12px;
}
.news-nl-form input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 16px;
  height: 44px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--color-text);
}
.news-nl-form input::placeholder { color: #94a3b8; }
.news-nl-form input:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.news-nl-form .btn--primary {
  height: 44px;
  font-size: 14px;
  white-space: nowrap;
}
.news-nl-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .news-hero-grid { grid-template-columns: 1.5fr 1fr; }
  .news-trending-sidebar { display: none; }
  .news-two-col { grid-template-columns: 1fr; }
  .news-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .news-cta-banner { grid-template-columns: 1fr; }
  .news-cta-right { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .news-topbar-date { display: none; }
  .news-catbar .news-cat-links { display: none; }
  .news-catbar .hamburger { display: flex; }
  .news-catbar-logo { display: flex; } /* Always show logo on mobile since nav links are hidden */
  .news-catbar-logo img { filter: none; } /* Dark logo on white bg by default */
  .news-catbar-logo span { color: var(--color-text); }
  body.nav-collapsed .news-catbar-logo img { filter: brightness(0) invert(1); }
  body.nav-collapsed .news-catbar-logo span { color: #fff; }
  .news-hero-grid { grid-template-columns: 1fr; }
  .news-hero-thumb { height: 280px; }
  .news-side-stack { flex-direction: row; overflow-x: auto; gap: 12px; }
  .news-side-card { min-width: 260px; flex: none; }
  .news-articles-grid { grid-template-columns: 1fr; }
  .news-jobs-strip .container { flex-direction: column; align-items: flex-start; }
  .news-cta-left { padding: 28px 20px; }
  .news-cta-right { padding: 20px; }
  .news-cta-banner { grid-template-columns: 1fr; }
  .news-nl-form { flex-direction: column; }
  .news-load-more .btn--outline { width: 100%; }
  /* Responsive typography */
  .page-header h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.25rem; }
  .post-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Mobile Optimizations (Screens up to 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }

  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100vw;
  }

  /* Header & Nav Consolidation */
  .news-topbar {
    height: 48px;
  }
  .news-logo img {
    height: 32px;
  }
  .news-logo span {
    font-size: 1.25rem; /* Increased from 1rem */
  }
  .news-topbar-right .news-date {
    display: none;
  }
  .news-btn-sub {
    padding: 6px 16px;
    font-size: 12px; /* Increased from 10px */
  }
  
  .news-catbar {
    display: none !important;
  }
  .news-catbar .container {
    padding: 0 8px;
  }
  .hamburger span {
    background: #fff !important; /* White hamburger on dark topbar */
  }
  
  .news-topbar-right {
    gap: 12px;
  }
  
  /* Hero Grid Collapse */
  .news-hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 8px;
  }
  .news-hero-thumb {
    height: 280px;
  }
  .news-hero-overlay {
    padding: 16px;
  }
  .news-hero-overlay h2 {
    font-size: 22px; /* Slightly smaller to fit layout */
  }
  
  .news-side-stack {
    flex-direction: column; /* Changed from horizontal scroll in previous version for better stability */
    gap: 12px;
    overflow-x: visible;
  }
  .news-side-card {
    min-width: 0;
  }
  
  /* Articles Grid Collapse */
  .news-articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Two-Col Layout Collapse */
  .news-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* News Ticker Scaling */
  .news-ticker {
    margin-top: 48px; 
    height: 36px; /* Increased from 30px */
  }
  .news-ticker-label {
    margin: 0 10px;
    font-size: 11px; /* Increased from 9px */
  }
  .ticker-text {
    font-size: 13px; /* Increased from 11px */
  }

  /* Jobs Strip Scaling */
  .news-jobs-strip {
    padding: 12px;
  }
  .news-jobs-strip .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-catbar .hamburger {
    display: flex;
  }

  .news-topbar-right .news-btn-sub {
    margin-right: 40px; /* Space for the hamburger if needed, but hamburger is in catbar */
  }
}

/* Small phones */
@media (max-width: 480px) {
  .news-hero-overlay h2 {
    font-size: 18px;
  }
  .news-main-sub {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .news-main-sub-thumb {
    width: 100%;
    height: 80px;
  }
  .news-catbar-logo span {
    display: none;
  }
  .news-logo span {
    font-size: 1rem;
  }
  .news-topbar-right {
    gap: 8px;
  }
}



/* Specialty Page Offsets for News Header */
body:not(.news-body) .page-header,
body:not(.news-body) .post-header-section,
body:not(.news-body) .error-page,
body:not(.news-body) .about-hero {
  padding-top: 130px; /* Adjusted from 115px for taller 72px header */
}

@media (max-width: 768px) {
  body:not(.news-body) .page-header,
  body:not(.news-body) .post-header-section,
  body:not(.news-body) .error-page,
  body:not(.news-body) .about-hero {
    padding-top: 105px;
  }
}

/* ===== AJAX SUBSCRIBE FORM FIX ===== */
.ajax-subscribe-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 500px;
  margin: 16px auto 0;
}
.news-trend-mini-sub .ajax-subscribe-form,
.sidebar-newsletter-card .ajax-subscribe-form {
  flex-direction: column;
}
.news-trend-mini-sub .ajax-subscribe-form .subscribe-email,
.news-trend-mini-sub .ajax-subscribe-form .btn,
.sidebar-newsletter-card .ajax-subscribe-form .subscribe-email,
.sidebar-newsletter-card .ajax-subscribe-form .btn {
  width: 100%;
}
.subscribe-email {
  flex: 1;
  padding: 0 20px;
  height: 52px;
  background: #ffffff !important;
  border: 2px solid var(--color-border) !important;
  border-radius: var(--btn-radius);
  color: #0f172a !important;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: normal;
  transition: all var(--transition-fast);
}
.ajax-subscribe-form .btn {
  height: 52px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.subscribe-email:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
  outline: none;
  background: #fff !important;
}
.subscribe-message {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .ajax-subscribe-form {
    flex-direction: column;
  }
}
