/* ============================================
   CreatorSeba.com — Light Theme Design System
   ============================================ */

/* Google Fonts - Inter & Noto Sans Bengali */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Bengali:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1E3A8A; /* Deep Blue */
  --primary-light: #EFF6FF;
  --accent: #FF6B35; /* Orange CTA */
  --accent-hover: #E0531F;
  --bg-1: #FFFFFF; /* Pure White */
  --bg-2: #F8FAFC; /* Slate Light */
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  
  --text-main: #1F2937; /* Dark Slate */
  --text-secondary: #4B5563; /* Gray */
  --text-muted: #6B7280; /* Light Gray */
  
  --success: #10B981; /* Emerald Green */
  --success-light: #D1FAE5;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;

  /* Backwards compatibility for old variables */
  --bg-primary: var(--bg-1);
  --bg-secondary: var(--bg-2);
  --bg-glass: var(--bg-2);
  --border-glass: var(--border-color);
  --text-primary: var(--text-main);
  --text-secondary: var(--text-secondary);
  --text-muted: var(--text-muted);
  --accent-1: var(--primary);
  --accent-2: var(--accent);
  --accent-3: #EF4444;
  --accent-4: var(--success);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-1);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* Typography */
h1, h2, h3, h4, h5, h6 { 
  font-family: 'Inter', 'Noto Sans Bengali', sans-serif; 
  font-weight: 700; 
  line-height: 1.25; 
  color: var(--primary);
}
h1 { font-size: clamp(2.0rem, 5vw, 3.0rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.4rem); }
p { color: var(--text-secondary); line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: var(--transition); }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; width: 100%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full); font-weight: 600;
  font-size: 0.95rem; border: none; cursor: pointer;
  transition: var(--transition); font-family: inherit;
  text-decoration: none; min-height: 44px; /* WCAG touch target */
}

.btn-primary {
  background: var(--accent); color: #ffffff;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.2);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
  background: var(--bg-1); color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; min-height: 38px; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; min-height: 52px; }

/* Section */
.section { padding: 70px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin-bottom: 12px; }
.section-header .subtitle { font-size: 1.05rem; max-width: 600px; margin: 0 auto; color: var(--text-secondary); }
.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: var(--radius-full); font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid rgba(30, 58, 170, 0.15); margin-bottom: 14px;
}

/* Card base */
.glass-card {
  background: var(--bg-card); 
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); 
  padding: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.glass-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px); 
  box-shadow: var(--shadow-md);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color); 
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: inherit; font-size: 1.4rem; font-weight: 800;
  color: var(--primary);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); padding: 8px 0; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
  height: 2px; background: var(--accent); transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.mobile-cta-wrapper { display: none; }

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 2px;
}
.lang-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  border: none;
  background: none;
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

.mobile-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.mobile-toggle span {
  width: 24px; height: 2px; background: var(--text-main);
  transition: var(--transition); border-radius: 2px;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ HERO ============ */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 100px;
  background: linear-gradient(180deg, var(--primary-light) 0%, #FFFFFF 100%);
}
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 { margin-bottom: 16px; color: var(--primary); }
.hero h1 .gradient-text { color: var(--accent); }
.hero-desc { font-size: 1.1rem; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; color: var(--text-secondary); }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-shortcuts { font-size: 0.9rem; color: var(--text-secondary); }
.hero-shortcuts a { color: var(--primary); font-weight: 600; text-decoration: underline; margin: 0 6px; }

/* Stats Bar */
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 50px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-icon { font-size: 1.8rem; margin-bottom: 8px; }
.stat-number {
  font-size: 1.8rem; font-weight: 800; color: var(--primary);
}
.stat-label { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; text-align: center; }

/* ============ TOOLS GRID ============ */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.tool-card { 
  display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.tool-card .tool-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px; color: #fff;
}
.tool-card h3 { margin-bottom: 8px; font-size: 1.15rem; color: var(--primary); }
.tool-card p { font-size: 0.9rem; color: var(--text-secondary); flex-grow: 1; margin-bottom: 12px; }
.tool-card .tool-tag {
  align-self: flex-start; font-size: 0.75rem;
  padding: 4px 10px; border-radius: var(--radius-full); font-weight: 600;
  background: var(--primary-light); color: var(--primary);
}

.icon-yt { background: #FF0000; }
.icon-fb { background: #1877F2; }
.icon-tt { background: #000000; }
.icon-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.icon-gen { background: var(--primary); }
.icon-hash { background: var(--accent); }

/* ============ HOW IT WORKS ============ */
.steps-vertical {
  display: flex; flex-direction: column; gap: 24px; max-width: 600px; margin: 0 auto;
  position: relative;
}
.steps-vertical::before {
  content: ''; position: absolute; left: 24px; top: 24px; bottom: 24px;
  width: 2px; background: var(--border-color); z-index: 0;
}
.step-item {
  display: flex; gap: 20px; align-items: flex-start; position: relative; z-index: 1;
}
.step-badge {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
  background: var(--primary); color: #fff; flex-shrink: 0;
  border: 4px solid var(--bg-1);
}
.step-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); flex-grow: 1;
}
.step-content h3 { margin-bottom: 6px; font-size: 1.1rem; color: var(--primary); }
.step-content p { font-size: 0.95rem; color: var(--text-secondary); }

/* ============ DYNAMIC SERVICES ============ */
.service-calculator-card {
  display: flex; flex-direction: column;
}
.service-calculator-card .tool-input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); font-size: 0.95rem; background: var(--bg-2);
  color: var(--text-main); outline: none; transition: var(--transition);
}
.service-calculator-card .tool-input:focus {
  border-color: var(--primary);
  background: #fff;
}
.service-calculator-card .price-display {
  font-size: 1.4rem; font-weight: 800; color: var(--accent); margin: 10px 0;
}

