/* =============================================
   Papel Hosting Blog - Ana CSS
   blog.papelhosting.com
   ============================================= */

:root {
    --primary:       #4f46e5;
    --primary-dark:  #3730a3;
    --primary-light: #e0e7ff;
    --secondary:     #f97316;
    --success:       #16a34a;
    --danger:        #dc2626;
    --dark:          #111827;
    --gray-900:      #1f2937;
    --gray-700:      #374151;
    --gray-500:      #6b7280;
    --gray-300:      #d1d5db;
    --gray-100:      #f3f4f6;
    --white:         #ffffff;
    --font-main:     'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-heading:  'Poppins', 'Inter', sans-serif;
    --radius:        12px;
    --radius-sm:     8px;
    --shadow:        0 4px 24px rgba(0,0,0,.08);
    --shadow-md:     0 8px 32px rgba(0,0,0,.12);
    --transition:    .2s ease;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body.blog-body {
    font-family: var(--font-main);
    color: var(--gray-900);
    background: #f8fafc;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ---- READING PROGRESS ---- */
.reading-progress-bar {
    position: fixed; top: 0; left: 0; z-index: 9999;
    height: 3px; width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width .1s ease;
}

/* ---- TOP BAR ---- */
.blog-topbar {
    background: var(--gray-900);
    color: var(--gray-300);
    font-size: .8rem;
    padding: 6px 0;
}
.blog-topbar a { color: var(--gray-300); text-decoration: none; transition: color var(--transition); }
.blog-topbar a:hover { color: var(--white); }
.topbar-left, .topbar-right {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
}
.topbar-right { justify-content: flex-end; }
.topbar-right .social-links { display: flex; gap: 10px; margin-left: 8px; }
.topbar-right .social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,.1); font-size: .75rem;
    transition: background var(--transition);
}
.topbar-right .social-links a:hover { background: var(--primary); color: var(--white); }

/* ---- HEADER ---- */
.blog-header {
    background: var(--white);
    border-bottom: 2px solid var(--primary-light);
    z-index: 1000;
}
.blog-header .navbar { padding: 12px 0; }
.blog-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.blog-logo img { height: 42px; width: auto; }
.blog-label {
    background: var(--primary);
    color: var(--white);
    font-size: .7rem; font-weight: 700;
    padding: 2px 8px; border-radius: 4px;
    letter-spacing: 1px; text-transform: uppercase;
}
.blog-header .nav-link {
    font-size: .88rem; font-weight: 500;
    color: var(--gray-700) !important;
    padding: 8px 12px !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.blog-header .nav-link:hover,
.blog-header .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}
.blog-badge {
    background: var(--primary) !important;
    font-size: .65rem; margin-left: 4px;
    vertical-align: middle;
}
.blog-search-form { min-width: 260px; }
.blog-search-form .form-control {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border: 1px solid var(--gray-300); font-size: .88rem;
}
.blog-search-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.btn-blog-primary {
    background: var(--primary); color: var(--white); border: none;
    padding: 8px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .88rem; transition: background var(--transition);
}
.btn-blog-primary:hover { background: var(--primary-dark); color: var(--white); }

/* ---- BREADCRUMB ---- */
.blog-breadcrumb-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 10px 0;
}
.blog-breadcrumb-bar .breadcrumb {
    background: none; padding: 0; margin: 0; font-size: .82rem;
}
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item.active { color: var(--gray-500); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-300); }

/* ---- MAIN ---- */
.blog-main { padding: 40px 0 60px; min-height: 70vh; }

