/*
 * Author: RaKiBuL HaSaN - CEO & Founder, The One Stop BD (theonestopbd.com)
 * Developer Phone: +8801752986368
 * Developer Email: rhs.rakibul@gmail.com
 *
 * File: css/theme.css
 * Purpose: Brand layer for businesstips360.com on top of style.css (red + near-black),
 * plus components used only on this site: news home layout, blog cards, article typography (Bangla friendly).
 *
 * TABLE OF CONTENTS
 *  1. Variables
 *  2. Base tweaks + header brand
 *  3. Person hero + stats
 *  4. Cards, topics, roles, tags
 *  5. Blog list, filters, pagination
 *  6. Article typography
 *  7. Videos, notices, US pages
 *  8. Footer
 *  9. Media queries
 */

/* ==========================================================
   1. VARIABLES
   ========================================================== */
:root {
    --brand: #b3261e;              /* red from the logo ring */
    --brand-dark: #1b1b2f;         /* near-black */
    --brand-soft: #fbecea;
    --accent: #f0b429;             /* gold, used sparingly */
    --navy: #15151f;
    --ink: #14253a;
    --text: #33414f;
    --muted: #5a6776;
    --bg-alt: #f4f7f9;
    --line: #dfe6ec;
}

/* ==========================================================
   2. BASE TWEAKS + HEADER BRAND
   ========================================================== */
