/* ================================================
   BLOG-STYLES.CSS - Complete Blog Styling System
   Version: 3.0 - Enhanced with full article content support
   Parent: style.css (inherits all CSS variables)
   ================================================ */

/* ================================================
   BLOG HERO SECTION
   ================================================ */
.blog-hero {
    background: linear-gradient(135deg, #003a70 0%, #0056b3 100%) !important;
    background-color: #003a70 !important;
    padding: 80px 0 60px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(400px, 50vh, 550px);
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: min(1400px, 95%);
    width: 100%;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease-out;
}

.blog-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ================================================
   NEWSLETTER INLINE FORM
   ================================================ */
.blog-newsletter-inline {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    padding: 35px 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.newsletter-form {
    max-width: min(900px, 100%);
    width: 100%;
    margin: 0 auto;
}

.newsletter-input-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    width: 100%;
}

.newsletter-input-group input {
    flex: 1;
    min-width: 0;
    height: 58px;
    padding: 0 28px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Newsletter button - Modern gradient design */
.newsletter-input-group .btn,
.blog-newsletter-inline .btn {
    height: 58px;
    padding: 0 42px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #1a1a1a !important;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.4);
}

.newsletter-input-group .btn-primary,
.blog-newsletter-inline .btn-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #1a1a1a !important;
}

.newsletter-input-group .btn-primary:hover,
.blog-newsletter-inline .btn-primary:hover,
.newsletter-input-group .btn:hover,
.blog-newsletter-inline .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.newsletter-input-group .btn i,
.blog-newsletter-inline .btn i {
    font-size: 18px;
}

.newsletter-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
}

/* ================================================
   CATEGORY FILTER BAR
   ================================================ */
.category-filter-bar {
    background: #f8f9fa;
    padding: 20px 0;
    margin: -30px 0 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.category-filter-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
}

.category-filter-wrapper::-webkit-scrollbar {
    height: 6px;
}

.category-filter-wrapper::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid transparent;
    background: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-btn i {
    font-size: 16px;
}

.category-btn:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.category-btn.active {
    background: #0056b3;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

/* ================================================
   SECTION HEADERS
   ================================================ */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0056b3 0%, #003a70 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* ================================================
   FEATURED POSTS SECTION
   ================================================ */
.featured-posts-section {
    margin-bottom: 80px;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-post {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.featured-post.featured-main {
    grid-column: span 2;
    grid-row: span 2;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.featured-post-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.featured-main .featured-post-image {
    height: 400px;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ffc107;
    color: #212529;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-post-content {
    padding: 25px;
}

.featured-main .featured-post-content {
    padding: 35px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    font-size: 16px;
}

.featured-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-main .featured-post-title {
    font-size: 2rem;
}

.featured-post-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-title a:hover {
    color: #0056b3;
}

.featured-post-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-link {
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    gap: 10px;
    color: #003a70;
}

/* ================================================
   BLOG POSTS GRID
   ================================================ */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

.blog-post-card.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

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

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

.post-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 86, 179, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-author {
    font-weight: 500;
    color: #495057;
}

.post-date {
    color: #6c757d;
}

.post-reading-time {
    color: #0056b3;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #0056b3;
}

.post-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.post-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    gap: 10px;
    color: #003a70;
}

/* ================================================
   PAGINATION
   ================================================ */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 8px;
    margin: 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    color: #495057;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.page-item.active .page-link {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

.page-item.disabled .page-link {
    color: #adb5bd;
    pointer-events: none;
    background: #f8f9fa;
}

/* ================================================
   NO POSTS MESSAGE
   ================================================ */
.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-posts-message i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-posts-message h3 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 10px;
}

.no-posts-message p {
    color: #6c757d;
    margin-bottom: 30px;
}

/* ================================================
   POST DETAIL PAGE
   ================================================ */
.blog-post-page {
    background: #f8f9fa;
}

/* Post Hero Section */
.post-hero {
    position: relative;
    min-height: 450px;
    
    /* Fallback Background - Eğer resim yüklenmediyse */
    background-color: #003a70;
    background-image: linear-gradient(135deg, #003a70 0%, #0056b3 100%);
    
    /* Featured image üzerine gelir */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    display: flex;
    align-items: flex-end;
    margin-bottom: 50px;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
}

.post-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 60px 0 40px;
}

.post-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-breadcrumb a:hover {
    color: #ffc107;
}

.post-breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.post-hero .post-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.post-meta-hero {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    font-size: 16px;
}

.post-info {
    display: flex;
    gap: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.post-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Post Layout */
.post-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 80px;
}

.post-main-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ================================================
   ARTICLE CONTENT - COMPREHENSIVE STYLING
   ================================================ */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2d3748;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #0056b3;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 32px 0 16px;
    line-height: 1.4;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 28px 0 14px;
    line-height: 1.4;
}

.article-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin: 24px 0 12px;
}

