/*
Theme Name: Asktro Blog Theme
Theme URI: https://asktro.in/blog
Author: BringOnDigit
Description: Exact match to asktro.in website theme
Version: 3.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* =============================================
   EXACT CSS VARIABLES FROM asktro.in
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0A1F44;
  --navy-deep:   #060F22;
  --navy-mid:    #122952;
  --orange:      #E8500A;
  --orange-glow: #FF6B2B;
  --gold:        #C47B00;
  --gold-light:  #F5B800;
  --cream:       #FFF8F0;
  --white:       #FFFFFF;
  --text-muted:  rgba(255,255,255,0.6);
  --text-dim:    rgba(255,255,255,0.35);
  --border:      rgba(255,255,255,0.08);
  --card-bg:     rgba(255,255,255,0.04);
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Plus Jakarta Sans', system-ui, sans-serif;
  --nav-h:       76px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy-deep) !important;
  color: var(--white) !important;
  font-family: var(--sans) !important;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* =============================================
   NAVBAR - exact from asktro.in
   ============================================= */
.site-header {
  position: sticky;
  top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  padding: 0 60px;
  background: rgba(6,15,34,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

/* Logo - exact same as nav-logo */
.site-branding a {
  font-family: var(--serif);
  font-size: 28px; font-weight: 700;
  color: var(--white); text-decoration: none;
  letter-spacing: 0.02em; line-height: 1;
}
.site-branding a .dot { color: var(--orange); }
.site-branding p { margin: 0; }

/* Nav links */
.main-navigation ul {
  display: flex; gap: 36px; list-style: none;
  margin: 0; padding: 0;
}
.main-navigation ul li a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em; transition: color 0.2s;
  font-family: var(--sans);
}
.main-navigation ul li a:hover,
.main-navigation ul li.active a { color: var(--white); }

/* CTA button - exact nav-cta style */
.nav-cta-btn {
  background: var(--orange); color: var(--white) !important;
  border: none; padding: 10px 24px; border-radius: 100px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none !important; display: inline-block;
  white-space: nowrap;
}
.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,80,10,0.4);
  color: var(--white) !important;
}

/* =============================================
   BLOG HERO
   ============================================= */
.blog-hero {
  background: linear-gradient(180deg, #0a1830 0%, var(--navy-deep) 100%);
  padding: 96px 60px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; top: -150px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(232,80,10,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.blog-hero .eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 300; line-height: 1.1;
  color: var(--white); max-width: 760px;
  margin: 0 auto 20px; letter-spacing: -0.02em;
}
.blog-hero h1 em { color: var(--orange); font-style: italic; font-weight: 400; }
.blog-hero .hero-sub {
  color: var(--text-muted); font-size: 16px;
  max-width: 520px; margin: 0 auto; line-height: 1.75;
}

/* =============================================
   CATEGORY BAR
   ============================================= */
.cat-bar {
  background: rgba(6,15,34,0.98);
  border-bottom: 1px solid var(--border);
  padding: 14px 60px;
  position: sticky; top: var(--nav-h); z-index: 90;
}
.cat-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cat-bar a {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text-muted); padding: 7px 18px;
  border-radius: 100px; font-size: 13px; font-weight: 500;
  transition: all .2s; white-space: nowrap; text-decoration: none;
  font-family: var(--sans);
}
.cat-bar a:hover { border-color: rgba(255,255,255,0.2); color: var(--white); }
.cat-bar a.current-cat {
  background: var(--orange); border-color: var(--orange);
  color: var(--white);
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.site-main {
  max-width: 1200px; margin: 0 auto; padding: 72px 60px;
}

/* ── SECTION LABELS ── */
.sec-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 14px; display: block;
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 300; color: var(--white);
  line-height: 1.2; margin-bottom: 0; letter-spacing: -0.01em;
}
.sec-title em { font-style: italic; color: var(--orange); font-weight: 400; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--orange); color: var(--white);
  padding: 14px 32px; border-radius: 100px; font-size: 15px;
  font-weight: 600; text-decoration: none; display: inline-flex;
  align-items: center; gap: 10px; transition: all 0.25s;
  font-family: var(--sans); border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232,80,10,0.45);
  color: var(--white);
}
.btn-ghost {
  border: 1px solid rgba(232,80,10,0.35); color: var(--orange-glow);
  padding: 12px 28px; border-radius: 100px; font-size: 14px;
  font-weight: 500; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px; transition: all .2s;
  background: transparent; cursor: pointer; font-family: var(--sans);
}
.btn-ghost:hover { background: rgba(232,80,10,0.08); border-color: var(--orange); }

