/* Modern Blog Styles - Complete Enhanced Version
   Add this to your public.css file or create a new CSS file and include it in app.blade.php */

/* Base Styles & Variables */
:root {
    /* Primary orange color scheme */
    --primary-color: #fe8b0c;
    --primary-dark: #e57a0a;
    --primary-light: #ff9f1c;
    --secondary-color: #2ec4b6;
    --accent-color: #fe8b0c;

    /* Neutral colors - following approach */
    --dark-color: #26282c;
    --text-color: #26282c;
    --text-muted: #707378;
    --text-light: #939395;

    /* Gray scale */
    --gray-fff: #fff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --gray-50: #f9fafb;

    /* Background colors */
    --light-color: #f8f9fa;
    --light-bg: #fbfcfd;
    --card-bg: #fff;

    /* Shadows */
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    --border-radius: 0.5rem;

    /* Typography - exact font stack */
    --font-main: geo-wf, Helvetica, Arial, sans-serif;
    --font-heading: var(--font-main);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
}

/* Base Typography - Following approach */
body {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6666666667;
    color: var(--text-color);
    background-color: #ffffff;
    letter-spacing: 0;
}


/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    letter-spacing: -0.015em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4,
h5,
h6 {
    font-weight: 600;
}

/* Blog Content Heading Styling - Navy Blue */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    color: #2a3057 !important;
    /* Navy blue color */
}

/* Paragraph and text styling */
p {
    margin-bottom: 1.6666666667rem;
    font-size: 18px;
    line-height: 1.6666666667;
    color: var(--text-color);
}

@media (min-width: 768px) {
    p {
        font-size: 20px;
    }
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Links - Orange color scheme */
a {
    color: var(--primary-color);
    text-decoration: none !important;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline !important;
}

/* Strong and emphasis */
strong,
b {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* Lists - Square orange bullets */
ul,
ol {
    margin-bottom: 1.6666666667rem;
    margin-left: 1.3888888889rem;
}

ul.orangesquare li {
    list-style: none;
    padding: 0 0 0 20px;
    position: relative;
    margin-bottom: 0.8333333333rem;
}

ul.orangesquare li:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0.8333333333em;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    margin-top: -4px;
}

ol li {
    list-style: decimal;
    margin-bottom: 0.8333333333rem;
    padding-left: 0.5rem;
}

li ol,
li ul {
    margin-top: 0.8333333333rem;
}

/* Container & Layout - Following widths */
.container {
    max-width: 1200px;
}

/* Main content area - uses 700px max-width */
.main-article {
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .main-article {
        margin: 0;
        padding: 0 1rem;
    }
}

/* Blog content styling */
.blog-content {
    font-size: 18px;
    line-height: 1.6666666667;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (min-width: 768px) {
    .blog-content {
        font-size: 20px;
    }
}

/* Content spacing */
.blog-content>*+* {
    margin-top: 1.6666666667rem;
}

.blog-content h2+*,
.blog-content h3+*,
.blog-content h4+* {
    margin-top: 1rem;
}

/* Blockquotes */
.blog-content blockquote {
    position: relative;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background-color: var(--gray-100);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.25rem;
    font-style: italic;
}

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

/* Images */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    display: block;
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

/* Sidebar Styling */
.sticky-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}



/* Enhanced responsive design */
@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: relative !important;
        top: auto !important;
    }
}

/* Card Styling */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    overflow: hidden;
}


.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: var(--dark-color);
    transition: var(--transition-fast);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* Blog Post Cards */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-text {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
    flex-grow: 1;
}

.blog-card .meta-info {
    margin-top: auto;
}

.blog-card .author-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.blog-card .author-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 0.75rem;
    object-fit: cover;
}

.blog-card .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* Featured Posts */
.featured-post .card {
    border-left: 4px solid var(--accent-color);
}

.featured-post .featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    z-index: 2;
}

/* Hero Section */
.blog-hero {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    background-image: linear-gradient(135deg, rgba(254, 139, 12, 0.1) 0%, rgba(46, 196, 182, 0.1) 100%);
}

.blog-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-hero p {
    font-size: 1.1rem;
    color: var(--gray-700);
    max-width: 80%;
}

/* Tag & Category Styles */
.tag-badge,
.category-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.tag-badge {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.tag-badge:hover {
    background-color: var(--gray-300);
    color: var(--gray-800);
}

.category-badge {
    background-color: var(--primary-light);
    color: white;
}

.category-badge:hover {
    background-color: var(--primary-color);
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    justify-content: center;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--primary-color);
    border: 1px solid var(--gray-300);
    margin: 0 0.25rem;
    border-radius: 0.25rem;
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: var(--gray-200);
    border-color: var(--gray-300);
}

/* Sidebar Styles */
.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget .card-header {
    background-color: transparent;
    border-bottom: 2px solid var(--primary-light);
    padding: 1.25rem 1.5rem;
}

