/* Posts Page Specific Styles */
/* Uses hhbg3 (top) for posts page with standard parallax */

/* ===== PARALLAX SECTION ===== */
#parallax-posts {
    background-image: url('../Images/Hhbg3.jpg');
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

#parallax-posts .content-overlay {
    padding: 80px 5%;
}

/* ===== ACTIVE NAV LINK ===== */
.nav-link.active {
    color: #142238;
    font-weight: 700;
}

/* ===== POSTS GRID ===== */
.posts-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.logo-divider {
    width: 100%;
    display: block;
    text-align: center;
}

/* ===== POST CARD ===== */
.post-card {
    background-color: #142238;
    border-radius: 10px;
    width: 100%;
    margin: 0;
    margin-bottom: 40px;
    padding: 3rem 0;
    text-align: center;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.post-card:last-child {
    margin-bottom: 40px;
}

.post-card-wrapper {
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #C0C6CD rgba(255, 255, 255, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-card-wrapper::-webkit-scrollbar {
    width: 12px;
}

.post-card-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.post-card-wrapper::-webkit-scrollbar-thumb {
    background: #C0C6CD;
    border-radius: 4px;
}

.post-card-wrapper::-webkit-scrollbar-thumb:hover {
    background: #FFFFFF;
}

.post-thumbnail {
    width: calc(100% - 5rem);
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    margin-left: 2.5rem;
    margin-right: 2.5rem;
}

.post-content {
    padding: 0 2.5rem;
}

.post-content h3 {
    margin-bottom: 0.5rem;
}

.post-title {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
}

.post-title:hover {
    color: #C0C6CD;
}

.post-date {
    color: #C0C6CD;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #C0C6CD;
    line-height: 1.8;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.post-excerpt p {
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-excerpt h1,
.post-excerpt h2,
.post-excerpt h3,
.post-excerpt h4 {
    color: #FFFFFF;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.post-excerpt strong {
    color: #FFFFFF;
    font-weight: 600;
}

.post-excerpt em {
    font-style: italic;
}

/* ===== LOADING & ERROR STATES ===== */
.posts-loading,
.posts-error {
    text-align: center;
    color: #C0C6CD;
    font-size: 1.1rem;
    padding: 3rem;
}

.posts-error a {
    color: #FFFFFF;
    text-decoration: underline;
}

.posts-error a:hover {
    color: #C0C6CD;
}

/* ===== DESKTOP/TABLET VIEW ===== */
@media screen and (min-width: 769px) {
    /* Desktop uses default single column layout */
}

/* ===== MOBILE VIEW ===== */
@media screen and (max-width: 768px) {
    .posts-grid {
        flex-direction: column;
    }
    
    .post-card {
        width: 100%;
        margin: 0;
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .post-card-wrapper {
        width: 100%;
        max-height: 580px;
    }
    
    .post-content {
        padding: 0 2rem;
    }
    
    .post-thumbnail {
        width: calc(100% - 4rem);
        margin-left: 2rem;
        margin-right: 2rem;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .post-excerpt {
        font-size: 0.9rem;
    }
}
