:root {
    --brand-maroon: #8b1e2c;
    --brand-maroon-dark: #6b1621;
    --brand-mustard: #d9a441;
    --ink: #262220;
    --paper: #faf7f2;
    --paper-alt: #f1ece3;
    --rule: #e2d8c8;
    --font-headline-bn: 'Noto Serif Bengali', serif;
    --font-headline-en: 'Playfair Display', serif;
    --font-body-bn: 'Noto Sans Bengali', sans-serif;
    --font-body-en: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body-bn), var(--font-body-en);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
}

h1, h2, h3, h4, .display-font {
    font-family: var(--font-headline-bn), var(--font-headline-en);
    font-weight: 700;
    color: var(--brand-maroon-dark);
}

a { color: var(--brand-maroon); text-decoration: none; }
a:hover { color: var(--brand-maroon-dark); }

/* Topbar */
.topbar {
    background: var(--ink);
    color: #ece6dc;
    font-size: 0.85rem;
    padding: 6px 0;
}
.topbar a { color: #ece6dc; margin-right: 16px; }
.topbar a:last-child { margin-right: 0; }
.topbar a:hover { color: var(--brand-mustard); }
.topbar-social a { margin-left: 12px; margin-right: 0; }

/* Masthead */
.site-masthead {
    background: var(--paper);
    padding: 10px 0 6px;
    border-bottom: 3px double var(--brand-maroon);
}
.masthead-title {
    display: block;
    font-family: var(--font-headline-bn), var(--font-headline-en);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--brand-maroon) !important;
    letter-spacing: 1px;
    line-height: 1.2;
}
.masthead-tagline {
    font-size: 0.8rem;
    color: #6b6259;
    margin-top: 2px;
}

/* Nav */
.site-nav {
    background: var(--brand-maroon);
}
.site-nav .nav-link {
    color: #f3e9dd;
    font-weight: 500;
    padding: 14px 18px !important;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: #fff;
    background: var(--brand-maroon-dark);
}

/* Ticker */
.ticker-bar {
    background: var(--brand-mustard);
    color: var(--ink);
    display: flex;
    align-items: center;
    overflow: hidden;
    font-weight: 500;
}
.ticker-label {
    background: var(--ink);
    color: #fff;
    padding: 6px 14px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    height: 32px;
}
.ticker-track {
    flex: 1;
    height: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.ticker-track-inner {
    display: flex;
    width: max-content;
    animation: ticker-scroll 30s linear infinite;
}
.ticker-content {
    white-space: nowrap;
    padding-right: 50px;
    font-size: 0.9rem;
    line-height: 32px;
}
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 48px 0; }
.section-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rule);
    position: relative;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: -2px; left: 0;
    width: 70px; height: 2px;
    background: var(--brand-maroon);
}