/* ============ TESTIMONIALS ============ */
.testimonials-section { background: var(--bg-2); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { padding: 24px; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.testimonial-card .stars { color: #FBBF24; margin-bottom: 12px; }
.testimonial-card blockquote { font-style: italic; font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.testimonial-info h4 { font-size: 0.9rem; color: var(--primary); }
.testimonial-info p { font-size: 0.8rem; color: var(--text-muted); }

/* ============ FAQ ============ */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-1); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-question {
  padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-weight: 600; font-size: 0.95rem; width: 100%; border: none;
  background: none; text-align: left; color: var(--primary);
}
.faq-icon { font-size: 1.1rem; color: var(--accent); transition: var(--transition); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding-bottom: 16px; font-size: 0.9rem; color: var(--text-secondary); }
.faq-item.active .faq-answer { max-height: 200px; }

/* ============ WHATSAPP BUTTON ============ */
.whatsapp-float {
  position: fixed; bottom: 80px; right: 20px; z-index: 999;
  width: 50px; height: 50px; background: #25D366; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: var(--transition); cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* ============ MOBILE STICKY CTA ============ */
.mobile-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
  border-top: 1px solid var(--border-color); padding: 12px 16px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05); z-index: 998;
  display: none; justify-content: center; align-items: center;
}
.mobile-sticky-cta .btn { width: 100%; text-align: center; }

/* ============ FOOTER ============ */
.footer { background: var(--bg-2); border-top: 1px solid var(--border-color); padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.8fr 1.8fr 0.8fr; gap: 30px; margin-bottom: 30px; }
.footer-brand p { margin-top: 10px; font-size: 0.9rem; color: var(--text-secondary); max-width: 300px; }
.footer-col h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px 24px !important;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col a { font-size: 0.9rem; color: var(--text-secondary); }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--border-color); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; gap: 10px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: fill 0.3s ease;
}
.footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.footer-social a.fb {
  color: #1877F2;
  border-color: rgba(24, 119, 242, 0.2);
  background-color: rgba(24, 119, 242, 0.05);
}
.footer-social a.fb:hover {
  color: #fff;
  background-color: #1877F2;
  border-color: #1877F2;
}
.footer-social a.yt {
  color: #FF0000;
  border-color: rgba(255, 0, 0, 0.2);
  background-color: rgba(255, 0, 0, 0.05);
}
.footer-social a.yt:hover {
  color: #fff;
  background-color: #FF0000;
  border-color: #FF0000;
}
.footer-social a.ln {
  color: #0A66C2;
  border-color: rgba(10, 102, 194, 0.2);
  background-color: rgba(10, 102, 194, 0.05);
}
.footer-social a.ln:hover {
  color: #fff;
  background-color: #0A66C2;
  border-color: #0A66C2;
}
.footer-social a.wa {
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.2);
  background-color: rgba(37, 211, 102, 0.05);
}
.footer-social a.wa:hover {
  color: #fff;
  background-color: #25D366;
  border-color: #25D366;
}
.footer-social a.ig {
  color: #E1306C;
  border-color: rgba(225, 48, 108, 0.2);
  background-color: rgba(225, 48, 108, 0.05);
}
.footer-social a.ig:hover {
  color: #fff;
  background-color: #E1306C;
  border-color: #E1306C;
}

