/* ===========================================
   PORTFOLIO WEBSITE STYLES
   A beginner-friendly CSS file with comments
   =========================================== */

/* ---------- CSS VARIABLES ----------
   Define colors and values once, use everywhere.
   To change the theme, just modify these values!
*/
:root {
    /* Colors - dark theme with Tokyo Night accents */
    --color-bg: #000000;
    --color-bg-secondary: #000000;
    --color-text: #c0caf5;
    --color-text-secondary: #6c7086;
    --color-primary: #7aa2f7;       /* Blue accent */
    --color-primary-hover: #bb9af7; /* Purple on hover */
    --color-border: #222222;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Other */
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* ---------- RESET & BASE STYLES ----------
   Remove default browser styles for consistency
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;  /* Smooth scrolling when clicking nav links */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-hover);
}

/* Lists */
ul {
    list-style: none;
}

/* ---------- CONTAINER ----------
   Centers content and adds padding
*/
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ---------- SECTION STYLES ---------- */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
}

/* Decorative line under section titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: var(--spacing-sm) auto 0;
}

/* ---------- NAVIGATION ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    z-index: 1000;
}

/* Added by JavaScript once the user scrolls down */
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: var(--color-border);
}

/* Logo on the left, menu on the right */
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.nav-logo:hover img {
    border-color: var(--color-primary);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link.active {
    color: var(--color-primary);
}

/* Mobile menu toggle button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* ---------- HERO SECTION ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;  /* Account for fixed navbar */
}

.hero-content {
    max-width: 700px;
}

