/* Blog Specific Styles */

:root {
    --blog-accent: #ff6b00; /* Matching primary */
    --blog-dark: #003366;   /* Matching secondary */
    --blog-bg: #f8f9fa;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --card-hover-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

body.blog-page {
    background-color: var(--blog-bg);
    font-family: 'Poppins', sans-serif;
}

/* -----------------------------
   Header
----------------------------- */
.blog-header {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-spacer {
    height: 80px;
}

.blog-nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--blog-dark);
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: baseline;
}

.logo-text .highlight {
    color: var(--blog-accent);
}

.logo-text .sub {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
    margin-left: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nav & Dropdowns */
.blog-nav-root {
    display: flex;
    align-items: center;
}

.blog-nav-root > ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    padding: 1rem 0;
}

.nav-item > a {
    color: var(--blog-dark);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.nav-item > a i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.nav-item:hover > a, .nav-item.open > a {
    color: var(--blog-accent);
}

.nav-item:hover > a i, .nav-item.open > a i {
    transform: rotate(180deg);
}

/* Search Bar - Dropdown Style */
.search-item {
    position: relative;
}

.search-toggle {
    cursor: pointer;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px; /* Or min-width */
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-out;
    z-index: 1001;
    border: 1px solid rgba(0,0,0,0.05);
}

.nav-item.open .search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form-wrapper {
    display: flex;
    gap: 0;
    border: 1px solid #eee;
    border-radius: 4px; /* Slight radius for the whole group, or 0 if strictly squared */
    overflow: hidden;
}

.search-form-wrapper input {
    flex-grow: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    font-size: 0.95rem;
    color: var(--blog-dark);
    font-family: inherit;
    background: #f8f9fa;
}

.search-form-wrapper input:focus {
    background: white;
}

.search-btn-square {
    width: 44px;
    border: none;
    background: var(--blog-accent);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0; /* Squared */
}

.search-btn-square:hover {
    background: var(--blog-dark);
}

/* Arrow for the box */
.search-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px; /* Align with icon ish */
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
}


@media (max-width: 768px) {
    .search-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 10px 0;
        transform: none;
        display: none;
        visibility: visible; /* Controlled by display */
    }
    
    .nav-item.open .search-dropdown {
        display: block;
        opacity: 1;
    }
    
    .search-dropdown::before {
        display: none;
    }
}

/* Dropdown Menu - RESET & COMPACT */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out;
    display: block; /* Standard block flow */
    z-index: 1001;
    margin: 0;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Show Dropdown on Hover (Desktop) */
@media (min-width: 769px) {
    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}

.dropdown-menu a {
    display: block;
    padding: 6px 20px;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    border-bottom: 1px solid #f8f8f8;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #fff8f3;
    color: var(--blog-accent);
    padding-left: 24px; /* Subtle slide */
}

/* Scrollbar Style */
.dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
}
.dropdown-menu::-webkit-scrollbar {
    width: 5px;
}
.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

/* -----------------------------
   Hero Section
----------------------------- */
.blog-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--blog-dark) 0%, #001f3f 100%);
    color: white;
    padding: 0 2rem;
    overflow: hidden;
    margin-top: 0;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 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='1'%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");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------
   Content Grid