.article-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Paragraphs */
.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* Links */
.article-content a {
    color: #0056b3;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 86, 179, 0.3);
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #003a70;
    border-bottom-color: #003a70;
    background: rgba(0, 86, 179, 0.05);
}

/* Lists */
.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.article-content li:last-child {
    margin-bottom: 0;
}

.article-content li > ul,
.article-content li > ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* ================================================
   TABLES - COMPREHENSIVE STYLING
   ================================================ */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.95rem;
}

.article-content thead {
    background: linear-gradient(135deg, #003a70 0%, #0056b3 100%);
}

.article-content thead th {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.article-content th {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    background: #f8f9fa;
}

.article-content td {
    padding: 14px 20px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.article-content tbody tr {
    transition: background-color 0.2s ease;
}

.article-content tbody tr:hover {
    background: #f1f5f9;
}

.article-content tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.article-content tbody tr:nth-child(even):hover {
    background: #e9ecef;
}

/* Table responsive wrapper */
.article-content .table-wrapper {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Blockquotes */
.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #0056b3;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4a5568;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    color: rgba(0, 86, 179, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.article-content blockquote p {
    margin-bottom: 0.75rem;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: normal;
}

.article-content blockquote cite::before {
    content: '— ';
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Figure and Figcaption */
.article-content figure {
    margin: 2.5rem 0;
    text-align: center;
}

.article-content figcaption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* Code Blocks */
.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Inline Code */
.article-content code {
    background: #f1f5f9;
    color: #d73a49;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
}

/* Keyboard Input */
.article-content kbd {
    background: #2d3748;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.85em;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid #1a202c;
}

/* Sample Output */
.article-content samp {
    background: #f8f9fa;
    color: #2d3748;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
    border: 1px solid #e2e8f0;
}

/* Variable */
.article-content var {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-style: italic;
    color: #0056b3;
    font-weight: 500;
}

/* Mark/Highlight */
.article-content mark {
    background: #ffc107;
    color: #212529;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Horizontal Rule */
.article-content hr {
    margin: 3rem 0;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
}

/* Definition Lists */
.article-content dl {
    margin: 2rem 0;
}

.article-content dt {
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.article-content dt:first-child {
    margin-top: 0;
}

.article-content dd {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Abbreviations */
.article-content abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
    border-bottom: 1px dotted #6c757d;
}

/* Small Text */
.article-content small {
    font-size: 0.875em;
    color: #6c757d;
}

/* Strong and Bold */
.article-content strong,
.article-content b {
    font-weight: 700;
    color: #1a202c;
}

/* Emphasis and Italic */
.article-content em,
.article-content i {
    font-style: italic;
}

/* Subscript and Superscript */
.article-content sub,
.article-content sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.article-content sup {
    top: -0.5em;
}

.article-content sub {
    bottom: -0.25em;
}

/* ================================================
   TABLE OF CONTENTS
   ================================================ */
.article-toc {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.toc-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.toc-item {
    margin-bottom: 10px;
}

.toc-link {
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-link:hover {
    background: white;
    color: #0056b3;
    border-left-color: #0056b3;
    transform: translateX(5px);
}

.toc-link.active {
    background: white;
    color: #0056b3;
    border-left-color: #0056b3;
    font-weight: 600;
}

.toc-item-h3 .toc-link {
    padding-left: 24px;
    font-size: 0.95rem;
}

.toc-item-h4 .toc-link {
    padding-left: 36px;
    font-size: 0.9rem;
}

/* ================================================
   SHARE BAR
   ================================================ */
.share-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.share-label {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
}

.share-text {
    font-weight: 600;
    color: #495057;
}

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

/* Share Button Base Styles */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.share-btn i {
    font-size: 18px;
}

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

.share-btn:active {
    transform: translateY(0);
}

/* Share Button Colors - Fixed class names */
.share-btn.share-facebook {
    background: #1877f2;
}

.share-btn.share-facebook:hover {
    background: #0d65d9;
}

.share-btn.share-twitter {
    background: #1da1f2;
}

.share-btn.share-twitter:hover {
    background: #0c8bd9;
}

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

.share-btn.share-linkedin:hover {
    background: #006399;
}

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

.share-btn.share-whatsapp:hover {
    background: #20ba5a;
}

.share-btn.copy-link {
    background: #6c757d;
}

.share-btn.copy-link:hover {
    background: #5a6268;
}

.share-btn.copy-link.copied {
    background: #28a745;
}

/* Floating Social Share (Desktop) - Icon Only */
.floating-social-share {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.floating-social-share .share-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
}

.floating-social-share .share-btn i {
    font-size: 22px;
}

/* ================================================
   AUTHOR BIO
   ================================================ */
.author-bio {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.author-bio-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-bio-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.author-bio-title {
    color: #6c757d;
    font-size: 0.95rem;
}

.author-bio-content p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* ================================================
   BLOG CTA SECTION (Index Page)
   ================================================ */
.blog-cta-section {
    margin: 60px 0;
    padding: 0 15px;
}

.c

.newsletter-icon {
    font-size: 4rem;
    opacity: 0.9;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: white;
}

.newsletter-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-inline-form {
    display: flex;
    gap: 10px;
}

.newsletter-inline-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
}

.newsletter-inline-form .btn {
    padding: 12px 30px;
    background: #ffc107;
    color: #212529;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-inline-form .btn:hover {
    background: #ffca2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* ================================================
   RELATED POSTS
   ================================================ */
.related-posts {
    margin: 60px 0;
}

.related-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a202c;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

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

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

.related-post-image {
    height: 150px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

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

.related-post-date {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 8px;
    display: block;
}

.related-post-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-post-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #0056b3;
}

/* ================================================
   SIDEBAR WIDGETS
   ================================================ */
.widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    color: #1a202c;
}

/* Search Widget */
.search-widget {
    background: #f8f9fa;
}

.widget-search-form {
    position: relative;
}

.widget-search-form .input-group {
    display: flex;
    width: 100%;
}

.widget-search-form input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-right: none;
    border-radius: 25px 0 0 25px;
    padding: 12px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.widget-search-form input:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.widget-search-form button {
    border: 1px solid #0056b3;
    background: #0056b3;
    color: white;
    border-radius: 0 25px 25px 0;
    padding: 0 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.widget-search-form button:hover {
    background: #003a70;
    border-color: #003a70;
}

/* ================================================
   BLOG CTA SECTION (Index Page Full-Width)
   ================================================ */
.blog-cta-section {
    margin: 60px 0 80px;
}

.cta-card {
    background: linear-gradient(135deg, #003a70 0%, #0056b3 100%);
    border-radius: 16px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 50px;
    box-shadow: 0 10px 40px rgba(0, 58, 112, 0.2);
    color: white;
}

.cta-content {
    flex: 1;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.cta-buttons .btn-primary {
    background: #ffc107;
    color: #212529;
    border: 2px solid #ffc107;
}

.cta-buttons .btn-primary:hover {
    background: #ffca2c;
    border-color: #ffca2c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.cta-image {
    flex-shrink: 0;
    width: 300px;
}

.cta-image img {
    width: 100%;
    height: auto;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 991px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px;
        gap: 30px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-image {
        width: 250px;
    }
}

@media (max-width: 767px) {
    .cta-card {
        padding: 30px 25px;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-image {
        width: 200px;
    }
}

/* ================================================
   CTA WIDGET (Sidebar)
   ================================================ */
/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #003a70 0%, #0056b3 100%);
    color: white;
}

.cta-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.cta-widget-content {
    text-align: center;
}

.cta-widget-content i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-widget-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.cta-widget-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-widget-content .btn {
    margin-bottom: 10px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-widget-content .btn-primary {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.cta-widget-content .btn-primary:hover {
    background: #ffca2c;
    border-color: #ffca2c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.cta-widget-content .btn-success {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.cta-widget-content .btn-success:hover {
    background: #128c7e;
    border-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #495057;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.category-list a:hover {
    color: #0056b3;
    padding-left: 10px;
}

.category-count {
    background: #e9ecef;
    color: #495057;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
}

/* Popular Posts Widget */
.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.popular-post-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-title a:hover {
    color: #0056b3;
}

.popular-post-date {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Download Widget */
.download-widget {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.download-widget-content {
    text-align: center;
}

.download-widget-content i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.download-widget-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.download-widget-content p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* ================================================
   READING PROGRESS
   ================================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0056b3 0%, #003a70 100%);
    width: 0%;
    z-index: 1000;
    transition: width 0.3s ease;
}

/* ================================================
   ERROR PAGES
   ================================================ */
.error-404-container,
.error-500-container {
    text-align: center;
    padding: 100px 20px;
}

.error-404-container i,
.error-500-container i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-404-container h2,
.error-500-container h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-404-container p,
.error-500-container p {
    color: #6c757d;
    margin-bottom: 30px;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Tablet (992px - 1199px) */
@media (max-width: 1199px) {
    .floating-social-share {
        display: none;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-post.featured-main {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Tablet (768px - 991px) */
@media (max-width: 991px) {
    .post-hero .post-title {
        font-size: 2.5rem;
    }
    
    .post-meta-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-newsletter-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-icon {
        margin-bottom: 20px;
    }
    
    .newsletter-inline-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-inline-form input,
    .newsletter-inline-form .btn {
        width: 100%;
    }
    
    /* Blog hero newsletter */
    .blog-newsletter-inline {
        padding: 25px;
    }
    
    .newsletter-input-group {
        flex-direction: row;
        gap: 8px;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .post-main-content {
        padding: 30px;
    }
    
    .article-content {
        font-size: 1.0625rem;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    /* Fix mobile gap issue */
    .blog-post-page {
        margin-top: -65px;
    }
    
    .post-hero {
        min-height: 300px;
        margin-top: 65px;
    }
    
    .post-hero .post-title {
        font-size: 2rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .share-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }
    
    .share-btn {
        padding: 8px 16px;
        font-size: 13px;
        flex: 1 1 auto;
        min-width: 120px;
    }
    
    .share-btn i {
        font-size: 16px;
    }
    
    .floating-social-share {
        display: none;
    }
    
    /* Blog hero newsletter - Mobile */
    .blog-newsletter-inline {
        padding: 20px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .newsletter-input-group input,
    .newsletter-input-group .btn {
        width: 100%;
    }
    
    .newsletter-input-group .btn {
        justify-content: center;
        padding: 14px 20px;
    }
    
    .author-bio-header {
        flex-direction: column;
        text-align: center;
    }
    
    /* Mobile search widget fix */
    .widget-search-form .input-group {
        flex-wrap: nowrap;
    }
    
    .widget-search-form input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .post-main-content {
        padding: 20px;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    /* Table responsive */
    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.875rem;
    }
    
    .article-content th,
    .article-content td {
        padding: 10px 12px;
        white-space: nowrap;
    }
    
    .category-filter-bar {
        margin: -20px 0 30px;
    }
}

/* ================================================
   BOOTSTRAP UTILITY CLASSES
   ================================================ */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    color: #fff;
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-outline-primary {
    color: #007bff;
    background-color: transparent;
    background-image: none;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* ================================================
   NEWSLETTER RESPONSIVE
   ================================================ */
@media (max-width: 991px) {
    .blog-hero {
        padding: 60px 0 50px;
        min-height: clamp(350px, 45vh, 450px);
    }
    
    .blog-newsletter-inline {
        padding: 30px 25px;
    }
    
    .newsletter-input-group {
        gap: 10px;
    }
    
    .newsletter-input-group .btn,
    .blog-newsletter-inline .btn {
        padding: 0 32px !important;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        padding: 50px 0 40px;
        min-height: auto;
    }
    
    .blog-hero-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }
    
    .blog-newsletter-inline {
        padding: 25px 20px;
    }
    
    .newsletter-input-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .newsletter-input-group input,
    .newsletter-input-group .btn,
    .blog-newsletter-inline .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
    .floating-social-share,
    .article-toc,
    .article-newsletter-cta,
    .related-posts,
    .sidebar,
    .post-breadcrumb,
    .share-bar,
    .blog-hero,
    .category-filter-bar,
    .blog-pagination {
        display: none !important;
    }
    
    .post-hero {
        min-height: auto;
        background: none;
        color: #000;
    }
    
    .post-hero-overlay {
        display: none;
    }
    
    .post-hero .post-title {
        color: #000;
    }
    
    .author-name,
    .post-info {
        color: #000;
    }
    
    .article-content {
        font-size: 12pt;
    }
    
    .article-content a {
        text-decoration: underline;
    }
    
    .article-content table {
        page-break-inside: avoid;
    }
}

/* ================================================
   END OF BLOG-STYLES.CSS
   ================================================ */