/* CSS Design System for Mahdi Mustafiz - Muhasabah Life Platform */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
    --primary-emerald: #0F382C;
    --emerald-dark: #0A2920;
    --emerald-light: #185241;
    --gold: #C89B3C;
    --gold-hover: #B2872A;
    --gold-light: #F7F1E3;
    --bg-cream: #F8F6F0;
    --card-bg: #FFFFFF;
    --text-main: #1D2925;
    --text-muted: #5A6D67;
    --text-light: #EBF3F0;
    --border-color: #E2E8E5;
    --shadow-sm: 0 2px 8px rgba(15, 56, 44, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 56, 44, 0.1);
    --shadow-lg: 0 10px 35px rgba(15, 56, 44, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-bn: 'Hind Siliguri', sans-serif;
    --font-ar: 'Amiri', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-bn);
    background-color: var(--bg-cream);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-bn);
}

.btn-gold {
    background-color: var(--gold);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(200, 155, 60, 0.3);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 155, 60, 0.4);
}

.btn-outline-gold {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: #FFFFFF;
}

.btn-emerald {
    background-color: var(--primary-emerald);
    color: #FFFFFF;
}

.btn-emerald:hover {
    background-color: var(--emerald-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Sticky Header & Header Container */
.top-header {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(15, 56, 44, 0.05);
    backdrop-filter: blur(8px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-emerald);
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(15, 56, 44, 0.15);
}

.brand-text .name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-emerald);
    line-height: 1.1;
    white-space: nowrap;
}

.brand-text .sub {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Nav Wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    padding: 6px 2px;
    position: relative;
    white-space: nowrap;
    display: inline-block;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.btn-header-cta {
    padding: 8px 18px;
    font-size: 13.5px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: var(--gold);
}

/* Responsive Mobile / Tablet Drawer Navigation */
.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--primary-emerald);
    cursor: pointer;
    padding: 6px;
}

.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #09241B;
    color: #FFFFFF;
    z-index: 9999;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.drawer-close-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 28px;
    cursor: pointer;
}

.mobile-drawer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.mobile-drawer-menu li a {
    color: #E2EFEA;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.mobile-drawer-menu li a i {
    width: 20px;
    color: var(--gold);
}

.mobile-drawer-menu li a:hover {
    background: rgba(200, 155, 60, 0.15);
    color: var(--gold);
}

/* Single Book View Responsive Layout */
.book-single-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: flex-start;
}

.single-book-cover-box {
    width: 100%;
    max-width: 340px;
    height: 380px;
    background: #F8F6F0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.single-book-cover-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.book-description-content {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.8;
    overflow-wrap: break-word;
    word-break: break-word;
}

.book-description-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-sm);
    margin: 14px 0;
    box-shadow: var(--shadow-sm);
}

.book-description-content iframe,
.book-description-content video {
    max-width: 100% !important;
    border-radius: var(--radius-sm);
}

.book-format-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.book-format-option {
    background: #FFF;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s ease;
}

.book-format-option.active {
    border-color: var(--gold);
    background: var(--gold-light);
}

.book-price-buy-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Floating WhatsApp Widget Styling */
.whatsapp-float-container {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-decoration: none;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
    color: #FFFFFF;
}

.wa-badge-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: wa-pulse 2s infinite;
    pointer-events: none;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-tooltip-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    width: 280px;
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float-container:hover .whatsapp-tooltip-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wa-tooltip-header {
    background: #075E54;
    color: #FFFFFF;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary-emerald);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.wa-online-dot {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
}

.wa-tooltip-body {
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.5;
    background: #ECE5DD;
}

.wa-tooltip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #FFFFFF;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.wa-tooltip-btn:hover {
    background: #1EBE5A;
    color: #FFFFFF;
}

/* Courses Grid & Single Page Responsive Styling */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.course-thumb-box {
    height: 180px;
    background: var(--primary-emerald);
    position: relative;
    overflow: hidden;
}

