/* ==========================================
   COLOR PALETTE & CSS VARIABLES
   ========================================== */
:root {
    --bg-black: #0c0c0e;
    --bg-dark-gray: #141417;
    --bg-card: #1c1c22;
    --bg-card-hover: #24242c;
    --border-color: #2e2e38;
    --yellow-main: #f5c518;
    --yellow-hover: #dcb010;
    --yellow-subtle: rgba(245, 197, 24, 0.1);
    --text-light: #f4f4f6;
    --text-muted: #9a9ab0;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1rem;
}

.section-padding {
    padding: 100px 0;
}

/* ==========================================
   BUTTONS & BADGES
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-yellow {
    background-color: var(--yellow-main);
    color: #000;
}

.btn-yellow:hover {
    background-color: var(--yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--yellow-main);
    color: var(--yellow-main);
}

.badge {
    background: var(--yellow-subtle);
    color: var(--yellow-main);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid rgba(245, 197, 24, 0.2);
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(12, 12, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-light);
}

.brand-logo i {
    color: var(--yellow-main);
    font-size: 1.5rem;
}

.brand-logo span {
    color: var(--yellow-main);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--yellow-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: 180px 0 100px;
    background: radial-gradient(circle at 50% 20%, rgba(245, 197, 24, 0.05) 0%, transparent 60%);
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--yellow-main);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ==========================================
   DAILY QUOTE & BLOG SECTION
   ========================================== */
.quote-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--yellow-main);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 60px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--yellow-main);
    opacity: 0.3;
    position: absolute;
    top: 24px;
    right: 30px;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 16px;
    color: var(--text-light);
}

.quote-author {
    color: var(--yellow-main);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card:hover {
    border-color: var(--yellow-main);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-light);
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    color: var(--yellow-main);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

/* ==========================================
   BOOKS & ACTS DOWNLOAD SECTION
   ========================================== */
.library-section {
    background: var(--bg-dark-gray);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.search-filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-black);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--yellow-main);
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-black);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--yellow-main);
    color: #000;
    border-color: var(--yellow-main);
    font-weight: 600;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.book-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.book-card:hover {
    border-color: var(--yellow-main);
    transform: translateY(-4px);
}

.book-icon {
    font-size: 2rem;
    color: var(--yellow-main);
    margin-bottom: 16px;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}

.book-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.download-btn {
    width: 100%;
    background: var(--bg-black);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.download-btn:hover {
    background: var(--yellow-main);
    color: #000;
    border-color: var(--yellow-main);
}
/* ==========================================
   2-ROW SLIDER & ARROWS STYLING
   ========================================== */
.library-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    width: 100%;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex-grow: 1;
}

/* Side Arrows */
.slider-arrow {
    background-color: var(--bg-card, #1e2230);
    color: var(--yellow-main, #f59e0b);
    border: 1px solid var(--border-color, #2e3548);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.slider-arrow:hover:not(:disabled) {
    background-color: var(--yellow-main, #f59e0b);
    color: #000;
    border-color: var(--yellow-main, #f59e0b);
    transform: scale(1.1);
}

.slider-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    border-color: var(--border-color, #2e3548);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .library-slider-wrapper {
        flex-direction: column;
    }
    .books-grid {
        grid-template-columns: 1fr;
    }
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
footer {
    background: var(--bg-black);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-heading {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--yellow-main);
}

.footer-donate-box {
    background: var(--bg-dark-gray);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
}

.footer-donate-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   DONATION MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    padding: 32px;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--yellow-main);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header i {
    font-size: 2.5rem;
    color: var(--yellow-main);
    margin-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 6px;
}

.payment-details {
    background: var(--bg-black);
    border: 1px dashed var(--yellow-main);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.payment-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.payment-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.payment-val {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    background: var(--yellow-subtle);
    color: var(--yellow-main);
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--yellow-main);
    color: #000;
}

.supported-methods {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.method-badge {
    background: var(--bg-dark-gray);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--yellow-main);
    color: #000;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 3000;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-black);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
