/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: row; /* Changed from column to row */
    align-items: baseline; /* Align text at the bottom */
    line-height: 1;
    gap: 5px; /* Small gap between BIBLE and BREW */
}

.bible-text {
    font-weight: 700;
    font-size: 28px; /* Increased font size */
    color: #000;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.brew-text {
    font-weight: 700;
    font-size: 28px; /* Increased font size */
    color: #3b82f6;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.subscribe-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.subscribe-btn:hover {
    background: #2563eb;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: #374151;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 60px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-form {
    display: flex;
    gap: 12px;
}

.email-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.email-input::placeholder {
    color: #6b7280;
}

.subscribe-button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.subscribe-button:hover {
    background: #b91c1c;
}

/* Featured Section */
.featured-section {
    padding: 60px 0;
    background: #f9fafb;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-text h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111827;
}

.featured-text p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.author-info {
    display: flex;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author {
    color: #6b7280;
}

.date {
    color: #9ca3af;
}

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    top: 16px;
    left: 16px;
}

.category-tag.bible-study {
    background: #10b981;
    color: white;
}

.category-tag.current-events {
    background: #3b82f6;
    color: white;
}

.category-tag.reformed-theology {
    background: #8b5cf6;
    color: white;
}

/* Latest Section */
.latest-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

.all-stories-link {
    background: #dc2626;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.all-stories-link:hover {
    background: #b91c1c;
}

.articles-grid {
    display: grid;
    gap: 24px;
}

.article-card {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.article-card.bible-study {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.article-card.current-events {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.article-card.reformed-theology {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-card .category-tag {
    position: static;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #111827;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

/* Editor\'s Picks */
.editors-picks {
    padding: 60px 0;
    background: #f9fafb;
}

.editors-picks h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 40px;
}

.picks-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.pick-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pick-card:hover {
    transform: translateY(-4px);
}

.pick-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.pick-card.large img {
    height: 400px;
}

.pick-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 24px 24px;
}

.pick-content h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.pick-card .category-tag {
    position: static;
    margin-bottom: 12px;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}



.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .logo-img {
        height: 36px; /* Slightly increased for better visibility */
    }

    .bible-text,
    .brew-text {
        font-size: 24px; /* Adjusted for better match with logo height */
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-form {
        flex-direction: column;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .featured-text h2 {
        font-size: 28px;
    }
    
    .picks-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        order: 2;
    }
    
    .social-links {
        order: 3;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .featured-section,
    .latest-section,
    .editors-picks {
        padding: 40px 0;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .article-card {
        padding: 20px;
    }

    .logo-img {
        height: 30px; /* Adjusted for mobile screens */
    }

    .bible-text,
    .brew-text {
        font-size: 20px; /* Adjusted for mobile screens */
    }
}


.footer .logo-img {
    height: 32px; /* Adjust as needed for footer */
}
.footer .bible-text,
.footer .brew-text {
    font-size: 18px; /* Adjust as needed for footer */
}

.footer .bible-text {
    color: white;
}

.footer .brew-text {
    color: #3b82f6;
}



@media (max-width: 768px) {
    .footer .logo-img {
        height: 28px;
    }

    .footer .bible-text,
    .footer .brew-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .footer .logo-img {
        height: 24px;
    }

    .footer .bible-text,
    .footer .brew-text {
        font-size: 16px;
    }
}



/* Article Modal Styles */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto; /* Allow scrolling within the modal */
}

.article-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Ensure interactions are enabled when active */
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh; /* Limit height to viewport */
    overflow-y: auto; /* Enable scrolling for content */
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.article-modal.active .modal-content {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal-btn:hover {
    color: #333;
}

.modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5em;
    color: #111827;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-meta {
    font-size: 0.9em;
    color: #6b7280;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 25px;
}

.modal-body {
    font-size: 1.1em;
    color: #333;
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 1em;
}

.modal-body h1, .modal-body h2, .modal-body h3, .modal-body h4, .modal-body h5, .modal-body h6 {
    font-family: 'Inter', sans-serif;
    color: #111827;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.modal-body ul, .modal-body ol {
    margin-bottom: 1em;
    padding-left: 25px;
}

.modal-body li {
    margin-bottom: 0.5em;
}

.modal-body strong {
    font-weight: 700;
}

.modal-body em {
    font-style: italic;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.8em;
    }

    .modal-image {
        height: 200px;
    }

    .modal-body {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .modal-title {
        font-size: 1.5em;
    }
}