/* ---- HERO ---- */
.hero-featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; border-radius: var(--radius); overflow: hidden; }
.hero-image, .hero-sub-image {
    position: relative; border-radius: var(--radius);
    overflow: hidden; display: block;
    background: var(--gray-900);
}
.hero-image { height: 400px; }
.hero-sub-image { height: 192px; }
.hero-image img, .hero-sub-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 60%); }
.hero-content, .hero-sub-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 24px; color: var(--white);
}
.hero-sub-content { padding: 16px; }
.hero-cat-badge {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--white); font-size: .75rem; font-weight: 600;
    padding: 4px 12px; border-radius: 20px;
    text-decoration: none; margin-bottom: 10px;
}
.hero-cat-badge.small { font-size: .7rem; padding: 3px 10px; margin-bottom: 8px; }
.hero-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--white); margin: 8px 0; line-height: 1.3; }
.hero-title a { color: var(--white); text-decoration: none; }
.hero-sub-title { font-family: var(--font-heading); font-size: .95rem; font-weight: 600; color: var(--white); margin: 4px 0; line-height: 1.3; }
.hero-sub-title a { color: var(--white); text-decoration: none; }
.hero-meta, .hero-sub-date { font-size: .78rem; color: rgba(255,255,255,.8); display: flex; gap: 12px; flex-wrap: wrap; }
.hero-secondary { display: flex; flex-direction: column; gap: 16px; }

/* ---- SECTION HEADER ---- */
.section-header { display: flex; align-items: center; gap: 16px; }
.section-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--dark); margin: 0; white-space: nowrap; }
.section-title i { color: var(--primary); margin-right: 6px; }
.section-line { flex: 1; height: 2px; background: linear-gradient(to right, var(--primary-light), transparent); border-radius: 2px; }

/* ---- POST GRID ---- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-image { position: relative; overflow: hidden; }
.post-card-image img {
    width: 100%; height: 200px; object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-cat {
    position: absolute; top: 12px; left: 12px;
    color: var(--white); font-size: .72rem; font-weight: 600;
    padding: 4px 12px; border-radius: 20px;
    text-decoration: none; display: flex; align-items: center; gap: 5px;
    transition: opacity var(--transition);
}
.post-card-cat:hover { opacity: .9; color: var(--white); }
.post-card-featured {
    position: absolute; top: 12px; right: 12px;
    background: var(--secondary); color: var(--white);
    font-size: .7rem; font-weight: 600;
    padding: 3px 10px; border-radius: 20px;
}
.post-card-body { padding: 20px; flex: 1; }
.post-card-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
.post-card-title a { color: var(--dark); text-decoration: none; transition: color var(--transition); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { color: var(--gray-500); font-size: .875rem; margin: 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--gray-100);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.post-card-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .78rem; color: var(--gray-500); }
.post-card-meta i { margin-right: 3px; color: var(--primary); font-size: .7rem; }
.post-card-read-more {
    font-size: .8rem; font-weight: 600; color: var(--primary);
    text-decoration: none; transition: gap var(--transition);
    display: flex; align-items: center; gap: 5px;
    white-space: nowrap;
}
.post-card-read-more:hover { color: var(--primary-dark); gap: 8px; }
.post-card-small .post-card-image img { height: 160px; }

/* ---- PAGINATION ---- */
.pagination-wrapper .pagination { gap: 6px; }
.page-link {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--gray-300);
    color: var(--primary); padding: 8px 14px;
    font-size: .875rem; font-weight: 500;
    transition: all var(--transition);
}
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.page-link:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.page-item.disabled .page-link { color: var(--gray-300); }

