
/*
Theme Name: Astra Child Advanced V25
Template: astra
Description: Automated posts with Unsplash images, YouTube embeds, and proper styling.
Version: 25.0
Author: Manager
*/

h2 {
    margin-bottom: 40px;
}
.section-wrapper {
    margin-bottom: 60px;
}
.related-video-wrapper {
    width: 100%;
    margin: 30px 0;
}
.related-video-wrapper iframe {
    width: 100%;
    height: 480px;
    display: block;
    margin-bottom: 20px;
    border: none;
}

/* v26.1 Category Grid Layout */
.category-post-grid {
    padding: 40px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.post-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}
.post-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.thumbnail-wrapper img.post-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}
.post-info {
    padding: 20px;
    text-align: left;
}
.post-info h2 {
    font-size: 18px;
    margin-bottom: 10px;
}
.post-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}
.read-more {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}
.read-more:hover {
    text-decoration: underline;
}

/* v26.5 Category Grid Layout Fix */
.category-post-grid {
    padding: 40px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}
.post-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.thumbnail-wrapper img.post-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.post-info {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
}
.post-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}
.post-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4em;
}
.read-more {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}
.read-more:hover {
    text-decoration: underline;
}

/* v26.6 Category Header */
.category-header {
    text-align: center;
    margin: 20px auto 40px;
    max-width: 800px;
}
.category-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
}
.category-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6em;
}

/* v26.7 Category Header and Layout Fix */
.category-header {
    text-align: center;
    margin: 30px auto;
    max-width: 800px;
}
.category-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}
.category-header h3 {
    font-size: 18px;
    color: #555;
    line-height: 1.6em;
    margin: 0 auto 30px;
}
.category-post-grid {
    width: 100%;
    margin: 0 auto;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}
.post-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.thumbnail-wrapper img.post-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.post-info {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
}
.post-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}
.post-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4em;
}
.read-more {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}
.read-more:hover {
    text-decoration: underline;
}

/* v26.9 Category Header & Layout Fix */
.category-header {
    text-align: center;
    margin: 30px auto;
    max-width: 900px;
    display: block;
}
.category-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: bold;
}
.category-header h2 {
    font-size: 20px;
    color: #555;
    line-height: 1.6em;
    margin-bottom: 30px;
}
.category-post-grid {
    display: block;
    width: 100%;
    margin: 0 auto;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* v27.0 Force Layout Reset for Category Pages */
.site-main {
    display: block !important;
}
.category-header, .category-post-grid {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 auto;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* v27.1 Force Astra Layout Override for Category Pages */
body.category .site-main {
    display: block !important;
    flex-direction: column !important;
    width: 100% !important;
}
body.category .ast-row, 
body.category .ast-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
}
.category-header {
    display: block !important;
    width: 100% !important;
    margin: 20px auto;
    text-align: center;
}
.category-post-grid {
    display: block !important;
    width: 100% !important;
    margin-top: 20px;
}

/* v27.2 Category Page Design Enhancement */
.category-header {
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    padding: 0 15px;
}
.category-header h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
}
.category-header h3 {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
    font-weight: normal;
    line-height: 1.6em;
}

.category-post-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}
.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.thumbnail-wrapper img.post-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.post-info {
    padding: 20px;
    text-align: left;
}
.post-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}
.post-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5em;
}
.read-more {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}
.read-more:hover {
    text-decoration: underline;
}

/* v27.3 Final Design: Category Page Enhanced Layout */
.category-header {
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    padding: 0 15px;
}
.category-header h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}
.category-header h3 {
    font-size: 22px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6em;
    font-weight: normal;
}
.category-post-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 1024px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .post-grid { grid-template-columns: 1fr; }
}
.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
}
.post-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.thumbnail-wrapper img.post-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.post-info {
    padding: 20px;
    text-align: left;
}
.post-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}
.post-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}
.read-more {
    font-weight: bold;
    color: #0073aa;
    text-decoration: none;
}
.read-more:hover {
    text-decoration: underline;
}
