:root {
    /* Primary Colors */
    --primary-yellow: #ecc94b;
    --primary-blue: #0053f0;
    --primary-light-blue: #4299e1;
    --primary-orange: #fab22a;

    /* Text Colors */
    --text-black: #000;
    --text-white: #fff;
    --text-dark: #1e293b;
    --text-gray: #6b7280;
    --text-light-gray: #e0e0e0;
    --text-lighter-gray: #edf2f7;

    /* Background Colors */
    --bg-light: #f1f1f1;
    --bg-dark: #2d3748;
    --bg-darker: #1b1b1b;
    --bg-light-gray: #e2e8f0;
    --bg-lighter-gray: #f8f9fa;

    /* Button Colors */
    --btn-gray: #718096;
    --btn-hover-gray: #718096;
    --btn-category-blue: #4299e1;

    /* Shadow Colors */
    --shadow-gray: #cbced1;
    --shadow-light: rgba(0, 0, 0, 0.06);

    /* Border Colors */
    --border-light: #eaeaea;
    --border-gray: #e2e8f0;

    /* Accent Colors */
    --accent-purple: #667eea;
    --accent-yellow: #feb000;

    /* Social Media Colors */
    --social-facebook: #3b5998;
    --social-twitter: #000;
    --social-linkedin: #0077b5;
    --social-whatsapp: #25d366;
    --social-email: #ea4335;
    --social-telegram: #0088cc;
    --social-tumblr: #35465c;
    --social-reddit: #ff4500;
    --social-mix: #ff8226;
}

/* Breadcrumb */
.breadcrumb{
    margin-left: 20px;
}

#content-box nav.breadcrumb {
    background: transparent !important;
}

#content-box .breadcrumb-item+.breadcrumb-item::before {
    color: #aaa !important;
}

#content-box .breadcrumb a {
    color: #4f9fff !important;
}

#content-box .breadcrumb a:hover {
    text-decoration: underline;
}

