/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

/* =========================================================
   Brand palette
   Lavender       #A577FF   (primary)
   Cetacean Blue  #150A35   (dark)
   Ghost White    #F5F7FC   (background)
   ========================================================= */
:root {
    /* নতুন ব্র্যান্ড কালার */
    --lavender:       #A577FF;
    --lavender-deep:  #8B5CF6;
    --lavender-soft:  #F0E9FF;
    --cetacean:       #150A35;
    --ghost-white:    #F5F7FC;
    --brand-gradient: linear-gradient(135deg, #150A35 0%, #4B2E83 45%, #A577FF 100%);

    /* পুরোনো ভেরিয়েবল নাম (কোড ভাঙা এড়াতে) — মান এখন নতুন প্যালেটের */
    --primary-green: #A577FF;
    --secondary-green: #8B5CF6;
    --light-green: #F0E9FF;
    --dark-green: #150A35;
    --accent: #C9A9FF;

    --text-color: #2C2740;
    --light-text: #6B6785;
    --bg-light: #F5F7FC;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --box-shadow: 0 8px 32px 0 rgba(21, 10, 53, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Anek Bangla', sans-serif;
}

body {
    background-color: var(--bg-light);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(165,119,255,.10) 0%, rgba(165,119,255,0) 38%),
        radial-gradient(circle at 100% 12%, rgba(124,77,255,.08) 0%, rgba(124,77,255,0) 40%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--glass-bg);
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1300px;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    padding: 15px 30px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    border-radius: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
    margin-left: 20px;
    margin-right: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-green);
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #A577FF 0%, #7C4DFF 100%);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 6px 18px rgba(124, 77, 255, .28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8B5CF6 0%, #6435E8 100%);
    box-shadow: 0 8px 22px rgba(124, 77, 255, .40);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 150px;
    padding-bottom: 50px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 10, 53, 0.55);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #150A35, #A577FF);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--dark-green);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
}

.event-date {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.event-title {
    font-size: 1.4rem;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.event-desc {
    color: var(--light-text);
    margin-bottom: 20px;
}

/* Video Embed */
.video-container {
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    margin: 0 auto;
    animation: fadeInUp 1.2s ease;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #150A35 0%, #24124F 45%, #3B1E7A 100%);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute; top: -140px; right: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(165,119,255,.38) 0%, rgba(165,119,255,0) 70%);
    pointer-events: none;
}
.footer .container { position: relative; z-index: 1; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-col p, .footer-col a {
    color: #cccccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header { top: 0; width: 100%; border-radius: 0; padding: 10px 15px; }
    .desktop-nav { display: none !important; }
    .mobile-menu-btn { display: block !important; }
    .hero-content h1 { font-size: 2.2rem; }
    .about-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 120px; }
}

@media (min-width: 769px) {
    .desktop-nav { display: flex !important; }
    .mobile-menu-btn { display: none !important; }
    .mobile-nav { display: none !important; }
}

/* ==========================================================================
   নতুন ফিচারসমূহের স্টাইল (Campaigns, Articles, Books, Q&A, Zakat ...)
   ========================================================================== */

/* ---------- Dropdown Navigation ---------- */
.nav-links { gap: 18px; }
.nav-links li.has-drop { position: relative; }
.nav-links li.has-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.drop-caret { font-size: 10px; opacity: .6; transition: transform .25s ease; }
.nav-links li.has-drop:hover .drop-caret { transform: rotate(180deg); }
.drop-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: #fff; list-style: none; min-width: 235px; padding: 10px 0; margin-top: 14px;
    border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.13);
    opacity: 0; visibility: hidden; transition: all .25s ease; z-index: 1200;
}
.nav-links li.has-drop:hover .drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop-menu::before { content: ''; position: absolute; top: -14px; left: 0; width: 100%; height: 14px; }
.drop-menu li a {
    display: flex; align-items: center; gap: 10px; padding: 10px 20px;
    font-size: 15px; font-weight: 500; color: var(--text-color); white-space: nowrap;
}
.drop-menu li a i { color: var(--primary-green); width: 18px; text-align: center; font-size: 13px; }
.drop-menu li a:hover { background: var(--light-green); color: var(--dark-green); }
.nav-links li a.active { color: var(--primary-green); }

/* ---------- Mobile Nav ---------- */
.mobile-nav {
    width: 100%; background: #fff; padding: 12px 8px 20px; text-align: left;
    box-shadow: 0 6px 14px rgba(0,0,0,.1); max-height: 78vh; overflow-y: auto;
}
.mobile-nav a {
    display: block; padding: 11px 16px; color: var(--dark-green);
    text-decoration: none; font-weight: 600; border-bottom: 1px solid #f0f0f0;
}
.mobile-nav a i { width: 22px; color: var(--primary-green); }
.mobile-nav a.btn-primary { border-bottom: none; text-align: center; }

