/*
Theme Name: Bansal's IAS
Theme URI: https://example.com/newban
Author: Amit
Author URI: https://example.com
Description: A premium, fully responsive WordPress theme for UPSC, IAS and State PCS coaching institutes.
Version: 1.0.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: newban
*/

:root {
  --navy: #0f2d5c;
  --navy-dark: #091b39;
  --orange: #f7941d;
  --orange-soft: #fff2df;
  --text: #17263b;
  --muted: #6f7c92;
  --border: #e8edf4;
  --surface: #ffffff;
  --bg: #f6f8fc;
  --shadow: 0 18px 40px rgba(15, 45, 92, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.page-shell { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .page-shell { grid-template-columns: minmax(0, 2.4fr) minmax(260px, 0.9fr); }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15,45,92,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; font-weight: 800; color: var(--navy); }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--orange)); display: grid; place-items: center; color: white; }
.primary-nav { display: none; gap: 1.25rem; color: var(--navy); font-weight: 600; }
@media (min-width: 960px) { .primary-nav { display: flex; } }
.nav-links { display: flex; gap: 1.25rem; }
.header-actions { display: flex; align-items: center; gap: 0.7rem; }
.header-contact { display: none; font-size: 0.95rem; color: var(--navy); font-weight: 700; }
.header-contact a { color: var(--navy); text-decoration: none; }
@media (min-width: 960px) { .header-contact { display: block; margin-right: 1rem; } }
.top-bar { background: var(--navy); color: #fff; }
.top-bar-inner { width: min(100% - 2rem, var(--container)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; }
.top-bar-text { font-size: 0.95rem; color: #fff; }
.top-bar-action .btn { padding: 0.75rem 1rem; }
.search-form { display: none; }
@media (min-width: 760px) { .search-form { display: flex; } }
.search-form input { border: 1px solid var(--border); border-radius: 999px; padding: 0.7rem 1rem; min-width: 180px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.9rem 1.15rem; border-radius: 999px; font-weight: 700; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 12px 24px rgba(247,148,29,0.25); }
.btn-secondary { background: var(--surface); color: var(--navy); border-color: var(--border); }
.hero { padding: 4.5rem 0 3rem; background: linear-gradient(135deg, rgba(15,45,92,0.04), rgba(247,148,29,0.07)); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.08; margin: 0 0 1rem; color: var(--navy); }
.hero p { font-size: 1.05rem; color: var(--muted); margin: 0 0 1.3rem; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.5rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.stat-card { background: rgba(255,255,255,0.85); border: 1px solid rgba(15,45,92,0.08); border-radius: var(--radius-md); padding: 1rem 1.2rem; box-shadow: var(--shadow); min-width: 120px; }
.stat-card strong { display: block; font-size: 1.1rem; color: var(--navy); }
.hero-visual { background: linear-gradient(145deg, #ffffff, #f7fbff); border-radius: var(--radius-lg); padding: 1.2rem; box-shadow: var(--shadow); border: 1px solid rgba(15,45,92,0.08); }
.hero-visual .card-stack { display: grid; gap: 0.8rem; }
.hero-visual .panel { border-radius: 20px; padding: 1rem; color: var(--navy); background: linear-gradient(135deg, #fff, #f7faff); border: 1px solid rgba(15,45,92,0.06); }
.section { padding: 3rem 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.section-title h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin: 0; color: var(--navy); }
.section-title p { margin: 0; color: var(--muted); }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.15rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(15,45,92,0.14); }
.card h3, .card h4 { margin: 0 0 0.65rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }
.badge { display: inline-block; padding: 0.34rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.85rem; background: var(--orange-soft); color: var(--orange); }
.post-card { display: flex; flex-direction: column; gap: 0.85rem; height: 100%; }
.post-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; font-size: 0.9rem; color: var(--muted); }
.post-card .image-wrap { border-radius: 16px; overflow: hidden; background: var(--bg); min-height: 180px; }
.post-card .image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.blog-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .blog-grid { grid-template-columns: 1.2fr .8fr; } }
.featured-post { border-radius: 28px; background: linear-gradient(135deg, #ffffff, #f6f8fc); padding: 1.2rem; border: 1px solid var(--border); box-shadow: var(--shadow); }
.list-block { padding-left: 1rem; color: var(--muted); }
.list-block li { margin-bottom: 0.6rem; }
.site-footer { margin-top: 3rem; background: var(--navy-dark); color: rgba(255,255,255,0.92); padding: 3rem 0; }
.site-footer h3, .site-footer h4 { color: #fff; }
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-about .footer-logo img { max-width: 140px; border-radius: 12px; margin: 0.6rem 0 1rem; }
.footer-about p { color: rgba(255,255,255,0.85); max-width: 320px; }
.footer-links { list-style: none; padding: 0; margin: 0; color: rgba(255,255,255,0.9); }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer-academy .footer-links li { color: rgba(255,255,255,0.9); }
.footer-contact { color: rgba(255,255,255,0.95); }
.footer-contact .footer-address { margin-bottom: 1rem; color: rgba(255,255,255,0.85); }
.footer-contact .footer-email a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer-hotline { margin-top: 1rem; }
.footer-hotline .hotline-number { font-weight: 800; font-size: 1.05rem; margin-top: 0.5rem; }
.widget { margin-bottom: 1rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin-bottom: 0.6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1rem; color: rgba(255,255,255,0.7); }
.entry-title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: var(--navy); margin-bottom: 0.65rem; }
.entry-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.entry-content p, .entry-content ul, .entry-content ol { color: var(--text); }
.entry-content img { border-radius: 16px; margin: 1rem 0; }
.entry-content blockquote { border-left: 4px solid var(--orange); padding-left: 1rem; color: var(--navy); font-weight: 600; }
.post-navigation, .pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; background: var(--bg); border-radius: 999px; padding: 0 0.8rem; }
.pagination .current { background: var(--orange); color: white; }
.comment-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.comment { border: 1px solid var(--border); border-radius: 18px; padding: 1rem; margin-bottom: 1rem; }
.screen-reader-text { display: none; }
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.sticky-sidebar { position: sticky; top: 90px; }
.toc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1rem; box-shadow: var(--shadow); }
.wp-block-image img { border-radius: 16px; }

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .hero { padding-top: 3rem; }
}