/* ---- SINGLE POST ---- */
.single-post-header { margin-bottom: 28px; }
.single-cat-badge {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--white); font-size: .8rem; font-weight: 600;
    padding: 5px 14px; border-radius: 20px;
    text-decoration: none; margin-bottom: 16px;
}
.single-title {
    font-family: var(--font-heading);
    font-size: 2rem; font-weight: 800;
    color: var(--dark); line-height: 1.3; margin: 0 0 20px;
}
.single-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.single-meta-author { display: flex; align-items: center; gap: 12px; }
.author-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 600; font-size: .9rem; display: block; }
.author-role { font-size: .78rem; color: var(--gray-500); }
.single-meta-details { display: flex; flex-wrap: wrap; gap: 14px; color: var(--gray-500); font-size: .82rem; }
.single-meta-details i { color: var(--primary); margin-right: 4px; }
.single-featured-image { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.single-featured-image img { width: 100%; height: auto; display: block; }

/* ---- SOCIAL SHARE ---- */
.social-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.social-share-top { padding: 16px; background: var(--gray-100); border-radius: var(--radius-sm); }
.social-share-bottom { flex-direction: column; align-items: flex-start; padding: 24px; background: var(--primary-light); border-radius: var(--radius); }
.share-label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.share-text { font-weight: 600; color: var(--primary-dark); margin: 0 0 12px; }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 16px; border-radius: var(--radius-sm);
    font-size: .82rem; font-weight: 600; text-decoration: none;
    border: none; cursor: pointer; transition: opacity var(--transition), transform var(--transition);
    color: var(--white);
}
.share-btn:hover { opacity: .9; transform: translateY(-1px); color: var(--white); }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter  { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy-link { background: var(--gray-700); }
.share-btn-lg { padding: 10px 20px; font-size: .9rem; }

/* ---- SINGLE CONTENT ---- */
.single-content {
    font-size: 1.05rem; line-height: 1.85; color: var(--gray-700);
    margin-bottom: 32px;
}
.single-content h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 36px 0 16px; }
.single-content h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--dark); margin: 28px 0 14px; }
.single-content h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--dark); margin: 24px 0 12px; }
.single-content p { margin-bottom: 20px; }
.single-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.single-content a:hover { color: var(--primary-dark); }
.single-content ul, .single-content ol { padding-left: 24px; margin-bottom: 20px; }
.single-content li { margin-bottom: 8px; }
.single-content blockquote {
    border-left: 4px solid var(--primary); background: var(--primary-light);
    padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0; font-style: italic; color: var(--primary-dark);
}
.single-content pre {
    background: var(--gray-900); color: #e5e7eb;
    padding: 20px; border-radius: var(--radius-sm);
    overflow-x: auto; font-size: .9rem; line-height: 1.6; margin-bottom: 20px;
}
.single-content code {
    background: var(--gray-100); color: var(--danger);
    padding: 2px 7px; border-radius: 4px; font-size: .88em;
}
.single-content pre code { background: none; color: inherit; padding: 0; }
.single-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.single-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .9rem; }
.single-content th { background: var(--primary); color: var(--white); padding: 10px 14px; text-align: left; }
.single-content td { border: 1px solid var(--gray-300); padding: 10px 14px; }
.single-content tr:nth-child(even) td { background: var(--gray-100); }

/* ---- TAGS ---- */
.single-tags, .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; align-items: center; }
.tags-label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.tag-badge {
    display: inline-block; padding: 4px 13px;
    background: var(--gray-100); color: var(--gray-700);
    border-radius: 20px; font-size: .78rem; font-weight: 500;
    text-decoration: none; transition: all var(--transition);
    border: 1px solid var(--gray-300);
}
.tag-badge:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---- POST NAVIGATION ---- */
.post-navigation { border-top: 2px solid var(--gray-100); padding-top: 28px; margin-top: 32px; }
.post-nav-link {
    display: flex; flex-direction: column; gap: 6px;
    padding: 16px; border-radius: var(--radius);
    background: var(--gray-100); text-decoration: none;
    transition: background var(--transition);
}
.post-nav-link:hover { background: var(--primary-light); }
.nav-direction { font-size: .78rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.nav-title { font-size: .9rem; font-weight: 600; color: var(--dark); line-height: 1.3; }

/* ---- AUTHOR BOX ---- */
.author-box {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 24px; background: var(--gray-100);
    border-radius: var(--radius); margin: 32px 0;
}
.author-box-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.author-box-bio { font-size: .88rem; color: var(--gray-500); margin: 0 0 10px; }
.author-box-link { font-size: .82rem; color: var(--primary); text-decoration: none; font-weight: 600; }

/* ---- POST CTA BOX ---- */
.post-cta-box {
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius); color: var(--white); margin: 32px 0;
}
.post-cta-box h4 { font-family: var(--font-heading); font-size: 1.1rem; margin: 0 0 8px; }
.post-cta-box p { font-size: .9rem; opacity: .9; margin: 0; }
.btn-cta {
    background: var(--white); color: var(--primary);
    font-weight: 700; padding: 10px 22px;
    border-radius: var(--radius-sm); font-size: .9rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all var(--transition);
}
.btn-cta:hover { background: var(--secondary); color: var(--white); }

