@import url('https://fonts.bunny.net/css2?family=Crimson+Text:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #7C3AED;
    --accent: #F59E0B;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-accent: #FEF3C7;
    --border: #E5E7EB;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-primary);
    background: var(--bg-white);
}

/* Header */
.header-wrapper {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1px;*/
    background: url('../images/header-bg.png') center/cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

header {
    background: rgba(255, 255, 255, 0.85); /* More transparency */
    backdrop-filter: blur(5px); /* Less blur */
    padding: 2.5rem 1.5rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto; /* Remove top/bottom margin */
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative; /* Ensure it's above the overlay */
    z-index: 1;
}

header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

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

.author-info {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Navigation */
nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    padding: 0 1.5rem;
}

.nav-button {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-button:hover {
    color: var(--primary);
}

.nav-button.active {
    color: var(--primary);
}

.nav-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

/* Main Content */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Typography */
h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem;
    letter-spacing: -0.025em;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.025em;
}

h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Verse Blocks */
.verse {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    position: relative;
}

.verse-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.verse-reference {
    display: block;
    margin-top: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    font-style: normal;
    color: var(--primary);
    text-align: right;
}

/* Prayer Box */
.prayer-box {
    background: var(--bg-accent);
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 2.5rem 0;
}

.prayer-box h4 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1rem;
}

.prayer-text {
    font-style: italic;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Steps */
.step {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease;
}

.step:hover {
    box-shadow: var(--shadow-md);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    margin-right: 1rem;
}

.step-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Lists */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.tips-list li {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all 0.2s ease;
}

.tips-list li:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.tips-list strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.numbered-list {
    margin: 2rem 0;
    padding-left: 2rem;
}

.numbered-list li {
    margin: 0.75rem 0;
    color: var(--text-primary);
}

.numbered-list strong {
    color: var(--primary);
}

/* Share Section */
.share-section {
    background: var(--bg-light);
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.share-section h3 {
    margin-top: 0;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.facebook:hover {
    background: #166FE5;
}

.share-btn.email {
    background: #EA4335;
    color: white;
}

.share-btn.email:hover {
    background: #D33B2C;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 1.5rem;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-verse {
    font-style: italic;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Body and base typography */
    body {
        font-size: 1.0625rem;
    }

    /* Header section */
    .header-wrapper {
        min-height: 280px;
        background-position: center bottom;
    }
    
    header {
        background: rgba(255, 255, 255, 0.92);
        margin: 1rem;
        padding: 1.5rem 1rem;
        border-radius: 0.5rem;
        max-width: calc(100% - 2rem);
    }
    
    header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .author-info {
        font-size: 0.8125rem;
        padding-top: 1rem;
    }

    /* Navigation */
    .nav-button {
        font-size: 0.875rem;
        padding: 1rem 0.75rem;
    }

    /* Typography adjustments */
    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.375rem;
    }

    /* Urgent message boxes */
    .urgent-message {
        padding: 1.5rem 1rem;
        margin: 0 0 1.5rem 0;
    }
    
    .urgent-message h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    /* Share buttons */
    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    /* Testimony section */
    .testimony-section {
        padding: 2rem 1.5rem;
    }

    .testimony-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .testimony-time {
        font-size: 0.8125rem;
    }

    /* Verse blocks */
    .verse {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    .verse-text {
        font-size: 1.0625rem;
    }

    /* Steps */
    .step {
        padding: 1.25rem;
        margin: 1.25rem 0;
    }

    /* Prayer box */
    .prayer-box {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    /* Lists */
    .tips-list li {
        padding: 1.25rem;
    }

    /* Container */
    .container {
        padding: 2rem 1rem;
    }

    /* Footer */
    footer {
        padding: 2.5rem 1rem;
    }
}

@media (max-width: 480px) {
    /* Body typography */
    body {
        font-size: 1rem;
    }

    /* Header section */
    .header-wrapper {
        min-height: 240px;
    }
    
    header {
        padding: 1.25rem 0.75rem;
        margin: 0.75rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9375rem;
        padding: 0 0.25rem;
    }

    .author-info {
        font-size: 0.75rem;
    }

    /* Navigation */
    .nav-button {
        font-size: 0.8125rem;
        padding: 0.875rem 0.5rem;
    }

    /* Typography */
    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
        margin: 2rem 0 0.875rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    .lead {
        font-size: 1.0625rem;
    }

    /* Urgent message */
    .urgent-message {
        padding: 1.25rem 0.875rem;
        border-radius: 0.375rem;
    }

    .urgent-message h2 {
        font-size: 1.25rem;
    }

    .urgent-message p[style*="font-size: 1.25rem"] {
        font-size: 1rem !important;
    }

    /* Verse blocks */
    .verse {
        padding: 1rem;
        margin: 1.25rem 0;
    }

    .verse-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .verse-reference {
        font-size: 0.8125rem;
        margin-top: 0.5rem;
    }

    /* Steps */
    .step {
        padding: 1rem;
        margin: 1rem 0;
    }

    .step-number {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8125rem;
        margin-right: 0.75rem;
    }

    .step-title {
        font-size: 1.0625rem;
    }

    /* Prayer box */
    .prayer-box {
        padding: 1.25rem;
        border-radius: 0.375rem;
    }

    .prayer-box h4 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .prayer-text {
        font-size: 1rem;
    }

    /* Share section */
    .share-section {
        padding: 1.5rem 1rem;
    }

    .share-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Testimony form */
    .testimony-section {
        padding: 1.5rem 1rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.625rem 0.875rem;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* Lists */
    .tips-list li {
        padding: 1rem;
        margin: 0.75rem 0;
    }

    .numbered-list {
        padding-left: 1.5rem;
    }

    /* Container */
    .container {
        padding: 1.5rem 0.75rem;
    }

    /* Footer */
    footer {
        padding: 2rem 0.75rem;
        margin-top: 3rem;
    }

    footer p {
        font-size: 0.875rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-verse {
        font-size: 0.875rem;
    }

    /* Load more button */
    .load-more-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Testimony cards */
    .testimony-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .testimony-author {
        font-size: 0.9375rem;
    }

    .testimony-time {
        font-size: 0.75rem;
    }

    .testimony-content {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
}

/* Print Styles */
@media print {
    nav, .share-section, footer {
        display: none;
    }

    body {
        font-size: 11pt;
    }

    .verse {
        page-break-inside: avoid;
    }
}

/* Testimony Form */
.testimony-section {
    background: var(--bg-light);
    border-radius: 0.5rem;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 1px solid var(--border);
}

.testimony-section h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
}

.testimony-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.0625rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    line-height: 1.6;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
}

.form-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.form-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Testimonies Display Section */
.testimonies-display {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border);
}

.testimonies-display h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.testimonies-container {
    max-width: 700px;
    margin: 0 auto;
}

.testimony-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.testimony-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.testimony-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.testimony-author {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.testimony-time {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.testimony-content {
    line-height: 1.7;
    color: var(--text-primary);
}

.testimony-content p {
    margin: 0;
}

.testimonies-loader {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

.load-more-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    padding: 0.875rem 1.5rem;
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimony-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .testimony-time {
        font-size: 0.8125rem;
    }
}

/* Urgent Message Boxes - Balanced styling */
.urgent-message {
    background: #FFFBEB;
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 0 0 2rem 0;
    position: relative;
}

/* Salvation tab - warm/urgent feeling */
#salvation .urgent-message {
    background: #FEF3C7; /* Slightly deeper cream for urgency */
    border-left: 4px solid #F59E0B;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

/* Soul winning tab - cooler/compassionate feeling */
#soulwinning .urgent-message {
    background: #F0F9FF; /* Light blue as shown in your image */
    border-left: 4px solid #0284C7;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.1);
}

/* Make the verse inside urgent messages stand out */
.urgent-message .verse {
    background: rgba(255, 255, 255, 0.7);
    border-left-width: 3px;
    margin: 1.5rem 0;
}

/* Salvation verse - orange accent */
#salvation .urgent-message .verse {
    border-left-color: #F59E0B;
}

/* Soul winning verse - blue accent */
#soulwinning .urgent-message .verse {
    border-left-color: #0284C7;
}

/* Center text styling for urgent messages */
.urgent-message h2 {
    margin-top: 0;
    text-align: center;
}

.urgent-message p[style*="text-align: center"] {
    font-weight: 500;
    margin: 1rem 0;
}