----------------------------- */
.blog-content-wrapper {
    padding: 4rem 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .card-image img {
    transform: scale(1.08); 
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--blog-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd3da;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-card h3 a {
    color: var(--blog-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.article-card h3 a:hover {
    color: var(--blog-accent);
}

.excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
     -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 600;
    color: var(--blog-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.read-more i {
    transition: transform 0.2s;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* -----------------------------
   Pagination
----------------------------- */
.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    color: var(--blog-dark);
    font-weight: 600;
    border: 1px solid #eee;
    transition: all 0.2s;
    text-decoration: none;
}

.page-link.prev, .page-link.next {
    width: auto;
    padding: 0 1.5rem;
    border-radius: 50px;
}

.page-link:hover, .page-link.active {
    background: var(--blog-accent);
    color: white;
    border-color: var(--blog-accent);
}

/* -----------------------------
   Error / Empty States
----------------------------- */
.empty-state, .error-state {
    text-align: center;
    padding: 4rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.empty-state h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--blog-dark);
}

.btn-primary {
    background: var(--blog-accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

/* -----------------------------
   Single Article View
----------------------------- */
.article-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.article-header-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.article-category-badge {
    display: inline-block;
    background: var(--blog-accent);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
    text-decoration: none;
}

.article-category-badge:hover {
    transform: translateY(-2px);
    background: var(--blog-dark);
}

.article-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.article-container {
    max-width: 900px;
    margin: -4rem auto 4rem;
    position: relative;
    z-index: 10;
}

.article-content {
    background: white;
    padding: 4rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--blog-dark);
    margin: 2.5rem 0 1.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--blog-dark);
    margin: 2rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-content blockquote {
    border-left: 4px solid var(--blog-accent);
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: #fff8f3;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #555;
    border-radius: 0 8px 8px 0;
}

.article-content pre {
    background: #2d3436;
    color: #dfe6e9;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9em;
}

.article-content code {
    background: rgba(0,0,0,0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--blog-dark);
}

.article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.article-content h4 {
    font-size: 1.2rem;
    color: var(--blog-dark);
    margin: 1.5rem 0 0.8rem;
    font-weight: 700;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.article-content table th,
.article-content table td {
    padding: 1rem;
    border: 1px solid #eee;
    text-align: left;
}

.article-content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--blog-dark);
}

.article-content table tr:nth-child(even) {
    background: #fffcf9;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--blog-dark);
    transition: color 0.2s;
    text-decoration: none;
}

.btn-back:hover {
    color: var(--blog-accent);
}


/* Breadcrumb */
.article-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-breadcrumb ol {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.8rem;
    align-items: center;
}

.article-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: white;
}

.article-breadcrumb i {
    font-size: 0.7em;
    opacity: 0.6;
}

/* Share Section */
.share-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.share-section h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif; /* Reset font from serif content */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #999;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1.1rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.in { background: #0077b5; }
.share-btn.mail { background: #555; }

/* -----------------------------
   Mobile
----------------------------- */
.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--blog-dark);
    z-index: 1002;
}

@media (max-width: 768px) {
    .blog-header {
        height: 70px;
    }
    
    .header-spacer {
        height: 70px;
    }
    
    .blog-nav-container {
        padding: 0 1.5rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    /* Nav Menu Slide In */
    .blog-nav-root {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        z-index: 999;
        overflow-y: auto;
        display: block; /* Ensure block display mode for container */
    }
    
    .blog-nav-root.active {
        right: 0;
    }
    
    .blog-nav-root > ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 1.5rem;
    }
    
    .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .nav-item > a {
        padding: 1.2rem 0;
        width: 100%;
        justify-content: space-between;
        font-size: 1.1rem;
    }
    
    /* Dropdown in Mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        transform: none;
        visibility: visible;
        opacity: 1;
        background: #f9fafb;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding: 0;
        min-width: 100%;
        margin-top: 0;
        border: none;
    }
    
    .nav-item.open .dropdown-menu {
        max-height: 800px;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        margin-bottom: 1rem;
    }
    
    .nav-item.open > a {
        color: var(--blog-accent);
    }
    
    .nav-item.open > a i {
        transform: rotate(180deg);
    }
    
    .dropdown-menu a {
        padding-left: 1.5rem;
        background: transparent;
        font-size: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-hero h1, .article-hero h1 {
        font-size: 2.2rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
}

/* --- Fix for Article Content Layout --- */

/* --- Fix for Article Content Layout --- */
.article-content-wrapper {
    overflow-wrap: break-word;
    word-wrap: break-word; /* legacy */
    word-break: break-word;
}

.article-content-wrapper img {
    max-width: 100%;
    height: auto;
}

.article-content-wrapper table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fix specific table-of-contents or list styling if present */
.article-content-wrapper ul, 
.article-content-wrapper ol {
    max-width: 100%;
    padding-left: 1.5rem;
}

.article-content-wrapper nav {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
    margin: 2rem 0;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.article-content-wrapper nav ul {
    display: block !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.article-content-wrapper nav li {
    width: 100% !important;
    margin-bottom: 0.5rem;
}

.article-content-wrapper pre {
    white-space: pre-wrap;
    word-break: break-all;
}



/* ------------------------------------------------------------------
   REDESIGN: Modern Single Article Styles
   ------------------------------------------------------------------ */

/* --- Modern Hero Section --- */
.article-hero-modern {
    position: relative;
    min-height: 45vh;
    max-height: 600px; /* Prevent it from getting too huge on 4k screens */
    display: flex;
    align-items: center;
    justify-content: center; /* Ensure horizontal centering */
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 31, 63, 0.4) 0%, rgba(0, 31, 63, 0.85) 100%);
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    padding-bottom: 6rem;
    text-align: center;
}

.article-category-badge-modern {
    display: inline-block;
    background: rgba(255, 107, 0, 0.9); /* blog-accent with opacity */
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.article-category-badge-modern:hover {
    background: #fff;
    color: var(--blog-accent);
    transform: translateY(-2px);
}

.article-title-modern {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem; /* Fallback */
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    font-weight: 700;
}

.article-meta-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-separator {
    color: rgba(255,255,255,0.4);
}

.author-item {
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

/* --- Breadcrumb Bar --- */
.breadcrumb-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.breadcrumb-list {
    display: flex;
    justify-content: center; /* Center the breadcrumbs */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.8rem;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb-list a {
    color: var(--blog-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: var(--blog-accent);
}

.breadcrumb-list .separator {
    font-size: 0.7em;
    color: #adb5bd;
}

.breadcrumb-list .current {
    color: #999;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* --- Layout Grid --- */
.article-layout {
    display: flex;
    gap: 3rem;
    margin-top: 0; /* Removed negative margin to prevent overlap conflict */
    position: relative;
    z-index: 10;
    padding-bottom: 4rem;
}

/* Share Sidebar */
.share-sidebar {
    width: 60px;
    flex-shrink: 0;
    display: none; /* Hidden on mobile */
}

@media (min-width: 1024px) {
    .share-sidebar {
        display: flex; /* Changed from block to flex for internal alignment */
        grid-column: 1;
        justify-content: flex-end;
        padding-right: 2rem;
        width: auto;
    }

    .article-layout {
        display: grid;
        grid-template-columns: 1fr min(900px, 100%) 1fr;
        gap: 0;
        align-items: start;
    }

    .article-main-content {
        grid-column: 2; /* Center column */
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
}

.sticky-share {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sticky-share span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #adb5bd;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.share-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--blog-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f1f1;
    text-decoration: none;
    font-size: 1.1rem;
}

.share-icon:hover {
    transform: scale(1.15);
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.share-icon.fb:hover { background: #1877f2; border-color: #1877f2; }
.share-icon.tw:hover { background: #1da1f2; border-color: #1da1f2; }
.share-icon.in:hover { background: #0077b5; border-color: #0077b5; }
.share-icon.mail:hover { background: #ea4335; border-color: #ea4335; }

/* Main Content Area */
.article-main-content {
    flex-grow: 1;
    min-width: 0; /* Prevent flex overflow */
    max-width: 900px;
    margin: 0 auto;
}

.article-content-wrapper {
    background: white;
    padding: 3rem 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* Typography Improvements */
.typography-enhanced {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #4a4a4a;
    font-family: 'Poppins', sans-serif; /* Cleaner sans-serif for body */
}

.typography-enhanced p {
    margin-bottom: 2rem;
}

.typography-enhanced h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--blog-dark);
    margin: 3.5rem 0 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1rem;
}

.typography-enhanced h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--blog-accent);
    border-radius: 2px;
}

.typography-enhanced h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--blog-dark);
    margin: 2.5rem 0 1rem;
    font-weight: 600;
}

.typography-enhanced blockquote {
    margin: 3rem 0;
    padding: 2rem 3rem;
    background: #fff9f5;
    border-left: none;
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: var(--blog-dark);
    text-align: center;
    border-radius: 12px;
    line-height: 1.6;
}

.typography-enhanced blockquote::before {
    content: '\201C';
    font-size: 5rem;
    color: rgba(255, 107, 0, 0.2);
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-family: serif;
}

.typography-enhanced img {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin: 2rem 0;
    width: 100%;
    height: auto;
}

.typography-enhanced ul, 
.typography-enhanced ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.typography-enhanced li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0.5rem;
}

.typography-enhanced ul li::marker {
    color: var(--blog-accent);
}

/* Bottom Share */
.share-section-bottom {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.share-section-bottom h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--blog-dark);
}

.share-buttons-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
}

.share-btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.share-btn-lg.fb { background: #1877f2; }
.share-btn-lg.tw { background: #1da1f2; }
.share-btn-lg.in { background: #0077b5; }

/* Author Box */
.author-box {
    margin-top: 4rem;
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.author-avatar {
    font-size: 4rem;
    color: #cbd3da;
    flex-shrink: 0;
}

.author-info h3 {
    margin: 0 0 0.5rem;
    color: var(--blog-dark);
    font-size: 1.3rem;
}

.author-info p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Nav Buttons */
.article-navigation {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
}

.btn-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--blog-dark);
    text-decoration: none;
    transition: all 0.2s;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #eee;
}

.btn-nav-back:hover {
    background: var(--blog-accent);
    color: white;
    border-color: var(--blog-accent);
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .article-hero-modern {
        min-height: 50vh;
        
    }

    .article-title-modern {
        font-size: 2.2rem;
    }

    .article-layout {
        
        flex-direction: column;
        padding-bottom: 2rem;
        gap: 0;
    }

    .article-content-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 12px 12px 0 0; /* Rounded top only */
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .breadcrumb-bar {
        display: none; /* Hide breadcrumb on mobile to save space */
    }

    .article-main-content {
        max-width: 100%;
    }
}


/* Article CTA Box */
.article-cta-box {
    background: white;
    border: 2px solid var(--blog-accent);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.article-cta-box .cta-content {
    flex: 1;
}

.article-cta-box h3 {
    color: var(--blog-dark);
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
}

.article-cta-box p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.article-cta-box .btn-cta {
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-cta-box .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

@media (max-width: 768px) {
    .article-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .article-cta-box .btn-cta {
        width: 100%;
        text-align: center;
    }
}

/* Article Tags */
.article-tags-modern {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tags-label {
    font-weight: 600;
    color: var(--blog-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-pill {
    background: #f1f3f5;
    color: #555;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.tag-pill:hover {
    background: white;
    color: var(--blog-accent);
    border-color: var(--blog-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Article Navigation Cards */
.article-navigation-cards {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.nav-card {
    flex: 1;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevent flex overflow */
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: transparent;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 1rem;
    font-weight: 600;
}

.nav-card.prev .nav-label { text-align: left; }
.nav-card.next .nav-label { text-align: right; }

.nav-card-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-card.next .nav-card-content {
    justify-content: flex-end;
    text-align: right;
}

.nav-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.nav-info {
    flex: 1;
    min-width: 0;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blog-text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-card:hover .nav-title {
    color: var(--blog-accent);
}

.nav-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .article-navigation-cards {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-card {
        padding: 1.25rem;
    }
    
    .nav-card.next .nav-label { text-align: left; }
    .nav-card.next .nav-card-content {
        flex-direction: row-reverse; /* Keep image on right visually but consistent structure */
        text-align: left;
        justify-content: flex-start;
    }
}