/* ============ ACCORDION FOOTER (MOBILE ONLY) ============ */
.footer-accordion-header { display: none; }

/* ============ TOOL WORKSPACE STYLES ============ */
.tool-page { padding-top: 100px; }
.tool-hero { text-align: center; padding: 40px 0 20px; }
.tool-hero h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 8px; }
.tool-hero .subtitle { color: var(--text-secondary); font-size: 1.05rem; }
.tool-workspace {
  max-width: 650px; margin: 0 auto 50px; background: #fff;
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-md);
}
.tool-input-group { margin-bottom: 16px; }
.tool-input-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--primary); }
.tool-input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border-color);
  background: var(--bg-2); border-radius: var(--radius-md); font-size: 0.95rem;
  color: var(--text-main); outline: none; transition: var(--transition);
  font-family: inherit;
}
.tool-input:focus { border-color: var(--primary); background: #fff; }
.tool-result {
  margin-top: 20px; padding: 20px; border-radius: var(--radius-md);
  background: var(--primary-light); border: 1px solid rgba(30, 58, 170, 0.1);
  display: none;
}
.tool-result.show { display: block; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.result-item { padding: 12px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border-color); }
.result-item .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.result-item .value { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-top: 2px; }
.result-item .value.good { color: var(--success); }
.result-item .value.warn { color: #D97706; }
.result-item .value.bad { color: #EF4444; }

.tool-cta-banner {
  margin-top: 20px; padding: 16px; border-radius: var(--radius-md);
  background: var(--bg-2); border: 1px solid var(--border-color); text-align: center;
}
.tool-cta-banner p { font-size: 0.9rem; margin-bottom: 12px; color: var(--text-secondary); }

.tags-output { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-chip {
  padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.85rem;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid rgba(30, 58, 170, 0.1); cursor: pointer;
  transition: var(--transition);
}
.tag-chip:hover { background: var(--primary); color: #fff; }

.bio-output {
  padding: 16px; border-radius: var(--radius-md); background: var(--bg-2);
  border: 1px solid var(--border-color); font-size: 0.95rem; margin-top: 12px;
  position: relative; white-space: pre-wrap;
}
.copy-btn {
  position: absolute; top: 10px; right: 10px; padding: 4px 10px;
  font-size: 0.75rem; background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius-full); cursor: pointer; transition: var(--transition);
}
.copy-btn:hover { background: var(--accent); }

/* ============ RESPONSIVE MEDIA QUERIES ============ */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 12px 0; background: #fff !important; border-bottom: 1px solid var(--border-color); }
  .logo-text { display: none; }
  #navLinks {
    display: none !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 40px !important;
    gap: 20px !important;
    z-index: 99999 !important;
    box-shadow: var(--shadow-lg) !important;
  }
  #navLinks.open { display: flex !important; }
  .nav-cta { display: none; }
  .mobile-cta-wrapper { display: flex; align-items: center; gap: 10px; }
  .mobile-toggle { display: flex; }
  
  /* Hero */
  .hero { min-height: auto; padding: 100px 0 50px; text-align: center; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto 20px; }
  .hero-buttons .btn { width: 100%; }
  
  /* Stats Grid */
  .stats-bar { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .stat-card { padding: 16px; }
  .stat-number { font-size: 1.6rem; }
  
  /* Sections */
  .section { padding: 40px 0; }
  
  /* How It Works line adjustment */
  .steps-vertical::before { left: 16px; }
  .step-badge { width: 34px; height: 34px; font-size: 1rem; }
  
  /* Sticky bottom CTA */
  .mobile-sticky-cta { display: flex; }
  .whatsapp-float { bottom: 70px; }
  
  /* Footer Accordion styling */
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { margin-bottom: 24px; }
  .footer-col { border-bottom: 1px solid var(--border-color); }
  .footer-col h4 { display: none; }
  .footer-accordion-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; font-weight: 700; color: var(--primary); cursor: pointer;
  }
  .footer-accordion-header::after {
    content: '+'; font-size: 1.2rem; color: var(--accent); transition: var(--transition);
  }
  .footer-col.active .footer-accordion-header::after { content: '−'; }
  .footer-col ul { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding-bottom: 0; }
  .footer-col.active ul { max-height: 500px; padding-bottom: 16px; }
  
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; margin-bottom: 60px; /* offset for sticky cta */ }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { width: 100%; justify-content: center; }
  .result-grid { grid-template-columns: 1fr; }
  .footer-links-grid {
    grid-template-columns: 1fr !important;
    gap: 8px 0 !important;
  }
}

/* ============ UTILITY ============ */
.text-center { text-align: center; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }

/* ============ PAYMENT MODAL ============ */
.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}
.payment-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.payment-modal-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 28px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(30, 58, 138, 0.05);
  position: relative;
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-overflow-scrolling: touch;
}
.payment-modal-card::-webkit-scrollbar { width: 4px; }
.payment-modal-card::-webkit-scrollbar-track { background: transparent; }
.payment-modal-card::-webkit-scrollbar-thumb { background: rgba(30, 58, 138, 0.12); border-radius: 10px; }
.payment-modal-card::-webkit-scrollbar-thumb:hover { background: rgba(30, 58, 138, 0.25); }
.payment-modal-overlay.active .payment-modal-card {
  transform: translateY(0) scale(1);
}
.payment-modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: rgba(241, 245, 249, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: -4px -4px 0 0;
  transition: all 0.2s ease;
}
.payment-modal-close:hover {
  color: #ef4444;
  background: #fef2f2;
}