.sidebar-widget .card-header h5 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.sidebar-widget .list-group-item {
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.sidebar-widget .badge {
    background-color: var(--primary-light);
    color: white;
    font-weight: 500;
}

/* Popular Posts Widget */
.popular-post {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

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

.popular-post-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.popular-post-content h6 {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.popular-post-meta {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Newsletter Widget */
.newsletter-widget .form-control {
    border-radius: 0.25rem 0 0 0.25rem;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    height: auto;
}

.newsletter-widget .btn {
    border-radius: 0 0.25rem 0.25rem 0;
    padding: 0.75rem 1rem;
}

/* Single Post Styles */
.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.blog-post-meta img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.blog-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.blog-content blockquote {
    position: relative;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background-color: var(--gray-100);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.25rem;
}

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

.table-of-contents ul {
    padding-left: 1rem;
    margin-bottom: 0;
    list-style-type: square;
}

.table-of-contents ul li {
    margin-bottom: 0.5rem;
}

.table-of-contents ul li:last-child {
    margin-bottom: 0;
}

.table-of-contents ul li a {
    color: var(--text-color);
    text-decoration: none;
}

/* Key Takeaways Styling - Updated for no indent */
.key-takeaways {
    padding: 1.5rem 0;
    /* Remove horizontal padding for no indent */
    margin-bottom: 2rem;
}

.key-takeaways h5 {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.key-takeaways h5 i {
    margin-right: 0.5rem;
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
    /* No indent */
    margin: 0;
}

.key-takeaways li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.key-takeaways li:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0.8333333333em;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    margin-top: -4px;
}

/* Reading Time Styling */
.reading-time-text {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.reading-time-section i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.reading-time-section .text-muted {
    font-size: 0.9rem;
}

/* Responsive adjustments for reading time */
@media (max-width: 576px) {
    .reading-time-section {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .reading-time-section .ms-3 {
        margin-left: 0 !important;
        margin-top: 0.25rem;
    }
}

/* Blog Navigation */
.blog-navigation {
    margin: 2rem 0;
}

/* Related Posts */
.related-posts {
    margin-top: 2rem;
}

.related-posts .card {
    height: 100%;
}

.related-posts .card-img-top {
    height: 140px;
}

/* FAQs Section */
.blog-faqs .accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
}

.blog-faqs .accordion-header {
    margin-bottom: 0;
}

.blog-faqs .accordion-button {
    padding: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    background-color: white;
}

.blog-faqs .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: white;
    box-shadow: none;
}

.blog-faqs .accordion-body {
    padding: 1.25rem;
    background-color: var(--gray-100);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

footer ul {
    padding-left: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

footer a:hover {
    color: white;
    text-decoration: none;
}

/* Floating Elements */
.floating-cta {
    position: fixed;
    max-width: 320px;
    z-index: 1000;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: float-in 0.5s ease-out;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-share .btn {
    display: block;
    margin-bottom: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    line-height: 40px;
    text-align: center;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #25a599;
    border-color: #25a599;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.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);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .blog-hero {
        padding: 2rem 1.5rem;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        max-width: 100%;
    }

    .blog-post-title {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .floating-share {
        display: none;
    }
}

/* Tools Panel */
.tools-panel {
    transition: var(--transition-normal);
}

.tools-panel .list-group-item {
    display: flex;
    align-items: center;
}

.tools-panel .list-group-item i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

/* Search Form */
.search-form {
    position: relative;
}

.search-form .form-control {
    padding-right: 3rem;
    border-radius: 50px;
    height: 48px;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    transition: var(--transition-fast);
}

.search-form .form-control:focus {
    background-color: white;
    box-shadow: 0 0 0 0.2rem rgba(254, 139, 12, 0.15);
    border-color: var(--primary-color);
}

.search-form .btn {
    position: absolute;
    right: 4px;
    top: 4px;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    padding: 0;
    line-height: 40px;
    text-align: center;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-item {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: var(--gray-200);
    color: var(--gray-700);
    border-radius: 50px;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.tag-cloud-item:hover {
    background-color: var(--primary-light);
    color: white;
}

/* Custom utility classes */
.rounded-lg {
    border-radius: var(--border-radius) !important;
}

.shadow-sm {
    box-shadow: var(--card-shadow) !important;
}

.shadow-hover {
    transition: var(--transition-normal);
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Floating CTA Styles */
.floating-cta {
    max-width: 300px;
    border-radius: 0.25rem;
}

.floating-cta.top {
    top: 20px;
    right: 20px;
}

.floating-cta.bottom {
    bottom: 20px;
    right: 20px;
}

.floating-cta.left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.floating-cta.right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.authinfo {
    font-size: 0.8rem;
}

.abauthor {
    font-size: 0.8rem;
}

.autorbio {
    color: #2e2f33;
    font-weight: 400;
    font-size: 13px;
    line-height: 2em;
}

/* Author Blurb */
.author-blurb {
    color: black;
}

.authorname {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Author Bio Enhanced */
.author-bio img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Author Social Links */
.author-social a {
    color: var(--gray-600);
    transition: color 0.2s ease;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* Sidebar TOC */
.sidebar-toc-list {
    max-height: 350px;
    overflow-y: auto;
}

.sidebar-toc-link {
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    max-width: 100%;
}

.sidebar-toc-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sidebar-toc-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Menu Tabs */
.tabs .nav-tabs-underline {
    border-bottom: 2px solid var(--gray-200);
}

.tabs .nav-tabs-underline .nav-linka {
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
}

.tabs .nav-tabs-underline .nav-linka::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tabs .nav-tabs-underline .nav-linka.active {
    color: var(--primary-color);
}

.tabs .nav-tabs-underline .nav-linka.active::after {
    transform: scaleX(1);
}

.tabs .tab-content {
    padding-top: 1rem;
}

.tabs .tab-pane ul li a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    padding: 0.5rem 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tabs .tab-pane ul li a i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* About Widget */
#aboutWidget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#aboutWidget h6 {
    color: var(--dark-color);
}

#aboutWidget p {
    color: var(--text-color);
}

#aboutWidget .stat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    margin-right: 0.75rem;
}

#aboutWidget .stat-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

#aboutWidget .stat-list {
    font-size: 0.85rem;
    color: var(--gray-600);
}

#aboutWidget .logo-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar-toc-list {
        max-height: 250px;
    }

    .tabs .nav-tabs-underline .nav-linka {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    #aboutWidget .stat-icon {
        width: 28px;
        height: 28px;
    }
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 9999;
    background-color: transparent;
}

.reading-progress-bar {
    height: 5px;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* Smooth Anchor Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Ensure heading links are visible when navigating to them */
.blog-content h2[id]::before,
.blog-content h3[id]::before,
.blog-content h4[id]::before {
    display: block;
    content: " ";
    margin-top: -80px;
    height: 80px;
    visibility: hidden;
    pointer-events: none;
}

/* Widget Base Styles */
.widgettoc,
.widgetmt {
    background: #f9fafb;
    border: 1px solid #ebeef0;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 2rem;
}

#menuTabs {
    overflow: auto;
}

#menuTabs ul {
    display: flex;
    flex-wrap: nowrap !important;
}

/* Widget Headers */
.widgettoc .card-header,
.widgetmt .card-header {
    padding: 1.5rem;
    margin-bottom: 0;
    background: transparent;
    border-bottom: 1px solid #ebeef0;
}

.widgettoc .card-header h5,
.widgetmt .card-header h5 {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* Widget Body */
.widgettoc .card-body,
.widgetmt .card-body {
    padding: 1.5rem;
}

/* Tools Panel Specific Styles */
.widgettoc .tools-list {
    list-style: none;
    margin: 0;
}

.widgettoc .tools-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    margin-top: -4px;
}

.widgettoc .tools-list li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.widgettoc .tools-list li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.widgettoc .tools-list li:last-child {
    margin-bottom: 0;
}

/* Menu Tabs Specific Styles */
.widgetmt .tabs .nav-tabs {
    border-bottom: 1px solid #ebeef0;
    margin: 0;
    background: transparent;
}

.widgetmt .tabs .nav-tabs .nav-item {
    margin-bottom: 0;
}

.widgetmt .tabs .nav-tabs .nav-linka {
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--gray-700);
    background: transparent;
    border-radius: 0;
    position: relative;
}

.widgetmt .tabs .nav-tabs .nav-linka:first-child {
    border-top-left-radius: 8px;
}

.widgetmt .tabs .nav-tabs .nav-linka.active {
    color: var(--dark-color);
    background: transparent;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.widgetmt .tabs .nav-tabs .nav-linka:hover {
    color: var(--primary-color);
}

.widgetmt .tab-content {
    padding: 1.5rem;
}

.widgetmt .tab-pane ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widgetmt .tab-pane ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    margin-top: -4px;
}

.widgetmt .tab-pane ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.widgetmt .tab-pane ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.widgetmt .tab-pane ul li:last-child {
    margin-bottom: 0;
}

/* Base 40×40px square button */
.fs-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
}

/* Facebook blue */
.fs-facebook {
    background-color: #4267B2;
}

/* X (formerly Twitter) dark slate */
.fs-x {
    background-color: #000;
}

/* LinkedIn blue */
.fs-linkedin {
    background-color: #0077B5;
}

/* Scroll-to-top (gray) */
.fs-top {
    background-color: #6c757d;
}

.widgetmt .card-body {
    display: flex;
    justify-content: center;
}

/* Link Styling */
.widgetmt a,
.widgettoc a {
    color: #000 !important;
    text-decoration: none !important;
}

.widgetmt a:hover,
.widgettoc a:hover {
    text-decoration: underline !important;
}

.widgetab {
    border: 1px solid #ebeef0;
}

.statscontainer {
    background: #f9fafb;
    border: 1px solid #ebeef0;
    padding: 20px;
}

a.share-btn:hover,
.floating-share-buttons a:hover {
    text-decoration: none !important;
    color: #fff;
}

.btn.btn-sm.btn-outline-info {
    color: #000 !important;
    border-color: #000 !important;
}

.btn.btn-sm.btn-outline-info:hover {
    color: white !important;
    border-color: white !important;
    background-color: #000 !important;
}

/* Navigation link hover fix */
nav a:hover {
    text-decoration: none !important;
}