/* blog-styles.css - Dedicated styles for Color High Club Blog Page */

/* === Page Specific Defaults === */
body.blog-page {
    background-color: #FCFAF5; /* Premium light cream base */
    color: #3D4752; /* Sophisticated dark grey for body text */
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

.blg-container {
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* === Blog Page Header / Introduction === */
.blg-page-header {
    background-color: #FFFFFF; 
    padding: 3rem 1rem 2.5rem 1rem; /* Adjusted padding */
    text-align: center;
    border-bottom: 1px solid #EAE6DA;
}
.blg-page-header h1 {
    font-family: 'Carter One', cursive;
    color: #1b3b2f;
    font-size: clamp(2.2em, 5vw, 3em); /* Slightly smaller than homepage H1 */
    margin-bottom: 0.5em;
}
.blg-page-header .blg-intro-text {
    font-size: 1.1em;
    line-height: 1.75;
    color: #525F67;
    max-width: 800px;
    margin: 0 auto 1em auto;
}
.blg-page-header .blg-intro-text a { /* Style for inline links in intro */
    color: #1b3b2f;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #ffaf87;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.blg-page-header .blg-intro-text a:hover {
    color: #ffaf87;
    text-decoration-color: #1b3b2f;
}


/* === Main Layout (Content + Sidebar) === */
.blg-main-layout {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default for mobile-first */
    gap: 2.5rem; /* Default gap */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 992px) { /* Two columns for larger screens */
    .blg-main-layout {
        grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); /* Content takes more space */
        gap: 3.5rem; /* Wider gap on desktop */
    }
}

.blg-content-area {
    /* Styles for the main content area holding posts */
}

.blg-section-title { /* For "Latest Posts" etc. */
    font-family: 'Carter One', cursive;
    color: #1b3b2f;
    font-size: clamp(1.8em, 4vw, 2.4em);
    text-align: left; /* Titles in content area left-aligned */
    margin-bottom: 1.5em;
    border-bottom: 3px solid #ffaf87; /* Accent underline for section titles */
    padding-bottom: 0.3em;
    display: inline-block; /* Make border only as wide as text */
}


/* === Blog Post Grid & Cards (Refined from 01.css) === */
.posts-grid { /* ID #posts-grid is used in HTML for JS targeting */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06); 
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #EAE6DA; 
}
.post-card:hover {
    transform: translateY(-8px) scale(1.01); 
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display:block; 
}

.post-card-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f0f0f0; /* Fallback for missing images / placeholder area */
}
.post-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.post-card:hover .post-card-image-wrapper img {
    transform: scale(1.08); 
}
/* Placeholder specifically inside a card, if the general blog-post-placeholder isn't used */
.post-card-image-wrapper img[src$="blog-post-placeholder.png"] {
    object-fit: contain; 
    padding: 20px;
    opacity: 0.4;
    transform: none !important; 
}

