/* ========================================
   Blog Detail Page Styles
   Based on Design System Specification
   ======================================== */

/* ----------------------------------------
   CSS Variables
   ---------------------------------------- */
:root {
    --blog-primary: #00A896;
    --blog-heading: #111827;
    --blog-body: #374151;
    --blog-muted: #6B7280;
    --blog-border: #E5E7EB;
    --blog-bg-light: #F9FAFB;
    --blog-bg-lighter: #F3F4F6;
    --blog-max-width: 800px;
    --blog-line-height: 1.8;
}

/* ----------------------------------------
   Reading Progress Bar
   ---------------------------------------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--blog-primary), #00D4AA);
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 168, 150, 0.5);
}

/* ----------------------------------------
   Article Container
   ---------------------------------------- */
.blog-article {
    max-width: var(--blog-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.blog-article-wrapper {
    padding-top: 120px;
    padding-bottom: 80px;
}

/* ----------------------------------------
   Breadcrumb Navigation
   ---------------------------------------- */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--blog-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

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

.blog-breadcrumb a:hover {
    color: var(--blog-primary);
}

.blog-breadcrumb .separator {
    color: var(--blog-border);
    font-size: 12px;
}

.blog-breadcrumb .current {
    color: var(--blog-body);
    font-weight: 500;
}

/* ----------------------------------------
   Header Area
   ---------------------------------------- */
.article-header {
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    background: var(--blog-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--blog-heading);
    line-height: 1.2;
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 26px;
    }
}

/* ----------------------------------------
   Author Meta
   ---------------------------------------- */
.author-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--blog-border);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 2px;
    object-fit: cover;
    border: 2px ;
  
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--blog-heading);
}

.author-details {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--blog-muted);
}

.author-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-details svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ----------------------------------------
   Featured Image
   ---------------------------------------- */
.featured-image-container {
    margin: 40px 0;
    position: relative;
}

.featured-image {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: var(--blog-muted);
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.5;
}

/* ----------------------------------------
   Body Content Typography
   ---------------------------------------- */
.article-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--blog-body);
    line-height: var(--blog-line-height);
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--blog-heading);
    margin-top: 48px;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--blog-heading);
    margin-top: 36px;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
}

.article-content p {
    font-size: 18px;
    margin-bottom: 24px;
    line-height: var(--blog-line-height);
}

.article-content a {
    color: var(--blog-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #008B7A;
}

/* Blockquote Styling */
.article-content blockquote {
    border-left: 4px solid var(--blog-primary);
    background: var(--blog-bg-light);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 18px;
    color: var(--blog-body);
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    font-size: 60px;
    font-family: Georgia, serif;
    color: var(--blog-primary);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 16px;
    line-height: 1;
}

.article-content blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

.article-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: var(--blog-muted);
}

/* Lists */
.article-content ul,
.article-content ol {
    font-size: 18px;
    margin-bottom: 24px;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: var(--blog-line-height);
}

.article-content ul li::marker {
    color: var(--blog-primary);
}

.article-content ol li::marker {
    color: var(--blog-primary);
    font-weight: 600;
}

/* Images in Content */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    display: block;
}

.article-content .image-float-left {
    float: left;
    max-width: 45%;
    margin: 0 24px 16px 0;
}

.article-content .image-float-right {
    float: right;
    max-width: 45%;
    margin: 0 0 16px 24px;
}

/* Code Blocks */
.article-content code {
    background: var(--blog-bg-lighter);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 15px;
    color: var(--blog-primary);
}

.article-content pre {
    background: #1a1a2e;
    color: #f0f0f0;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ----------------------------------------
   Tags Section
   ---------------------------------------- */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--blog-border);
}

.article-tags .tag-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-muted);
    margin-right: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--blog-border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--blog-body);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--blog-primary);
    color: var(--blog-primary);
    background: rgba(0, 168, 150, 0.05);
}

/* ----------------------------------------
   Share Buttons
   ---------------------------------------- */
.share-section {
    margin-top: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--blog-border);
}

.share-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.facebook:hover {
    background: #0d65d9;
    transform: translateY(-2px);
}

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

.share-btn.twitter:hover {
    background: #0d8ddb;
    transform: translateY(-2px);
}

.share-btn.linkedin {
    background: #0A66C2;
    color: white;
}

.share-btn.linkedin:hover {
    background: #0854a0;
    transform: translateY(-2px);
}

.share-btn.copy-link {
    background: var(--blog-bg-lighter);
    color: var(--blog-body);
    border: 1px solid var(--blog-border);
}

