body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f8f9fb;
    color: #1a1a1a;
}

header {
    padding: 20px 40px;
    background: #0A2540;
    color: #d3d3d2;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 70px;
    object-fit: contain;
}

.logo-container {
    display: flex;
    align-items: center;
}

/* header {
  background: white;
  color: #0A2540;
  border-bottom: 1px solid #eee;
} */

header nav a {
    color: #d3d3d2;
    margin-left: 20px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.page {
    display: none;
}

.active-page {
    display: block;
}

/* HOME PAGE */
.hero {
    padding: 60px 40px;
    text-align: center;
    background: white;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    color: gray;
}

.section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.section h2 {
    margin-bottom: 20px;
}

.categories {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.category {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #eee;
    font-size: 14px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin: 0 0 10px;
}

.card p {
    font-size: 14px;
    color: gray;
}

/* BLOG PAGE */
.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 20px;
}

.content {
    flex: 3;
    background: white;
    padding: 30px;
    border-radius: 10px;
    line-height: 1.7;
}

.sidebar {
    flex: 1;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.toc {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.toc a {
    display: block;
    text-decoration: none;
    color: #0A2540;
    margin: 5px 0;
    font-size: 14px;
}

.toc a.active {
    font-weight: bold;
    color: #C9A227;
}

.ad {
    background: #eaeaea;
    height: 200px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
}

.read-btn {
    background: #0A2540;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: #C9A227;
    width: 0%;
    z-index: 1000;
}

html {
    scroll-behavior: smooth;
}

.sticky-header {
    position: sticky;
    /* Sticky positioning */
    top: 0;
    /* Sticks to top */
    background: #0A2540;
    color: #d3d3d2;
    z-index: 1000;
    /* Keeps on top */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
}

.featured-articles {
    padding-bottom: 30px;
}

@media (max-width: 768px) {
    .logo {
        width: 34px;
        height: 34px;
        transform: scale(1.3);
    }
}

.footer {
    padding-top: 40px;
    padding-bottom: 10px;
    text-align: center;
    background: white;
    color: gray;
    display: flex;
    flex-direction: row;
    justify-content: center;
}