/* ---------- Common Page Header ---------- */
.page-header {
    background: linear-gradient(135deg, #150A35 0%, #341B6E 40%, #7C4DFF 78%, #A577FF 100%);
    padding: 160px 0 60px; text-align: center; color: var(--white);
    position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(165,119,255,.55) 0%, rgba(165,119,255,0) 45%),
        radial-gradient(circle at 88% 78%, rgba(124,77,255,.45) 0%, rgba(124,77,255,0) 50%);
    pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 10px; }
.page-header p { opacity: .92; font-size: 1.1rem; }
@media (max-width: 768px) { .page-header { padding: 120px 0 45px; } .page-header h1 { font-size: 2rem; } }

/* ---------- Generic Card Grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.ui-card {
    background: var(--white); border-radius: 16px; overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,.07); transition: transform .3s ease, box-shadow .3s ease;
    display: flex; flex-direction: column;
}
.ui-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.ui-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.ui-card h3 { color: var(--dark-green); font-size: 1.25rem; margin-bottom: 10px; line-height: 1.45; }
.ui-card p { color: var(--light-text); font-size: .98rem; margin-bottom: 14px; }
.ui-badge {
    display: inline-block; background: var(--light-green); color: var(--secondary-green);
    padding: 4px 13px; border-radius: 20px; font-size: .82rem; font-weight: 700; margin-bottom: 12px;
}
.ui-thumb { width: 100%; height: 195px; object-fit: cover; background: var(--light-green); }

/* ---------- Campaign / Progress ---------- */
.progress-track { width: 100%; height: 10px; background: #EAE4F7; border-radius: 20px; overflow: hidden; margin: 6px 0 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #6435E8, #A577FF); border-radius: 20px; transition: width 1s ease; }
.progress-meta { display: flex; justify-content: space-between; font-size: .9rem; color: var(--light-text); margin-bottom: 14px; }
.progress-meta strong { color: var(--dark-green); }
.campaign-icon {
    width: 62px; height: 62px; border-radius: 14px;
    background: linear-gradient(135deg, #150A35 0%, #A577FF 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(124,77,255,.28);
}
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat-box { background: #fff; border-radius: 14px; padding: 26px 18px; text-align: center; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.stat-box i { font-size: 28px; color: var(--lavender-deep); margin-bottom: 10px; }
.stat-box { border-top: 3px solid transparent; border-image: linear-gradient(90deg,#150A35,#A577FF) 1; }
.stat-box h3 { font-size: 2rem; color: var(--dark-green); margin: 0; }
.stat-box p { color: var(--light-text); margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); padding: 36px; border-radius: 18px; box-shadow: var(--box-shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.f-group { margin-bottom: 18px; }
.f-group label { display: block; margin-bottom: 7px; color: var(--dark-green); font-weight: 600; }
.f-group input, .f-group select, .f-group textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #DED4F5; border-radius: 9px;
    font-size: 16px; font-family: 'Anek Bangla', sans-serif; background: #FCFBFF;
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus { outline: none; border-color: var(--primary-green); }
.f-group textarea { min-height: 120px; resize: vertical; }
.alert { padding: 15px 18px; border-radius: 10px; margin-bottom: 22px; font-weight: 600; }
.alert-success { background: #EDE5FF; color: #4B2E83; }
.alert-danger { background: #fdecea; color: #a12b20; }
.alert-info { background: #e7f1fb; color: #1c4e80; }

/* ---------- Accordion (নীতি ও আদর্শ / প্রশ্নোত্তর) ---------- */
.accordion { border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.06); background: #fff; }
.acc-item { border-bottom: 1px solid #EFE9FA; }
.acc-item:last-child { border-bottom: none; }
.acc-head {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 18px 22px; font-size: 1.08rem; font-weight: 700; color: var(--dark-green);
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    font-family: 'Anek Bangla', sans-serif;
}
.acc-head:hover { background: var(--light-green); }
.acc-head .acc-num {
    background: linear-gradient(135deg, #150A35, #A577FF); color: #fff; min-width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; margin-right: 12px;
}
.acc-head span.acc-txt { flex: 1; }
.acc-body { display: none; padding: 0 22px 20px 66px; color: #4a4a4a; line-height: 1.9; text-align: justify; }
.acc-item.open .acc-body { display: block; }
.acc-item.open .acc-head { background: var(--light-green); }
.acc-item.open .acc-head i.acc-caret { transform: rotate(180deg); }
.acc-caret { transition: transform .25s ease; color: var(--primary-green); }
@media (max-width: 600px) { .acc-body { padding-left: 22px; } }

/* ---------- Feature Tiles (দাওয়াহ / সেবামূলক) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tile {
    background: #fff; border-radius: 16px; padding: 28px 24px; position: relative;
    box-shadow: 0 5px 20px rgba(21,10,53,.07); border-top: 4px solid transparent; border-image: linear-gradient(90deg,#150A35,#A577FF) 1;
    transition: transform .3s ease;
}
.tile:hover { transform: translateY(-6px); }
.tile .tile-no {
    position: absolute; top: 18px; right: 20px; font-size: 2.4rem; font-weight: 800;
    color: var(--light-green); line-height: 1;
}
.tile i.tile-ic { font-size: 26px; color: var(--primary-green); margin-bottom: 14px; display: block; }
.tile h4 { color: var(--dark-green); font-size: 1.18rem; margin-bottom: 10px; }
.tile p { color: var(--light-text); line-height: 1.8; font-size: .98rem; }

/* ---------- Newsletter ---------- */
.newsletter-box {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px; padding: 28px 32px; margin-bottom: 45px;
    display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.newsletter-box h3 { color: var(--accent); font-size: 1.35rem; margin-bottom: 6px; }
.newsletter-box p { color: #D9CEF2; margin: 0; font-size: .96rem; }
.newsletter-form { display: flex; gap: 10px; flex: 1 1 330px; }
.newsletter-form input {
    flex: 1; padding: 12px 16px; border-radius: 30px; border: none; font-size: 15px;
    font-family: 'Anek Bangla', sans-serif;
}
.newsletter-form button {
    background: var(--accent); color: #2A1155; border: none; padding: 12px 26px;
    border-radius: 30px; font-weight: 700; cursor: pointer; font-family: 'Anek Bangla', sans-serif;
}
.newsletter-form button:hover { background: linear-gradient(135deg, #B98CFF, #7C4DFF); }

/* ---------- Floating Donate Button ---------- */
.floating-donate {
    position: fixed; right: 22px; bottom: 22px; z-index: 990;
    background: linear-gradient(135deg, #A577FF 0%, #6435E8 100%);
    color: #fff !important; text-decoration: none;
    padding: 13px 22px; border-radius: 40px; font-weight: 700;
    box-shadow: 0 10px 28px rgba(124, 77, 255, .48); display: flex; align-items: center; gap: 9px;
    transition: transform .25s ease;
}
.floating-donate:hover { transform: scale(1.06); }
@media (max-width: 600px) { .floating-donate span { display: none; } .floating-donate { padding: 15px 17px; } }

/* ---------- Tables (public) ---------- */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.data-table th { background: linear-gradient(135deg, #150A35, #7C4DFF); color: #fff; padding: 14px; text-align: left; }
.data-table td { padding: 14px; border-bottom: 1px solid #EFE9FA; }
.data-table tr:last-child td { border-bottom: none; }

/* ---------- Zakat Calculator ---------- */
.zakat-result {
    background: linear-gradient(135deg, #150A35 0%, #4B2E83 50%, #A577FF 100%);
    color: #fff; border-radius: 16px; padding: 30px; text-align: center;
    box-shadow: 0 14px 34px rgba(21,10,53,.28);
}
.zakat-result h2 { font-size: 2.6rem; margin: 8px 0; color: var(--accent); }
.zakat-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #DED4F5; }
.zakat-line:last-child { border-bottom: none; }

/* ---------- Prayer times ---------- */
.prayer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.prayer-card { background: #fff; border-radius: 14px; padding: 22px 14px; text-align: center; box-shadow: 0 4px 18px rgba(0,0,0,.06); border-bottom: 3px solid var(--primary-green); }
.prayer-card i { font-size: 22px; color: var(--primary-green); margin-bottom: 8px; }
.prayer-card h4 { color: var(--dark-green); font-size: 1.05rem; margin-bottom: 4px; }
.prayer-card .ptime { font-size: 1.45rem; font-weight: 700; color: var(--secondary-green); }

/* ---------- Receipt ---------- */
.receipt-paper { background: #fff; max-width: 760px; margin: 0 auto; padding: 45px; border-radius: 14px; box-shadow: var(--box-shadow); border-top: 8px solid var(--primary-green); }
@media print {
    .header, .footer, .floating-donate, .no-print, .page-header { display: none !important; }
    body { background: #fff; }
    .receipt-paper { box-shadow: none; border: 1px solid #ccc; }
}

/* ---------- Misc helpers ---------- */
.btn-outline {
    display: inline-block; padding: 10px 22px; border-radius: 30px; text-decoration: none;
    border: 2px solid var(--primary-green); color: var(--primary-green) !important; font-weight: 700;
    transition: all .3s ease; background: transparent;
}
.btn-outline:hover { background: var(--primary-green); color: #fff !important; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip {
    padding: 8px 20px; border-radius: 30px; background: #fff; border: 1px solid #DED4F5;
    color: var(--text-color); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.chip:hover, .chip.active { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--light-text); }
.empty-state i { font-size: 46px; color: #CFC2EC; margin-bottom: 14px; display: block; }
.section-sub { text-align: center; color: var(--light-text); max-width: 760px; margin: -22px auto 42px; font-size: 1.05rem; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 9px 16px; border-radius: 8px; background: #fff; color: var(--dark-green); text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.06); font-weight: 600; }
.pagination .current { background: var(--primary-green); color: #fff; }
