:root {
    --primary-color: #00246b;
    --secondary-color: #3498db;
    --light-color: #eaf6ff;
    --accent-color: #e74c3c;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;

    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-decoration: none;
}

input, button, select, textarea {
    box-shadow: none !important;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.badge {
    background-color: var(--primary-color);
    line-height: 1.3;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-cloud a {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}
.object-fit-cover {
    object-fit: cover;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.signup-nav-item {
    background-color: var(--white);
    color: var(--primary-color) !important;
    padding: 0.05rem 1rem;
    border-radius: 4px;
}

.signup-nav-item .nav-link {
    color: var(--primary-color) !important;
}

.pagination .page-item .page-link {
    border-radius: 4px;
    margin: 0 0.1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.pagination .page-item .page-link:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.pagination li a:hover {
    color: var(--secondary-color);
}

.pagination li.active a {
    color: var(--white);
    background-color: var(--primary-color);
}

/* Hero Section */
.hero-section,
.forum-header {
    padding: 7rem 0 !important;
    margin-bottom: 3rem;
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: "Poppins", sans-serif;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.navbar-toggler {
    border: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 25 25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' linecap='round' linejoin='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media screen and (max-width: 576px) {
    .input-group.w-50 {
        width: 100% !important;
    }

    .signup-nav-item {
        display: flex;
        justify-content: start;
        align-items: start;
        align-self: flex-start;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }
}


/* Category Badges */
.category-badge {
    display: flex;
    align-self: flex-start;
    padding: 0.4rem 0.8rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.category-badge:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.sidebar-badge {
    margin-left: 0.5rem;
}

/* Blog Cards */
.blog-card {
    background: var(--white);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h3, .sidebar-widget h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.blog-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: var(--secondary-color);
}

.blog-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.blog-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover i {
    transform: translateX(5px);
    transition: transform 0.3s ease-in-out;
}

/* Sidebar */
.sidebar-widget {
    background: var(--white);
    border-radius: 2px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
}

.sidebar-widget ul li a:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

footer a:hover {
    color: var(--white);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}


/* =======================================
============ Forum Styles ================
======================================== */

/* Forum Header */
.forum-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.forum-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Search and Filter */
.search-filter-section {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


/* Category Tabs */
.category-tabs {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.category-tabs .nav-link {
    color: var(--text-color) !important;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
}

.category-tabs .nav-link.active {
    background-color: var(--secondary-color);
    color: var(--white) !important;
}

/* Discussion Card */
.discussion-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s, transform 0.3s;
}

.discussion-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.discussion-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap-reverse;
}

.discussion-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.discussion-title h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.discussion-title h3 a:hover {
    color: var(--secondary-color);
}

.discussion-category {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: 1rem;
    white-space: nowrap;
}

.discussion-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.discussion-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6c757d;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.discussion-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
}

.status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-solved {
    background-color: #d4edda;
    color: #155724;
}

.status-unanswered {
    background-color: #fff3cd;
    color: #856404;
}

.status-closed {
    background-color: #ffc4bd;
    color: #e74c3c;
}

/* Floating Action Button */
.fab-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    z-index: 1000;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


/* ==============================
======= POST PAGE STYLES =======
================================= */

/* Article Header */
.article-header, .category-header {
    background-color: var(--white);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.article-header h1 , .category-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Article Content */
.article-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2, .article-content h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 1rem solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    font-size: 5rem;
    color: var(--secondary-color);
    position: absolute;
    left: -0.5rem;
    top: -2.5rem;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* .article-content code {
    background-color: #252323;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-size: 0.95em;
    font-family: 'Fira Code', monospace;
    color: #f2f7ff;
} */

.article-content pre {
    background: #ecf4ffee;
    padding: 1rem;
    border-radius: 4px;
    overflow: auto;  
    margin: 1rem 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #272727;
}

.article-content pre > code {
    display: block;
    white-space: pre;   
}

/* .codehilite {
    background: #1b1b1b;
    padding: 1rem;
    border-radius: 6px;
} */

/* Social Share */
.social-share {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.social-share h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s;
    cursor: pointer;
}

.share-btn:hover {
    opacity: 0.8;
    color: var(--white);
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.facebook {
    background-color: #4267b2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.reddit {
    background-color: #ff4500;
}

.share-btn.email {
    background-color: #666;
}

/* Author Box */
.author-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-box-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.author-box-content p {
    margin-bottom: 0.75rem;
    color: #555;
}

.author-social a {
    color: var(--secondary-color);
    margin-right: 1rem;
    text-decoration: none;
}

/* Comments Section */
.comments-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.comments-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.comment {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.comment-body {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.comment-actions button:hover {
    text-decoration: underline;
}

.comment-reply {
    margin-left: 3rem;
    margin-top: 1rem;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Related Posts */
.related-posts {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
}

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.related-post-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.related-post-card:last-child {
    border-bottom: none;
}

.related-post-card img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.related-post-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-post-content h5 a {
    color: var(--primary-color);
    text-decoration: none;
}

.related-post-content h5 a:hover {
    color: var(--secondary-color);
}

.related-post-meta {
    font-size: 0.85rem;
    color: #6c757d;
}