/* ==========================================
   GLOBAL RESET & VARIABLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1f36;
    --secondary-color: #00d4ff;
    --accent-color: #ff6b9d;
    --text-color: #2d3748;
    --light-text: #718096;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.07);
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--bg-color) 0%, #f0f4f8 100%);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================
   READING PROGRESS BAR
   ========================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    width: 0%;
    z-index: 9999;
    transition: width 50ms linear;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   HEADER
   ========================================== */
/* --- Calculusphile Brand Header Styles --- */
.site-header-inner {
    display: flex;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.2rem;
}
.brand-flex {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    text-decoration: none;
    margin-right: 2.2rem;
}
.brand-logo-box {
    background: #111216;
    border-radius: 13px;
    padding: 0.35rem 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #181c2a44;
}
.brand-logo-img {
    width: 44px;
    height: 44px;
    display: block;
}
.brand-title {
    background: #111216;
    color: #fff;
    font-size: 1.45rem;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
    border-radius: 4px;
    padding: 0.2rem 1.1rem 0.2rem 1.1rem;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px #181c2a33;
}
.brand-bold {
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
}
/* --- End Brand Header Styles --- */
/* Problem Card Hover Effects for CP Implementation */
/* Glassy border hover effect for problem cards */
.leetcode-card:hover {
    box-shadow: 0 4px 24px #ffe0b2, 0 2px 8px #e2e8f0;
    border: 2.5px solid rgba(255,161,22,0.7);
    background: rgba(255, 248, 225, 0.85);
    backdrop-filter: blur(2.5px);
    transition: box-shadow 0.2s, border 0.2s, background 0.2s, backdrop-filter 0.2s;
}
.codeforces-card:hover {
    box-shadow: 0 4px 24px #bbdefb, 0 2px 8px #e2e8f0;
    border: 2.5px solid rgba(33,150,243,0.7);
    background: rgba(227, 242, 253, 0.85);
    backdrop-filter: blur(2.5px);
    transition: box-shadow 0.2s, border 0.2s, background 0.2s, backdrop-filter 0.2s;
}
/* CP Problem Cards Styles */
.cp-problem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 1.5rem 0;
}
.cp-problem-card {
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px #e2e8f0;
    padding: 1.2rem 1rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: box-shadow 0.15s, transform 0.15s;
}
.cp-problem-card:hover {
    box-shadow: 0 6px 24px #b2ebf2;
    transform: translateY(-4px) scale(1.02);
}
.cp-problem-title {
    font-size: 1.08rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.cp-problem-serial {
    font-size: 1.1rem;
    color: #00d4ff;
    font-weight: 700;
}
.cp-problem-links {
    font-size: 0.98rem;
    color: #1976d2;
    font-weight: 500;
}
.cp-problem-links a {
    color: #1976d2;
    text-decoration: underline;
    margin-right: 0.5rem;
    transition: color 0.13s;
}
.cp-problem-links a:hover {
    color: #ff6b9d;
}
@media (max-width: 600px) {
    .cp-problem-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
/* CP Topics Grid Styles */
.cp-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0 2rem 0;
}
.cp-topic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f7fa 0%, #fce4ec 100%);
    border-radius: 16px;
    box-shadow: 0 2px 12px #e2e8f0;
    text-decoration: none;
    color: #222;
    padding: 2.2rem 1.2rem;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    position: relative;
    overflow: hidden;
}
.cp-topic-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 24px #b2ebf2;
    background: linear-gradient(135deg, #b2ebf2 0%, #f8bbd0 100%);
}
.cp-topic-icon {
    font-size: 2.5rem;
    margin-bottom: 1.1rem;
}
.cp-topic-title {
    font-size: 1.13rem;
    font-weight: 700;
    text-align: center;
}
@media (max-width: 600px) {
    .cp-topics-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .cp-topic-card {
        padding: 1.5rem 0.7rem;
    }
}
.home-top { max-width: 900px; margin: 2rem auto 2.5rem auto; background: #fff; border-radius: 10px; box-shadow: var(--shadow-sm); padding: 1.5rem 1rem; }
.hf-tabs { justify-content: center; margin-bottom: 1rem; }
.hf-tab { min-width: 120px; text-align: center; font-size: 1.08rem; letter-spacing: 0.5px; }
.hf-tab.active { box-shadow: 0 2px 8px rgba(0,212,255,0.08); }
.home-search { margin-bottom: 1.2rem; }
.hf-panel { min-height: 120px; }
/* Brand styles for header */
.site-brand { margin: 0; }
.brand-link { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand-logo { height: 36px; width: 36px; border-radius: 8px; object-fit: cover; }
.brand-name { height: 28px; object-fit: contain; display: inline-block; }
.activity-list { flex-wrap: wrap; gap: 2.5rem; }
.activity-list .col { min-width: 220px; }
.activity-list h3 { margin-bottom: 0.5rem; }
.activity-list ul { padding-left: 1.2rem; }
.home-post-item { font-size: 1rem; }
.blog-hero { margin-bottom: 1.5rem; background: linear-gradient(90deg, #e0f7fa 0%, #fce4ec 100%); }

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d3e50 100%);
    color: white;
    padding: 1.5rem 0;
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: var(--shadow);
    position: static;
    width: 100%;
    transition: box-shadow 0.2s;
}

.site-header.scrolled {
    /* No effect when not fixed */
}

.site-header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-header h1 a {
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #00d4ff, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
    margin-right: 2.5rem; /* Add space between logo and nav */
}

.site-header h1 a:hover {
    transform: scale(1.05);
}

/* Navigation */
.site-nav {
    display: flex;
    gap: 2.5rem;
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.site-nav a:hover {
    color: var(--secondary-color);
}

.site-nav a:hover::after {
    width: 100%;
}

/* Active nav link styling */
.site-nav a.active {
    color: var(--secondary-color);
}

.site-nav a.active::after {
    width: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

/* Main Content */
.site-main {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.site-main h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.site-main h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.site-main p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Posts and Projects */
.post, .project {
    margin-bottom: 3rem;
}

.post-header, .project-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.post-title, .project-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.post-meta {
    color: var(--light-text);
    font-size: 0.95rem;
    font-weight: 500;
}

.project-description {
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

.post-content, .project-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-content h2, .project-content h2,
.post-content h3, .project-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 700;
}

.post-content p, .project-content p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.post-content a, .project-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 2px;
}

.post-content a:hover, .project-content a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* --- Global inline code styling --- */
.site-main code {
    background-color: #eef2ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #3730a3;
    font-weight: 500;
}

/* --- Global code block styling --- */
.site-main pre {
    background: #ffffff !important;
    color: #24292e !important;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #d0d7de;
    line-height: 1.6;
}

.site-main pre code {
    background-color: transparent !important;
    padding: 0;
    color: #24292e !important;
    font-size: 0.88rem;
}

/* --- Rouge Syntax Highlighting (light theme) --- */
.highlight { background: transparent; }
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cs   { color: #6a737d; font-style: italic; }  /* Comments */
.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt   { color: #d73a49; font-weight: 600; }    /* Keywords & types */
.highlight .kc   { color: #005cc5; }                       /* Keyword constant (true/false/NULL) */
.highlight .n    { color: #24292e; }                       /* Name */
.highlight .na   { color: #005cc5; }                       /* Name.Attribute */
.highlight .nb   { color: #005cc5; }                       /* Name.Builtin */
.highlight .nc   { color: #6f42c1; font-weight: 600; }    /* Name.Class */
.highlight .nf,
.highlight .fm   { color: #6f42c1; }                       /* Name.Function */
.highlight .ni   { color: #24292e; }                       /* Name.Entity */
.highlight .no   { color: #005cc5; }                       /* Name.Constant */
.highlight .nn   { color: #005cc5; }                       /* Name.Namespace */
.highlight .nt   { color: #22863a; }                       /* Name.Tag */
.highlight .nv,
.highlight .vi,
.highlight .vg,
.highlight .vs   { color: #e36209; }                       /* Variables */
.highlight .o,
.highlight .ow   { color: #d73a49; }                       /* Operators */
.highlight .p    { color: #24292e; }                       /* Punctuation */
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .se,
.highlight .sh,
.highlight .sx   { color: #032f62; }                       /* Strings */
.highlight .si   { color: #005cc5; }                       /* String.Interpol */
.highlight .sr   { color: #032f62; }                       /* String.Regex */
.highlight .m,
.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .mo   { color: #005cc5; }                       /* Numbers */
.highlight .cp   { color: #d73a49; }                       /* Preprocessor (#include, #define) */
.highlight .cpf  { color: #032f62; }                       /* Preprocessor filename (<stdio.h>) */
.highlight .gh   { color: #005cc5; font-weight: bold; }   /* Generic.Heading */
.highlight .gi   { color: #22863a; }                       /* Generic.Inserted */
.highlight .gd   { color: #b31d28; }                       /* Generic.Deleted */
.highlight .ge   { font-style: italic; }                   /* Generic.Emph */
.highlight .gs   { font-weight: bold; }                    /* Generic.Strong */
.highlight .err  { color: #b31d28; }                       /* Error */
.highlight .w    { color: #24292e; }                       /* Whitespace */

/* Rouge wraps code in div.highlighter-rouge > div.highlight > pre.highlight */
.highlighter-rouge .highlight {
    background: transparent;
    margin: 0;
    padding: 0;
}

div.highlighter-rouge {
    margin: 1.5rem 0;
}

div.highlighter-rouge pre.highlight {
    background: #ffffff !important;
    color: #24292e !important;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid #d0d7de;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color), #2d3e50);
    color: #cbd5e0;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    border-top: 3px solid var(--secondary-color);
    margin-top: auto;
}

.site-footer p {
    margin: 0;
}

/* Project Card Styles */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-left-color: var(--accent-color);
}

.project-card h3 {
    margin-bottom: 0.75rem;
}

.project-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.project-card h3 a:hover {
    color: var(--secondary-color);
}

.project-card p {
    color: var(--light-text);
    margin: 0;
}

/* Buttons */
a[role="button"], .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), #00b8d4);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

a[role="button"]:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--accent-color), #ff5a8d);
}

/* Modern cross-page link button */
.btn-crosslink {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.08rem;
    font-weight: 600;
    background: linear-gradient(90deg, #00d4ff, #ff6b9d);
    color: white !important;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,212,255,0.08);
    text-decoration: none;
    border: none;
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-crosslink:hover {
    background: linear-gradient(90deg, #ff6b9d, #00d4ff);
    box-shadow: 0 8px 24px rgba(255,107,157,0.13);
    color: #fff !important;
}

/* New modern button style */
.btn-modern {
  display: inline-block;
  padding: 0.6em 1.3em;
  margin: 0.3em 0.7em 0.3em 0;
  text-decoration: none;
  background: #1976d2;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 6px #e2e8f0;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-modern:hover {
  background: #1251a3;
  box-shadow: 0 4px 12px #b6c6e2;
}

/* List Styles */
.site-main ul, .site-main ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.site-main li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 1.5rem;
    }

    .site-nav {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .post-title, .project-title {
        font-size: 1.75rem;
    }

    .site-main {
        padding: 1.5rem;
    }

    .site-main h1 {
        font-size: 2rem;
    }

    .projects-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .site-header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    /* Ensure header is not fixed on mobile */
    .site-header {
        position: static !important;
        width: 100% !important;
    }

    .site-nav {
        gap: 0.75rem;
    }

    .site-header h1 {
        font-size: 1.3rem;
    }

    .post-title, .project-title {
        font-size: 1.5rem;
    }

    .site-main {
        padding: 1rem;
    }

    .site-main h1 {
        font-size: 1.75rem;
    }

    .site-main h2 {
        font-size: 1.4rem;
    }
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

/* When screen small, hide nav and show toggle */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    /* Slide-in menu from right */
    .site-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 260px;
        max-width: 80%;
        background: linear-gradient(180deg, rgba(13,38,63,0.98), rgba(29,48,74,0.98));
        padding: 4rem 1rem 1.5rem 1rem;
        flex-direction: column;
        gap: 0.8rem;
        transform: translateX(110%);
        transition: transform 300ms cubic-bezier(.2,.8,.2,1);
        box-shadow: -8px 0 30px rgba(10,20,30,0.3);
        z-index: 150;
    }

    .site-nav a {
        color: #e6f7ff;
        padding: 0.6rem 0.75rem;
        border-radius: 6px;
        font-weight: 600;
    }

    .site-nav.open {
        transform: translateX(0);
    }

    /* Ensure desktop styles unaffected: show small-screen underline less visible */
    .site-nav a::after { display: none; }
}
@media (max-width: 768px) {
    /* Mobile-only: align site title left, hamburger right */
    .site-header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .site-header h1 {
        text-align: left;
        margin-right: auto;
    }
    .nav-toggle {
        position: absolute;
        top: 1.2rem;
        right: 1.2rem;
        margin: 0;
        z-index: 200;
    }
}

/* ==========================================
   BLOG CATEGORY CARDS (moved from inline styles)
   ========================================== */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    margin: 2.5rem 0;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    max-width: 260px;
    padding: 2.2rem 1.2rem;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    box-shadow: 0 2px 12px #e2e8f0;
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s, background 0.3s;
    text-decoration: none;
    color: #222;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 12px 36px rgba(0, 212, 255, 0.15);
}

.category-card .cat-icon {
    font-size: 2.2rem;
}

.category-card .cat-title {
    font-size: 1.13rem;
    font-weight: 700;
    margin: 1.1rem 0 0.2rem 0;
}

.category-card .cat-desc {
    color: #607d8b;
    font-size: 0.98rem;
}

@media (max-width: 600px) {
    .category-list {
        gap: 1.2rem;
    }
    .category-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
}

/* Icon for cards */
.card-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 0.5rem;
    fill: var(--secondary-color);
}

/* Blog Hero (small, reusable) */
.blog-hero, .post .project-card {
    display: block;
    padding: 2rem 1.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(255,107,157,0.04));
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 6px 20px rgba(13, 38, 63, 0.04);
    margin-bottom: 1.5rem;
}

.blog-hero h1, .blog-hero h2 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
}

/* ===== Auth Overlay ===== */
#auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-color, #f6f8fa);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#auth-overlay .auth-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 2.5rem 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
}
#auth-overlay .auth-box h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--primary-color, #1a5276);
}
#auth-overlay .auth-box p {
    color: #666;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}
#auth-overlay .auth-box input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
#auth-overlay .auth-box input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color, #1a5276);
}
#auth-overlay .auth-box button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color, #1a5276);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
#auth-overlay .auth-box button:hover {
    opacity: 0.9;
}
#auth-overlay .auth-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    display: none;
}

.blog-hero p {
    margin: 0;
    color: var(--light-text);
}

/* Home interactive controls */
.home-top {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 2rem 0;
}
.hf-tabs {
    display:flex;
    gap:0.5rem;
}
.hf-tab {
    padding:0.5rem 0.75rem;
    background:rgba(255,255,255,0.06);
    border-radius:6px;
    cursor:pointer;
    font-weight:700;
    color:var(--primary-color);
    border:1px solid var(--border-color);
}
.hf-tab.active {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: white;
}
.home-search {
    display:flex;
    gap:0.75rem;
    align-items:center;
}
.home-search input[type="search"]{
    flex:1;
    padding:0.6rem 0.8rem;
    border-radius:8px;
    border:1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.hf-panel{ display:none; }
.hf-panel.active{ display:block; }
.activity-list{ display:flex; gap:1rem; align-items:flex-start; }
.activity-list .col{ flex:1; }
.home-post-item{ padding:0.25rem 0; color:var(--text-color); }

/* Custom styles for approach pages */
.approach-content {
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 12px #e2e8f0;
    padding: 2.2rem 2rem;
    margin: 2rem auto;
    max-width: 900px;
}
.approach-content h1, .approach-content h2, .approach-content h3 {
    color: #1976d2;
    font-weight: 700;
    margin-top: 2rem;
}
.approach-content strong, .approach-content b {
    color: #222;
    font-weight: 700;
}
.approach-content code {
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 1.02em;
}
.approach-content ul, .approach-content ol {
    margin-left: 2rem;
    margin-bottom: 1.2rem;
}
.approach-content li {
    margin-bottom: 0.5rem;
    font-size: 1.08rem;
}
.approach-content p {
    margin-bottom: 1.1rem;
    font-size: 1.09rem;
    color: #222;
}
.approach-content {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-size: 1.09rem;
    color: #222;
}

