/* ================================
   Minimalist White Theme - PakQuran
   ================================ */

:root {
    /* Minimal Color Palette */
    --primary: #01875f;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e5e5e5;
    --bg-white: #ffffff;
    --bg-light: #fafafa;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-arabic: 'Noto Naskh Arabic', serif;

    /* Spacing */
    --spacing-unit: 1rem;

    /* Transitions */
    --transition: all 0.2s ease;
}

/* ================================
   Base Styles
   ================================ */

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--bg-white);
    font-size: 16px;
    background: url("/assets/images/bg.png");
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* ================================
   Header & Navigation
   ================================ */

.site-header {
    background: #717075;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-light {
    background-color: transparent !important;
}

.navbar-brand img {
    height: 48px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400;
    font-size: 0.9375rem;
    padding: 0.5rem 1.25rem !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 1rem;
    }
}

/* ================================
   Typography
   ================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ================================
   Buttons
   ================================ */

.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #016b4d;
    border-color: #016b4d;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: var(--border-color);
    color: var(--text-primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background-color: transparent;
}

/* ================================
   Cards
   ================================ */

.card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-white);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ================================
   Hero Section
   ================================ */

.hero-minimal {
    padding: 4rem 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.hero-minimal h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-minimal p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

@media (max-width: 768px) {
    .hero-minimal h1 {
        font-size: 2rem;
    }

    .hero-minimal p {
        font-size: 1.125rem;
    }
}

/* ================================
   Content Grid
   ================================ */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* ================================
   Section
   ================================ */

.section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ================================
   Footer
   ================================ */

.site-footer {
    background: var(--bg-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.site-footer a {
    color: var(--text-secondary);
}

.site-footer a:hover {
    color: var(--text-primary);
}

/* ================================
   Utilities
   ================================ */

.text-muted {
    color: var(--text-secondary) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

/* ================================
   Ad Container
   ================================ */

.ad-container {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 2rem 0;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ================================
   Buttons
   ================================ */

.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #016b4d;
    border-color: #016b4d;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: var(--border-color);
    color: var(--text-primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background-color: transparent;
}

/* ================================
   Cards
   ================================ */

.card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-white);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ================================
   Hero Section
   ================================ */

.hero-minimal {
    padding: 4rem 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.hero-minimal h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-minimal p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

@media (max-width: 768px) {
    .hero-minimal h1 {
        font-size: 2rem;
    }

    .hero-minimal p {
        font-size: 1.125rem;
    }
}

/* ================================
   Content Grid
   ================================ */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* ================================
   Section
   ================================ */

.section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ================================
   Footer
   ================================ */

.site-footer {
    background: var(--bg-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.site-footer a {
    color: var(--text-secondary);
}

.site-footer a:hover {
    color: var(--text-primary);
}

/* ================================
   Utilities
   ================================ */

.text-muted {
    color: var(--text-secondary) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

/* ================================
   Ad Container
   ================================ */

.ad-container {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 2rem 0;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .section {
        padding: 2rem 0;
    }
}

/* ================================
   Sticky Footer Fix
   ================================ */

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.site-header+* {
    flex: 1;
}