/* Post Ui/UX */
.post-background-img {
    background-image: url(https://fluxytools.com//components/storage/app/public/photos/1/fluxytools.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 100px;
    padding-top: 200px;
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: darken;
}

.post-single-body {
    padding: 0px 50px;
}

.post-single {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-single {
    margin-top: -180px;
    border-radius: 10px 10px 10px 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
    margin-bottom: 150px;
    margin-left: 80px;
    margin-right: 80px;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: #fff;
}

body.dark .post-single {
    background-color: var(--bg-darker);
}

.post-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.post-row .main-content {
    flex: 1 1 70%;
    min-width: 300px;
}

.post-row .side-content {
    flex: 1 1 28%;
    min-width: 250px;
}

.featured-image{
    border-radius: 10px;
}

.post-single-image {
    width: 90%;
    margin-left: 2.3rem;
}

.post-single-image img {
    border-radius: 10px;
}
.post-single-title {
    margin-top: 20px;
}

.post-single-title .entry-meta {
    margin-top: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.post-single-title .entry-meta li {
    margin-bottom: 0;
    font-size: 14px;
    color: #191b1d99;
    text-transform: capitalize;
    font-weight: 500;
    list-style: none;
}

.entry-meta .post-author-img img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.post-single-title .entry-cat .category-style-1 {
    font-size: 14px;
}

.post-single-title .entry-meta li .line {
    width: 18px;
    height: 1px;
    background-color: #191b1d99;
    margin: 4px 10px 4px 10px !important;
    display: inline-block;
}
.post-author-img .post-author .entry-cat li,
.post-author-img .post-author .post-date li {
    list-style: none;
}
.post-author-img .post-author .entry-cat li::marker,
.post-author-img .post-author .post-date li::marker {
    content: '';
}

.side-content .ads,
.side-content .toc {
    margin-bottom: 20px;
    background-color: var(--bg-lighter-gray);
    padding: 15px;
    border-radius: 6px;
}

.post-single-image img {
    border-radius: 10px;
}

.authors-info .image img {
    width: 120px;
    border-radius: 50%;
    max-width: 100px;
}

.post-single-bottom .social-media {
    margin-left: 0;
}

.social-media {
    display: block;
    margin: 20px 0;
}

.social-media a .social-icon {
    font-size: 25px;
    line-height: 50px;
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: block;
    text-align: center;
    margin-right: 2px;
    border: 0px;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.social-media a i {
    font-size: 20px;
    line-height: 20px;
    color: var(--text-white);
    height: 20px;
    border-radius: 50%;
    display: block;
    text-align: center;
    margin-right: 2px;
    border: 0px;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.post-single-comments .comments-form {
    border-radius: 10px;
}

.form #name {
    background: var(--bg-lighter-gray);
    padding: 10px;
    padding-left: 20px;
    height: 50px;
    font-size: 14px;
    border-radius: 50px;
    box-shadow: inset 6px 6px 6px var(--bg-lighter-gray), inset -6px -6px 6px var(--text-white);
}

.form #email {
    background: var(--bg-lighter-gray);
    padding: 10px;
    padding-left: 20px;
    height: 50px;
    font-size: 14px;
    border-radius: 50px;
    box-shadow: inset 6px 6px 6px var(--bg-lighter-gray), inset -6px -6px 6px var(--text-white);
}

.form #message {
    background: var(--bg-lighter-gray);
    padding: 10px;
    padding-left: 20px;
    font-size: 14px;
    border-radius: 5px;
    box-shadow: inset 6px 6px 6px var(--bg-lighter-gray), inset -6px -6px 6px var(--text-white);
}

.btn-custom {
    color: var(--text-white);
    margin-top: 20px;
    background: var(--primary-orange);
    height: 40px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 6px 6px 6px var(--shadow-gray), -6px -6px 6px var(--text-white);
    transition: 0.5s;
}

.btn-custom:hover {
    box-shadow: none;
}

.share-title {
    font-size: 1rem;
    font-weight: 600;
}

.share-title-wrapper {
    display: block;
    margin-bottom: -15px;
}

.share-buttons-wrapper {
    display: block;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.share-buttons li {
    display: inline-block;
}

.share-buttons a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    gap: 6px;
}

/* Platform specific colors */
.facebook {
    background: var(--social-facebook);
}

.twitter {
    background: var(--social-twitter);
}

.linkedin {
    background: var(--social-linkedin);
}

.whatsapp {
    background: var(--social-whatsapp);
}

.email {
    background: var(--social-email);
}

.telegram {
    background: var(--social-telegram);
}

.tumblr {
    background: var(--social-tumblr);
}

.reddit {
    background: var(--social-reddit);
}

.mix {
    background: var(--social-mix);
}

.share-buttons a:hover {
    opacity: 0.85;
}

.share-buttons a .share-border {}

.post-single-title h1 {
    font-size: 1.5rem;
}

.authors-info .content a h4 {
    color: var(--primary-orange);
}

@media screen and (max-width: 768px) {
    .post-single {
        margin-left: 15px;
        margin-right: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .post-single-title h1 {
        font-size: 1.2rem;
    }

    .post-single-content {
        margin-top: 30px;
    }

    .contact-form {
        margin-top: 50px;
    }
}

.card.shadow.rounded-4.border-0 {
    height: auto;
}

@media screen and (max-width: 480px) {
    .post-single {
        margin-left: 15px;
        margin-right: 15px;
    }

    .post-single-content {
        margin-top: 30px;
    }

    .post-row {
        flex-direction: column;
    }

    .post-row .main-content,
    .post-row .side-content {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .side-content {
        display: none;
    }

    .contact-form {
        margin-top: 50px;
    }
}

/* 2coloum */
.toc-section {
    border: 1px solid var(--border-light);
    border-radius: 10px;
}

.toc-section h5 {
    padding: 20px;
}

.toc-box {
    border-top: 1px solid var(--border-light);
    padding: 20px;
}

.toc-box ul li a {
    color: var(--text-black);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-right: 20px;
}

.toc-header h5 {
    margin: 0;
    font-size: 1rem;
}

#toc-toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--text-black);
}

.toc-list li {
    list-style: disc !important;
    margin-left: 20px;
}

.ads-section h5 {
    text-align: center;
    color: var(--shadow-gray);
    font-weight: 400;
}

body.dark .toc-box ul li a {
    color: var(--text-white);
}

body.dark #toc-toggle-icon {
    color: var(--text-white);
}

body.dark .btn-custom {
    color: var(--text-white);
    margin-top: 20px;
    background: var(--primary-orange);
    height: 40px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 6px 6px 6px #2b2c2d, -6px -6px 6px #313131;
    transition: 0.5s;
}

.post-single-content {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    ul,
    li,
    ol,
    td,
    th,
    table,
    tr {
        color: var(--text-black);

        body.dark & {
            color: var(--text-white);
        }
    }
}

.related-posts-section {
    max-width: 1200px;
    margin: auto;
}

.related-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.related-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 184px;
    height: 192px;
}

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

.related-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.related-img {
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
}

.related-card h4 {
    font-size: .96rem;
    padding: 0.5rem 1rem 1rem 1rem;
    line-height: 1.3;
}

.ad-card .ad-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px;
}

/* General Styling for the Post Navigation */
.post-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    margin-top: 20px;
}

