/*
Theme Name: BethelForWorks Premium Max
Theme URI: https://bethelforworks.com
Author: Custom Builder
Description: A breathtaking, highly presentable Gospel theme with stunning card layouts, typography, beautiful imagery, and a pop-out Word of the Day section.
Version: 1.5
Text Domain: bethelforworks
*/

:root {
    --primary: #064e3b;       /* Rich Deep Emerald */
    --primary-light: #0f766e; /* Teal Highlight */
    --accent: #d97706;        /* Deep Gold / Amber */
    --bg-main: #f8fafc;       /* Crisp light slate */
    --text-dark: #0f172a;     /* Near black */
    --text-muted: #475569;    /* Soft charcoal */
    --radius: 16px;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.03), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 25px 50px -12px rgba(6, 78, 59, 0.15);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    padding: 0 24px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0;
}

/* Stunning Hero Header Wrapper */
header {
    text-align: center;
    padding: 60px 40px 160px 40px; /* Expands bottom space for the hanging layout */
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 90px; /* Creates healthy clearance from the next items */
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: visible; /* Prevents the pop-out box from getting hidden */
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.06em;
    margin-bottom: 16px;
}

header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 32px auto;
}

/* Premium Navigation Action Buttons */
.btn-container {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.3);
    background-color: var(--primary-light);
}

.btn-alt {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

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

/* Absolute Positioner Layer for Word of the Day Layout */
.word-of-the-day-popout {
    position: absolute;
    bottom: -60px; /* Anchors box perfectly across the bottom border line */
    left: 40px;
    right: 40px;
    z-index: 99;
}

/* Upgraded Floating Card Styles */
.word-card {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    color: white;
    padding: 35px 40px;
    border-radius: var(--radius);
    border: 3px solid #ffffff;
    
    /* 3D Depth Shadow Generation */
    box-shadow: 
        0 20px 40px -15px rgba(6, 78, 59, 0.4), 
        0 30px 60px -10px rgba(0, 0, 0, 0.2);
        
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.word-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 25px 50px -12px rgba(6, 78, 59, 0.5), 
        0 40px 80px -5px rgba(0, 0, 0, 0.3);
}

.word-card p {
    color: #f1f5f9;
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.35rem; 
    line-height: 1.7;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.word-card span {
    display: block;
    margin-top: 16px;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-align: right;
}

/* Sections Configuration */
section {
    margin-bottom: 70px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 3px;
    background: linear-gradient(to right, #bdf5d4, transparent);
    border-radius: 2px;
}

/* Horizontal Scroll System */
.scroll-wrapper {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 12px 4px 30px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.scroll-wrapper::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 20px;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

.scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Premium Presentable Cards */
.card {
    flex: 0 0 340px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Presentable Image Handlers */
.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #cbd5e1;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .article-img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

/* Card Body Content */
.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.card h3 a:hover {
    color: var(--primary-light);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-action {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.card-action:hover {
    gap: 10px;
}

.date {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 40px;
}
footer h2 { color: var(--primary); font-weight: 800; margin-bottom: 8px; }