.course-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-emerald);
    margin-bottom: 10px;
    line-height: 1.35;
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    gap: 8px;
    flex-wrap: wrap;
}

.course-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #122820 0%, #0F382C 40%, #092119 100%);
    color: #FFFFFF;
    padding: 60px 0 0 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(rgba(200, 155, 60, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    align-items: flex-end;
}

.hero-img-box {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
    display: block;
    margin: 0 auto;
}

.hero-content {
    padding-bottom: 50px;
    z-index: 1;
}

.arabic-badge {
    font-family: var(--font-ar);
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 12px;
    display: inline-block;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.hero-title span {
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-bio {
    font-size: 16px;
    color: #D3E0DC;
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Stats Bar */
.hero-stats-bar {
    background-color: var(--emerald-dark);
    border-top: 1px solid rgba(200, 155, 60, 0.2);
    padding: 24px 0;
    margin-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(200, 155, 60, 0.1);
    border-color: var(--gold);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(200, 155, 60, 0.15);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-val {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: #A5B8B1;
}

/* Services Section */
.section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-emerald);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '◆';
    font-size: 12px;
    color: var(--gold);
    display: block;
    margin: 6px auto 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-cream);
    color: var(--primary-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-emerald);
    color: var(--gold);
}

.service-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-emerald);
}

.service-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.service-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Two Column Home Content (Books + Sessions Sidebar) */
.main-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

.section-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sub-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-emerald);
}

.view-all-link {
    font-size: 14px;
    color: var(--gold);
    font-weight: 600;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.book-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.book-cover {
    width: 100%;
    height: 220px;
    background: #F1ECE2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.book-cover img {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 6px 12px rgba(0,0,0,0.15));
}

.book-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-emerald);
    margin-bottom: 4px;
}

.book-author {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.book-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    margin-top: auto;
}

/* Upcoming Sessions Sidebar */
.sidebar-box {
    background: #0B2119;
    color: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

.session-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.session-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.session-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(200, 155, 60, 0.15);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.session-name {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.session-meta {
    font-size: 12px;
    color: #A5B8B1;
}

/* Daily Inspiration Card */
.inspiration-card {
    background: linear-gradient(135deg, #1C332A 0%, #0F271E 100%);
    border: 1px solid rgba(200, 155, 60, 0.3);
    border-radius: var(--radius-md);
    padding: 24px;
    color: #FFFFFF;
    position: relative;
}

.inspiration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.inspiration-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

.verse-text {
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    color: #E2EFEA;
    margin-bottom: 12px;
}

.verse-source {
    font-size: 13px;
    color: var(--gold);
    text-align: right;
    font-weight: 600;
}

/* Muhasabah Life Section */
.muhasabah-life-box {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 40px;
}

.life-brand-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.life-logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-emerald);
    letter-spacing: 2px;
}

.life-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.life-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pillar-item {
    background: var(--bg-cream);
    border-radius: var(--radius-sm);
    padding: 16px 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.pillar-icon {
    font-size: 24px;
    color: var(--primary-emerald);
    margin-bottom: 6px;
}

.pillar-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-emerald);
}

/* Muhasabah Complex Box & Fundraising */
.complex-box {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 360px 1fr 300px;
    gap: 0;
    margin-top: 30px;
}

.complex-img-col {
    background: #0B2119;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.complex-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.complex-info-col {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.complex-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-emerald);
    margin-bottom: 8px;
}

.complex-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.progress-container {
    margin-bottom: 16px;
}

.progress-metrics {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #E2E8E5;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, #E5C365 100%);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.complex-donate-col {
    background: #0B2119;
    color: #FFFFFF;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.donate-col-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
}

.donate-col-text {
    font-size: 13px;
    color: #A5B8B1;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Latest Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.blog-thumb {
    width: 100%;
    height: 160px;
    background: #185241;
    position: relative;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-emerald);
    color: #FFFFFF;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.blog-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-emerald);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

