/* CaptionsBD — warm light theme (navy + orange) */
:root {
    --bg: #fffaf6;
    --surface: #ffffff;
    --navy: #13213c;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f1e6dc;
    --orange: #f15a24;
    --orange-2: #ff8a3d;
    --peach: #fff1e8;
    --radius: 16px;
    --shadow: 0 2px 6px rgba(19, 33, 60, .04), 0 12px 32px rgba(19, 33, 60, .06);
    --head: 'Baloo Da 2', 'Hind Siliguri', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: 'Hind Siliguri', system-ui, sans-serif; font-size: 16px; line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--navy); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
    font: inherit; font-weight: 600; border-radius: 999px; padding: 12px 22px; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; box-shadow: 0 6px 16px rgba(241, 90, 36, .28); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Header */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 26px; color: var(--navy); letter-spacing: -.3px; }
.brand-name b { color: var(--orange); font-weight: 800; }
.brand-sub { font-size: 12px; color: var(--navy); opacity: .75; margin-top: 2px; }
.brand.light .brand-name, .brand.light .brand-sub { color: #fff; }
.brand.light .logo-mark path:last-child { stroke: #fff; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.main-nav > a, .has-sub > a { display: block; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--navy); position: relative; }
.main-nav > a:hover, .has-sub:hover > a, .main-nav > a.active { color: var(--orange); }
.main-nav > a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--orange); }
.has-sub { position: relative; }
.has-sub > a::after { content: ' ▾'; font-size: 11px; opacity: .6; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 5; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.sub a:hover { background: var(--peach); color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--peach); color: var(--navy); }
.icon-btn:hover { color: var(--orange); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 30%, #ffe2cf 0, transparent 45%), linear-gradient(180deg, #fff3ea, var(--bg)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero-grid > * { min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--orange); margin: 0 0 10px; }
.eyebrow.line { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.eyebrow.line::before { content: ''; width: 34px; height: 2px; background: var(--orange); }
.hero h1 { font-family: var(--head); font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.2; margin: 0 0 16px; }
.hero h1 span { color: var(--orange); }
.lead { font-size: 18px; color: #374151; max-width: 540px; margin: 0 0 28px; }

.hero-search {
    display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px;
    padding: 6px 6px 6px 20px; box-shadow: var(--shadow); max-width: 520px; border: 1px solid var(--line);
}
.hero-search svg { color: var(--muted); flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; color: var(--ink); padding: 8px 0; }

.hero-art { position: relative; height: 460px; }
.blob { position: absolute; inset: 30px 10% 20px 18%; border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%; background: linear-gradient(160deg, #ffd9c2, #f6d4ea); opacity: .8; }
.leaf { position: absolute; width: 70px; height: 34px; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #ff9a5a, var(--orange)); opacity: .85; }
.leaf.l1 { top: 18px; right: 6%; transform: rotate(-35deg); }
.leaf.l2 { bottom: 40px; left: 22%; transform: rotate(25deg); width: 56px; height: 28px; }
.leaf.l3 { bottom: 110px; right: 2%; transform: rotate(-70deg); width: 46px; height: 24px; opacity: .6; }
.phone {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(6deg);
    width: 210px; height: 410px; border-radius: 36px; background: #111; padding: 9px;
    box-shadow: 0 30px 60px rgba(19, 33, 60, .3);
}
.phone-screen {
    height: 100%; border-radius: 28px; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 24px; text-align: center; color: #fff;
    background: linear-gradient(180deg, #2b3a67 0%, #6b5b95 30%, #f08a5d 62%, #f9c56a 78%, #4a3f5c 100%);
}
.phone-screen p { font-family: var(--head); font-weight: 700; font-size: 21px; line-height: 1.45; margin: 0 0 14px; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.phone-heart { font-size: 22px; opacity: .9; }
.float-card {
    position: absolute; width: 150px; padding: 16px 14px 12px; border-radius: 16px; background: #fff;
    box-shadow: var(--shadow); font-weight: 600; font-size: 14px; line-height: 1.5; color: var(--navy);
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
}
.fc-icon { color: #e11d48; font-size: 16px; }
.fc-heart { color: var(--muted); }
.fc1 { top: 40px; left: 4%; transform: rotate(-6deg); }
.fc2 { top: 70px; right: 0; transform: rotate(6deg); }
.fc3 { bottom: 20px; right: 14%; transform: rotate(-4deg); background: #fff7fb; }

/* Sections */
.section { padding-top: 48px; padding-bottom: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-family: var(--head); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin: 0; }
.section-head .sub { color: var(--muted); margin: 2px 0 0; font-size: 15px; }
.with-icon { display: flex; align-items: center; gap: 10px; }
.h-icon { font-size: .9em; }
.more { font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.more:hover { color: var(--orange); }

/* Tones */
.tone-red    { --t: #ef4444; --tb: #fee2e2; }
.tone-blue   { --t: #3b82f6; --tb: #dbeafe; }
.tone-green  { --t: #16a34a; --tb: #dcfce7; }
.tone-pink   { --t: #ec4899; --tb: #fce7f3; }
.tone-purple { --t: #8b5cf6; --tb: #ede9fe; }
.tone-orange { --t: #f15a24; --tb: #ffedd5; }
.tone-amber  { --t: #d97706; --tb: #fef3c7; }
.tone-indigo { --t: #4f46e5; --tb: #e0e7ff; }
.tone-teal   { --t: #0d9488; --tb: #ccfbf1; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 10px 16px;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.cat-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--tb); margin-bottom: 6px; }
.cat-card strong { color: var(--navy); font-size: 16px; line-height: 1.3; }
.cat-card small { color: var(--muted); font-size: 13px; }

/* Popular quote cards */
.quote-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); grid-auto-rows: auto; gap: 16px; }
.quote-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.quote-card.featured { grid-row: span 2; padding: 10px 10px 18px; border: 2px solid #fbcfb8; }
.quote-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; margin-bottom: 18px; background: var(--peach); }
.quote-img img { width: 100%; height: 100%; object-fit: cover; }
.sunset { position: absolute; inset: 0; background: linear-gradient(180deg, #f6a96b 0%, #f08a5d 45%, #6b5b95 75%, #2b3a67 100%); }
.quote-img .chip { position: absolute; top: 12px; left: 12px; }
.quote-card blockquote { margin: 0; flex: 1; font-size: 17px; font-weight: 500; color: var(--navy); line-height: 1.65; }
.quote-card.featured blockquote { font-family: var(--head); font-size: 22px; font-weight: 600; padding: 0 10px; }
.quote-card blockquote a:hover { color: var(--orange); }
.qmark { color: var(--orange); font-size: 26px; line-height: 1; margin-bottom: 8px; }
.quote-card footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; padding: 0 4px; }
.quote-card.featured footer { padding: 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.copy-link {
    display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 12px; color: var(--muted); white-space: nowrap; padding: 4px 6px; border-radius: 6px;
}
.copy-link:hover, .copy-link.done { color: var(--orange); background: var(--peach); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
    display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 11px; border-radius: 999px;
    background: var(--tb, var(--peach)); color: var(--t, var(--orange));
}
.chip.solid { background: var(--orange); color: #fff; }
.chip.lg { font-size: 15px; padding: 9px 16px; background: #fff; color: var(--navy); border: 1px solid var(--line); }
.chip:hover { filter: brightness(.96); }
.chip.lg:hover { border-color: var(--orange); color: var(--orange); }

/* Post cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--peach); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 42px; background: linear-gradient(135deg, var(--tb), #fff); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .chip { align-self: flex-start; }
.card-title { font-size: 17px; line-height: 1.5; margin: 0; flex: 1; }
.card-title a:hover { color: var(--orange); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Archive / page head */
.page-head { background: linear-gradient(180deg, #fff3ea, var(--bg)); padding: 36px 0 12px; }
.page-head h1 { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 4vw, 42px); line-height: 1.3; margin: 6px 0 8px; }
.page-head p { color: var(--muted); margin: 0 0 12px; max-width: 680px; }
.page-head .hero-search { margin-top: 16px; }
.page-head.center { text-align: center; padding: 70px 0 40px; }
.page-head.center .hero-search { margin: 20px auto; }
.big-num { font-family: var(--head); font-weight: 800; font-size: 96px; line-height: 1; color: var(--orange); margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--orange); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 36px 0 0; justify-content: center; }
.pagination li a, .pagination li span { display: block; min-width: 42px; text-align: center; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.pagination li a:hover { border-color: var(--orange); color: var(--orange); }
.pagination li.active span { background: var(--orange); color: #fff; border-color: var(--orange); }
.pagination li.disabled span { opacity: .4; }

/* Single post */
.post { max-width: 800px; padding-top: 32px; }
.post-title { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 4.5vw, 42px); line-height: 1.3; margin: 10px 0 10px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 26px; }
.content { font-size: 18px; line-height: 1.85; overflow-wrap: anywhere; }
.content h2, .content h3, .content h4 { font-family: var(--head); line-height: 1.4; margin: 1.8em 0 .6em; }
.content h2 { font-size: 26px; }
.content h3 { font-size: 22px; }
.content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.content img { border-radius: 12px; margin: 1em auto; }
.content figure { margin: 1.5em 0; }
.content figcaption { text-align: center; font-size: 14px; color: var(--muted); }
.content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.content td, .content th { border: 1px solid var(--line); padding: 8px 10px; }
.content ul, .content ol { padding-left: 0; list-style: none; }
.content blockquote { margin: 1.2em 0; }
.copy-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 40px; margin: 0 0 14px; box-shadow: 0 2px 8px rgba(19, 33, 60, .04); }
.content blockquote.copy-item { border-left: 4px solid var(--orange); }
.copy-btn { position: absolute; right: 12px; bottom: 9px; border: 0; cursor: pointer; background: var(--peach); color: var(--orange); font: inherit; font-size: 13px; font-weight: 600; padding: 2px 14px; border-radius: 999px; }
.copy-btn:hover, .copy-btn.done { background: var(--orange); color: #fff; }
.tags.chips { margin-top: 24px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.share span { color: var(--muted); font-size: 15px; }
.share a, .share button { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.share a:hover, .share button:hover, .share button.done { border-color: var(--orange); color: var(--orange); }

/* Footer */
.site-footer { margin-top: 72px; background: var(--navy); color: #cbd5e1; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-grid > div:not(:first-child) { border-left: 1px solid rgba(255, 255, 255, .08); padding-left: 28px; }
.site-footer h3 { color: #fff; font-size: 17px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; font-size: 14px; }
.site-footer a:hover { color: var(--orange-2); }
.footer-brand p { font-size: 15px; margin: 14px 0 0; max-width: 280px; }
.site-footer .muted { color: #94a3b8; font-size: 14px; margin: 0 0 12px; }
.footer-search { display: flex; background: #fff; border-radius: 999px; padding: 4px; }
.footer-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 8px 14px; font: inherit; font-size: 14px; background: transparent; }
.footer-search button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; display: grid; place-items: center; cursor: pointer; }
.copyright { text-align: right; font-size: 13px; color: #94a3b8; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* Responsive */
@media (max-width: 1100px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .quote-grid { grid-template-columns: repeat(3, 1fr); }
    .quote-card.featured { grid-row: span 1; grid-column: span 3; display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 0 18px; }
    .quote-card.featured .quote-img { grid-row: span 2; margin-bottom: 0; }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .cta { display: none; }
}
@media (max-width: 900px) {
    .header-row { flex-wrap: wrap; gap: 10px; min-height: 64px; padding: 8px 16px; }
    .menu-toggle { display: block; }
    .header-actions { margin-left: auto; }
    .main-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; order: 3; padding-bottom: 10px; }
    .main-nav.open { display: flex; }
    .main-nav > a.active::after { display: none; }
    .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
    .has-sub > a::after { content: ''; }
    .hero-grid { grid-template-columns: 1fr; padding-top: 36px; }
    .hero-art { height: 400px; max-width: 460px; width: 100%; margin: 0 auto; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .quote-grid { grid-template-columns: repeat(2, 1fr); }
    .quote-card.featured { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:not(:first-child) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
    body { font-size: 15px; }
    .brand-name { font-size: 22px; }
    .logo-mark { width: 32px; height: 32px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .grid, .quote-grid { grid-template-columns: 1fr; }
    .quote-card.featured { grid-column: span 1; display: flex; }
    .quote-card.featured .quote-img { margin-bottom: 16px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .hero-art { height: 360px; }
    .phone { width: 170px; height: 330px; }
    .phone-screen p { font-size: 17px; }
    .float-card { width: 124px; font-size: 12px; padding: 12px 10px 10px; }
    .fc2 { right: 4px; }
    .hero-search { padding-left: 14px; }
    .hero-search .btn { padding: 10px 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .copyright { text-align: left; }
}
.draft-note { background: #fef3c7; color: #92400e; border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 600; margin: 12px 0 0; }

/* Settings-driven bits */
.brand-logo { height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.site-footer .brand-logo { height: 42px; }
.footer-email { font-size: 14px; margin: 10px 0 0 !important; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: var(--orange); color: #fff; }