/* =============================================
   FEATURED POST
   ============================================= */
.featured-post {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  margin-bottom: 60px;
  transition: border-color .3s, transform .3s;
}
.featured-post:hover {
  border-color: rgba(232,80,10,0.25);
  transform: translateY(-2px);
}
.feat-img {
  background: linear-gradient(135deg, #0a1830, #122952);
  min-height: 340px; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.feat-img img { width:100%; height:100%; object-fit:cover; transition: transform .5s; }
.featured-post:hover .feat-img img { transform: scale(1.04); }
.feat-img .no-img { font-size: 100px; opacity: .6; }
.feat-badge {
  position: absolute; top: 18px; left: 18px;
  background: var(--orange); color: var(--white);
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; padding: 5px 14px; border-radius: 100px;
  text-transform: uppercase; font-family: var(--sans);
}
.feat-body {
  padding: 48px; display: flex;
  flex-direction: column; justify-content: center; gap: 16px;
}
.post-cat-link {
  display: inline-block; width: fit-content;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange-glow);
  text-decoration: none; transition: color .2s;
  font-family: var(--sans);
}
.post-cat-link:hover { color: var(--white); }
.feat-body h2 {
  font-family: var(--serif);
  font-size: 28px; font-weight: 400;
  line-height: 1.35; color: var(--white); margin: 0;
  letter-spacing: -0.01em;
}
.feat-body h2 a { color: var(--white); text-decoration: none; transition: color .2s; }
.feat-body h2 a:hover { color: var(--orange-glow); }
.feat-excerpt p { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin: 0; }
.feat-meta {
  display: flex; gap: 20px;
  color: var(--text-dim); font-size: 12px; flex-wrap: wrap;
  font-family: var(--sans);
}

/* ── GRID HEADER ── */
.grid-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px; gap: 16px;
}
.view-all {
  color: var(--orange-glow); font-size: 13px; font-weight: 500;
  border-bottom: 1px solid rgba(255,107,43,0.3);
  padding-bottom: 2px; white-space: nowrap; text-decoration: none;
  transition: color .2s, border-color .2s;
}
.view-all:hover { color: var(--white); border-color: var(--white); }

/* =============================================
   POSTS GRID
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── POST CARD - same as team-card / job-card style ── */
.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.3s;
}
.post-card:hover {
  border-color: rgba(232,80,10,0.28);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.thumb-wrap {
  height: 200px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #0a1830, #122952);
  display: flex; align-items: center; justify-content: center;
}
.thumb-wrap img { width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.post-card:hover .thumb-wrap img { transform: scale(1.05); }
.thumb-wrap .no-img { font-size: 56px; opacity: .6; }
.cat-chip {
  position: absolute; bottom: 10px; left: 12px;
  background: rgba(6,15,34,0.9);
  border: 1px solid rgba(232,80,10,0.2);
  color: var(--orange-glow); font-size: 10px; font-weight: 600;
  padding: 3px 12px; border-radius: 100px;
  font-family: var(--sans); letter-spacing: 0.05em;
}
.card-body {
  padding: 22px; flex: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.card-body h2 {
  font-family: var(--serif);
  font-size: 18px; font-weight: 400;
  line-height: 1.45; color: var(--white); margin: 0;
}
.card-body h2 a { color: var(--white); text-decoration: none; transition: color .2s; }
.card-body h2 a:hover { color: var(--orange-glow); }
.card-excerpt p { color: var(--text-muted); font-size: 13px; line-height: 1.7; margin: 0; }
.card-foot {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-date { font-size: 11px; color: var(--text-dim); font-family: var(--sans); }
.read-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(232,80,10,0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-glow); font-size: 14px;
  text-decoration: none; transition: all .2s;
}
.post-card:hover .read-arrow {
  background: var(--orange); color: var(--white); border-color: var(--orange);
}

/* ── PAGINATION ── */
.pagination {
  display: flex; justify-content: center;
  gap: 8px; flex-wrap: wrap; margin-top: 52px;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 100px;
  color: var(--text-muted); font-size: 14px;
  text-decoration: none; transition: all .2s;
  font-family: var(--sans);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--orange); border-color: var(--orange); color: var(--white);
}

/* =============================================
   SINGLE POST
   ============================================= */
.single-post-header {
  background: linear-gradient(180deg, #0a1830 0%, var(--navy-deep) 100%);
  padding: 80px 60px 60px;
  border-bottom: 1px solid var(--border);
}
.single-post-header .inner { max-width: 860px; margin: 0 auto; }
.single-post-header h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 300; line-height: 1.15;
  color: var(--white); margin: 14px 0 24px;
  letter-spacing: -0.02em;
}
.single-post-header .post-meta {
  display: flex; gap: 22px;
  color: var(--text-dim); font-size: 12px;
  flex-wrap: wrap; font-family: var(--sans);
}
.single-post-body {
  max-width: 860px; margin: 0 auto; padding: 60px;
}
.post-feat-img {
  border-radius: 16px; overflow: hidden;
  margin-bottom: 48px; border: 1px solid var(--border);
}
.post-feat-img img { width: 100%; display: block; }

/* Content typography - same feel as website */
.entry-content { color: var(--text-muted); font-size: 16px; line-height: 1.88; }
.entry-content h2 {
  font-family: var(--serif);
  font-size: 30px; font-weight: 400;
  color: var(--white); margin: 48px 0 16px; line-height: 1.25;
}
.entry-content h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  color: var(--white); margin: 36px 0 12px;
}
.entry-content h4 { font-size: 17px; font-weight: 600; color: var(--white); margin: 26px 0 10px; }
.entry-content p { margin-bottom: 22px; }
.entry-content a { color: var(--orange-glow); border-bottom: 1px solid rgba(255,107,43,0.25); transition: color .2s; }
.entry-content a:hover { color: var(--white); }
.entry-content ul, .entry-content ol { margin: 0 0 22px 22px; }
.entry-content li { margin-bottom: 9px; color: var(--text-muted); }
.entry-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 18px 28px; margin: 32px 0;
  background: rgba(232,80,10,0.05);
  border-radius: 0 12px 12px 0;
  font-family: var(--serif);
  font-size: 20px; font-style: italic;
  color: rgba(255,255,255,0.75); line-height: 1.65;
}
.entry-content img { border-radius: 12px; border: 1px solid var(--border); margin: 24px 0; }
.entry-content strong { color: var(--white); font-weight: 600; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* Post navigation */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 60px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.post-nav a {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all 0.3s; text-decoration: none;
}
.post-nav a:hover { border-color: rgba(232,80,10,0.25); transform: translateY(-2px); }
.nav-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; font-family: var(--sans); }
.nav-title { font-size: 15px; color: var(--white); line-height: 1.4; font-family: var(--serif); font-weight: 400; }
.next-post { text-align: right; }

