/* Blog specific styles */
:root {
    --blog-primary: #dc3545;
    --blog-dark: #111;
    --blog-light-bg: #f8f9fa;
    --blog-text: #444;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--blog-text);
}



/* Blog Hero */
.blog-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: url('https://images.unsplash.com/photo-1574717024653-61fd2cf4d44d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 76px; /* Offset for fixed navbar */
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}
.blog-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}
.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.blog-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Badges */
.blog-badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    background-color: var(--blog-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Featured Article */
.featured-article .img-wrapper {
    overflow: hidden;
    border-radius: 8px;
}
.featured-article img {
    transition: transform 0.5s ease;
}
.featured-article:hover img {
    transform: scale(1.05);
}
.featured-article-title {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--blog-dark);
    text-decoration: none;
    line-height: 1.2;
}
.featured-article-title:hover {
    color: var(--blog-primary);
}

/* Article Cards */
.article-card {
    border: none;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    height: 100%;
}
.article-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.article-card .card-img-top {
    height: 220px;
    object-fit: cover;
}
.article-card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--blog-dark);
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 10px;
}
.article-card-title:hover {
    color: var(--blog-primary);
}
.article-meta {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 15px;
}
.article-meta i {
    margin-right: 5px;
}

/* Section Headings */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.section-heading h3 {
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin: 0;
    color: var(--blog-dark);
}
.view-all-link {
    color: var(--blog-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.view-all-link:hover {
    text-decoration: underline;
}

/* Topics */
.topic-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--blog-text);
    display: block;
}
.topic-item:hover {
    background: var(--blog-light-bg);
    transform: translateY(-5px);
}
.topic-icon {
    font-size: 2.5rem;
    color: var(--blog-dark);
    margin-bottom: 10px;
}
.topic-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--blog-dark);
}
.topic-count {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Newsletter */
.newsletter-section {
    background-color: #111111;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    color: white;
    padding: 60px 0;
}
.newsletter-section .form-control {
    border-radius: 0;
    padding: 15px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
}
.newsletter-section .form-control::placeholder {
    color: #888;
}
.newsletter-section .form-control:focus {
    background: #222;
    color: #fff;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}
.newsletter-section .btn {
    border-radius: 0;
    padding: 15px 30px;
    background-color: var(--brand-aqua, #00ffff);
    color: #111111;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.newsletter-section .btn:hover {
    background-color: #ffffff;
    color: #111111;
}

/* Blog Single Page Specifics */
.breadcrumb {
    font-size: 0.85rem;
    margin-top: 100px;
    margin-bottom: 30px;
}
.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--blog-primary);
}
.breadcrumb-item.active {
    color: var(--blog-dark);
    font-weight: 600;
}

.single-article-header {
    margin-bottom: 30px;
}
.single-article-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--blog-dark);
    margin-bottom: 20px;
}
.single-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    margin-left: 10px;
    text-decoration: none;
    font-size: 0.9rem;
}
.share-fb { background: #3b5998; }
.share-tw { background: #1da1f2; }
.share-in { background: #0077b5; }

/* Table of Contents */
.toc-sidebar {
    position: sticky;
    top: 100px;
}
.toc-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #adb5bd;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.toc-nav {
    list-style: none;
    padding: 0;
}
.toc-nav li {
    margin-bottom: 10px;
}
.toc-nav a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.toc-nav a:hover, .toc-nav a.active {
    color: var(--blog-dark);
    font-weight: 600;
}

/* Article Content Formatting */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--blog-text);
}
.article-content h2 {
    font-weight: 700;
    color: var(--blog-dark);
    margin-top: 40px;
    margin-bottom: 20px;
}
.article-content h3 {
    font-weight: 600;
    color: var(--blog-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}
.article-content p {
    margin-bottom: 25px;
}
.article-content img {
    border-radius: 8px;
    margin: 30px 0;
}
.blockquote-custom {
    border-left: none;
    background: var(--blog-light-bg);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    position: relative;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--blog-dark);
}
.blockquote-custom::before {
    content: '\201C';
    position: absolute;
    left: 15px;
    top: 10px;
    font-size: 4rem;
    color: var(--blog-primary);
    opacity: 0.2;
    line-height: 1;
}
.blockquote-footer-custom {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: normal;
}
.blockquote-footer-custom::before {
    content: '\2014 \00A0';
}

/* Related Articles Sidebar */
.related-article-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.related-article-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}
.related-article-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blog-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    line-height: 1.3;
}
.related-article-title:hover {
    color: var(--blog-primary);
}

/* CTA Box */
.cta-box {
    background-color: var(--blog-dark);
    color: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}
.cta-box h4 {
    font-weight: 700;
    margin-bottom: 15px;
}
.cta-box p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: #adb5bd;
}
.cta-box .btn {
    background-color: var(--blog-primary);
    color: white;
    border: none;
    padding: 10px 25px;
    font-weight: 600;
}

/* Article Navigation */
.article-navigation {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
    margin: 50px 0;
}
.nav-article {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--blog-text);
}
.nav-article:hover .nav-article-title {
    color: var(--blog-primary);
}
.nav-article img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.nav-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #adb5bd;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 3px;
}
.nav-article-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blog-dark);
    margin: 0;
    line-height: 1.3;
    transition: color 0.2s;
}

.text-right {
    text-align: right;
}