/* Footer */
.site-footer {
    background: #081B14;
    color: #A5B8B1;
    padding: 60px 0 20px 0;
    margin-top: 80px;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer-col-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--gold);
    margin-top: 6px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* Modals & Responsive Popups */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 16px;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 520px;
    max-height: 86vh;
    overflow-y: auto;
    padding: 26px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
}

/* Payment Badges & Details */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0;
}

.pay-option {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pay-option.selected {
    border-color: var(--gold);
    background: var(--gold-light);
}

.pay-option img {
    height: 32px;
    object-fit: contain;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-emerald);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-bn);
    font-size: 15px;
    outline: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.15);
}

/* Admin Dashboard CSS & Grid Utilities */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--primary-emerald);
    color: #FFFFFF;
    padding: 24px 0;
}

.admin-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
}

.admin-nav {
    list-style: none;
    margin-top: 30px;
}

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #D3E0DC;
    font-weight: 500;
    white-space: nowrap;
}

.admin-nav li a:hover, .admin-nav li a.active {
    background: rgba(200, 155, 60, 0.15);
    color: var(--gold);
    border-left: 4px solid var(--gold);
}

.admin-content {
    background: #F4F6F5;
    padding: 30px;
    overflow-x: hidden;
}

.admin-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.admin-table th {
    background: #FAF8F5;
    color: var(--primary-emerald);
    font-weight: 700;
}

.admin-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Responsive Breakpoints */
@media (max-width: 1320px) {
    .nav-wrapper {
        display: none;
    }
    .mobile-toggle-btn {
        display: block;
    }
}

@media (max-width: 1100px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .admin-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .book-single-card {
        grid-template-columns: 1fr;
        padding: 28px 20px;
        gap: 24px;
    }
    .single-book-cover-box {
        max-width: 280px;
        height: 320px;
    }
    .whatsapp-float-container {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float-btn {
        width: 54px;
        height: 54px;
        font-size: 30px;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        padding: 14px 18px;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    .admin-sidebar-header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .admin-menu-toggle {
        display: block;
    }
    .admin-nav {
        display: none;
        margin-top: 14px;
        flex-direction: column;
        gap: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 12px;
    }
    .admin-nav.active {
        display: flex;
    }
    .admin-nav li a {
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        border-left: none !important;
        font-size: 14px;
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
    }
    .admin-nav li a.active {
        background: var(--gold);
        color: #FFFFFF;
        font-weight: 700;
    }
    .admin-nav li.nav-logout-item {
        margin-top: 10px !important;
    }
    .admin-content {
        padding: 20px 14px;
    }
    .admin-grid-2, .admin-grid-3 {
        grid-template-columns: 1fr !important;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .main-grid-layout {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .books-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .complex-box {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .course-single-layout {
        grid-template-columns: 1fr;
    }
    .muhasabah-life-box {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 20px;
    }
    .life-pillars-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 650px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .course-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .course-card-footer > div:last-child {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    .course-card-footer .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .admin-dashboard-stats {
        grid-template-columns: 1fr;
    }
    .btn-header-cta {
        display: none;
    }
    .brand-text .sub {
        display: none;
    }
    .books-grid {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .book-single-card {
        padding: 18px 14px;
    }
    .single-book-cover-box {
        max-width: 240px;
        height: 280px;
        padding: 12px;
    }
    .book-format-grid {
        grid-template-columns: 1fr;
    }
    .book-price-buy-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .book-price-buy-wrapper .btn {
        width: 100%;
    }
    .muhasabah-life-box {
        padding: 18px;
    }
    .life-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .pillar-item {
        padding: 12px 6px;
    }
    .life-logo-text {
        font-size: 20px;
        letter-spacing: 1px;
    }
    .modal-card {
        max-height: 88vh;
        padding: 18px;
    }
    .payment-methods-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
    }
    .pay-option {
        padding: 8px 4px;
        font-size: 13px;
    }
}