/* Modal Header */
.pm-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.pm-header-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.pm-header h2 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.3;
  border: none;
  padding: 0;
}
.pm-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

/* Price Box */
.pm-price-box {
  background: linear-gradient(135deg, #1E3A8A, #0F172A);
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pm-price-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.pm-price-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}
.pm-price-value {
  font-size: 2rem;
  font-weight: 900;
  color: #FF6B35;
  letter-spacing: -0.5px;
  margin-top: 2px;
  text-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
  position: relative;
}

/* Sections with Steps */
.pm-section {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
.pm-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}
.pm-step-num {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary), #3B5FE0);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Payment Tabs */
.payment-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.payment-tab-btn {
  padding: 10px 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pm-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.payment-tab-btn.bkash.active {
  background: #E2136E !important;
  color: #ffffff !important;
  border-color: #E2136E !important;
  box-shadow: 0 4px 12px rgba(226, 19, 110, 0.3);
}
.payment-tab-btn.nagad.active {
  background: #F04923 !important;
  color: #ffffff !important;
  border-color: #F04923 !important;
  box-shadow: 0 4px 12px rgba(240, 73, 35, 0.3);
}
.payment-tab-btn.rocket.active {
  background: #8C3494 !important;
  color: #ffffff !important;
  border-color: #8C3494 !important;
  box-shadow: 0 4px 12px rgba(140, 52, 148, 0.3);
}
.payment-tab-btn.bank.active {
  background: #1E3A8A !important;
  color: #ffffff !important;
  border-color: #1E3A8A !important;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}
.payment-tab-btn.active .pm-tab-dot { background: #fff !important; }
.payment-tab-btn.bkash:hover:not(.active) { border-color: #E2136E; color: #E2136E; }
.payment-tab-btn.nagad:hover:not(.active) { border-color: #F04923; color: #F04923; }
.payment-tab-btn.rocket:hover:not(.active) { border-color: #8C3494; color: #8C3494; }
.payment-tab-btn.bank:hover:not(.active) { border-color: #1E3A8A; color: #1E3A8A; }
.payment-instruction-content {
  display: none;
  margin-top: 8px;
}
.payment-instruction-content.active {
  display: block;
  animation: fadeInModal 0.25s ease;
}

/* Instruction Alert */
.pm-instruction-alert {
  font-size: 0.84rem;
  color: #92400e;
  line-height: 1.5;
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  padding: 11px 14px;
  border-radius: 10px;
  border-left: 3px solid #F59E0B;
  font-weight: 500;
  margin-bottom: 12px;
}

/* Number Box */
.pm-number-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--pm-brand) 4%, #fff);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--pm-brand) 12%, transparent);
  border-left: 4px solid var(--pm-brand);
  margin-bottom: 10px;
}
.pm-number-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--pm-brand);
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}
.pm-number-value {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--pm-brand);
  letter-spacing: 0.5px;
}
.pm-copy-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1.5px solid var(--pm-brand);
  color: var(--pm-brand);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: unset;
  height: auto;
  white-space: nowrap;
}
.pm-copy-btn:hover {
  background: var(--pm-brand);
  color: #fff;
}
.pm-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

/* Bank Details */
.pm-bank-details {
  background: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--primary);
  font-size: 0.88rem;
  line-height: 1.6;
}
.pm-bank-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px dashed #E2E8F0;
}
.pm-bank-row span {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Form Elements */
.pm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.pm-form-group {
  margin-bottom: 10px;
}
.pm-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.pm-label-desc {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 500;
  min-height: 30px;
}
.pm-input {
  width: 100%;
  min-height: 40px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  transition: all 0.2s ease;
  outline: none;
}
.pm-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}
.pm-input::placeholder {
  color: #94A3B8;
}