/* =============================================
   FOOTER - exact from asktro.in footer code
   ============================================= */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  padding: 64px 60px 46px;
  position: relative; z-index: 1;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .logo {
  font-family: var(--serif); font-size: 28px; font-weight: 700;
  letter-spacing: 0.02em; margin-bottom: 16px;
  display: inline-block; line-height: 1;
  color: var(--white); text-decoration: none;
}
.footer-brand .logo span { color: var(--orange); }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px;
  font-family: var(--sans);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-col ul a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }

/* Footer contact row - exact from asktro.in */
.footer-contact-row {
  max-width: 1200px; margin: 40px auto 0;
  padding: 24px 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex; flex-direction: row;
  align-items: center; gap: 40px; flex-wrap: wrap;
}
.fc-item { display: flex; flex-direction: row; align-items: center; gap: 12px; flex-shrink: 0; }
.fc-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(232,80,10,0.12);
  border: 1px solid rgba(232,80,10,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-glow); flex-shrink: 0;
}
.fc-text { display: flex; flex-direction: column; gap: 3px; }
.fc-label { font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; font-family: var(--sans); }
.fc-value { font-size: 14px; font-weight: 600; color: var(--orange-glow); text-decoration: none; transition: color 0.2s; }
.fc-value:hover { color: var(--white); }
.right-note { margin-left: auto; font-size: 13px; color: var(--text-muted); font-weight: 500; }

.footer-bottom {
  max-width: 1200px; margin: 26px auto 0;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 12px;
}

/* WA Float button */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 12px 36px rgba(37,211,102,0.7); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .site-header { padding: 0 24px; }
  .main-navigation { display: none; }
  .blog-hero { padding: 72px 24px 56px; }
  .cat-bar { padding: 12px 24px; }
  .site-main { padding: 48px 24px; }
  .featured-post { grid-template-columns: 1fr; }
  .feat-img { min-height: 220px; }
  .feat-body { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer { padding: 44px 24px; }
  .footer-contact-row { flex-direction: column; align-items: flex-start; gap: 24px; padding: 24px; }
  .right-note { margin-left: 0; }
  .single-post-header { padding: 56px 24px 40px; }
  .single-post-body { padding: 40px 24px; }
  .post-nav { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
