/* AssameseCalendar.online — shared site styles */
:root {
    --bg: #fbf7f0;
    --surface: #ffffff;
    --ink: #1f1a17;
    --muted: #6b625a;
    --line: #ece3d6;
    --red: #a3201f;
    --red-dark: #7f1817;
    --gold: #c8962e;
    --gold-soft: #f6ead0;
    --green: #2f7d4f;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(31, 26, 23, 0.06), 0 4px 16px rgba(31, 26, 23, 0.06);
    --font: "Noto Sans Bengali", "Nirmala UI", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--red); }
a:hover { color: var(--red-dark); }

img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
}

/* Gamosa-style stripe */
.site-header::before {
    content: "";
    display: block;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--red) 0 28px, var(--gold) 28px 34px, var(--red) 34px 40px, #fff 40px 44px);
}

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 17px; }
.brand-sub { font-size: 12px; color: var(--muted); }

.site-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
    white-space: nowrap;
    text-decoration: none;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover { background: var(--gold-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--red); color: #fff; }
.site-nav a.nav-download { color: var(--green); font-weight: 600; }
.site-nav a.nav-download:hover { background: #e3f2e8; }

@media (max-width: 860px) {
    .header-inner { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 16px 8px; }
    .site-nav { margin: 0 -16px; padding: 0 12px 2px; }
}

/* ---------- Page layout ---------- */
main, .page {
    flex: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

h1, h2, h3, h4 { line-height: 1.35; color: var(--ink); }
h1 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 3.6vw, 27px); margin: 32px 0 12px; }
h3 { font-size: 20px; margin: 24px 0 8px; }
h4 { font-size: 18px; margin: 20px 0 6px; }

p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }

blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--gold);
    background: var(--gold-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* Article / content cards */
article,
.about-section,
.contact-section,
.policy-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(20px, 4vw, 40px);
}

article > h1:first-child,
article > h2:first-child,
.about-section > h2:first-child,
.contact-section > h2:first-child,
.policy-section > h2:first-child { margin-top: 0; }

article em:first-of-type { color: var(--muted); }

.email-link { font-weight: 600; word-break: break-all; }

/* ---------- Listing pages ---------- */
.page-intro { color: var(--muted); margin-top: -6px; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.blog-post {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-post:hover {
    transform: translateY(-2px);
    border-color: #e0cfb4;
    box-shadow: 0 2px 4px rgba(31, 26, 23, 0.06), 0 10px 24px rgba(31, 26, 23, 0.09);
}

.blog-post h2, .blog-post h3 { font-size: 19px; margin: 0 0 8px; }
.blog-post p { color: var(--muted); font-size: 15px; line-height: 1.6; flex: 1; }

.read-more {
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    margin-top: auto;
}
.read-more::after { content: " →"; }
/* Whole card is clickable */
.read-more::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(163, 32, 31, 0.28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--gold-soft); color: var(--ink); }

/* ---------- Home page ---------- */
.hero {
    text-align: center;
    padding: 24px 0 8px;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
    background: #f8e3e1;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.hero h1 { font-size: clamp(30px, 6vw, 46px); margin-bottom: 12px; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.section-title { font-size: 24px; margin: 44px 0 4px; }
.section-sub { color: var(--muted); margin: 0 0 4px; }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.quick-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.quick-card:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--ink); }
.quick-icon { font-size: 28px; line-height: 1.2; }
.quick-title { font-weight: 700; font-size: 18px; }
.quick-text { color: var(--muted); font-size: 15px; line-height: 1.55; }

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
}
.topic-list li { margin: 0; }
.topic-list a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.topic-list a:hover { background: var(--gold-soft); border-color: var(--gold); }

.about-strip {
    margin-top: 44px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--gold-soft);
    color: #4a3f2f;
}
.about-strip p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: #1f1a17;
    color: #cfc6bb;
    font-size: 15px;
    margin-top: auto;
}
.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: #f1e8da; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-copy { margin: 0; }

/* Third-party ad containers */
[id^="container-"] { max-width: 860px; margin: 0 auto 24px; padding: 0 20px; }

@media (max-width: 600px) {
    body { font-size: 16px; }
    main, .page { padding: 22px 16px 40px; }
    .hero-lead { font-size: 16px; }
    .btn { width: 100%; }
}
