html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
body {
    font-family: Inter, sans-serif;
    background: #f8f9fa;
}

.article-container {
    background: white;
    padding: 40px;
    border-radius: 6px;
}

    .article-container h1 {
        font-family: Merriweather, serif;
        font-size: 36px;
        margin-bottom: 20px;
    }

    .article-container p {
        font-family: Merriweather, serif;
        font-size: 18px;
        line-height: 1.8;
    }

.sidebar-box {
    background: white;
    padding: 20px;
    border-radius: 6px;
}

    .sidebar-box h5 {
        font-weight: 600;
        margin-bottom: 15px;
    }

.toc-box {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 4px;
}

    .toc-box h5 {
        margin-bottom: 10px;
        font-weight: 600;
    }

    .toc-box ul {
        list-style: none;
        padding-left: 0;
    }

    .toc-box li {
        margin-bottom: 6px;
    }

    .toc-box a {
        text-decoration: none;
        color: #0d6efd;
    }

        .toc-box a:hover {
            text-decoration: none;
        }
.article-container {
    background: white;
    padding: 35px;
    border-radius: 6px;
}

    .article-container p {
        font-family: Merriweather, serif;
        font-size: 18px;
        line-height: 1.85;
    }
.toc-box {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 15px;
    font-size: 14px;
}

    .toc-box ul {
        list-style: none;
        padding-left: 0;
    }

    .toc-box li {
        margin-bottom: 6px;
    }

    .toc-box a {
        text-decoration: none;
        color: #0d6efd;
    }

        .toc-box a:hover {
            text-decoration: none;
        }
#toc-container {
    position: sticky;
    top: 100px;
}
@media (max-width: 992px) {

    #toc-container {
        position: relative;
        margin-bottom: 20px;
    }
}
#toc-container {
    position: sticky;
    top: 100px;
    max-height: 70vh;
    overflow-y: auto;
}
    #toc-container::-webkit-scrollbar {
        width: 6px;
    }

    #toc-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
html {
    scroll-behavior: smooth;
}
.card a {
    text-decoration: none;
    color: #0d6efd;
}

    .card a:hover {
        color: dodgerblue;
    }

#mainNavbar {
    transition: all 0.3s ease;
    padding-top: 18px;
    padding-bottom: 18px;
}

    #mainNavbar.shrink {
        padding-top: 6px;
        padding-bottom: 6px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

        #mainNavbar.shrink .navbar-brand {
            font-size: 1.1rem;
        }

    .internal-link,
    .internal-link:hover,
    .internal-link:focus,
    .internal-link:visited {
        color: royalblue;
        text-decoration: none;
        font-weight: 600;
    }
.card-hover {
    transition: all 0.25s ease;
}

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

.article-item {
    transition: all 0.2s ease;
}

    .article-item:hover {
        background: #f8f9fa;
    }

.category-tag:hover {
    background: #111 !important;
    color: #fff !important;
}
/* CARD HOVER */
.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 16px;
}

    .card-hover:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

    /* CARD TITLE LINK */
    .card-hover a {
        transition: color 0.2s ease;
    }

    .card-hover:hover a {
        color: #0d6efd;
    }

/* ARTICLE LIST */
.article-item {
    transition: all 0.2s ease;
    border-radius: 10px;
}

    .article-item:hover {
        background: #f8f9fa;
        transform: translateX(3px);
    }

/* CATEGORY TAG */
.category-tag {
    transition: all 0.2s ease;
    border-radius: 999px;
    font-size: 13px;
}

    .category-tag:hover {
        background: #111 !important;
        color: #fff !important;
        transform: translateY(-2px);
    }

/* INPUT SEARCH FOCUS */
input[type="search"]:focus {
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
    border-color: #0d6efd;
}

/* GLOBAL SMOOTHNESS */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.card-hover:hover a {
    color: #0d6efd;
}
transform: translateX(3px);
body {
    font-family: 'Inter', sans-serif;
}
transition: transform, box-shadow;
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #0d6efd;
    width: 0%;
    z-index: 9999;
}
.article-text {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.article-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 6px;
}

.article-list {
    margin-left: 18px;
    margin-bottom: 10px;
}

    .article-list li {
        margin-bottom: 4px;
        line-height: 1.4;
    }
.article-hero {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
}
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-section .row {
    position: relative;
    z-index: 2;
}
.article-item {
    transition: all 0.2s ease;
}

    .article-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100% );
}
.article-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }