/* ERTCORP Blog Post Styles */

/* --- Reading Progress Bar --- */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* --- Layout --- */
.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1200px) {
    .blog-post-layout {
        grid-template-columns: 1fr 300px;
    }
}

/* --- Floating TOC --- */
.toc-container {
    display: none;
}

@media (min-width: 1200px) {
    .toc-container {
        display: block;
        position: sticky;
        top: 100px;
        height: fit-content;
        padding-left: 2rem;
        border-left: 2px solid var(--border-color);
    }
}

.toc-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.75rem;
}

.toc-link {
    display: block;
    font-size: 0.938rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    padding-left: 0;
    border-left: 2px solid transparent;
    margin-left: -2rem;
    /* Compensate for container padding */
    padding-left: 2rem;
}

.toc-link:hover,
.toc-link.active {
    color: var(--primary-color);
    font-weight: 500;
    border-left-color: var(--primary-color);
}

/* --- Enhanced Typography --- */
.blog-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 3rem 0 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--primary-dark);
}

/* --- Tweetable Quote --- */
/* --- Tweetable Quote --- */
.tweetable-quote {
    background: #f8f9fa;
    border-left: 4px solid #000000;
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.tweetable-quote p {
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.btn-tweet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #000000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.btn-tweet:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Article Hero --- */
.article-hero {
    min-height: 60vh;
    padding: 8rem 0 4rem;
    position: relative;
    display: flex;
    align-items: center;
}

.article-hero .hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.article-hero .container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.article-hero .breadcrumb {
    justify-content: flex-start;
    margin-bottom: 4rem;
    width: 100%;
}

.article-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--solaudit-gradient);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.article-tag.ert {
    background: var(--ert-gradient);
}

.article-tag.training {
    background: var(--pro-gradient);
}

.article-tag.valuert {
    background: var(--valuert-gradient);
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.article-excerpt {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: white;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.938rem;
    color: white;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.article-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* --- Author Card --- */
.author-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 4rem;
    border: 1px solid var(--border-color);
}

.author-avatar {
    width: 120px;
    height: 150px;
    border-radius: 30%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.author-bio {
    font-size: 0.938rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

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

.author-social a {
    color: var(--text-light);
    transition: color 0.2s ease;
}

.author-social a:hover {
    color: var(--primary-color);
}

/* --- Share Buttons (Desktop & Mobile) --- */
.share-btn-float {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.share-btn-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    color: white;
}

.share-btn-float.linkedin {
    background: #0077b5;
}

.share-btn-float.twitter {
    background: #000000;
}

.share-btn-float.facebook {
    background: #1877f2;
}

.share-btn-float.whatsapp {
    background: #25D366;
}

.share-btn-float.copy-link {
    background: var(--primary-color);
}

.desktop-share {
    position: fixed;
    left: max(20px, calc((100vw - 1300px) / 2 - 80px));
    top: 30%;
    z-index: 100;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 1200px) {
    .desktop-share {
        display: flex;
    }
}


/* --- Share Buttons (Desktop & Mobile) --- */
.share-btn-float {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.share-btn-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    color: white;
}

.share-btn-float.linkedin {
    background: #0077b5;
}

.share-btn-float.twitter {
    background: #000000;
}

.share-btn-float.facebook {
    background: #1877f2;
}

.share-btn-float.whatsapp {
    background: #25D366;
}

.share-btn-float.copy-link {
    background: var(--primary-color);
}

.desktop-share {
    position: fixed;
    left: max(20px, calc((100vw - 1300px) / 2 - 80px));
    top: 30%;
    z-index: 100;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 1200px) {
    .desktop-share {
        display: flex;
    }
}

/* --- Mobile Share Bar --- */
.mobile-share-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-share-bar.visible {
    transform: translateY(0);
}

@media (min-width: 1200px) {
    .mobile-share-bar {
        display: none;
    }
}

.mobile-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.75rem;
}

.mobile-share-btn i {
    font-size: 1.25rem;
}

/* --- Newsletter Box --- */
.newsletter-box {
    background: var(--primary-dark);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

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

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

.newsletter-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-btn:hover {
    background: #1abc9c;
    /* Slightly lighter green */
}