.share-btn.copy-link:hover {
    background: var(--blog-bg-light);
    border-color: var(--blog-primary);
    color: var(--blog-primary);
    transform: translateY(-2px);
}

.share-btn.copy-link.copied {
    background: var(--blog-primary);
    color: white;
    border-color: var(--blog-primary);
}

/* ----------------------------------------
   Newsletter CTA
   ---------------------------------------- */
.newsletter-cta {
    background: var(--blog-bg-lighter);
    padding: 40px;
    border-radius: 16px;
    margin-top: 48px;
    text-align: center;
}

.newsletter-cta h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--blog-heading);
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.newsletter-cta p {
    font-size: 16px;
    color: var(--blog-muted);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-cta-form {
    display: flex;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-cta-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-cta-form input:focus {
    outline: none;
    border-color: var(--blog-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.1);
}

.newsletter-cta-form button {
    padding: 14px 28px;
    background: var(--blog-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-cta-form button:hover {
    background: #008B7A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 150, 0.3);
}

@media (max-width: 480px) {
    .newsletter-cta {
        padding: 28px 20px;
    }

    .newsletter-cta-form {
        flex-direction: column;
    }

    .newsletter-cta-form button {
        width: 100%;
    }
}

/* ----------------------------------------
   Prev/Next Navigation
   ---------------------------------------- */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--blog-border);
}

.post-nav-item {
    text-decoration: none;
    padding: 24px;
    border-radius: 12px;
    background: var(--blog-bg-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-nav-item:hover {
    background: var(--blog-bg-lighter);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.post-nav-item.prev {
    text-align: left;
}

.post-nav-item.next {
    text-align: right;
}

.post-nav-label {
    font-size: 13px;
    color: var(--blog-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-nav-item.prev .post-nav-label {
    justify-content: flex-start;
}

.post-nav-item.next .post-nav-label {
    justify-content: flex-end;
}

.post-nav-label svg {
    width: 16px;
    height: 16px;
}

.post-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--blog-heading);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-nav-item:hover .post-nav-title {
    color: var(--blog-primary);
}

@media (max-width: 600px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-nav-item.next {
        text-align: left;
    }

    .post-nav-item.next .post-nav-label {
        justify-content: flex-start;
    }
}

/* ----------------------------------------
   Related Posts (Optional)
   ---------------------------------------- */
.related-posts {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--blog-border);
}

.related-posts h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--blog-heading);
    margin-bottom: 32px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.related-post-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
}

.related-post-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--blog-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.related-post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--blog-heading);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-post-card:hover .related-post-title {
    color: var(--blog-primary);
}

/* ----------------------------------------
   Responsive Adjustments
   ---------------------------------------- */
@media (max-width: 768px) {
    .blog-article-wrapper {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .article-content h2 {
        font-size: 24px;
        margin-top: 36px;
    }

    .article-content h3 {
        font-size: 20px;
        margin-top: 28px;
    }

    .article-content p,
    .article-content ul,
    .article-content ol {
        font-size: 16px;
    }

    .article-content blockquote {
        padding: 20px;
        font-size: 16px;
    }

    .featured-image-container {
        margin: 28px -24px;
    }

    .featured-image {
        border-radius: 0;
    }

    .share-buttons {
        justify-content: center;
    }
}

/* ----------------------------------------
   Animation Classes
   ---------------------------------------- */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up.delay-1 {
    animation-delay: 0.1s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.3s;
}

.fade-in-up.delay-4 {
    animation-delay: 0.4s;
}

/* ----------------------------------------
   Blog Grid Styles (for blog listing page)
   ---------------------------------------- */
.blog-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

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

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

.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--blog-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.blog-date,
.blog-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--blog-muted);
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-title a {
    color: var(--blog-heading);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--blog-primary);
}

.blog-excerpt {
    font-size: 15px;
    color: var(--blog-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blog-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-read-more:hover {
    gap: 10px;
}

/* Page Hero for Blog Listing
.page-hero {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    padding: 140px 0 80px;
    text-align: center;
} */

/* .page-title {
    font-size: 52px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
} */

/* Newsletter Section
.newsletter-section {
    background: linear-gradient(135deg, var(--blog-primary) 0%, #00D4AA 100%);
    padding: 80px 0;
}

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

.newsletter-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.newsletter-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

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

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
    padding: 16px 32px;
    background: #111827;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #1f2937;
    transform: translateY(-2px);
} */

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .page-title {
        font-size: 36px;
    }

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