/* ---- SIDEBAR ---- */
.blog-sidebar { position: sticky; top: 80px; }
.sidebar-widget {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 22px; margin-bottom: 24px;
}
.widget-title {
    font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
    color: var(--dark); margin: 0 0 18px;
    padding-bottom: 12px; border-bottom: 2px solid var(--primary-light);
    display: flex; align-items: center; gap: 8px;
}
.widget-title i { color: var(--primary); }
.widget-search .input-group-append .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }

/* Kategori Listesi */
.category-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.category-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--gray-700);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.category-link:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.cat-icon {
    width: 32px; height: 32px;
    background: var(--cat-color, var(--primary));
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: .8rem; flex-shrink: 0;
}
.cat-name { flex: 1; font-size: .88rem; font-weight: 500; }
.cat-count {
    background: var(--gray-100); color: var(--gray-500);
    font-size: .75rem; font-weight: 600;
    padding: 2px 8px; border-radius: 20px;
}

/* Popüler Yazılar */
.popular-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.popular-list li { display: flex; gap: 12px; align-items: flex-start; }
.popular-num {
    width: 28px; height: 28px; flex-shrink: 0;
    background: var(--primary); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700;
}
.popular-content { flex: 1; min-width: 0; }
.popular-title {
    display: block; font-size: .875rem; font-weight: 600;
    color: var(--dark); text-decoration: none; line-height: 1.4;
    margin-bottom: 4px; transition: color var(--transition);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.popular-title:hover { color: var(--primary); }
.popular-meta { font-size: .75rem; color: var(--gray-500); }
.popular-meta .sep { margin: 0 4px; }

/* Promo Kartları */
.promo-card {
    text-align: center; padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm); color: var(--white);
}
.promo-card-green { background: linear-gradient(135deg, var(--success), #166534); }
.promo-icon { font-size: 2rem; margin-bottom: 10px; }
.promo-card h5 { font-family: var(--font-heading); font-weight: 700; margin: 0 0 8px; }
.promo-card p { font-size: .85rem; opacity: .9; margin: 0 0 16px; }
.btn-promo {
    background: var(--white); color: var(--primary); font-weight: 700;
    padding: 8px 20px; border-radius: var(--radius-sm);
    font-size: .85rem; text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
    transition: all var(--transition);
}
.btn-promo:hover { background: var(--secondary); color: var(--white); }
.btn-promo-green { background: var(--white); color: var(--success); }
.btn-promo-green:hover { background: var(--secondary); color: var(--white); }
.btn-rss {
    background: #f26522; color: var(--white); font-weight: 600;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: .88rem; text-decoration: none; display: flex; align-items: center; gap: 8px;
    transition: opacity var(--transition);
}
.btn-rss:hover { opacity: .9; color: var(--white); }

/* ---- CATEGORY / TAG HEADER ---- */
.category-header, .tag-header {
    padding: 24px; background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow);
    margin-bottom: 28px;
}
.category-header-icon {
    width: 54px; height: 54px; flex-shrink: 0;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--white);
}
.category-title, .tag-title {
    font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800;
    margin: 0 0 6px; color: var(--dark);
}
.tag-icon { margin-right: 8px; color: var(--primary); }
.tag-name { color: var(--primary); }
.category-desc { color: var(--gray-500); font-size: .9rem; }

/* ---- SEARCH ---- */
.search-header .search-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.search-title strong { color: var(--primary); }
.search-count { font-size: .9rem; }
.search-form-wrapper .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.search-no-results { text-align: center; padding: 48px 20px; }
.no-results-icon { font-size: 4rem; color: var(--gray-300); margin-bottom: 16px; }

