/* Main Content */
.main-content {
    padding: 0px 160px;
    display: flex;
    flex: 1;
    justify-content: center;
    min-height: 90vh;
    padding-bottom: 40px;
}

.content-container {
    display: flex;
    flex-direction: column;
    max-width: 960px;
    flex: 1;
}

/* Page Header */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0px;
    padding: 70px 0 10px 0px;
}

.page-title {
    color: #1D4F25;
    font-size: 60px;
    font-weight: 500;
    line-height: 1;
    min-width: 280px;
}

.page-sub-title{
    font-size: 20px;
    font-weight: 300;
    justify-content: center;
    margin: 0;
    flex: 1;
}

/* Blog container */
.blog-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 10px 0px;
    width: 100%;
}

/* Shared card base */
.blog-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 400px;
}

.blog-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Grid for old-style cards below the featured post */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-grid .blog-card {
    width: 100%;
    height: 380px;
}

/* Standard vertical card image + content */
.blog-card .blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-card-content {
    padding: 16px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.blog-card-content h2 {
    margin: 0;
    font-size: 20px;
    color: black;
    font-weight: 400;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    font-size: 14px;
    color: #888;
    margin: 0;
    padding: 5px 0;
    flex-shrink: 0;
}

.post-summary {
    font-size: 15px;
    font-weight: 100;
    color: #767676;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin: 0;
    padding: 10px 0;
}

/* Featured card — overrides after standard styles so cascade works correctly */
/* image left 2/3, text right 1/3 */
.blog-card--featured {
    flex-direction: row;
    width: 100%;
    height: 380px;
}

.blog-card--featured .blog-image {
    width: 66.66%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-card--featured .blog-card-content {
    width: 33.33%;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.blog-card--featured .blog-card-content h2 {
    font-size: 22px;
    font-weight: 400;
    color: black;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card--featured .post-summary {
    flex: 1;
    margin: 12px 0;
    padding: 0;
    -webkit-line-clamp: 4;
}

.blog-card--featured .post-meta {
    flex-shrink: 0;
}

/*POST*/
.post-content {
    max-width: 700px;
    margin: 20px auto;
    padding: 0 20px;
}

.post-content h1 {
    margin-bottom: 10px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* no post available */
.no-posts h2{
    font-weight: 500;
    font-size: 30px;
}

/* RESPONSIVE STYLES */

@media (max-width: 1024px) {
    .page-title { font-size: 50px; min-width: 220px; }
    .page-sub-title { font-size: 18px; }
    .blog-card--featured { height: 320px; }
    .blog-card--featured .blog-card-content h2 { font-size: 20px; }
    .blog-grid .blog-card { height: 320px; }
    .blog-grid .blog-card .blog-image { height: 190px; }
    .no-posts h2 { font-size: 26px; }
}

@media (max-width: 800px) {
    .main-content { padding: 0px 80px; }
    .blog-card--featured { flex-direction: column; height: auto; }
    .blog-card--featured .blog-image { width: 100%; height: 220px; }
    .blog-card--featured .blog-card-content { width: 100%; padding: 16px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid .blog-card { height: 340px; }
    .blog-grid .blog-card .blog-image { height: 190px; }
    .no-posts h2 { font-size: 24px; }
}

@media (max-width: 600px) {
    .main-content { padding: 0px 40px; }
    .page-title { font-size: 40px; min-width: 160px; }
    .page-sub-title { font-size: 14px; }
    .blog-card--featured .blog-image { height: 180px; }
    .blog-card--featured .blog-card-content h2 { font-size: 18px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid .blog-card { height: 300px; }
    .blog-grid .blog-card .blog-image { height: 160px; }
    .post-meta { font-size: 12px; }
    .post-summary { font-size: 13px; }
    .no-posts h2 { font-size: 22px; }
}

@media (max-width: 400px) {
    .main-content { padding: 0px 20px; }
    .page-title { font-size: 30px; min-width: 120px; }
    .page-sub-title { font-size: 11px; }
    .blog-card--featured .blog-image { height: 150px; }
    .blog-card--featured .blog-card-content h2 { font-size: 16px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-grid .blog-card { height: 360px; }
    .blog-grid .blog-card .blog-image { height: 210px; }
    .post-meta { font-size: 10px; }
    .post-summary { font-size: 11px; }
    .no-posts h2 { font-size: 20px; }
}