/* ========================================
   Hero Section
   ======================================== */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a6e 50%, #1a56db 100%); color: #fff; padding: 90px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(90deg, #f59e0b, #fcd34d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.8); margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

/* Search in hero */
.hero-search { background: rgba(255,255,255,.1); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg); padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto 48px; }
.hero-search input { flex: 1; background: transparent; border: none; color: #fff; font-size: 1rem; }
.hero-search input::placeholder { color: rgba(255,255,255,.6); }
.hero-search input:focus { outline: none; }
.hero-search .btn { flex-shrink: 0; }

.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); padding-top: 36px; }
.hero-stat-num { font-size: 2rem; font-weight: 800; font-family: var(--font-heading); }
.hero-stat-label { font-size: .85rem; color: rgba(255,255,255,.65); margin-top: 2px; }

/* ========================================
   Calculator Card
   ======================================== */
.calc-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; transition: all .25s ease; cursor: pointer; text-decoration: none; color: var(--text); }
.calc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: var(--primary); color: var(--text); }
.calc-card-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.calc-card-icon.blue { background: #dbeafe; }
.calc-card-icon.green { background: #d1fae5; }
.calc-card-icon.purple { background: #ede9fe; }
.calc-card-icon.amber { background: #fef3c7; }
.calc-card-icon.red { background: #fee2e2; }
.calc-card-icon.teal { background: #ccfbf1; }
.calc-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.calc-card p { font-size: .875rem; color: var(--text-muted); margin: 0; }
.calc-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-muted); }
.calc-card-footer .calc-link { color: var(--primary); font-weight: 600; font-size: .85rem; }

/* ========================================
   Calculator Tool
   ======================================== */
.calc-tool { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.calc-tool-header { background: linear-gradient(135deg, #1a56db, #3b72f0); color: #fff; padding: 28px 32px; }
.calc-tool-header h2 { color: #fff; font-size: 1.4rem; margin-bottom: 4px; }
.calc-tool-header p { color: rgba(255,255,255,.8); font-size: .9rem; margin: 0; }
.calc-tool-body { padding: 32px; }
.calc-actions { display: flex; gap: 12px; margin-top: 24px; }
.calc-actions .btn { flex: 1; justify-content: center; }

/* ========================================
   Range Slider
   ======================================== */
.range-group { display: flex; align-items: center; gap: 16px; }
.range-group input[type=range] { flex: 1; -webkit-appearance: none; height: 6px; border-radius: 3px; background: #e2e8f0; cursor: pointer; }
.range-group input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--primary); border-radius: 50%; box-shadow: 0 2px 6px rgba(26,86,219,.4); }
.range-val { min-width: 80px; font-weight: 700; color: var(--primary); font-size: 1.05rem; text-align: right; }

/* ========================================
   Page Hero (Inner Pages)
   ======================================== */
.page-hero { background: linear-gradient(135deg, #0f172a, #1e3a6e); color: #fff; padding: 56px 0 64px; text-align: center; }
.page-hero .breadcrumb { margin-bottom: 16px; justify-content: center; }
.page-hero .breadcrumb a, .page-hero .breadcrumb-sep { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb-current { color: rgba(255,255,255,.9); }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 650px; margin: 0 auto; }

/* ========================================
   Blog Card
   ======================================== */
.blog-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all .25s ease; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card-thumb { height: 200px; background: linear-gradient(135deg, #1a56db, #3b72f0); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--text-muted); margin-bottom: 10px; }
.blog-card h3 { font-size: 1rem; margin-bottom: 8px; }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: .875rem; color: var(--text-muted); flex: 1; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ========================================
   Sidebar
   ======================================== */
.page-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-widget { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.sidebar-widget h4 { font-size: 1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); color: var(--text); }
.sidebar-widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.sidebar-widget ul li a:hover { color: var(--primary); }

@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ========================================
   Trust Badges
   ======================================== */
.trust-strip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; }
.trust-items { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--text-muted); }
.trust-item .icon { font-size: 1.2rem; }

/* ========================================
   Steps / How-To
   ======================================== */
.steps { counter-reset: step; }
.step-item { display: flex; gap: 20px; margin-bottom: 28px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .9rem; }
.step-content h4 { margin-bottom: 6px; }
.step-content p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ========================================
   Scroll to top
   ======================================== */
#scrollTop { position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(26,86,219,.4); cursor: pointer; opacity: 0; transition: all .3s; z-index: 800; transform: translateY(10px); }
#scrollTop.visible { opacity: 1; transform: translateY(0); }
#scrollTop:hover { background: var(--primary-dark); transform: translateY(-2px); }