/* ---- NEWSLETTER ---- */
.blog-newsletter {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    padding: 48px 0; color: var(--white);
}
.newsletter-text h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; }
.newsletter-text h3 i { margin-right: 10px; }
.newsletter-text p { font-size: .95rem; opacity: .9; margin: 0; }
.newsletter-form .form-control {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border: none; padding: 12px 18px;
    font-size: .95rem; height: auto;
}
.newsletter-form .form-control:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.btn-newsletter {
    background: var(--secondary); color: var(--white); border: none;
    padding: 12px 24px; font-weight: 700; font-size: .95rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: background var(--transition);
}
.btn-newsletter:hover { background: #ea580c; color: var(--white); }

/* ---- FOOTER ---- */
.blog-footer { background: var(--dark); color: var(--gray-300); }
.footer-top { padding: 60px 0 40px; }
.footer-widget { margin-bottom: 32px; }
.footer-logo img { max-width: 160px; margin-bottom: 16px; display: block; filter: brightness(0) invert(1); opacity: .85; }
.footer-about { font-size: .88rem; line-height: 1.7; color: var(--gray-300); margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; text-decoration: none; color: var(--white);
    transition: transform var(--transition), opacity var(--transition);
}
.social-btn:hover { transform: translateY(-2px); opacity: .9; color: var(--white); }
.social-btn.facebook  { background: #1877f2; }
.social-btn.twitter   { background: #1da1f2; }
.social-btn.instagram { background: #e1306c; }
.social-btn.linkedin  { background: #0a66c2; }
.social-btn.rss       { background: #f26522; }
.footer-widget-title {
    font-family: var(--font-heading); font-size: .95rem; font-weight: 700;
    color: var(--white); margin: 0 0 16px;
    padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    color: var(--gray-300); text-decoration: none; font-size: .875rem;
    display: flex; align-items: center; gap: 8px;
    transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-links i { font-size: .65rem; color: var(--primary); }
.footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .875rem; }
.footer-contact-list i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.footer-contact-list a { color: var(--gray-300); text-decoration: none; }
.footer-contact-list a:hover { color: var(--white); }
.btn-outline-footer {
    border: 1px solid rgba(255,255,255,.3); color: var(--gray-300);
    font-size: .82rem; padding: 8px 16px; border-radius: var(--radius-sm);
    text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
    transition: all var(--transition);
}
.btn-outline-footer:hover { border-color: var(--white); color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0; font-size: .82rem;
}
.footer-copyright { color: var(--gray-500); margin: 0; }
.footer-copyright a { color: var(--gray-300); text-decoration: none; }
.footer-copyright a:hover { color: var(--white); }
.footer-copyright .sep { margin: 0 8px; color: var(--gray-700); }
.footer-links-bottom { margin: 0; display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex-wrap: wrap; }
.footer-links-bottom a { color: var(--gray-500); text-decoration: none; display: flex; align-items: center; gap: 5px; font-size: .82rem; }
.footer-links-bottom a:hover { color: var(--white); }

/* ---- ERROR PAGE ---- */
.error-page { padding: 60px 20px; }
.error-code { font-family: var(--font-heading); font-size: 8rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 0; }
.error-title { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; margin-bottom: 16px; color: var(--dark); }
.error-desc { color: var(--gray-500); font-size: 1rem; margin-bottom: 32px; }
.error-search { margin-top: 24px; }

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    border: none; box-shadow: 0 4px 16px rgba(79,70,229,.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer;
    opacity: 0; transform: translateY(20px);
    transition: opacity var(--transition), transform var(--transition);
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ---- RELATED POSTS ---- */
.related-posts { border-top: 2px solid var(--gray-100); padding-top: 36px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .blog-sidebar { position: static; margin-top: 40px; }
    .hero-featured { grid-template-columns: 1fr; }
    .hero-secondary { flex-direction: row; }
    .hero-sub-image { height: 160px; }
    .single-title { font-size: 1.5rem; }
    .topbar-right { display: none; }
}
@media (max-width: 767px) {
    .blog-main { padding: 24px 0 40px; }
    .post-grid { grid-template-columns: 1fr; }
    .hero-image { height: 280px; }
    .hero-secondary { flex-direction: column; }
    .hero-title { font-size: 1.2rem; }
    .single-title { font-size: 1.3rem; }
    .social-share { flex-wrap: wrap; }
    .author-box { flex-direction: column; text-align: center; }
    .post-cta-box .col-md-5 { text-align: left !important; margin-top: 16px; }
    .newsletter-text { margin-bottom: 20px; }
    .error-code { font-size: 5rem; }
    .footer-links-bottom { justify-content: flex-start; }
}
@media (max-width: 575px) {
    .blog-header .navbar { flex-wrap: wrap; }
    .blog-search-form { width: 100%; margin-top: 12px; min-width: auto; }
    .topbar-left { display: none; }
    .hero-image { height: 220px; }
}