html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    height: 100%;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    margin: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.hero {
    min-height: calc(100vh - 120px);
    color: #fff;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero .hero-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    display: inline-block;
    border-radius: 8px;
    max-width: 90%;
}

.hero h1 {
    margin: 0;
    font-size: 2.5rem;
}

.hero h3 {
    margin: 1rem 0;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .button {
    background: #007BFF;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    margin-right: 1rem;
    border-radius: 4px;
}

.hero-buttons .button:hover {
    background: #0056b3;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    padding: 2rem 0;
}

/* Ensure footer sits flush and page fills viewport to avoid bottom gap */
body > header + main { min-height: calc(100vh - 160px); display: block; }
main { display: block; }

article {
    margin-bottom: 2rem;
}

footer {
    background: #333;
    color: #fff;
    padding: 2rem 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

footer .social-media {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

footer .social-media li {
    margin: 0 0.5rem;
}

footer .social-media li a {
    color: #fff;
    text-decoration: none;
}

footer .social-media li a:hover {
    text-decoration: underline;
}

/* Styles for Secondary Pages */
.banner-yes, .banner-no, .banner-resources, .banner-whats-next, .banner-should-know, .banner-partner-content, .banner-resources-download {
    height: 700px;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-yes {
    background: url('../banners/banner_its_not_too_late.jpg') no-repeat center center/cover;
}

.banner-no {
    background: url('../banners/banner_man_holding_bible.jpg') no-repeat center center/cover;
}

.banner-resources {
    background: url('../banners/banner_important_resources.jpg') no-repeat center center/cover;
}

.banner-resources-download {
    background: url('../banners/download_rapture_kit.jpg') no-repeat center center/cover;
}

.banner-whats-next {
    background: url('../banners/banner_whats_next.jpg') no-repeat center center/cover;
}   

.banner-should-know {
    background: url('../banners/banner_what_believers_should_know.jpg') no-repeat center center/cover;
}   

.banner-yes h1, .banner-no h1, .banner-resources h1, .banner-whats-next h1, .banner-should-know h1, .banner-partner-content h1, .banner-resources-download h1 {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    border-radius: 8px;
}

.banner-partner-content {
    background: url('../banners/partner_content.jpg') no-repeat center center/cover;
}

/* Styles for Secondary Page Tiles */
.tile-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.tile {
    flex: 0 0 48%;
    margin-bottom: 2rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #333;
    height: 260px;
}

.tile-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.tile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    z-index: 2;
}

.tile:hover .tile-image::after {
    background: rgba(0, 0, 0, 0);
}

.tile-content {
    padding: 1rem;
    color: #fff;
    text-align: left;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.tile-content p {
    margin: 0 0 1rem;
}

.tile .button {
    background: #007BFF;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    align-self: flex-start;
    margin-top: auto;
}

.tile .button:hover {
    background: #0056b3;
}

.button {
    background: #007BFF;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
}

.button:hover {
    background: #0056b3;
}

/* Override full-width tile to span entire row and auto height */
.tile.full-width {
    flex: 0 0 100%;
    height: auto;
    overflow: visible;
    position: relative;
}

/* Make the tile-image full-height hero */
.tile.full-width .tile-image {
    height: 480px; /* adjust to match desired hero height */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* Position the download button centered at bottom of the hero */
.button-container {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    z-index: 2;
}

/* Enhanced hero download button */
.tile.full-width .button-container {
    bottom: 5rem;
    background: rgba(0, 0, 0, 0.6);
    padding: calc(0.75rem + 10px) 1.5rem;
    border-radius: 8px;
}
.tile.full-width .button-container .button {
    padding: 0.75rem 1.5rem;
    font-size: 1.0rem;
}
.tile.full-width .button-container .button:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero h3 {
        font-size: 1.2rem;
    }
    .hero-buttons .button {
        padding: 0.5rem 1rem;
    }
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin-left: 0;
        margin-bottom: 1rem;
    }
    /* Keep header as a row so hamburger stays at upper right */
    header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .footer-content {
        text-align: left;
    }
    .tile {
        flex: 0 0 100%;
    }
}

.title-emergency-message {
    background-color: red;
    text-align: center;
    padding: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.title-heading-emergency-message {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.responsive-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-collapse: collapse;
}

.table-row {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.table-row.header {
    background-color: #f2f2f2;
    font-weight: bold;
}

.table-cell {
    flex: 1;
    padding: 10px;
    word-wrap: break-word;
}

.table-cell:nth-child(1) {
    flex: 0 0 10%;
}

.table-cell:nth-child(2) {
    flex: 0 0 50%;
}

.table-cell:nth-child(3) {
    flex: 0 0 10%;
}

.table-cell:nth-child(4) {
    flex: 0 0 30%;
}

@media (max-width: 768px) {
    .table-row {
        flex-direction: column;
    }
    .table-cell {
        flex: 1;
        padding: 5px 0;
    }
    .table-cell:nth-child(1),
    .table-cell:nth-child(2),
    .table-cell:nth-child(3),
    .table-cell:nth-child(4) {
        flex: 1;
    }
}

.blog-banner {
    height: 700px;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.blog-banner h1 {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 0;
}

/* Download providers 3-column grid */
.download-providers { 
    margin-top: 1rem;
}
.provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.provider-card {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 1rem;
}
.provider-card h3 {
    margin: 0 0 0.5rem 0;
}
.provider-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.provider-card li {
    margin: 0.25rem 0;
}
.provider-card a {
    color: #007BFF;
    text-decoration: none;
    word-break: break-word;
}
.provider-card a:hover { 
    text-decoration: underline;
}
@media (max-width: 1024px) {
    .provider-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .provider-grid { grid-template-columns: 1fr; }
}

/* Author bio section for partner content pages */
.author-bio {
    margin: 2rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.author-layout {
    display: flex;
    min-height: 250px;
}

.author-photo {
    flex: 0 0 30%;
    padding: 1rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-photo img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.author-info {
    flex: 1;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-info h2 {
    font-family: Arial, sans-serif;
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: #333;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 0.5rem;
}

.author-info p {
    font-family: Arial, sans-serif;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    color: #333;
}

@media (max-width: 768px) {
    .author-layout {
        flex-direction: column;
        min-height: auto;
    }
    
    .author-photo {
        flex: none;
        padding: 1rem;
    }
    
    .author-photo img {
        width: 150px;
        height: 150px;
    }
    
    .author-info {
        padding: 1rem;
    }
    
    .author-info h2 {
        font-size: 1.4rem;
        text-align: center;
    }
}

/* Book showcase layout for partner content pages */
.books-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.book-item {
    margin-bottom: 2rem;
}

.book-layout {
    display: flex;
    min-height: 300px;
}

.book-cover {
    flex: 0 0 30%;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.book-cover img {
    width: 80%;
    object-fit: contain;
    border-radius: 4px;
}

.book-info {
    flex: 1;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    font-family: Arial, sans-serif;
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: #333;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 0.5rem;
}

.book-info h4 {
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
    color: #333;
}

.book-info p {
    font-family: Arial, sans-serif;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    color: #333;
}

.book-info ul {
    margin: 0.5rem 0 1rem 1rem;
    color: #333;
}

.book-info li {
    margin: 0.25rem 0;
    line-height: 1.4;
}

.book-buttons {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-pdf {
    background: #007BFF;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-weight: normal;
    transition: background 0.3s ease;
}

.btn-pdf:hover {
    background: #0056b3;
}

.btn-amazon {
    background: #f39c12;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-weight: normal;
    transition: background 0.3s ease;
}

.btn-amazon:hover {
    background: #d68910;
}

@media (max-width: 768px) {
    .book-layout {
        flex-direction: column;
        min-height: auto;
    }
    
    .book-cover {
        flex: none;
        padding: 0;
        margin: 0 10%;
        width: 80%;
    }
    
    .book-cover img {
        width: 100%;
        max-height: 300px;
    }
    
    .book-info {
        padding: 1rem;
    }
    
    .book-info h3 {
        font-size: 1.4rem;
    }
    
    .book-buttons {
        flex-direction: column;
    }
    
    .btn-pdf,
    .btn-amazon {
        text-align: center;
    }
}


