/* Blog Post Specific Styles */

/* Main Content */
.page-container {
    padding-top: 100px;
    min-height: 100vh;
}

/* Article Header */
.article-header {
    background: var(--beige);
    padding: 3rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--english-red);
}

.separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.current {
    color: var(--text-dark);
    font-weight: 500;
}

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

.category-tag {
    background: var(--english-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tag.featured {
    background: linear-gradient(135deg, var(--english-red), #8B4340);
}

.publish-date,
.read-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    flex-shrink: 0;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Featured Image */
/*.featured-image {*/
/*    margin-bottom: 4rem;*/
/*}*/
/**/
/*.hero-image {*/
/*    width: 100%;*/
/*    height: 400px;*/
/*    object-fit: cover;*/
/*    box-shadow: 0 8px 30px rgba(0,0,0,0.1);*/
/*}*/
.featured-image {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    padding: 0 2rem; /* Add some padding on sides */
}

.hero-image {
    width: 100%;
    max-width: 750px; /* Increased size */
    max-height: 500px; /* Increased height for better ratio */
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Article Content */
.article-content {
    margin-bottom: 4rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

/* Table of Contents */
.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toc-link:hover,
.toc-link.active {
    background: var(--english-red);
    color: white;
    transform: translateX(5px);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.facebook {
    background: #4267B2;
    color: white;
}

.share-btn.linkedin {
    background: #0077B5;
    color: white;
}

.share-btn.copy {
    background: var(--text-dark);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: background 0.3s ease;
}

a.related-post {
    text-decoration: none;
    color: inherit;
}

.related-post:hover {
    background: var(--beige);
}

.related-image {
    flex-shrink: 0;
}

.related-image img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.related-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Article Main Content */
.article-main {
    min-width: 0; /* Prevents flex item from overflowing */
}

.article-body {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.article-body section {
    margin-bottom: 3rem;
    scroll-margin-top: 140px;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    border-left: 4px solid var(--english-red);
    padding-left: 1.5rem;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.lead-paragraph {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--beige);
    border-radius: 15px;
    border-left: 4px solid var(--english-red);
}

/* Quote Styling */
.article-quote {
    background: var(--beige);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--english-red);
    margin: 2rem 0;
    font-style: italic;
}

.article-quote p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.article-quote p::before {
    content: '"';
    font-size: 4rem;
    color: var(--english-red);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-family: serif;
}

.article-quote cite {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Callout Box */
.callout-box {
    background: linear-gradient(135deg, var(--english-red), #8B4340);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.callout-box h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.callout-box p {
    color: white;
    margin-bottom: 0;
}

/* Content Lists */
.content-list,
.numbered-list {
    margin: 1.5rem 0;
    padding-left: 0;
}

.content-list li,
.numbered-list li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.content-list li {
    list-style: none;
}

.numbered-list {
    list-style: none;
}

.content-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--english-red);
    font-weight: bold;
}

.numbered-list {
    counter-reset: list-counter;
}

.numbered-list li {
    counter-increment: list-counter;
}

.numbered-list li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    background: var(--english-red);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Image with Caption */
.image-with-caption {
    margin: 2rem 0;
    text-align: center;
}

.content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.image-caption {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--english-red);
    box-shadow: 0 4px 15px rgba(160, 82, 79, 0.1);
}

.tip-number {
    background: var(--english-red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.tip-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tip-card p {
    font-size: 1rem;
    margin: 0;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--beige), white);
    border: 2px solid var(--english-red);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--english-red);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background: #8B4340;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(160, 82, 79, 0.3);
}

/* Article Tags */
.article-tags {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.article-tags h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: var(--beige);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--english-red);
    color: white;
    transform: translateY(-2px);
}

/* Author Bio */
.author-bio {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.author-bio-avatar {
    flex-shrink: 0;
}

.bio-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--beige);
}

.author-bio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.author-bio-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}


.author-social {
    display: flex;
    gap: 1rem;
}

.author-social .social-link {
    background: var(--beige);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.author-social .social-link:hover {
    background: var(--english-red);
    color: white;
}

/* Newsletter Signup */
.newsletter-signup {
    background: var(--dark-navy);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-btn {
    background: var(--english-red);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #8B4340;
}

/* Mobile-specific sections - hidden on desktop */
.mobile-share-section,
.mobile-related-posts,
.mobile-tags-section {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: static;
        display: none; /* Hide sidebar temporarily, we'll move its contents */
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    /* Create mobile-specific containers that will be populated by JavaScript */
    .mobile-share-section,
    .mobile-related-posts {
        display: block;
        margin-top: 2rem;
    }
    
    .mobile-tags-section {
        display: block;
        margin-top: 2rem;
    }
    
    /* Ensure mobile tags have same styling as desktop */
    .mobile-tags-section .tag {
        background: var(--beige);
        color: var(--text-dark);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }
    
    .mobile-tags-section .tag:hover {
        background: var(--english-red);
        color: white;
        transform: translateY(-2px);
    }
    
    .share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .article-header {
        padding: 2rem 0;
    }
    
    .article-title {
        font-size: 2rem;
    }
    .featured-image {
          padding: 0 1rem;
      }
    .hero-image {
           max-width: 100%;
           border-radius: 15px; /* Slightly smaller radius on mobile */
/*           height: 250px;*/
       }
    
/*    .hero-image {*/
/*        height: 250px;*/
/*    }*/
    
    .article-body {
        padding: 2rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .tips-grid .tip-card {
        flex-direction: column;
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .author-bio {
        padding: 2rem;
    }
    .hero-image {
           border-radius: 12px; /* Even smaller radius on very small screens */
       }
}
