* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #404040;
    --shadow: rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header Section */
.site-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo {
    height: 48px;
    width: auto;
}

.site-title-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Search Bar */
.search-bar-container {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
}

.search-bar {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-bar:focus {
    border-color: var(--accent);
    background-color: var(--bg-primary);
}

.search-button {
    display: none;
}

.math-result {
            text-align: center;
            margin: 0.75rem 0;
            font-weight: bold;
            color: #4ade80;
        }
        .discovery-table {
            width: 80%;
            margin: 1.25rem auto;
            border-collapse: collapse;
            text-align: center;
        }
        .discovery-table th {
            background-color: #1a1a1a;
            border: 1px solid #4ade80;
            padding: 10px;
            color: #4ade80;
        }
        .discovery-table td {
            border: 1px solid #4ade80;
            padding: 10px;
            color: #e2e8f0;
        }
        .discovery-table tr:last-child td {
            background-color: #1a1a1a;
            font-weight: bold;
        }
        .foundational-box {
            background-color: #0f172a;
            border-left: 3px solid #4ade80;
            padding: 1.25rem 1.5rem;
            margin: 1.5rem 0;
            border-radius: 4px;
            line-height: 2;
        }
        .part-header {
            text-align: center;
            color: #4ade80;
            font-size: 1.15rem;
            font-weight: bold;
            margin: 2.5rem 0 1rem 0;
            border-bottom: 1px solid #4ade80;
            padding-bottom: 0.5rem;
        }
        .indent { margin-left: 2rem; }

.inheritance-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 0.95rem;
        }
        .inheritance-table th {
            background-color: #1e293b;
            color: #4ade80;
            padding: 0.75rem 1rem;
            text-align: left;
            border: 1px solid #334155;
        }
        .inheritance-table td {
            padding: 0.65rem 1rem;
            border: 1px solid #334155;
            color: #e2e8f0;
        }
        .inheritance-table tr:nth-child(even) td { background-color: #0f172a; }
        .inheritance-table tr:nth-child(odd) td { background-color: #1e293b; }
        .inheritance-table .total-row td {
            background-color: #1a2e1a;
            color: #4ade80;
            font-weight: bold;
            border-top: 2px solid #4ade80;
        }
        .math-box {
            background-color: #0f172a;
            border-left: 3px solid #4ade80;
            padding: 1.25rem 1.5rem;
            margin: 1.5rem 0;
            border-radius: 4px;
            font-family: monospace;
            color: #e2e8f0;
            line-height: 2;
        }
        .math-box .label { color: #94a3b8; font-size: 0.85rem; }
        .result-highlight { color: #4ade80; font-weight: bold; }
        .section-label {
            color: #4ade80;
            font-weight: bold;
            margin-top: 1.75rem;
            margin-bottom: 0.5rem;
            font-size: 1.05rem;
        }

.miracle-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.5rem;
            margin: 1.5rem 0;
        }

        .miracle-item {
            display: flex;
            gap: 0.85rem;
            padding: 0.55rem 0.75rem;
            background: #111;
            border: 1px solid #1e1e1e;
            border-radius: 6px;
            font-size: 0.92rem;
            color: #ccc;
            line-height: 1.5;
        }

        .miracle-num {
            color: #4ade80;
            font-weight: bold;
            min-width: 1.6rem;
            text-align: right;
            flex-shrink: 0;
            font-size: 0.85rem;
            padding-top: 0.05rem;
        }

.conduct-section {
            margin-bottom: 2rem;
        }

        .conduct-section h3 {
            color: #4ade80;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin: 1.75rem 0 0.75rem 0;
            border-bottom: 1px solid #2a2a2a;
            padding-bottom: 0.4rem;
        }

        .conduct-section h3.red {
            color: #f87171;
        }

        .conduct-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .conduct-list li {
            display: flex;
            gap: 0.75rem;
            padding: 0.4rem 0;
            border-bottom: 1px solid #1a1a1a;
            font-size: 0.93rem;
            color: #ccc;
            line-height: 1.5;
        }

        .conduct-list li:last-child {
            border-bottom: none;
        }

        .item-num {
            color: #4ade80;
            font-weight: bold;
            min-width: 2.2rem;
            text-align: right;
            flex-shrink: 0;
            font-size: 0.85rem;
            padding-top: 0.05rem;
        }

        .item-text {
            flex: 1;
        }

        .item-text .ref {
            color: #555;
            font-size: 0.82rem;
            margin-left: 0.3rem;
        }

        .item-num.red {
            color: #f87171;
        }

.year-tabs {
            display: flex;
            justify-content: center;
            gap: 0;
            margin: 4rem 0 2rem 0;
            border-bottom: 2px solid #4ade80;
        }
        
        .year-tab {
            padding: 1rem 2rem;
            background-color: #1a1a1a;
            border: 2px solid #4ade80;
            border-bottom: none;
            color: #ffffff;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: bold;
            transition: all 0.3s ease;
            border-radius: 8px 8px 0 0;
            margin-bottom: -2px;
        }
        
        .year-tab:hover {
            background-color: #2a2a2a;
        }
        
        .year-tab.active {
            background-color: #4ade80;
            color: #000000;
        }

        @media (max-width: 600px) {
            .year-tabs {
                flex-wrap: wrap;
                border-bottom: none;
                gap: 0.5rem;
                margin: 2rem 0 1rem 0;
            }

            .year-tab {
                flex: 1 1 calc(33% - 0.5rem);
                text-align: center;
                border: 2px solid #4ade80;
                border-radius: 8px;
                margin-bottom: 0;
                padding: 0.75rem 0.25rem;
                font-size: 1rem;
            }
        }
        
        .year-content {
            display: none;
            padding: 2rem 0;
            opacity: 0;
            transition: opacity 0.4s ease-in-out;
        }
        
        .year-content.active {
            display: block;
            animation: fadeIn 0.4s ease-in-out forwards;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .magazine-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }
        
        .magazine-item {
            background-color: #1a1a1a;
            border: 2px solid #4ade80;
            border-radius: 8px;
            padding: 1rem;
            text-align: center;
            transition: all 0.3s ease;
        }
        
        .magazine-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(74, 222, 128, 0.3);
            border-color: #22c55e;
        }
        
        .magazine-title {
            color: #4ade80;
            font-size: 1rem;
            font-weight: bold;
            margin-bottom: 0.25rem;
        }
        
        .magazine-date {
            color: #888;
            font-size: 0.75rem;
            margin-bottom: 0.75rem;
        }
        
        .magazine-link {
            display: inline-block;
            padding: 0.5rem 1rem;
            background-color: #4ade80;
            color: #000000;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            font-size: 0.85rem;
            transition: all 0.3s ease;
        }
        
        .magazine-link:hover {
            background-color: #22c55e;
            transform: scale(1.05);
        }

/* Navigation */
.header-nav {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-label {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover .nav-label {
    background-color: var(--bg-tertiary);
    color: #4ade80;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-primary);
    min-width: 220px;
    box-shadow: 0 4px 12px var(--shadow);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.dropdown a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown a:hover {
    background-color: var(--bg-secondary);
    color: #4ade80;
}

.nav-item:hover .dropdown {
    display: block;
}

/* Container */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.page-content {
    max-width: 100%;
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Content Boxes */
.verse-box, .intro-box, .video-box, .content-box {
    background-color: #1a1a1a;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
}

.verse-box h2, .intro-box h2, .video-box h2, .content-box h1 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.content-box h1 {
    font-size: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.content-box h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-box h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.content-box p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: justify;
}

.content-box p:last-child {
    margin-bottom: 0;
}

.content-box p em {
    color: #4ade80;
    font-style: italic;
    display: block;
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid #4ade80;
}

.bible {
    color: #60a5fa;
    font-style: italic;
}

.hadith {
    color: #d41e36;
    font-style: italic;
}

a {
    color: #a8a8a8;
}

a:hover {
    color: #cccccc;
}


.verse-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.8;
}

.verse-reference {
    display: block;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #4ade80;
    font-weight: 600;
    font-style: normal;
}

.intro-box p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: justify;
}

/* Video */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Recent Posts */
.recent-posts {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 100px;
}

.recent-posts h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.75rem;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.no-posts {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.post-item {
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    transition: all 0.2s ease;
}

.post-item:hover {
    background-color: var(--bg-tertiary);
    transform: translateX(4px);
}

.post-item a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.post-item .post-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Pillar Links */
.pillar-link {
    display: block;
    background-color: var(--bg-secondary);
    padding: 1.25rem 1.5rem;
    margin: 0.75rem 0;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.pillar-link:hover {
    background-color: var(--bg-tertiary);
    border-left-color: #4ade80;
    border-left-width: 6px;
    transform: translateX(4px);
    box-shadow: 0 2px 8px var(--shadow);
}

/* Navigation Arrows */
.navigation-arrow {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
    gap: 1rem;
}

.next-page, .prev-page, .parent-page-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background-color: #4ade80;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px var(--shadow);
}

.parent-page-button {
    background-color: var(--bg-tertiary);
    border: 2px solid #4ade80;
    padding: 0.875rem 1rem;
}

.parent-page-button:hover {
    background-color: #4ade80;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.parent-page-button .arrow-icon {
    width: 24px;
    height: 24px;
}

.next-page:hover, .prev-page:hover {
    background-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.next-page .nav-text, .prev-page .nav-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

.next-page .nav-page, .prev-page .nav-page {
    font-size: 1.1rem;
    font-weight: 700;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.next-page:hover .arrow-icon {
    transform: translateX(4px);
}

.prev-page .arrow-icon {
    transform: rotate(180deg);
}

.prev-page:hover .arrow-icon {
    transform: rotate(180deg) translateX(4px);
}

.math-block {
            background: #111;
            border: 1px solid #2a2a2a;
            border-left: 3px solid #4ade80;
            border-radius: 6px;
            padding: 1rem 1.25rem;
            margin: 1.25rem 0;
            font-size: 0.9rem;
            color: #ccc;
            line-height: 1.8;
        }

        .math-block .result {
            color: #4ade80;
            font-weight: bold;
        }

        .claim-block {
            background: #1a1a1a;
            border: 1px solid #2a2a2a;
            border-radius: 8px;
            padding: 1.25rem 1.5rem;
            margin: 1.5rem 0;
        }

        .claim-block .claim-title {
            color: #f87171;
            font-weight: bold;
            font-size: 0.95rem;
            margin-bottom: 0.75rem;
        }

.comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 0.9rem;
        }

        .comparison-table th {
            background: #1a1a1a;
            color: #4ade80;
            padding: 0.7rem 1rem;
            text-align: left;
            border: 1px solid #2a2a2a;
            font-weight: bold;
        }

        .comparison-table td {
            padding: 0.75rem 1rem;
            border: 1px solid #2a2a2a;
            color: #ccc;
            line-height: 1.6;
            vertical-align: top;
        }

        .comparison-table tr:nth-child(even) td {
            background: #111;
        }

        .comparison-table tr:nth-child(odd) td {
            background: #0e0e0e;
        }

        .comparison-table td:first-child {
            color: #4ade80;
            font-style: italic;
            white-space: nowrap;
            width: 22%;
        }

        @media (max-width: 600px) {
            .comparison-table td:first-child {
                white-space: normal;
            }
        }

.page-title {
            text-align: center;
            margin: 4rem 0 0.5rem 0;
        }

        .page-subtitle {
            text-align: center;
            color: #888;
            font-size: 0.95rem;
            margin: 0 0 2rem 0;
        }

        /* FEATURED BOX */
        .featured-box {
            background: #1a1a1a;
            border: 2px solid #4ade80;
            border-radius: 12px;
            padding: 1.75rem 2rem;
            margin-bottom: 2.5rem;
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;
            align-items: center;
        }

        .featured-link {
            display: inline-block;
            background: #0f2d1a;
            border: 2px solid #4ade80;
            border-radius: 8px;
            padding: 0.75rem 2.5rem;
            color: #4ade80;
            text-decoration: none;
            font-size: 1.05rem;
            font-weight: bold;
            transition: all 0.2s ease;
        }

        .featured-link:hover {
            background: #4ade80;
            color: #000;
        }

        /* TABS */
        .category-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            justify-content: center;
        }

        .category-tab {
            padding: 0.6rem 1.4rem;
            background: #1a1a1a;
            border: 2px solid #4ade80;
            border-radius: 8px;
            color: #fff;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: bold;
            transition: all 0.2s ease;
            text-align: center;
            white-space: nowrap;
        }

        .category-tab:hover {
            background: #2a2a2a;
        }

        .category-tab.active {
            background: #4ade80;
            color: #000;
        }

        /* CONTENT PANELS */
        .category-content {
            display: none;
        }

        .category-content.active {
            display: block;
            animation: fadeIn 0.3s ease-in-out forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* LINKS GRID inside each panel */
        .topics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 0.6rem;
        }

        .topic-link {
            display: block;
            background: #1a1a1a;
            border: 1px solid #2a2a2a;
            border-radius: 8px;
            color: #ccc;
            text-decoration: none;
            font-size: 0.92rem;
            padding: 0.7rem 1rem;
            transition: all 0.2s ease;
            line-height: 1.4;
        }

        .topic-link:hover {
            background: #222;
            border-color: #4ade80;
            color: #4ade80;
        }

        .topic-placeholder {
            color: #555;
            font-size: 0.88rem;
            font-style: italic;
            padding: 1.5rem;
            text-align: center;
            background: #1a1a1a;
            border: 1px dashed #333;
            border-radius: 8px;
        }

        @media (max-width: 600px) {
            .category-tab {
                font-size: 0.8rem;
                padding: 0.5rem 0.9rem;
            }

            .topics-grid {
                grid-template-columns: 1fr;
            }
        }

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .search-bar-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .header-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--border);
    }

    .container {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: -1;
    }

    .recent-posts {
        position: static;
    }

    .verse-box, .intro-box, .video-box, .content-box {
        padding: 1.5rem;
    }

    .content-box h1 {
        font-size: 1.75rem;
    }

    .content-box h2 {
        font-size: 1.3rem;
    }

    .content-box h3 {
        font-size: 1.1rem;
    }

    .content-box p {
        font-size: 0.95rem;
    }

    .navigation-arrow {
        flex-direction: column;
        gap: 0.75rem;
    }

    .next-page, .prev-page {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;
    }

    .site-title-text {
        font-size: 1.25rem;
    }

    .nav-label {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }

    .content-box h1 {
        font-size: 1.5rem;
    }

    .recent-posts h3 {
        font-size: 1.1rem;
    }
}