.post-info {
    padding: 1.5rem;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-category {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffaf87; 
    background-color: rgba(255, 175, 135, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 0.75em;
    text-decoration: none;
}
.post-card-category:hover {
    background-color: rgba(255, 175, 135, 0.2);
    color: #e89c71;
}

.post-card-title { 
    font-family: 'Carter One', cursive;
    color: #1A3B32; 
    font-size: 1.3em; 
    line-height: 1.35;
    margin-bottom: 0.4em;
}
.post-card-title a {
    color: inherit;
    text-decoration: none;
}
.post-card-title a:hover {
    color: #ffaf87;
}

.post-meta {
    font-size: 0.8em; 
    color: #788590; 
    margin-bottom: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
}
.post-meta time, .post-meta .post-author { 
    display: inline-block;
}
.post-meta .post-author::before {
    content: "|";
    margin-right: 8px;
    color: #D0D9E0; 
}

.post-card-excerpt {
    font-size: 0.9rem; 
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.5em;
    flex-grow: 1;
}

.read-more.blg-btn.blg-btn-outline { 
    font-weight: 700;
    font-size: 0.85em; 
    padding: 8px 18px; 
    align-self: flex-start;
    margin-top: auto;
    color: #1b3b2f;
    border-color: #1b3b2f;
}
.read-more.blg-btn.blg-btn-outline:hover {
    background-color: #1b3b2f;
    color: #f5f0e1;
}
.read-more.blg-btn .fas {
    margin-left: 6px;
    font-size: 0.9em;
}

/* === Pagination Area === */
.blg-pagination-area {
    margin-top: 3rem;
    text-align: center;
}
.blg-pagination-info {
    font-size: 0.95em;
    color: #5a6a70;
    margin-bottom: 1.25em;
}
.blg-load-more-btn.blg-btn.blg-btn-primary { 
    padding: 14px 35px; 
    font-size: 1.1em;
    background-color: #1b3b2f; 
    color: #f5f0e1;
    box-shadow: 0 4px 12px rgba(27, 59, 47, 0.2);
}
.blg-load-more-btn.blg-btn.blg-btn-primary:hover {
    background-color: #2c5c4c; 
    color: #fff;
    box-shadow: 0 6px 18px rgba(27, 59, 47, 0.3);
}


/* === Sidebar Styling === */
.blg-sidebar {
    /* Desktop: border-left and padding-left applied via media query */
}
.blg-sidebar-widget {
    background-color: #FFFFFF;
    padding: 1.75rem; 
    border-radius: 10px; 
    margin-bottom: 2.5rem; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    text-align: left;
}
.blg-sidebar-title {
    font-family: 'Carter One', cursive;
    font-size: 1.25em; 
    color: #1b3b2f;
    margin-bottom: 1.25em; 
    padding-bottom: 0.6em; 
    border-bottom: 3px solid #ffaf87;
    display: inline-block;
}

.blg-search-form {
    display: flex;
    margin-bottom: 0.5em;
}
.blg-search-form input[type="search"] {
    flex-grow: 1;
    padding: 12px 15px; 
    border: 1px solid #D0D9E0; 
    border-right: none; 
    border-radius: 6px 0 0 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1em; 
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.blg-search-form input[type="search"]:focus {
    border-color: #ffaf87;
    box-shadow: 0 0 0 3px rgba(255, 175, 135, 0.2); 
}
.blg-search-form button {
    padding: 12px 15px;
    background-color: #1b3b2f;
    color: #fff;
    border: 1px solid #1b3b2f; 
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}
.blg-search-form button:hover {
    background-color: #2c5c4c;
}
.blg-search-form + .blg-small-text {
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 0;
}

.blg-category-list li,
.blg-popular-posts-list li {
    margin-bottom: 0.75em; 
    font-size: 1em;
}
.blg-category-list a,
.blg-popular-posts-list a {
    color: #343a40; 
    text-decoration: none;
    font-weight: 600;
    padding: 3px 0; 
    position: relative;
    display: inline-block;
}
.blg-category-list a::after,
.blg-popular-posts-list a::after { 
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 2px;
    right: 0;
    background: #ffaf87;
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}
.blg-category-list a:hover::after,
.blg-popular-posts-list a:hover::after {
    width: 100%;
    left: 0;
    background: #ffaf87;
}
.blg-category-list a:hover,
.blg-popular-posts-list a:hover {
    color: #1b3b2f; 
    text-decoration: none; 
}


.blg-sidebar-cta {
    background-color: #1A3B32;
    color: #f5f0e1;
    padding: 2rem 1.5rem; 
    text-align: center;
    border-radius: 10px; 
}
.blg-sidebar-cta img {
    max-width: 160px; 
    margin-bottom: 1.25em;
    border-radius: 8px;
}
.blg-sidebar-cta h4 {
    font-family: 'Carter One', cursive;
    color: #fff;
    font-size: 1.3em; 
    margin-bottom: 0.5em;
}
.blg-sidebar-cta p {
    font-size: 0.95em; 
    color: #e0e0e0;
    margin-bottom: 1.5em;
}
.blg-sidebar-cta .blg-btn-small.blg-btn-primary { 
    font-size: 0.95em;
    padding: 12px 25px;
    background-color: #ffaf87; 
    color: #1A3B32;
}
.blg-sidebar-cta .blg-btn-small.blg-btn-primary:hover {
    background-color: #e89c71;
    color: #1A3B32;
}


.blg-social-icons {
    display: flex;
    gap: 18px; 
    justify-content: flex-start; 
}
.blg-social-icons a {
    font-size: 1.6em;
    color: #1b3b2f;
    transition: color 0.2s ease, transform 0.2s ease;
}
.blg-social-icons a:hover {
    color: #ffaf87;
    transform: scale(1.15); 
    text-decoration: none;
}

/* No Posts Message */
.blg-no-posts {
    text-align: center;
    padding: 4em 1em; 
    font-size: 1.15em; 
    color: #5a6a70;
    background-color: #fff; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Button styles (re-scoped with blg-btn for blog page specificity) */
.blg-btn { 
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1em;
    text-align: center;
    transition: transform 0.2s ease-out, background-color 0.2s ease-out, box-shadow 0.2s ease-out, color 0.2s ease-out;
    cursor: pointer;
    border: 2px solid transparent;
}
.blg-btn-primary {
    background-color: #ffaf87; /* Default primary on blog page (e.g. sidebar CTA) */
    color: #1b3b2f;
    box-shadow: 0 4px 12px rgba(255, 175, 135, 0.25);
}
.blg-btn-primary:hover {
    background-color: #e89c71;
    color: #1b3b2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 175, 135, 0.35);
}
.blg-btn-outline { /* For "Read More" */
    background-color: transparent;
    color: #1b3b2f;
    border-color: #1b3b2f;
}
.blg-btn-outline:hover {
    background-color: #1b3b2f;
    color: #f5f0e1;
}


/* === Responsive adjustments for blog page === */
@media (min-width: 992px) { 
    .blg-sidebar {
        border-left: 1px solid #E0E5EB; 
        padding-left: 2.5rem;
        margin-top: 0; /* Align with content area in grid */
    }
}

@media (max-width: 991px) { /* Tablet: Stack sidebar below content */
    .blg-main-layout {
        grid-template-columns: 1fr;
    }
    .blg-sidebar {
        border-left: none;
        padding-left: 0;
        margin-top: 3rem;
        border-top: 1px solid #E0E5EB; 
        padding-top: 3rem;
    }
}

@media (max-width: 768px) { /* Mobile refinements */
    .blg-page-header { padding: 2.5rem 1rem 2rem 1rem; }
    .blg-page-header h1 { font-size: clamp(2em, 6vw, 2.6em); }
    .blg-page-header .blg-intro-text { font-size: 1em; }
    
    .blg-main-layout { padding-top: 2.5rem; padding-bottom: 2.5rem; gap: 2.5rem;}
    .blg-section-title { font-size: clamp(1.7em, 5vw, 2.1em); }
    
    .posts-grid { gap: 1.75rem; }
    .post-card-image-wrapper { height: 200px; }
    .post-info { padding: 1.25rem; }
    .post-card-title { font-size: 1.2em; }
    .post-card-excerpt { font-size: 0.9em; }
    .read-more.blg-btn { font-size: 0.85em; padding: 8px 16px;}
    
    .blg-sidebar-widget { padding: 1.5rem; }
    .blg-sidebar-title { font-size: 1.15em; }
}

@media (max-width: 480px) { /* Smaller mobile */
    .posts-grid {
        grid-template-columns: 1fr; /* Single column for post cards */
        gap: 1.5rem;
    }
     .blg-page-header h1 { font-size: clamp(1.8em, 7vw, 2.2em); }
}