/* Styling the navigation buttons */
.post-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    /* Reduced padding */
    background-color: #6200ea;
    color: #ffffff;
    font-size: clamp(11px, 1.2vw, 15px);
    /* More compact scaling */
    font-weight: 500;
    border-radius: 40px;
    border: 2px solid #6200ea;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    /* More compact max width */
    line-height: 1.3;
    text-align: center;
}

/* Add icon size consistency */
.post-nav-btn i {
    font-size: 18px;
}

/* Hover effect */
.post-nav-btn:hover {
    background-color: #3700b3;
    /* Darker shade of primary color */
    border-color: #3700b3;
    /* Darker shade of primary color */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    /* Subtle shadow effect */
    transform: translateY(-2px);
    /* Lift effect on hover */
    color: var(--text-white);
}

/* Ensure the icons have proper spacing */
.post-nav-btn span {
    margin-left: 8px;
    margin-right: 8px;
}

/* Styling for screen sizes smaller than 768px */
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .post-nav-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .related-card{
        width: auto;
        height: auto;
    }
    .post-single-body{
        padding:0;
    }
    .breadcrumb {
        margin-left: 0;
        font-size: .6rem;
    }
    .post-single-image {
        width: auto;
        margin-left: 0;
    }
}

@media (max-width: 400px) {
    .breadcrumb {
        font-size: 0.47rem;
    }
    .post-single-image {
        width: auto;
        margin-left: 0;
    }
}

/* ==================== DARK MODE FIX ==================== */
body.theme-dark {
    color: var(--text-white);
}

/* Content area */
body.theme-dark #content-box {
    background-color: var(--bg-dark);
}

/* Post single card */
body.theme-dark .post-single {
    background-color: var(--bg-darker);
    color: var(--text-white);
}

/* Post title, author, date */
body.theme-dark .post-single-title h1,
body.theme-dark .post-single-title h2,
body.theme-dark .post-single-title h3,
body.theme-dark .post-single-title h4,
body.theme-dark .post-single-title h5,
body.theme-dark .post-single-title h6,
body.theme-dark .post-single-title p,
body.theme-dark .post-author,
body.theme-dark .post-date {
    color: var(--text-white);
}

/* Breadcrumbs */
body.theme-dark .breadcrumb a {
    color: var(--primary-light-blue) !important;
}

body.theme-dark .breadcrumb a:hover {
    text-decoration: underline;
}

body.theme-dark .breadcrumb-item+.breadcrumb-item::before {
    color: var(--text-gray) !important;
}

/* Table of Contents */
body.theme-dark .toc-section {
    background-color: var(--bg-dark);
    border-color: var(--border-gray);
}

body.theme-dark .toc-box ul li a,
body.theme-dark .toc-header,
body.theme-dark #toc-toggle-icon {
    color: var(--text-white);
}

/* Related posts */
body.theme-dark .related-card {
    background-color: var(--bg-dark);
    box-shadow: 0 3px 12px rgba(255, 255, 255, 0.1);
}

body.theme-dark .related-card h4 {
    color: var(--text-white);
}

/* Lines and dividers */
body.theme-dark #line {
    background-color: var(--border-gray);
}

/* Buttons */
body.theme-dark .btn-custom {
    color: var(--text-white);
    background: var(--primary-orange);
    box-shadow: 6px 6px 6px #2b2c2d, -6px -6px 6px #313131;
}

/* Post content */
body.theme-dark #post-content h1,
body.theme-dark #post-content h2,
body.theme-dark #post-content h3,
body.theme-dark #post-content h4,
body.theme-dark #post-content h5,
body.theme-dark #post-content h6,
body.theme-dark #post-content p,
body.theme-dark #post-content ul,
body.theme-dark #post-content li,
body.theme-dark #post-content ol {
    color: var(--text-white);
}

/* Navigation buttons */
body.theme-dark .post-nav-btn {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--text-white);
}

body.theme-dark .post-nav-btn:hover {
    background-color: var(--primary-light-blue);
    border-color: var(--primary-light-blue);
}

/* Sidebar ads and widgets */
body.theme-dark .side-content .ads,
body.theme-dark .side-content .toc {
    background-color: var(--bg-dark);
}

/* Inputs and forms */
body.theme-dark .form #name,
body.theme-dark .form #email,
body.theme-dark .form #message {
    background: var(--bg-dark);
    color: var(--text-white);
    box-shadow: inset 3px 3px 6px #1a1a1a, inset -3px -3px 6px #333;
}

/* Author info */
body.theme-dark .authors-info .content a h4 {
    color: var(--accent-yellow);
}

/* Social icons */
body.theme-dark .social-media a i {
    color: var(--text-white);
}