/* Submit Button */
.pm-submit-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #FF6B35, #FF4500);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  letter-spacing: 0.3px;
}
.pm-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.45);
}
.pm-submit-btn:active {
  transform: translateY(0);
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile-specific modal optimizations */
@media (max-width: 576px) {
  .payment-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .payment-modal-card {
    max-height: 94vh;
    padding: 22px 18px;
    border-radius: 20px 20px 0 0;
    width: 100%;
    margin: 0;
  }
  .payment-modal-card h2 {
    font-size: 1.15rem !important;
  }
  .pm-header-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .pm-price-box {
    padding: 14px 16px;
  }
  .pm-price-value {
    font-size: 1.7rem;
  }
  .pm-section {
    padding: 14px;
  }
  .payment-tabs {
    gap: 6px;
  }
  .payment-tab-btn {
    padding: 9px 2px;
    font-size: 0.76rem;
    border-radius: 8px;
  }
  .pm-tab-dot {
    width: 6px;
    height: 6px;
  }
  .pm-form-grid {
    grid-template-columns: 1fr;
  }
  .pm-number-value {
    font-size: 1.05rem;
  }
  .pm-label-desc {
    min-height: auto;
  }
}

.text-gradient { color: var(--accent); }

/* ============ WALLET BUTTON ============ */
.wallet-float {
  position: fixed; bottom: 145px; right: 20px; z-index: 999;
  width: 50px; height: 50px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
  transition: var(--transition); cursor: pointer;
}
.wallet-float:hover {
  transform: scale(1.1);
  background: var(--accent);
  box-shadow: 0 6px 14px rgba(255, 107, 53, 0.35);
}

/* ============ WALLET SIDEBAR DRAWER ============ */
.wallet-sidebar {
  position: fixed;
  top: 0; right: -400px;
  width: 400px; height: 100vh;
  background-color: var(--bg-1);
  border-left: 1px solid var(--border-color);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
  z-index: 10000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.wallet-sidebar.active {
  right: 0;
}
.wallet-sidebar-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.wallet-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.wallet-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-2);
}
.wallet-sidebar-close {
  background: none; border: none; font-size: 1.8rem;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
}
.wallet-sidebar-close:hover {
  color: var(--primary);
}
.wallet-sidebar-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.wallet-logout-btn {
  background: none; border: none; font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); text-decoration: underline; cursor: pointer;
  padding: 0; margin-top: 4px;
}
.wallet-logout-btn:hover {
  color: #ef4444;
}

/* Wallet Order Card Styles */
.wallet-order-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.wallet-order-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.wallet-order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.wallet-order-id {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.wallet-order-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.wallet-order-service {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}
.wallet-order-details {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-2);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wallet-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
}
.wallet-order-price {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
}

