/* =========================================================
   ELARASTYLE — BLOG & JOURNAL SPECIFIC CSS
   Theme Colors:
   - Jet Black: #111111 (Headings, primary text)
   - Rose Gold / Blush: #E7A49A (Accents, active states, lines)
   - Soft Blush: #F6D6D0 (Card/section backdrops)
   - Copper: #B86F5A (Details, leaf/metadata, border details)
   - White: #FFFFFF (Page background)
========================================================= */

/* =========================================================
   BLOG HEADER & HERO
========================================================= */

.blog-hero {
    background: #F6D6D0; /* Soft Blush Backdrop */
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, #FFFFFF, transparent);
    pointer-events: none;
}

.blog-hero p.subtitle {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: #B86F5A; /* Copper */
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.blog-hero h1 {
    font-family: "Playfair Display", serif;
    color: #111111;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.blog-hero h1 span {
    color: #E7A49A; /* Rose Gold Accent */
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    text-transform: lowercase;
}

.blog-hero p.description {
    max-width: 600px;
    margin: 0 auto;
    color: #555555;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================================
   FILTER & SEARCH BAR
========================================================= */

.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 40px 5% 20px;
    background: #FFFFFF;
    border-bottom: 1px solid #eeeeee;
}

.blog-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #dddddd;
    color: #555555;
    padding: 10px 22px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #111111;
    color: #FFFFFF;
    border-color: #111111;
}

.filter-btn.active {
    outline: 1px solid #E7A49A;
    outline-offset: -3px;
}

.blog-search {
    position: relative;
    min-width: 280px;
}

.blog-search input {
    width: 100%;
    height: 45px;
    padding: 0 45px 0 20px;
    border: 1px solid #dddddd;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease;
    background: #FFFFFF;
}

.blog-search input:focus {
    border-color: #E7A49A;
}

.blog-search i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    pointer-events: none;
}

/* =========================================================
   BLOG POST GRID
========================================================= */

.blog-section {
    padding: 60px 5% 100px;
    background: #FFFFFF;
}

/* Featured / Hero post card */
.featured-post-card {
    display: flex;
    background: #FFFFFF;
    border: 1px solid #eeeeee;
    margin-bottom: 60px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.featured-image-wrapper {
    flex: 1.2;
    overflow: hidden;
    position: relative;
}

.featured-image-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-post-card:hover .featured-image-wrapper img {
    transform: scale(1.05);
}

.featured-content-wrapper {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFFFF;
}

.featured-tag {
    display: inline-block;
    color: #B86F5A;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.featured-title {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    color: #111111;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 500;
}

.featured-excerpt {
    color: #666666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 11px;
    color: #888888;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.post-meta span i {
    color: #E7A49A;
    margin-right: 5px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #111111;
    transition: color 0.3s ease;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.featured-post-card:hover .read-more-btn {
    color: #E7A49A;
}

.featured-post-card:hover .read-more-btn i {
    transform: translateX(5px);
    color: #E7A49A;
}

/* Regular Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.blog-card {
    background: #FFFFFF;
    border: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #FFFFFF;
    color: #111111;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    color: #111111;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.blog-card:hover .card-content h3 {
    color: #E7A49A;
}

.card-content p.excerpt {
    color: #666666;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f2f2f2;
    padding-top: 20px;
    margin-top: auto;
    font-size: 11px;
    color: #999999;
}

/* =========================================================
   SINGLE BLOG POST VIEW
========================================================= */

.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 5% 100px;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #111111;
}

.back-to-blog i {
    transition: transform 0.3s ease;
}

.back-to-blog:hover i {
    transform: translateX(-3px);
}

.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-header-tag {
    display: inline-block;
    color: #B86F5A;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.post-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    line-height: 1.25;
    color: #111111;
    font-weight: 500;
    margin-bottom: 25px;
}

.post-header-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    font-size: 11px;
    color: #888888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.post-header-meta span i {
    color: #E7A49A;
    margin-right: 5px;
}

.post-featured-image {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    margin-bottom: 50px;
    border: 1px solid #eeeeee;
}

.post-content {
    color: #333333;
    font-size: 16px;
    line-height: 1.9;
}

.post-content p {
    margin-bottom: 30px;
}

.post-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    color: #111111;
    margin: 45px 0 25px;
    font-weight: 500;
}

.post-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    color: #111111;
    margin: 35px 0 20px;
    font-weight: 500;
}

.post-content blockquote {
    margin: 45px 0;
    padding: 0 40px;
    border-left: 3px solid #E7A49A;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 24px;
    line-height: 1.6;
    color: #B86F5A;
}

.post-content img {
    margin: 40px 0;
    border: 1px solid #eeeeee;
}

.post-content img + em {
    display: block;
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: #888888;
    font-size: 14px;
    margin-top: -30px;
    margin-bottom: 40px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 25px 0;
    margin: 60px 0;
}

.post-tags {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: #666666;
}

.post-tags a {
    color: #111111;
    text-decoration: underline;
}

.post-tags a:hover {
    color: #E7A49A;
}

.post-share {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 13px;
    color: #666666;
}

.post-share a {
    color: #111111;
    transition: color 0.3s ease;
}

.post-share a:hover {
    color: #E7A49A;
}

/* Related Posts Section */
.related-posts-section {
    border-top: 1px solid #eeeeee;
    padding-top: 60px;
    margin-top: 60px;
}

.related-posts-section h2 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    color: #111111;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 500;
}

/* =========================================================
   RESPONSIVE STYLING
========================================================= */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 5%;
    }
    
    .blog-hero h1 {
        font-size: 36px;
    }
    
    .featured-post-card {
        flex-direction: column;
    }
    
    .featured-image-wrapper img {
        height: 300px;
    }
    
    .featured-content-wrapper {
        padding: 30px;
    }
    
    .featured-title {
        font-size: 26px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-search {
        width: 100%;
    }
    
    .post-header h1 {
        font-size: 32px;
    }
    
    .post-content blockquote {
        padding: 0 20px;
        font-size: 20px;
    }
}
