/* 
========================================
Blog Styles - Straclente Speaking Academy
========================================
*/

/*
=========================================
Table of Contents:
1. Blog Page Styles
2. Article Page Styles
3. Shared Components
4. Responsive Styles
=========================================
*/

/* 
=========================================
1. Blog Page Styles
=========================================
*/
.blog-hero {
    background-color: #1a1a2e;
    color: #fff;
    padding: 18rem 0 8rem;
    position: relative;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(26, 26, 46, 0.95), rgba(21, 101, 192, 0.85));
    z-index: 0;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero-content h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    color: #fff;
}

.blog-hero-content p {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.blog-main {
    padding: 8rem 0;
    background-color: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 4rem;
    margin-bottom: 6rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog-card.featured .blog-image {
    height: 100%;
}

.blog-image {
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #e8f1fd;
    color: #1565c0;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
}

.blog-content h2, .blog-content h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-meta {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.blog-excerpt {
    font-size: 1.6rem;
    color: #555;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.read-more {
    align-self: flex-start;
    font-weight: 600;
    color: #1565c0;
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.blog-newsletter {
    background-color: #1565c0;
    border-radius: 12px;
    padding: 5rem;
    color: #fff;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.newsletter-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.newsletter-form .form-group {
    margin-bottom: 0;
}

.newsletter-form input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    grid-column: 1 / -1;
    width: auto;
    justify-self: center;
    min-width: 200px;
    margin-top: 1rem;
    background-color: #fff;
    color: #1565c0;
}

.newsletter-form button:hover {
    background-color: #f0f5ff;
}

@media (max-width: 992px) {
    .blog-card.featured {
        grid-template-columns: 1fr;
    }

    .blog-card.featured .blog-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 15rem 0 6rem;
    }

    .blog-hero-content h1 {
        font-size: 3.6rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-newsletter {
        padding: 3rem 2rem;
    }
}

/* 
=========================================
2. Article Page Styles
=========================================
*/
.article-container {
    padding: 16rem 0 8rem;
    background-color: #f8f9fa;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-date, .article-read-time {
    font-size: 1.6rem;
    color: #666;
}

.article-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.article-header h1 {
    font-size: 4.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.article-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    font-size: 1.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.author-title {
    font-size: 1.5rem;
    color: #666;
}

.article-featured-image {
    max-width: 900px;
    margin: 0 auto 6rem;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-intro {
    font-size: 2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 3rem;
    font-weight: 500;
}

.article-content h2 {
    font-size: 3rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: #1a1a2e;
}

.article-content h3 {
    font-size: 2.4rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

.article-content h4 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

.article-content p {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 2.5rem;
    padding-left: 2.5rem;
}

.article-content ul li, .article-content ol li {
    font-size: 1.8rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #444;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-callout {
    background-color: #f0f5ff;
    border-left: 4px solid #1565c0;
    padding: 2.5rem;
    margin: 3rem 0;
    border-radius: 0 12px 12px 0;
}

.article-callout h4 {
    color: #1565c0;
    margin-top: 0;
    margin-bottom: 1rem;
}

.article-callout p {
    margin-bottom: 0;
}

.article-cta {
    background-color: #1a1a2e;
    color: #fff;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 4rem 0 2rem;
}

.article-cta h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.article-cta .btn {
    background-color: #1565c0;
    color: #fff;
    border: none;
}

.article-cta .btn:hover {
    background-color: #0d47a1;
}

.article-author-bio {
    max-width: 800px;
    margin: 5rem auto;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.article-author-bio .author-avatar {
    width: 10rem;
    height: 10rem;
}

.author-details h3 {
    font-size: 1.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.author-details h4 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.author-details p {
    font-size: 1.6rem;
    color: #555;
    margin-bottom: 0;
}

.article-share {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

.article-share h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.social-sharing {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-sharing a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: #f0f5ff;
    border-radius: 50%;
    color: #1565c0;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-sharing a:hover {
    background-color: #1565c0;
    color: #fff;
    transform: translateY(-3px);
}

.related-articles {
    max-width: 800px;
    margin: 0 auto;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.related-article {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.related-article:hover {
    transform: translateY(-5px);
}

.related-article img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-article h3 {
    font-size: 1.8rem;
    padding: 2rem 2rem 1rem;
    line-height: 1.4;
}

.related-article p {
    font-size: 1.5rem;
    color: #666;
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.related-article a {
    display: inline-block;
    padding: 0 2rem 2rem;
    color: #1565c0;
    font-weight: 600;
    font-size: 1.5rem;
}

.related-article a i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.related-article a:hover i {
    transform: translateX(3px);
}

.article-newsletter {
    background-color: #1565c0;
    padding: 6rem 0;
}

.article-newsletter .newsletter-content {
    text-align: center;
    color: #fff;
}

.article-newsletter h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.article-newsletter p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.article-newsletter .newsletter-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.form-row button {
    min-width: 150px;
}

@media (max-width: 992px) {
    .article-content {
        padding: 4rem 3rem;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 12rem 0 6rem;
    }

    .article-header h1 {
        font-size: 3.2rem;
    }

    .article-content {
        padding: 3rem 2rem;
    }

    .article-author-bio {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }

    .article-author-bio .author-avatar {
        margin-bottom: 1rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group, 
    .form-row button {
        width: 100%;
    }
}

/* 
=========================================
3. Shared Components
=========================================
*/
.breadcrumbs {
    padding: 1.5rem 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs-item {
    font-size: 1.4rem;
    color: #666;
}

.breadcrumbs-item:not(:last-child)::after {
    content: '/';
    margin: 0 1rem;
    color: #ccc;
}

.breadcrumbs-item a {
    color: #1565c0;
}

.breadcrumbs-item a:hover {
    text-decoration: underline;
}

.breadcrumbs-item.active {
    color: #333;
    font-weight: 600;
}

/* Post pagination */
.post-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.pagination-link {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #1565c0;
}

.pagination-link.prev {
    margin-right: auto;
}

.pagination-link.next {
    margin-left: auto;
}

.pagination-link i {
    transition: transform 0.3s ease;
}

.pagination-link.prev i {
    margin-right: 0.8rem;
}

.pagination-link.next i {
    margin-left: 0.8rem;
}

.pagination-link.prev:hover i {
    transform: translateX(-3px);
}

.pagination-link.next:hover i {
    transform: translateX(3px);
}

/* 
=========================================
4. Responsive Styles
=========================================
*/
@media (max-width: 1200px) {
    .article-content,
    .article-author-bio,
    .article-share,
    .related-articles {
        max-width: 700px;
    }
}

@media (max-width: 992px) {
    .article-content,
    .article-author-bio,
    .article-share,
    .related-articles {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-tags {
        margin-top: 1.5rem;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}
