/* Page Content Styles */
.page-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
}

.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.page-content h4 {
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
}

.page-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}

.page-content pre {
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.page-content code {
    background-color: rgba(13, 110, 253, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #d63384;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.page-content th,
.page-content td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-content th {
    background-color: rgba(0, 0, 0, 0.02);
    font-weight: 600;
}

/* Social Share Buttons */
.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 32px;
    /* border-radius: 50%; */
    background-color: var(--light-color);
    color: var(--text-color);
    /* transition: var(--transition); */
    margin: 0 0.25rem;
}

.social-share a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    padding: 0 0.5rem;
}

/* Base Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --body-bg: #ffffff;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
    --body-bg: #212529;
    --text-color: #f8f9fa;
    --text-muted: #adb5bd;
    --border-color: #495057;
    --card-bg: #2c3034;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--body-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Layout */
.container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Header */
.site-header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    max-height: 50px;
}

/* Ensure logo height is consistent */
.navbar-brand img {
    height: 40px !important;
    width: auto;
    object-fit: contain;
}

/* Top Bar */
.top-bar {
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: #fff;
    text-decoration: none;
}

/* Navigation */
.navbar {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
}

.dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

/* Search Form */
.search-form {
    position: relative;
    max-width: 250px;
}

.search-form .form-control {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: var(--primary-color);
}

.search-form .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    color: var(--text-muted);
    border: none;
}

.search-form .btn:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
}

/* Breaking News Ticker */
.breaking-news {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    z-index: 1000;
}

.breaking-news-label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    white-space: nowrap;
}

.breaking-news-content {
    overflow: hidden;
}

.breaking-news-content a {
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    margin-right: 20px;
    display: inline-block;
}

.breaking-news-content a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.marquee {
    white-space: nowrap;
    display: inline-block;
    animation: marquee 60s linear infinite;
    padding-left: 100%;
    animation-play-state: running;
    will-change: transform;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.breaking-news-content {
    overflow: hidden;
    height: 30px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark);
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 4px;
    padding: 0 1rem;
}

/* User Menu */
.user-menu .dropdown-toggle::after {
    display: none;
}

.user-menu .nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    color: var(--dark);
    transition: all 0.3s ease;
}

.user-menu .nav-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Dark Mode Adjustments */
[data-bs-theme="dark"] {
    .breaking-news {
        background: linear-gradient(90deg, #2c3034 0%, #212529 100%);
        border-bottom-color: #343a40;
    }
    
    .breaking-news-content a {
        color: #f8f9fa;
    }
    
    .breaking-news-label {
        background-color: #dc3545 !important;
    }
    
    .user-menu .nav-link {
        background: #2c3034;
        color: #fff;
    }
}

/* Search Form */
.search-form {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-form .form-control {
    padding-right: 45px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
}

.search-form .btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 6px !important;
    transition: var(--transition) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Featured Section */
.featured-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.featured-post {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.featured-post img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.featured-content {
    padding: 2rem;
    color: white;
    width: 100%;
}

.featured-content .badge {
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
}

/* Latest News */
.latest-news {
    padding: 4rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Sidebar */
.sidebar-widget {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
}

.categories-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.categories-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.categories-list .badge {
    background-color: var(--light-color);
    color: var(--text-muted);
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-color);
    color: var(--text-muted);
    border-radius: 50px;
    font-size: 0.8rem;
    transition: var(--transition);
    text-decoration: none;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Newsletter */
.newsletter-form {
    position: relative;
}

.newsletter-form .form-control {
    padding-right: 120px;
    height: 50px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
}

.newsletter-form .btn {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
}

/* Footer text */
.site-footer p {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Footer links */
.site-footer a:not(.btn) {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer a:not(.btn):hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Social links */
.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.site-footer .social-links a:hover {
    background: var(--primary-color);
    color: #fff !important;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Footer Headings */
footer h5,
.footer-widget h5 {
    color: #fff !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    padding-bottom: 0.75rem;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer h5::after,
.footer-widget h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border: none;
}

.footer-widget h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: #fff !important;
    transform: translateX(5px);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    text-decoration: none;
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* Single Post */
.single-post {
    padding: 3rem 0;
}

.post-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.post-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    background-color: var(--light-color);
    font-style: italic;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-color);
    color: var(--text-muted);
    border-radius: 50px;
    font-size: 0.8rem;
    transition: var(--transition);
    text-decoration: none;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-navigation a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    max-width: 45%;
}

.post-navigation a:hover {
    color: var(--primary-color);
}

.post-navigation a.prev {
    text-align: left;
}

.post-navigation a.next {
    text-align: right;
    margin-left: auto;
}

.post-navigation i {
    font-size: 1.5rem;
}

/* Author Box */
.author-box {
    display: flex;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: var(--card-shadow);
}

.author-avatar {
    flex: 0 0 100px;
    margin-right: 1.5rem;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.5rem;
}

.author-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.author-bio {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    color: var(--text-muted);
    transition: var(--transition);
}

.author-social a:hover {
    color: var(--primary-color);
}

/* Comments */
.comments-area {
    margin: 3rem 0;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.comments-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--primary-color);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-body {
    display: flex;
}

.comment-author-avatar {
    flex: 0 0 60px;
    margin-right: 1.5rem;
}

.comment-author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    margin-right: 1rem;
    color: var(--text-color);
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.comment-reply-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.comment-reply-link i {
    margin-right: 0.25rem;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.children {
    list-style: none;
    padding: 0 0 0 3rem;
    margin: 2rem 0 0;
    border-left: 2px solid var(--border-color);
}

/* Comment Form */
.comment-respond {
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.comment-reply-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-cookies-consent {
    margin-bottom: 1.5rem;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form-cookies-consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-right: 0.5rem;
}

.comment-form-cookies-consent label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.comment-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.comment-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.comment-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    grid-column: 1 / -1;
    text-align: right;
}

.comment-form .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.page-numbers li {
    margin: 0;
}

.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.page-numbers a:hover,
.page-numbers .current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers .dots {
    background-color: transparent;
    border: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .post-navigation {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .post-navigation a {
        max-width: 100%;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto 1.5rem;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .comment-form {
        grid-template-columns: 1fr;
    }
    
    .children {
        padding-left: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .post-title {
        font-size: 2rem;
    }
    
    .comment-body {
        flex-direction: column;
    }
    
    .comment-author-avatar {
        margin-bottom: 1rem;
    }
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--light-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
    color: white;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

/* Admin Bar */
.admin-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.admin-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-bar a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: var(--transition);
}

.admin-bar a:hover {
    text-decoration: underline;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* Print Styles */
@media print {
    .no-print,
    .site-header,
    .site-footer,
    .post-navigation,
    .comments-area,
    .sidebar {
        display: none !important;
    }
    
    body {
        padding: 1rem;
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img, table, figure {
        page-break-inside: avoid;
    }
    
    article {
        page-break-before: always;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
    
    .post-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}
