/* ============================================================
   আল-হাইআতুল উলয়া — কেন্দ্রীয় ওয়েবসাইট
   হালকা, সাদামাটা থিম
   ============================================================ */
:root {
    --paper: #F7F8F5;
    --paper-raised: #FFFFFF;
    --cream: #FBF8F1;
    --ink: #23271F;
    --ink-soft: #666B5C;
    --green-900: #1B3B2E;
    --green-700: #2C5A45;
    --green-100: #E9F1EC;
    --green-50: #F3F8F5;
    --brass: #B08A4E;
    --brass-dark: #8C6A37;
    --brass-soft: #E3D2AE;
    --line: #E4E4DC;
    --danger: #B3402A;
    --radius: 8px;
    --font-display: 'Noto Serif Bengali', 'Noto Serif', serif;
    --font-body: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;

    /* হালকা ডট + ইসলামিক জ্যামিতিক প্যাটার্ন — হালকা সবুজ সেকশনের ব্যাকগ্রাউন্ডে ব্যবহারের জন্য */
    --pattern-dots: radial-gradient(circle, rgba(176,138,78,0.16) 1px, transparent 1px);
    --pattern-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%231B3B2E' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M36 4 L52 20 L36 36 L20 20 Z'/%3E%3Cpath d='M36 36 L52 52 L36 68 L20 52 Z'/%3E%3Ccircle cx='36' cy='36' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- টপ ইউটিলিটি বার (হালকা, সবুজবিহীন) ---------- */
.top-bar {
    background: var(--cream);
    color: var(--ink-soft);
    font-size: 0.78rem;
    border-bottom: 1px solid var(--line);
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; padding: 7px 20px; flex-wrap: wrap; gap: 6px; }
.top-bar .contact-mini { display: flex; gap: 18px; flex-wrap: wrap; }
.top-bar .contact-mini a { text-decoration: none; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.top-bar .contact-mini a:hover { color: var(--brass-dark); }
.top-bar .contact-mini svg { width: 13px; height: 13px; flex: none; opacity: 0.85; }
.top-bar .top-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; color: var(--ink-soft); display: flex; align-items: center; gap: 5px; }
.lang-switch summary:hover { color: var(--brass-dark); }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch svg { width: 14px; height: 14px; }
.lang-switch .lang-menu {
    position: absolute; right: 0; top: 100%; margin-top: 6px;
    background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
    min-width: 140px; box-shadow: 0 10px 24px rgba(27,59,46,0.1); z-index: 40; overflow: hidden;
}
.lang-menu a { display: block; padding: 9px 14px; text-decoration: none; font-size: 0.85rem; }
.lang-menu a:hover { background: var(--green-50); }
.social-mini { display: flex; gap: 12px; }
.social-mini a { color: var(--ink-soft); display: inline-flex; }
.social-mini svg { width: 15px; height: 15px; }
.social-mini a:hover { color: var(--brass-dark); }

/* ---------- হেডার / নেভ ---------- */
.site-nav {
    background: var(--paper-raised);
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.site-nav::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--green-900) 0%, var(--brass) 50%, var(--green-900) 100%);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 12px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 50px; width: auto; }
.nav-brand .name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: var(--green-900); }
.nav-brand .name .full { display: block; }
.nav-brand .name small { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 500; color: var(--brass-dark); letter-spacing: 0.02em; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-item > a, .nav-item > span {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 11px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.nav-item > a:hover, .nav-item > span:hover { background: var(--green-50); color: var(--green-900); }
.nav-item .caret { font-size: 0.65em; opacity: 0.6; }

.dropdown {
    display: none;
    position: absolute; left: 0; top: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    min-width: 240px; box-shadow: 0 12px 28px rgba(0,0,0,0.1); padding: 8px; z-index: 35;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
    display: flex; justify-content: space-between; align-items: center;
    text-decoration: none; color: var(--ink); font-size: 0.85rem; font-weight: 500;
    padding: 9px 12px; border-radius: 6px;
}
.dropdown a:hover { background: var(--green-50); color: var(--green-900); }
.dropdown a .count { font-size: 0.72rem; color: var(--ink-soft); font-weight: 400; }

.nav-cta {
    background: var(--green-900);
    color: #fff !important;
    font-weight: 700;
    margin-left: 6px;
}
.nav-cta:hover { background: var(--green-700) !important; color: #fff !important; }

.nav-toggle { display: none; }

@media (max-width: 980px) {
    .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: inline-flex; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 8px 10px; }
    .dropdown { position: static; box-shadow: none; display: none; border: none; padding-left: 14px; }
    .nav-item.open .dropdown { display: block; }
}

/* ---------- হিরো: স্লাইডার + সাইড কার্ড ---------- */
.hero-wrap {
    padding: 26px 0;
    background-color: var(--green-50);
    background-image: var(--pattern-motif), var(--pattern-dots);
    background-size: 72px 72px, 16px 16px;
    background-position: 0 0, 0 0;
}
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.notice-slider {
    position: relative;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 300px;
}
.slide {
    display: none;
    text-decoration: none;
    color: inherit;
}
.slide.active { display: block; }
.slide .slide-img {
    height: 210px;
    background-size: cover;
    background-position: center;
    background-color: var(--green-100);
}
.slide .slide-body { padding: 16px 20px 20px; }
.slide .slide-tag { font-size: 0.72rem; color: var(--brass); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.slide h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 6px 0 6px; color: var(--green-900); }
.slide p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.slider-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 6px; }
.slider-dots button {
    width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); padding: 0;
}
.slider-dots button.active { background: var(--brass); }