h1, h2 { letter-spacing: -.015em; }
.eyebrow { color: var(--brand); }
.page-banner { background: var(--brand-soft); border-bottom: 0; }
.page-banner h1 { color: var(--brand-dark); }
.icon-badge { background: var(--brand-dark); }
.icon-badge-soft { background: var(--brand-soft); color: var(--brand); }
.btn-primary { background: var(--brand); }
.btn-outline { color: var(--brand); border-color: var(--brand); }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); }
.bottom-nav a.active { color: var(--brand); }
.link-arrow { color: var(--brand); }
.step-num { background: var(--brand); }
.cta-band { background: var(--brand-dark); }
.brand img { border-radius: 10px; height: 40px; width: 40px; object-fit: cover; background: #fff; }
.brand-title { display: none; flex-direction: column; line-height: 1.15; margin-left: 10px; }
.brand-title strong { color: var(--ink); font-size: 1.05rem; }
.brand-title small { color: var(--muted); font-size: .78rem; }
.hc-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.header-contact { display: none; align-items: center; gap: 10px; line-height: 1.2; }
.hc-text { display: flex; flex-direction: column; font-size: .9rem; font-weight: 600; }
.hc-text a { color: var(--brand-dark); }
.card-title { font-size: 1.15rem; }
.disclaimer { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 8px; padding: 14px 16px; color: var(--ink); margin: 22px 0 0; }
ul.flag-row { list-style: none; padding: 0; }

/* ==========================================================
   3. PERSON HERO + STATS
   ========================================================== */
.hero-person { background: var(--brand-dark); color: #fff; min-height: 0; display: block; overflow: hidden; }
.hero-person .hero-grid { display: grid; gap: 8px; align-items: end; padding-top: 36px; }
.hero-person .hero-content { padding: 8px 0 8px; }
.hero-person h1 { color: #fff; max-width: 16ch; }
.hero-person .hero-lead { color: rgba(255, 255, 255, .9); }
.hero-person .eyebrow-light { color: #9fe0d8; }
.hero-person .hero-points .icon { color: #8fe0d6; }
.hero-photo { display: flex; justify-content: center; align-items: flex-end; }
.hero-photo img { width: min(78%, 360px); height: auto; background: none; display: block; }

.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.stats li { padding: 18px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.stats li:nth-child(odd) { border-right: 1px solid var(--line); }
.stats strong { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--brand); }
.stats span { color: var(--muted); font-size: .9rem; }
.stats-compact { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stats-compact li { padding: 12px 6px; }
.stats-compact strong { font-size: 1.3rem; }

/* ==========================================================
   4. CARDS, TOPICS, ROLES, TAGS
   ========================================================== */
.tag-pill { display: inline-block; align-self: flex-start; margin-top: auto; padding: 4px 12px; background: var(--brand-soft); color: var(--brand); border-radius: 999px; font-size: .8rem; font-weight: 700; }
.service-card .tag-pill { margin-top: 12px; }
.post-link { display: block; color: inherit; text-decoration: none !important; }
.post-link h3 { color: var(--brand-dark); }
.about-photo img { max-width: 360px; margin: 0 auto; border-radius: 50%; aspect-ratio: 1; object-fit: cover; }

.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.topic-card { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none !important; box-shadow: var(--shadow); }
.topic-card strong { color: var(--brand-dark); font-size: 1.1rem; }
.topic-card span { color: var(--muted); font-size: .9rem; }
.topic-card:active { transform: scale(.98); }

.role-list { display: grid; gap: 10px; }
.role-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.role-list strong { color: var(--brand-dark); }
.role-list span { color: var(--muted); }

.about-grid { display: grid; gap: 28px; align-items: start; }
.about-card { max-width: 420px; margin: 0 auto; }
.about-portrait { width: 100%; max-width: 300px; margin: 0 auto; background: var(--brand-dark); border-radius: 18px; padding-top: 12px; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; color: var(--brand-dark); }
.prose h2:first-child { margin-top: 0; }

/* ==========================================================
   5. BLOG LIST, FILTERS, PAGINATION
   ========================================================== */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 14px; }
.post-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--brand-soft); }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-topic { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--brand-dark); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.post-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-title { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.post-title a { color: var(--brand-dark); text-decoration: none; }
.post-excerpt { margin: 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin: 0; color: var(--muted); font-size: .85rem; }
.post-meta a { color: var(--brand); }
.post-card .post-meta { margin-top: auto; }

.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin: 0 calc(var(--space) * -1) 18px; padding-left: var(--space); padding-right: var(--space); scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { display: inline-block; white-space: nowrap; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none !important; min-height: 40px; }
.filter-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.pager-link { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; color: var(--ink); text-decoration: none !important; }
.pager-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ==========================================================
   6. ARTICLE TYPOGRAPHY
   ========================================================== */
.article-banner { padding-bottom: 26px; }
.article-title { font-size: clamp(1.6rem, 3.6vw + .7rem, 2.6rem); line-height: 1.2; }
.article-hero { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 24px; }
.article-body { font-size: 1.05rem; line-height: 1.8; overflow-wrap: break-word; }
.article-body h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; color: var(--brand-dark); }
.article-body h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; color: var(--ink); }
.article-body h4 { font-size: 1.05rem; margin: 1.3em 0 .4em; }
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.4em; list-style: revert; }
.article-body li { margin-bottom: .4em; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body img { border-radius: 12px; margin: 1.2em auto; }
.article-body blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 8px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.table-wrap th, .table-wrap td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--brand-soft); color: var(--brand-dark); }
.table-wrap tr:last-child td { border-bottom: 0; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 36px; padding: 18px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; }
.author-box img { width: 72px; height: 72px; border-radius: 14px; flex-shrink: 0; object-fit: cover; }
.author-box strong { display: block; color: var(--brand-dark); }
.author-box span { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.author-box p { margin: 0 0 10px; font-size: .95rem; }

/* ==========================================================
   7. VIDEOS, NOTICES, US PAGES
   ========================================================== */
.video-grid { display: grid; gap: 14px; }
.video-card { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow); text-decoration: none !important; }
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-play span { width: 62px; height: 62px; border-radius: 50%; background: rgba(179, 38, 30, .95); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.video-play svg { fill: #fff; stroke: none; margin-left: 3px; }
.numbered { counter-reset: n; display: grid; gap: 10px; }
.numbered li { counter-increment: n; display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.numbered li::before { content: counter(n); flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* ==========================================================
   8. FOOTER
   ========================================================== */
.site-footer { background: var(--navy); color: #c1ccd8; }
.site-footer a { color: #c1ccd8; }
.footer-title::after { content: ""; display: block; width: 34px; height: 2px; background: var(--accent); margin-top: 10px; }
.footer-avatar { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; margin-bottom: 14px; background: none; }
.mobile-footer { background: var(--brand-soft); }
.social-dark a { background: var(--brand-dark); }

/* ==========================================================
   9. MEDIA QUERIES
   ========================================================== */
@media (min-width: 768px) {
    .brand img { height: 48px; width: 48px; }
    .brand-title { display: flex; }
    .hero-person .hero-grid { grid-template-columns: 1.25fr .75fr; padding-top: 60px; gap: 24px; }
    .hero-person .hero-content { padding-bottom: 56px; }
    .hero-photo img { width: min(100%, 420px); }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stats li { border-bottom: 0; border-right: 1px solid var(--line); }
    .stats li:last-child { border-right: 0; }
    .stats-compact { display: none; }
    .topic-grid { grid-template-columns: repeat(3, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 300px 1fr; gap: 40px; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .header-contact { display: flex; margin-left: 8px; }
    .topic-grid { grid-template-columns: repeat(6, 1fr); }
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-person .hero-grid { padding-top: 72px; }
}
@media (min-width: 1024px) and (hover: hover) {
    .topic-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
    .topic-card, .post-card { transition: transform .25s ease, box-shadow .25s ease; }
    .filter-chip:hover, .pager-link:hover { border-color: var(--brand); }
}
@media (max-width: 767px) {
    .about-photo img { max-width: 220px; }
    .stats-compact { display: grid; }
}

/* ==========================================================
   10. NEWS HOME LAYOUT + BANGLA TYPOGRAPHY (business tips 360)
   ========================================================== */
[lang="bn"] { font-family: "Nirmala UI", "Noto Sans Bengali", "Kalpurush", "Siyam Rupali", system-ui, sans-serif; }
.article-body[lang="bn"], .post-excerpt[lang="bn"], .lead-body p[lang="bn"] { line-height: 1.95; }
h1[lang="bn"], h2[lang="bn"], h3[lang="bn"] { line-height: 1.45; letter-spacing: 0; }
.post-title a[lang="bn"], .side-stories h3[lang="bn"] a { line-height: 1.5; }

.home-top { background: var(--bg-alt); padding: 28px 0 36px; border-bottom: 1px solid var(--line); }
.home-intro { margin-bottom: 22px; }
.home-intro h1 { font-size: clamp(1.8rem, 4vw + .6rem, 3rem); margin-bottom: .2em; }
.home-intro p { max-width: 62ch; color: var(--muted); margin: 0; }
.top-stories { display: grid; gap: 20px; }
.lead-story { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.lead-media { display: block; aspect-ratio: 16 / 10; background: var(--brand-soft); overflow: hidden; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-body { padding: 18px 20px 20px; }
.lead-body h2 { font-size: clamp(1.25rem, 1.8vw + .9rem, 1.8rem); margin: 6px 0 8px; }
.lead-body h2 a { color: var(--ink); text-decoration: none; }
.lead-body p { color: var(--muted); }
.post-topic-inline { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.side-stories { display: grid; gap: 12px; align-content: start; }
.side-stories li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.side-thumb { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--brand-soft); }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-stories h3 { font-size: .98rem; line-height: 1.45; margin: 2px 0 4px; }
.side-stories h3 a { color: var(--ink); text-decoration: none; }
.side-stories .post-meta { font-size: .8rem; }
.topic-card span[lang="bn"] { color: var(--ink); font-size: .95rem; }
.network-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none !important; }
.network-card img { border-radius: 12px; width: 100%; height: auto; background: var(--brand-soft); }
.network-card h3 { margin: 4px 0 0; color: var(--brand-dark); }
.network-card p { margin: 0; color: var(--muted); }
.network-card .link-arrow { margin-top: auto; }
.about-logo { max-width: 240px; margin: 0 auto; border-radius: 24px; box-shadow: var(--shadow-lg); background: none; }

@media (min-width: 768px) {
    .post-media img { aspect-ratio: 3 / 2; }
}
@media (min-width: 1024px) {
    .top-stories { grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
    .side-thumb { flex-basis: 96px; width: 96px; height: 96px; }
    .topic-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ===== Blog (public) ===== */
.web-login { white-space: nowrap; }
.web-login .icon { vertical-align: -2px; }

/* ===== Part of a Group (section above the footer) ===== */
.group-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.group-card { margin: 0; }
.group-link { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; height: 100%; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
a.group-link:hover { border-color: var(--brand); transform: translateY(-2px); }
.group-link { transition: transform .2s ease, border-color .2s ease; }
.group-badge { grid-row: 1 / span 3; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.group-link strong { color: var(--ink); font-size: 1.05rem; line-height: 1.25; }
.group-link small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.group-link em { font-style: normal; font-size: .82rem; font-weight: 600; color: var(--brand); margin-top: 4px; }
.group-card.is-current .group-link { border-style: dashed; background: transparent; box-shadow: none; }
.group-card.is-current .group-badge { background: var(--muted); }
.group-card.is-current em { color: var(--muted); }
@media (min-width: 640px) { .group-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .group-cards { grid-template-columns: repeat(5, 1fr); } .group-link { grid-template-columns: 1fr; row-gap: 6px; text-align: center; justify-items: center; padding: 20px 14px; } .group-badge { grid-row: auto; margin-bottom: 4px; } }

/* ===== Footer polish (more breathing room, tidy bottom bar, Web Login pill) ===== */
.site-footer .container { padding-left: 28px; padding-right: 28px; }
.footer-grid { padding-top: 64px; padding-bottom: 48px; gap: 40px; }
.footer-about img { width: 96px; height: 96px; object-fit: cover; padding: 4px; background: #fff; border-radius: 18px; margin-bottom: 20px; }
.footer-about p { line-height: 1.75; max-width: 40ch; margin: 0 0 18px; }
.footer-title { margin-bottom: 20px; }
.footer-col ul { gap: 12px; line-height: 1.5; }
.footer-bottom { padding: 22px 0 26px; }
.footer-bottom-inner { gap: 10px 28px; align-items: center; }
.footer-bottom p { line-height: 1.7; }
.web-login { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; margin-left: 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; font-size: .85rem; line-height: 1.6; }
.web-login:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.mobile-footer { padding: 28px 28px 34px; line-height: 1.7; }
.mobile-footer p { margin: 0 0 10px; }
.mobile-footer .web-login { margin: 0; color: var(--brand); background: #fff; border-color: var(--line); }
@media (min-width: 640px) and (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