/* Wallet Status Badges */
.wallet-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}
.wallet-badge-pending {
  color: #856404;
  background-color: #fff3cd;
  border: 1px solid rgba(255, 193, 7, 0.3);
}
.wallet-badge-confirmed {
  color: var(--success);
  background-color: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.wallet-badge-rejected {
  color: #ef4444;
  background-color: #fee2e2;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.wallet-reject-reason-box {
  font-size: 0.82rem;
  background-color: #fff5f5;
  border: 1.5px solid #feb2b2;
  color: #c53030;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 8px;
  line-height: 1.4;
  text-align: left;
}

/* Mobile responsive drawer and position adjustments */
@media (max-width: 768px) {
  .wallet-float {
    bottom: 120px;
  }
}
@media (max-width: 480px) {
  .wallet-sidebar {
    width: 100vw;
    right: -100vw;
  }
  .wallet-float {
    bottom: 120px;
    right: 16px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* ============ NEWSLETTER FORM DESIGN SYSTEM ============ */
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 24px auto 0;
  width: 100%;
}
.newsletter-form input {
  flex: 1;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  background-color: var(--bg-2);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.newsletter-form input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.15);
}
.newsletter-form input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}
.newsletter-form .btn {
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
    gap: 12px;
  }
  .newsletter-form input {
    width: 100%;
    text-align: center;
  }
  .newsletter-form .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============ CUSTOMER AUTHENTICATION STYLE SYSTEM ============ */
.nav-account-dropdown {
  position: relative;
  display: inline-block;
}
.nav-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 600;
  color: var(--text-main);
}
.nav-account-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
.nav-account-avatar {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.nav-account-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}
.nav-account-arrow {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.nav-account-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  display: none;
  z-index: 1000;
  overflow: hidden;
  animation: fadeUp 0.2s ease;
}
.nav-account-dropdown.open .nav-account-menu {
  display: block;
}
.nav-account-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  text-align: left;
}
.nav-account-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Auth Cards/Forms */
.auth-container {
  max-width: 500px;
  margin: 120px auto 80px;
  padding: 0 20px;
}
.auth-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.auth-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.auth-form-group {
  margin-bottom: 18px;
  text-align: left;
}
.auth-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-main);
}
.auth-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-2);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.auth-input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}
.auth-submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-weight: 700;
  font-size: 1rem;
}

/* ============ BLOG PAGE STYLES ============ */

/* Blog Hero */
.blog-hero {
  padding: 130px 0 60px;
  background: linear-gradient(180deg, var(--primary-light) 0%, #FFFFFF 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
}
.blog-hero .hero-desc {
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Blog Search */
.blog-search-bar {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}
.blog-search-bar input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}
.blog-search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}
.blog-search-bar .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* Blog Stats Row */
.blog-stats-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.blog-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.blog-stat-item strong {
  color: var(--primary);
  font-weight: 800;
}

/* Blog Grid Section */
.blog-section {
  padding: 50px 0 70px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Blog Card */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(30, 58, 138, 0.1);
  border-color: var(--primary);
}

/* Blog Card Image */
.blog-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light) 0%, #E0E7FF 100%);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}
.blog-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 107, 53, 0.08) 100%);
}

/* Blog Card Body */
.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.blog-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(30, 58, 138, 0.12);
}
.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.blog-reading-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.blog-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  transition: var(--transition);
}
.blog-card:hover .blog-read-more {
  gap: 10px;
  color: var(--accent-hover);
}

/* Featured Blog Card */
.blog-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}
.blog-card-featured:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 58, 138, 0.12);
}
.blog-card-featured .blog-card-image {
  height: 100%;
  min-height: 300px;
}
.blog-card-featured .blog-card-body {
  padding: 32px;
  justify-content: center;
}
.blog-card-featured .blog-card-body h3 {
  font-size: 1.5rem;
  -webkit-line-clamp: 3;
}
.blog-card-featured .blog-card-body p {
  font-size: 0.95rem;
  -webkit-line-clamp: 4;
}
.blog-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--accent), #FF8F5E);
  color: #fff;
  margin-bottom: 12px;
}

/* Blog Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}
.blog-pagination .pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  align-items: center;
}
.blog-pagination .page-item {
  margin: 0;
  padding: 0;
  list-style: none;
}
.blog-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.blog-pagination a.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.blog-pagination .page-item.active .page-link {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  cursor: default;
}
.blog-pagination .page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* ============ BLOG SINGLE POST STYLES ============ */

