/* =========================================
   Blog & Sidebar Styles
========================================= */

/* Main Blog Cards */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06) !important;
}

.article-title a {
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #0d6efd !important; /* Bootstrap Primary Blue */
}

/* Read More Button */
.read-more-btn {
    transition: all 0.3s ease;
}

.blog-card:hover .read-more-btn {
    background-color: #212529;
    color: white;
}

/* Sidebar Styling */
.sidebar-title {
    transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-item a:hover .sidebar-title {
    color: #0d6efd !important;
    transform: translateX(4px);
}

.tracking-wide {
    letter-spacing: 0.05em;
}

/* Custom Pagination UI */
.custom-pagination .page-item {
    margin: 0;
}

.custom-pagination .page-link {
    color: #495057;
    border: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.custom-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
    transform: translateY(-2px);
}

.custom-pagination .page-item.active .page-link {
    background-color: #212529; /* Dark solid color */
    color: #fff;
}

.custom-pagination .page-item.disabled .page-link {
    background-color: transparent;
    color: #adb5bd;
}

/* =========================================
   W3Schools Style Tutorial Layout
========================================= */

/* The Sidebar Wrapper */
.tutorial-sidebar {
    height: calc(100vh - 56px); /* 100% height minus your navbar height */
    overflow-y: auto; /* Scrollable independently */
    position: sticky;
    top: 56px; /* Stick below the navbar */
}

/* Tutorial Links */
.tutorial-link {
    background-color: transparent;
    border: none !important;
    padding: 10px 16px;
    font-size: 0.95rem;
    color: #333;
    transition: background-color 0.2s;
}

.tutorial-link:hover {
    background-color: #e9ecef;
    color: #000;
}

/* W3Schools Classic Green Active State */
.active-lesson {
    background-color: #04AA6D !important;
    color: white !important;
    font-weight: bold;
}

.active-lesson:hover {
    background-color: #059862 !important;
    color: white !important;
}

/* Main Content Area */
.tutorial-content {
    min-height: calc(100vh - 56px);
    padding-bottom: 5rem;
}

/* Top/Bottom Navigation Buttons */
.tutorial-nav-btn {
    background-color: #04AA6D;
    color: white;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 4px;
    transition: background 0.2s;
}

.tutorial-nav-btn:hover {
    background-color: #059862;
    color: white;
}