.side-cards { display: flex; flex-direction: column; gap: 16px; }
.quick-card {
    flex: 1;
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 130px;
    border: 1px solid var(--line);
}
.quick-card.cert { background: var(--green-900); color: #fff; }
.quick-card.exam { background: var(--brass); color: #2A2010; }
.quick-card .qc-label { font-size: 0.75rem; opacity: 0.85; font-weight: 600; }
.quick-card .qc-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-top: 6px; }
.quick-card .qc-arrow { margin-top: 10px; font-size: 0.85rem; font-weight: 600; }

/* ---------- নিউজ টিকার ---------- */
.ticker-bar { background: var(--green-900); color: #EFEADA; overflow: hidden; border-bottom: 3px solid var(--brass); }
.ticker-bar .container { display: flex; align-items: center; padding: 0; }
.ticker-label {
    background: var(--brass); color: var(--green-900); font-weight: 700; font-size: 0.8rem;
    padding: 9px 16px; white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.ticker-viewport { flex: 1; overflow: hidden; white-space: nowrap; position: relative; height: 38px; }
.ticker-track {
    position: absolute; display: inline-flex; align-items: center; gap: 48px;
    padding-left: 100%;
    animation: ticker-scroll 32s linear infinite;
    height: 38px;
}
.ticker-track a { color: #EFEADA; text-decoration: none; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; }
.ticker-track a:hover { text-decoration: underline; }
.ticker-track .new-tag { background: var(--danger); color: #fff; font-size: 0.62rem; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- সেকশন সাধারণ ---------- */
.section { padding: 54px 0; position: relative; }
.section.alt {
    background-color: var(--green-50);
    background-image: var(--pattern-motif), var(--pattern-dots);
    background-size: 72px 72px, 16px 16px;
}
.section-head { text-align: center; margin-bottom: 32px; }
.section-head .tag { font-size: 0.78rem; color: var(--brass-dark); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.section-head h2 { font-family: var(--font-display); font-size: 1.45rem; color: var(--green-900); margin: 8px 0 0; position: relative; display: inline-block; padding-bottom: 12px; }
.section-head h2::after {
    content: "";
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 46px; height: 3px; background: var(--brass); border-radius: 2px;
}

/* ---------- পরিচিতি ---------- */
.about-body {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    font-size: 0.96rem;
    box-shadow: 0 2px 10px rgba(27,59,46,0.04);
}
.about-body p { margin: 0 0 15px; }
.about-body p:last-child { margin-bottom: 0; }

/* ---------- কার্যাবলি (সনদ/পরীক্ষা) দুই-কলাম ---------- */
.activities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .activities-grid { grid-template-columns: 1fr; } }
.activity-col h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--green-900); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.activity-list { display: grid; gap: 10px; }
.activity-item {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brass);
    border-radius: var(--radius);
    padding: 13px 16px;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.92rem;
}
.activity-item:hover { background: var(--green-50); border-left-color: var(--green-900); }
.activity-item .emoji { margin-right: 8px; }
.activity-item .arrow { font-weight: 400; color: var(--ink-soft); }

/* ---------- মাদরাসা/শাখা ---------- */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.branch-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 2px 10px rgba(27,59,46,0.04); }
.branch-card .name { font-weight: 700; color: var(--green-900); margin: 0 0 4px; font-size: 0.95rem; }
.branch-card .loc { font-size: 0.84rem; color: var(--ink-soft); margin: 0; }

/* ---------- কমিটি ---------- */
.committee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.committee-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: 0 2px 10px rgba(27,59,46,0.04); }
.committee-card .name { font-weight: 700; color: var(--green-900); font-size: 0.95rem; margin: 0 0 4px; }
.committee-card .count { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- যোগাযোগ ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 10px rgba(27,59,46,0.04); }
.contact-card h3 { font-family: var(--font-display); font-size: 1rem; color: var(--green-900); margin: 0 0 14px; }
.contact-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row .ic { font-size: 1.2rem; }
.contact-row .lbl { color: var(--ink-soft); font-size: 0.76rem; display: block; margin-bottom: 2px; }
.contact-row a { text-decoration: none; font-weight: 600; }
.wa-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25D366; color: #fff !important; font-weight: 700;
    padding: 10px 16px; border-radius: 999px; text-decoration: none; font-size: 0.88rem; margin-top: 4px;
}
.wa-btn:hover { background: #1EBE5A; }
.map-embed {
    position: relative;
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    min-height: 260px;
    box-shadow: 0 2px 10px rgba(27,59,46,0.04);
}
.map-embed iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; pointer-events: none; }
.map-embed::after { content: ""; position: absolute; inset: 0; background: transparent; }
.map-open-tag {
    position: absolute; right: 10px; bottom: 10px; z-index: 2;
    background: var(--green-900); color: #fff; font-size: 0.76rem; font-weight: 700;
    padding: 7px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.map-embed:hover .map-open-tag { background: var(--brass-dark); }

/* ---------- ফুটার ---------- */
.site-footer { background: var(--green-900); color: #C9C4B2; padding: 34px 0 18px; font-size: 0.85rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-bottom: 20px; }
.footer-grid h4 { color: #F4EFE2; font-size: 0.88rem; margin: 0 0 10px; }
.footer-grid a { display: block; color: #C9C4B2; text-decoration: none; margin-bottom: 7px; font-size: 0.84rem; }
.footer-grid a:hover { color: #F4EFE2; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { color: #C9C4B2; font-size: 1.1rem; }
.footer-social a:hover { color: #F4EFE2; }
.visitor-count { font-size: 0.78rem; color: #9B9683; }

/* ---------- চ্যাটবট বাটন ---------- */
.chat-fab {
    position: fixed; bottom: 20px; right: 20px; z-index: 50;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--green-900); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; box-shadow: 0 8px 20px rgba(0,0,0,0.2); text-decoration: none;
    border: none;
}
.chat-fab:hover { background: var(--green-700); }
