/*
 * 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 cmaminulbahar.com on top of style.css (teal + navy),
 * plus components used only on this site: person hero, stats, blog cards, article typography.
 *
 * 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: #0b7a75;              /* teal */
    --brand-dark: #102a43;         /* navy */
    --brand-soft: #e5f4f3;
    --accent: #e0a526;             /* gold, used sparingly */
    --navy: #0c2236;
    --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: 50%; height: 40px; width: 40px; object-fit: cover; background: var(--brand-soft); }
.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: 50%; 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(11, 122, 117, .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: 80px; height: 80px; border-radius: 50%; 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; }
}

@media (min-width: 768px) {
    .quick-actions { grid-template-columns: repeat(3, minmax(0, 240px)); }
}