.hero-greeting {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
    /* Subtle white-to-blue gradient on the name */
    background: linear-gradient(135deg, var(--color-text) 50%, var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title {
    font-size: 2rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: var(--color-text);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ---------- ABOUT SECTION ---------- */
.about {
    background: var(--color-bg-secondary);
}

.about-content {
    display: grid;
    gap: var(--spacing-lg);
}

.about-text p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* ---------- EXPERIENCE SECTION ---------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-left: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Circle marker on timeline */
.timeline-marker {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--color-bg);
}

.timeline-content {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.timeline-date {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-title {
    font-size: 1.25rem;
    margin: var(--spacing-xs) 0;
}

.timeline-company {
    color: var(--color-text-secondary);
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
}

.timeline-description {
    color: var(--color-text-secondary);
    padding-left: var(--spacing-md);
}

.timeline-description li {
    margin-bottom: var(--spacing-xs);
    list-style-type: disc;
}

/* ---------- PROJECTS SECTION ---------- */
.projects {
    background: var(--color-bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.project-image {
    height: 200px;
    background: var(--color-bg-secondary);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.project-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.project-tech span {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Push the link to the bottom so all cards line up */
.project-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
    padding-top: var(--spacing-xs);
}

.project-link {
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.project-link svg,
.project-link .gh-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    object-fit: contain;
}

.project-link-disabled {
    color: #414868;  /* darker than body text, clearly inactive */
    cursor: not-allowed;
}

/* "On-progress" tag for non-featured projects */
.project-status {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: #e0af68;
    border: 1px solid #e0af68;
    border-radius: 999px;
    vertical-align: middle;
}

/* "View All Projects" button under the homepage grid */
.section-more {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ---------- PAGE HEADER (projects & blog pages) ---------- */
.page-header {
    padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-md);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

/* Decorative line under page titles, same as section titles */
.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: var(--spacing-sm) auto 0;
}

.page-subtitle {
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Subpages don't need the huge hero spacing */
.page-section {
    padding-top: var(--spacing-md);
}

/* ---------- BLOG ---------- */
.blog-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.blog-card {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--color-primary);
}

.blog-date {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-title {
    font-size: 1.5rem;
    margin: var(--spacing-xs) 0;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.blog-tags span {
    background: var(--color-bg);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.blog-excerpt {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* Full post text is hidden until "Read more" is clicked */
.blog-content {
    display: none;
}

.blog-card.open .blog-content {
    display: block;
}

.blog-card.open .blog-excerpt {
    display: none;
}

.blog-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.blog-toggle {
    background: none;
    border: none;
    color: var(--color-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.blog-toggle:hover {
    color: var(--color-primary-hover);
}

/* ---------- CONTACT SECTION ---------- */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Social media links in the footer */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.footer-socials a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-socials a:hover {
    color: var(--color-primary);
}

.footer-year {
    margin-top: var(--spacing-xs);
}

/* ---------- RESPONSIVE DESIGN ----------
   Adjusts layout for different screen sizes
*/

/* Tablets and smaller (768px and below) */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    /* Show mobile menu button */
    .nav-toggle {
        display: block;
    }

    /* Hide desktop menu, show as dropdown */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        border-bottom: 1px solid var(--color-border);
        display: none;  /* Hidden by default */
    }

    /* Show menu when active class is added by JavaScript */
    .nav-menu.active {
        display: flex;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}


/* ===========================================
   UBUNTU TERMINAL UI (homepage only)
   Scoped under .terminal-page so the other
   pages keep the original design.
   =========================================== */

.terminal-page {
    background-color: #000000;
    font-family: 'Ubuntu Mono', 'Courier New', monospace;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.terminal-window {
    width: 100%;
    max-width: 880px;  /* ~100 columns of Ubuntu Mono at 1rem */
    height: 90vh;
    height: 90dvh;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px #414868;
}

/* ---------- Title bar ---------- */
.terminal-titlebar {
    display: flex;
    align-items: center;
    background: linear-gradient(#24283b, #1f2335);
    padding: 0.5rem 0.75rem;
    flex-shrink: 0;
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close    { background: #f7768e; }  /* red */
.btn-minimize { background: #e0af68; }  /* yellow */
.btn-maximize { background: #9ece6a; }  /* green */

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #c0caf5;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.terminal-face-icon {
    flex-shrink: 0;
}

/* ---------- Terminal body ---------- */
.terminal-body {
    flex: 1;
    background: #0d0e14;  /* near-black: keeps the look, reduces halation */
    padding: 1rem;
    overflow-y: auto;
    color: #c0caf5;
    font-size: 1rem;
    line-height: 1.45;
    cursor: text;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #414868;
    border-radius: 4px;
}

#terminal-output {
    white-space: pre-wrap;
    word-break: break-word;
}

#terminal-output a {
    color: #7aa2f7;  /* blue */
    text-decoration: underline;
}

#terminal-output a:hover {
    color: #bb9af7;  /* purple */
}

/* ---------- Prompt / input line ---------- */
.terminal-input-line {
    display: flex;
    align-items: baseline;
    gap: 0.5ch;
}

.prompt {
    white-space: nowrap;
}

.prompt-user   { color: #9ece6a; font-weight: 700; }  /* green */
.prompt-colon  { color: #c0caf5; }
.prompt-path   { color: #7aa2f7; font-weight: 700; }  /* blue, like directories */
.prompt-dollar { color: #c0caf5; }

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #c0caf5;
    font-family: inherit;
    font-size: inherit;
    caret-color: #c0caf5;
    min-width: 0;
}

/* ---------- Output helpers ---------- */
.term-line          { display: block; }
.term-line:empty    { min-height: 1.45em; }  /* blank lines keep their height */
.term-echo .prompt  { margin-right: 0.5ch; }
.term-error         { color: #f7768e; }   /* red */
.term-success       { color: #9ece6a; }   /* green */
.term-accent        { color: #e0af68; font-weight: 700; }   /* yellow */
.term-info          { color: #7aa2f7; }   /* blue */
.term-muted         { color: #9399b2; }   /* gray, AA-compliant on near-black */

/* Entry line: title/company left, date right, same row */
.term-entry {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2ch;
    flex-wrap: wrap;
}

.term-date {
    color: #9399b2;
    white-space: nowrap;
}

/* Scannable metrics inside bullets */
.term-metric {
    font-weight: 700;
    color: #e6ebff;
}

/* Project status tag (terminal output) */
.term-status {
    color: #e0af68;
}

/* GitHub icon link in terminal project list */
#terminal-output .term-gh-link {
    text-decoration: none;
}

#terminal-output .term-gh-link svg,
#terminal-output .term-gh-link .gh-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: inline-block;
    vertical-align: text-bottom;
    object-fit: contain;
}

/* Enabled GitHub icon: same blue/purple as the social icons */
#terminal-output a.term-gh-link {
    color: #7aa2f7;
}

#terminal-output a.term-gh-link:hover {
    color: #bb9af7;
}

/* Disabled GitHub icon (non-featured / in-progress projects): darker */
.term-gh-disabled {
    color: #414868;
    cursor: not-allowed;
}

/* Certificate title as the link: keeps the yellow title style */
#terminal-output a.term-cert-title {
    color: #e0af68;
    font-weight: 700;
}

#terminal-output a.term-cert-title:hover {
    color: #bb9af7;
}

/* Hanging indent: wrapped lines align under the bullet text */
.term-bullet {
    padding-left: 4ch;
    text-indent: -2ch;
}

.term-indent {
    padding-left: 2ch;
}

.term-cmd {
    color: #9ece6a;  /* green, like executables */
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.term-cmd:hover {
    color: #bb9af7;  /* purple */
}

/* neofetch-style banner: photo + details side by side, centered */
.term-banner {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.term-banner pre {
    font-family: inherit;
    margin: 0;
    line-height: 1.35;
}

.term-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #414868;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .term-photo {
        width: 140px;
        height: 140px;
    }
}

/* Blue bold labels, like neofetch field names */
.term-label {
    color: #bb9af7;  /* purple */
    font-weight: 700;
}

/* neofetch color palette blocks, centered under the social icons */
.term-swatches {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
}

.term-swatches span {
    display: inline-block;
    width: 24px;
    height: 15px;
}

/* Social icons (email, GitHub, LinkedIn) centered on one line */
.term-social {
    display: flex;
    justify-content: center;
    align-items: center;   /* one shared baseline */
    gap: 1.5rem;           /* equal spacing between all three */
    margin-top: 1.5rem;    /* breathing room after the Skills line */
}

#terminal-output .term-social a {
    color: #7aa2f7;
    text-decoration: none;
}

#terminal-output .term-social a:hover {
    color: #bb9af7;
}

.term-social svg,
.term-social .gh-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
    object-fit: contain;
}

/* GitHub's mark fills its box edge-to-edge, so it reads
   larger than the others at equal size — shrink it optically */
.term-social a[title="GitHub"] svg,
.term-social a[title="GitHub"] .gh-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .terminal-page {
        padding: 0.5rem;
    }

    .terminal-window {
        height: 95vh;
        height: 95dvh;
    }

    .terminal-body {
        font-size: 0.85rem;
    }

    .terminal-title span {
        display: none;  /* keep just the face icon on tiny screens */
    }
}


/* ===========================================
   BLOG PAGE — list design (date | content)
   Scoped under .blog-page; uses the site
   color palette only.
   =========================================== */

.blog-page {
    background: #0d0e14;
    color: #c0caf5;
    font-family: 'Ubuntu Mono', 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Top bar ---------- */
.blog-nav {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* "akhmal" wordmark instead of the image logo — goes home */
.blog-logo {
    color: #c0caf5;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
}

.blog-logo:hover {
    color: #bb9af7;
}

.blog-nav-links {
    display: flex;
    gap: 1.5rem;
}

.blog-nav-links a {
    color: #9399b2;
    text-decoration: none;
}

.blog-nav-links a:hover {
    color: #c0caf5;
}

.blog-nav-links a.active {
    color: #e0af68;
}

/* ---------- Page header ---------- */
.blog-header {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
}

.blog-page-title {
    color: #c0caf5;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.blog-page-subtitle {
    color: #9399b2;
}

/* ---------- Post list: date left, content right ---------- */
.blog-main {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
    flex: 1;
}

.blog-page .blog-list {
    max-width: none;
    gap: 0;
}

.blog-page .blog-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid #1f2335;
    border-radius: 0;
    padding: 2.75rem 0;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
}

.blog-page .blog-card:first-child {
    border-top: 1px solid #1f2335;
}

.blog-page .blog-date {
    color: #9399b2;
    font-size: 1rem;
    font-weight: 400;
    padding-top: 0.4rem;
}

/* Everything except the date lives in the right column */
.blog-page .blog-title,
.blog-page .blog-tags,
.blog-page .blog-excerpt,
.blog-page .blog-content,
.blog-page .blog-toggle {
    grid-column: 2;
}

.blog-page .blog-title {
    color: #e0af68;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.4rem;
}

.blog-page .blog-tags {
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.blog-page .blog-tags span {
    background: none;
    padding: 0;
    border-radius: 0;
    color: #e0af68;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-page .blog-excerpt,
.blog-page .blog-content p {
    color: #c0caf5;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-page .blog-toggle {
    color: #e0af68;
    font-size: 1rem;
    justify-self: start;
}

.blog-page .blog-toggle:hover {
    color: #bb9af7;
}

/* ---------- Footer ---------- */
.blog-footer {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    color: #9399b2;
    font-size: 0.85rem;
}

/* ---------- Mobile: stack date above content ---------- */
@media (max-width: 640px) {
    .blog-page .blog-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 2rem 0;
    }

    .blog-page .blog-title,
    .blog-page .blog-tags,
    .blog-page .blog-excerpt,
    .blog-page .blog-content,
    .blog-page .blog-toggle {
        grid-column: 1;
    }
}