.card-news {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 20px;
    height: 100%;
    transition: box-shadow .2s ease;
}
.card-news:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.card-news h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card-news p { color: #4c463f; font-size: 0.95rem; }

.hero-strip {
    background: linear-gradient(135deg, var(--brand-maroon), var(--brand-maroon-dark));
    color: #fff;
    padding: 22px 0;
}
.hero-strip h1 {
    color: #fff;
    margin-bottom: 6px;
    font-size: 1.6rem !important;
}
.hero-strip p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.hero-strip a.btn {
    background: var(--brand-mustard);
    color: var(--ink);
    font-weight: 600;
    border: none;
    padding: 6px 18px;
}
.hero-strip a.btn:hover { background: #c69432; }

.list-group-item.archive-item { border-color: var(--rule); }

.gallery-thumb {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    display: block;
    border-radius: 6px;
}
.gallery-card { text-align: center; margin: 0; }
.gallery-card figcaption {
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.gallery-card-link {
    text-decoration: none;
    display: block;
}
.gallery-thumb-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.gallery-thumb-wrap .gallery-thumb {
    border-radius: 0;
    transition: transform .4s ease;
}
.gallery-thumb-wrap:hover .gallery-thumb {
    transform: scale(1.08);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(139,30,44,.88), rgba(139,30,44,0) 60%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity .25s ease;
}
.gallery-thumb-wrap:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay i { margin-right: 5px; }

/* About (homepage) */
.about-lead {
    font-size: 1rem;
    color: #4c463f;
    margin-bottom: 18px;
}
.about-quote {
    border-left: 4px solid var(--brand-mustard);
    padding: 4px 0 4px 18px;
    margin: 0 0 22px;
    font-family: var(--font-headline-bn), var(--font-headline-en);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--brand-maroon-dark);
}
.about-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.about-fact {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.about-fact:hover {
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
    transform: translateY(-2px);
}
.about-fact i {
    font-size: 1.5rem;
    color: var(--brand-maroon);
    width: 34px;
    text-align: center;
    flex-shrink: 0;
}
.about-fact strong {
    display: block;
    font-size: 1.15rem;
    color: var(--ink);
    font-family: var(--font-headline-bn), var(--font-headline-en);
}
.about-fact span {
    font-size: 0.8rem;
    color: #7a7266;
}
@media (max-width: 575.98px) {
    .about-facts { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
    position: relative;
    background:
        radial-gradient(circle at 8% 10%, rgba(217,164,65,.07) 0, transparent 35%),
        radial-gradient(circle at 95% 85%, rgba(139,30,44,.18) 0, transparent 40%),
        var(--ink);
    color: #d8d2c8;
    padding: 22px 0 14px;
    margin-top: 0;
    overflow: hidden;
    font-size: 0.9rem;
}
.footer-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--brand-mustard), var(--brand-maroon), var(--brand-mustard));
    background-size: 200% 100%;
}
.footer-brand-inline {
    text-align: center;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #3d3833;
    font-size: 0.85rem;
}
.footer-brand-name {
    font-family: var(--font-headline-bn), var(--font-headline-en);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}
.footer-brand-sep { color: var(--brand-mustard); margin: 0 8px; }
.footer-brand-tagline { color: #9a9388; }
.footer-col { position: relative; }
@media (min-width: 768px) {
    .footer-col:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 2px;
        right: -12px;
        bottom: 2px;
        width: 1px;
        background: #3d3833;
    }
}
.site-footer h5 {
    color: #fff;
    font-family: var(--font-body-bn);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #3d3833;
}
.site-footer a { color: #d8d2c8; transition: color .15s ease; }
.site-footer a:hover { color: var(--brand-mustard); }
.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(217,164,65,.15);
    color: var(--brand-mustard);
    font-size: 0.65rem;
    margin-right: 7px;
    margin-top: 1px;
    flex-shrink: 0;
}
.footer-address div { margin-bottom: 7px; line-height: 1.4; display: flex; align-items: flex-start; font-size: 0.83rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
}
.footer-links li { margin-bottom: 6px; font-size: 0.85rem; }
.footer-links li a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--brand-mustard);
    margin-right: 6px;
    font-size: 0.7rem;
}
.footer-social a {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    margin-right: 8px;
    transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--brand-mustard); color: var(--ink); transform: translateY(-3px); }
.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: #9a9388;
}
.footer-visitor { color: #b8b1a4; white-space: nowrap; }
.footer-visitor i { color: var(--brand-mustard); margin-right: 4px; }
.footer-visitor strong { color: #fff; }
.site-footer hr { border-color: #3d3833; margin: 10px 0; }

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--brand-maroon);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, background .2s ease;
    z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-maroon-dark); }

/* Forms */
.form-control:focus {
    border-color: var(--brand-maroon);
    box-shadow: 0 0 0 0.2rem rgba(139,30,44,.15);
}
.btn-brand {
    background: var(--brand-maroon);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-brand:hover { background: var(--brand-maroon-dark); color: #fff; }