/* Reading Progress Bar */
.post-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  z-index: 10001;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* Post Hero */
.post-hero {
  padding: 130px 0 50px;
  background: linear-gradient(180deg, var(--primary-light) 0%, #FFFFFF 100%);
  position: relative;
}
.post-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Breadcrumb */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.blog-breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}
.blog-breadcrumb a:hover {
  color: var(--primary);
}
.blog-breadcrumb .separator {
  color: var(--text-muted);
  font-size: 0.7rem;
}
.blog-breadcrumb .current {
  color: var(--primary);
  font-weight: 600;
}

/* Post Header */
.post-header {
  max-width: 800px;
}
.post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 16px;
}
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.post-header-meta .blog-date {
  font-size: 0.88rem;
}
.post-header-meta .blog-reading-time {
  font-size: 0.85rem;
}

/* Post Featured Image */
.post-featured-image {
  max-width: 800px;
  margin: 0 auto 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}
.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post Content Layout */
.post-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Table of Contents */
.post-toc {
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.post-toc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.post-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-toc-list li {
  padding-left: 0;
}
.post-toc-list li.toc-h3 {
  padding-left: 16px;
}
.post-toc-list a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.post-toc-list a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-color);
  flex-shrink: 0;
  transition: var(--transition);
}
.post-toc-list a:hover {
  color: var(--primary);
}
.post-toc-list a:hover::before {
  background: var(--accent);
}

/* Post Content Rich Typography */
.post-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  line-height: 1.85;
  font-size: 1.05rem;
  color: var(--text-main);
}
.post-body h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.post-body h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 28px;
  margin-bottom: 12px;
}
.post-body p {
  margin-bottom: 18px;
  color: var(--text-main);
}
.post-body ul, .post-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.post-body li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.post-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--primary-light);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.post-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 53, 0.3);
  text-underline-offset: 2px;
}
.post-body a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent);
}
.post-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 20px 0;
  border: 1px solid var(--border-color);
}
.post-body strong {
  color: var(--primary);
  font-weight: 700;
}
.post-body code {
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
  border: 1px solid var(--border-color);
}
.post-body pre {
  background: #1E293B;
  color: #E2E8F0;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.post-body pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}
.post-body th, .post-body td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border-color);
}
.post-body th {
  background: var(--primary-light);
  font-weight: 700;
  color: var(--primary);
}

/* Author Card */
.post-author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
}
.post-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.post-author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}
.post-author-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Share Bar */
.post-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 24px 0;
}
.post-share-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-right: 4px;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.post-share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}
.share-fb:hover { border-color: #1877F2; color: #1877F2; background: rgba(24, 119, 242, 0.06); }
.share-tw:hover { border-color: #1DA1F2; color: #1DA1F2; background: rgba(29, 161, 242, 0.06); }
.share-wa:hover { border-color: #25D366; color: #25D366; background: rgba(37, 211, 102, 0.06); }
.share-ln:hover { border-color: #0A66C2; color: #0A66C2; background: rgba(10, 102, 194, 0.06); }
.share-copy:hover { border-color: var(--accent); color: var(--accent); background: rgba(255, 107, 53, 0.06); }

/* Related Posts */
.post-related-section {
  padding: 50px 0 70px;
  background: var(--bg-2);
}
.post-related-section .section-header {
  text-align: center;
  margin-bottom: 32px;
}
.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Blog Empty State */
.blog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-color);
}
.blog-empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}
.blog-empty-state h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.blog-empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Blog Responsive */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-card-featured {
    grid-template-columns: 1fr;
  }
  .blog-card-featured .blog-card-image {
    min-height: 220px;
  }
  .post-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .blog-hero {
    padding: 110px 0 40px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card-featured .blog-card-body {
    padding: 20px;
  }
  .blog-card-featured .blog-card-body h3 {
    font-size: 1.25rem;
  }
  .blog-stats-row {
    gap: 16px;
  }
  .post-hero {
    padding: 110px 0 30px;
  }
  .post-body {
    padding: 24px 18px;
    font-size: 1rem;
  }
  .post-related-grid {
    grid-template-columns: 1fr;
  }
  .post-author-card {
    flex-direction: column;
    text-align: center;
  }
  .post-share-bar {
    justify-content: center;
  }
  .post-header h1 {
    font-size: 1.6rem;
  }
}
@media (max-width: 480px) {
  .blog-card-image {
    height: 170px;
  }
  .post-body h2 {
    font-size: 1.3rem;
  }
  .post-toc {
    padding: 16px;
  }
}
