/* Biblical Finance Website - Global Styles */
/* Color Palette: Green Theme */

/* Google Fonts - Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --dark-green: #0a2e10;
    --dark-green-text: #011b03;
    --bright-green: #4CAF50;
    --btn-dark-bg: #a8cf45;
    --btn-dark-text: #011b03;
    --btn-light-bg: #a8cf45;
    --btn-light-text: #011b03;
    --link-green: #2E7D32;
    --lime-green: #a8cf45;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
}

*, button, input, select, textarea {
    font-family: 'Outfit', sans-serif;
}

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

body {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Fix for sticky navbar covering anchor link targets */
[id] {
    scroll-margin-top: 80px;
}

/* Modern Navbar */
.navbar {
    background-color: var(--dark-green);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--light-bg);
    font-weight: 600;
    line-height: 1.2;
}

.navbar-brand .tagline {
    font-size: 0.85rem;
    color: var(--lime-green);
    font-style: italic;
    font-weight: normal;
    margin-top: 2px;
}

.navbar-logo {
    height: 60px;
    width: auto;
    display: block;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin: 0;
}

.navbar-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.navbar-menu a:hover {
    color: var(--lime-green);
}

.navbar-menu a.active {
    color: var(--lime-green);
    font-weight: 600;
}

/* Navbar Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-green);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 200px;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}
.nav-dropdown-menu li {
    margin: 0;
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    color: var(--lime-green);
    background: rgba(255,255,255,0.05);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle:hover {
    color: var(--lime-green);
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-green-text);
}

.subtitle {
    font-size: 1.1rem;
    font-weight: normal;
    color: var(--text-light);
    font-style: italic;
}

/* Welcome / Intro Section */
.intro {
    max-width: 750px;
    margin: 0 auto;
    padding: 1rem 20px 2rem;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 20px;
    min-height: 60vh;
}

h2 {
    color: var(--dark-green-text);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    text-align: center;
}

h3 {
    color: var(--dark-green-text);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 1.5rem 2rem 3rem;
    text-align: center;
    margin: 0 0 0.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-headline {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-verse {
    font-size: 1.3rem;
    font-style: italic;
    margin: 2rem auto 1rem;
    max-width: 800px;
    line-height: 1.7;
    color: var(--lime-green);
}

.hero-reference {
    color: rgba(255, 255, 255, 0.8);
    font-weight: normal;
    margin-top: 1rem;
    display: block;
    font-size: 1.1rem;
}

.cta p {
    font-size: 1.25rem;
    line-height: 1.7;
}

.hero-cta {
    margin-top: 2.5rem;
}

/* Button Styles */
/* Buttons on light backgrounds */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--btn-light-bg);
    color: var(--btn-light-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: none;
}

.btn:hover {
    background-color: #1b5e20;
    transform: translateY(-1px);
}

/* Buttons on dark backgrounds */
.hero-cta .btn,
.dark-btn {
    background-color: var(--btn-dark-bg);
    color: var(--btn-dark-text);
    padding: 1rem 2.5rem;
    box-shadow: 0 0 20px rgba(168, 207, 69, 0.15);
    border: none;
}

.hero-cta .btn:hover,
.dark-btn:hover {
    background-color: #b8dc58;
    box-shadow: 0 0 24px rgba(168, 207, 69, 0.3);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    border: 2px solid var(--lime-green);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--bright-green);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.2);
    transform: translateY(-4px);
}

.card h3 {
    color: var(--dark-green-text);
    margin-top: 0;
}

.card p {
    color: var(--text-dark);
}

.card a {
    color: var(--link-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card a:hover {
    color: var(--lime-green);
    text-decoration: underline;
}

/* Scripture Section Styles */
.topic-section {
    background: var(--white);
    margin: 2rem 0;
}

.topic-section h3 {
    margin-top: 0;
    color: var(--dark-green-text);
}

.verse {
    background-color: var(--white);
    border-left: 4px solid var(--link-green);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.verse-text {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.verse-reference {
    display: block;
    font-size: 0.9rem;
    color: var(--link-green);
    font-weight: 600;
}

/* Search Bar */
.search-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-box {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--dark-green-text);
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box:focus {
    border-color: var(--bright-green);
}

.search-info {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center;
}

/* Calculator Styles */
.calculator-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.calc-link {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--lime-green);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark-green-text);
}

.calc-link:hover {
    border-color: var(--bright-green);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.2);
    transform: translateY(-4px);
}

.calc-link h3 {
    margin: 0.5rem 0;
}

.calc-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Lesson Styles */
.lesson-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.lesson-content h2,
.lesson-content h3,
.lesson-content h4 {
    color: var(--dark-green-text);
}

.lesson-content ul,
.lesson-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.lesson-content li {
    margin-bottom: 0.5rem;
}

.lesson-content blockquote {
    border-left: 5px solid var(--link-green);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--dark-green);
    color: var(--white);
    margin-top: 4rem;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-section h4 {
    color: var(--lime-green);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--lime-green);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.footer-credit {
    font-size: 0.9rem;
}

.footer-credit a {
    color: var(--lime-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--bright-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Mobile Navbar */
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--dark-green);
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 2rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu a {
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(255,255,255,0.05);
        min-width: 0;
        display: none;
        padding: 0;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }
    .nav-dropdown.open:hover .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown-menu a {
        padding: 0.8rem 2.5rem;
        font-size: 0.9rem;
    }

    .navbar-logo {
        height: 50px;
    }

    .navbar-brand h1 {
        font-size: 1.25rem;
    }

    .navbar-brand .tagline {
        font-size: 0.75rem;
    }

    .hero {
        padding: 1rem 1.5rem 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-verse {
        font-size: 1.1rem;
    }

    .hero-cta .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .lesson-content {
        padding: 1.5rem;
    }

    /* Footer Mobile Responsive */
    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-section {
        min-width: 100%;
        text-align: center;
    }

    .footer-section ul {
        text-align: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}
