body {
    background: #f8f8f8;
}

.tp-header {
    background: #212529;
    color: #fff;
    min-height: 55px;
    border-bottom: 3px solid #040405;
}

    .tp-header .navbar-brand {
        font-weight: bold;
        font-size: 1.7rem;
        color: #fff !important;
        letter-spacing: 1px;
    }

    .tp-header .search-box {
        width: 400px;
        max-width: 100%;
    }

    .tp-header .profile-links a {
        color: #fff;
        margin-left: 15px;
        font-weight: 500;
    }

.tp-content {
    background: #fff;
    /*padding: 2rem 2.5rem;*/
    min-height: 80vh;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    /*margin-top: 1.5rem;*/
    margin-bottom: 1.5rem;
}

.tp-footer {
    background: #222;
    color: #fff;
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    #sidebar {
        display: none;
        position: fixed;
        z-index: 1050;
        width: 80%;
        left: 0;
        top: 0;
        height: 100%;
        overflow-y: auto;
    }

        #sidebar.show {
            display: block;
        }

    .tp-content {
        padding: 1rem;
        margin-top: 1rem;
    }
}

.sidebar-toggle-btn {
    background: #2b9e43;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
}

.site-brand-text {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .site-brand-text span {
        font-size: 1rem; /* or any smaller size you prefer */
    }

    .site-brand-text img {
        height: 36px !important; /* smaller logo for mobile */
    }

    #headerLinks {
        margin-left: 1rem;
    }
}

@media (min-width: 992px) {
    #sidebar {
        display: block !important;
        position: static;
        /*width: auto;*/
        height: 100vh;
        background: none;
        box-shadow: none;
    }

    .tp-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        /* Optional: Prevent horizontal scroll */
        overflow-x: hidden;
    }
}

@media (min-width: 992px) {
    .tp-content {
        height: 100vh;
        overflow-y: auto;
    }
}

.tutorial-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.about-author {
    background: #fafafa;
    width: 100%;
    padding: 35px 25px;
    box-shadow: 0px 1px 2px 0px rgba(78, 78, 78, 0.45);
}

/* Custom green color for filter buttons */
/* Base filter button */
.btn-outline-custom {
    border: 1px solid #9face6;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

    /* Hover effect */
    .btn-outline-custom:hover {
        background: linear-gradient(135deg, #9face6, #74ebd5);
        color: white;
        border-color: transparent;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    /* Active button */
    .btn-outline-custom.active {
        background: linear-gradient(135deg, #9face6, #74ebd5);
        color: white;
        border-color: transparent;
        font-weight: 500;
    }

    /* Keep rounded-pill consistent */
    .btn-outline-custom.rounded-pill {
        border-radius: 50rem;
    }

.text-custom {
    color: #1abc9c !important;
}
/* Hover effect for cards */
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
}
/* Logo image style */
.logo-img {
    height: 50px;
    width: auto;
    margin-right: 8px;
    border-radius: 50%;
}
/* Social icon colors */
.icon-facebook { color: #1877F2 !important; }
.icon-x-twitter { color: #000 !important; }
.icon-linkedin { color: #0A66C2 !important; }
.icon-whatsapp { color: #25D366 !important; }
.icon-telegram { color: #0088cc !important; }
.icon-instagram { color: #E1306C !important; }
.icon-threads { color: #000 !important; }
.icon-youtube { color: #FF0000 !important; }

/* Sidebar Container */
.sidebar-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0;
    overflow: hidden;
}

/* Sidebar Title with Custom Gradient */
.sidebar-title {
    padding: 12px 16px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, #9face6, #74ebd5);
}

/* Sidebar List */
.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .sidebar-nav li {
        border-bottom: 1px solid #f0f0f0;
    }

    .sidebar-nav a {
        display: block;
        padding: 10px 16px;
        text-decoration: none;
        color: #374151;
        transition: background 0.3s, color 0.3s;
    }

        .sidebar-nav a:hover {
            background-color: rgba(116, 235, 213, 0.2);
            transform: translateX(4px);
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        }


        /* Active Link Style */
        .sidebar-nav a.active {
            background-color: #c7e8f0; /* light blue matching gradient tone */
            color: #064e3b; /* deep teal for text */
            font-weight: bold;
        }


    /* Remove last border */
    .sidebar-nav li:last-child {
        border-bottom: none;
    }

/* Base nav-link styling */
.category-navbar .nav-link {
    position: relative;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

    /* Hover underline animation */
    .category-navbar .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0px;
        width: 0%;
        height: 3px;
        background: linear-gradient(135deg, #9face6, #74ebd5);
        transition: width 0.3s ease;
        border-radius: 2px;
    }

    /* Hover effect */
    .category-navbar .nav-link:hover {
        color: #4a90e2;
    }

        .category-navbar .nav-link:hover::after {
            width: 100%;
        }

    /* Active link styling */
    .category-navbar .nav-link.active {
        color: #4a90e2;
        font-weight: 600;
    }

        .category-navbar .nav-link.active::after {
            width: 100%;
        }
/* Subscribe Card */
.subscribe-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .subscribe-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    }

    /* Subscribe Title */
    .subscribe-card .card-title {
        font-weight: 600;
        background: linear-gradient(135deg, #9face6, #74ebd5);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Email Input */
    .subscribe-card .form-control {
        border-radius: 50rem;
        border: 1px solid #9face6;
        padding-left: 15px;
    }

/* Subscribe Button */
.btn-custom {
    background: linear-gradient(135deg, #9face6, #74ebd5);
    border: none;
    border-radius: 50rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

    .btn-custom:hover {
        background: linear-gradient(135deg, #8ba8e0, #68d2c5);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

.tags-page h2 {
    font-weight: 600;
    color: #333;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #9face6, #74ebd5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .tag-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        text-decoration: none;
    }

    .tag-badge:active {
        transform: scale(0.97);
    }

.search-results-page h2 {
    font-weight: 600;
    color: #333;
}

.search-results-page .search-query {
    background: linear-gradient(135deg, #9face6, #74ebd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.search-result-card {
    border-radius: 8px;
    border: none;
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

    .search-result-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .search-result-card h5 {
        color: #333;
        font-weight: 500;
    }

    .search-result-card p {
        margin-top: 0.25rem;
    }

.details-content img {
    max-width: 100%;
    height: auto;
    display: block; /* optional, helps with layout */
}

.related-articles ul {
    list-style-type: disc;
    padding-left: 1.2rem;
}

.related-articles .related-link {
    color: #20c997; /* theme accent */
    text-decoration: none;
    font-weight: 500;
}

    .related-articles .related-link:hover {
        text-decoration: underline;
        color: #17a589; /* darker shade for hover */
    }
