/* styles.css */
:root {
    /* Brand v2 tokens */
    --brand-primary: #2ecc71;
    --brand-primary-strong: #27ae60;
    --brand-secondary: #4a8dff;
    --brand-tertiary: #22d3ee;
    --accent-warm: #f59e0b;

    /* Neutrals (dark default) */
    --bg-canvas: #0f1418;
    --bg-surface: #171d23;
    --bg-elevated: #1f2730;
    --text-primary: #e7edf3;
    --text-muted: #a9b6c3;
    --border-subtle: #2b3642;

    /* Semantic */
    --link-color: var(--brand-secondary);
    --success-color: var(--brand-primary);
    --info-color: var(--brand-secondary);
    --warning-color: var(--accent-warm);

    /* Effects */
    --glow-primary: rgba(46, 204, 113, 0.22);
    --glow-secondary: rgba(74, 141, 255, 0.22);
    --shadow-soft: 0 6px 22px rgba(0, 0, 0, 0.28);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.38);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-strong));
    --gradient-brand-cool: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));

    /* Backward-compatible aliases */
    --primary-green: var(--brand-primary);
    --dark-green: var(--brand-primary-strong);
    --text-color: var(--text-primary);
    --bg-color: var(--bg-canvas);
    --card-bg: var(--bg-surface);
    --nav-bg: var(--bg-surface);
    --footer-bg: #0a0f13;
    --footer-text: var(--text-muted);
    --border-color: var(--border-subtle);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow: 0 4px 6px rgba(0,0,0,0.5);
}

/* Light Mode Variables (Applied via Toggle) */
.light-mode {
    --bg-canvas: #f4f8fb;
    --bg-surface: #ffffff;
    --bg-elevated: #f8fbff;
    --text-primary: #1e2933;
    --text-muted: #5b6b79;
    --border-subtle: #d7e1ea;
    --glow-primary: rgba(46, 204, 113, 0.18);
    --glow-secondary: rgba(74, 141, 255, 0.18);

    /* Backward-compatible aliases */
    --primary-green: var(--brand-primary);
    --dark-green: var(--brand-primary-strong);
    --text-color: var(--text-primary);
    --bg-color: var(--bg-canvas);
    --card-bg: var(--bg-surface);
    --nav-bg: var(--bg-surface);
    --footer-bg: #2c3e50;
    --footer-text: #ffffff;
    --border-color: var(--border-subtle);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.light-mode {
    background-image: radial-gradient(circle, rgba(46, 204, 113, 0.08) 1px, transparent 1px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: radial-gradient(circle, rgba(46, 204, 113, 0.03) 1px, transparent 1px), radial-gradient(circle at 20% 20%, rgba(74, 141, 255, 0.04) 1px, transparent 1px);

    background-size: 50px 50px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

/* Navigation */
header {
    background-color: var(--nav-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    /* This ensures the link is green, not blue or purple */
    color: var(--primary-green); 
}

/* This specifically targets the visited state to prevent the purple color */
.logo:visited {
    color: var(--primary-green);
}

.logo img {
    max-height: 70px;
    width: auto;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    /* Ensures the text matches the parent link color */
    color: inherit; 
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-green);
}

/* Theme Toggle Button */
#theme-toggle {
    background: none;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 20px;
    transition: all 0.3s;
}

#theme-toggle:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Hamburger Menu (Mobile) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Main Content */
main {
    flex: 1;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
}

h1, h2, h3 {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

h1 {
    background: var(--gradient-brand-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.btn {
    display: inline-block;
    background: var(--gradient-brand);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

/* Button focus and active states for accessibility and polish */
.btn:active {
    transform: translateY(1px) scale(0.998);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.btn:focus-visible {
    outline: 3px solid var(--glow-primary);
    outline-offset: 3px;
}

/* Secondary CTA for community and low-pressure actions */
.btn-secondary {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-tertiary));
    box-shadow: 0 4px 15px rgba(74, 141, 255, 0.28);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(74, 141, 255, 0.38);
}

.btn-secondary:focus-visible {
    outline: 3px solid var(--glow-secondary);
}

/* Ghost CTA for editorial/navigation contexts */
.btn-ghost {
    background: rgba(74, 141, 255, 0.08);
    color: var(--brand-secondary);
    border: 1px solid rgba(74, 141, 255, 0.35);
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(74, 141, 255, 0.15);
    border-color: rgba(74, 141, 255, 0.55);
    color: #dfeaff;
    box-shadow: 0 8px 20px rgba(74, 141, 255, 0.18);
}

.btn-ghost:focus-visible {
    outline: 3px solid var(--glow-secondary);
}

/* Toast for transient messages (copy feedback) */
.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 28px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

/* Tag count styling and bump animation */
.tag-count {
    margin-left: 8px;
    font-size: 0.85rem;
    opacity: 0.85;
    transition: transform 180ms ease, opacity 180ms ease;
}
.tag-count.bump {
    transform: scale(1.18);
    opacity: 1;
}

@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* theme toggle microinteraction */
#theme-toggle {
    background: none;
    border: 2px solid transparent;
    padding: 6px 10px;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

#theme-toggle.animate {
    transform: rotate(8deg) scale(1.04);
    box-shadow: 0 6px 18px rgba(46,204,113,0.12);
}

#theme-toggle:focus-visible {
    outline: 3px solid rgba(46,204,113,0.14);
    outline-offset: 3px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    transition: background-color 0.3s;
}

/* Page Specifics */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(74, 141, 255, 0.08));
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 0 40px rgba(46, 204, 113, 0.1), 0 0 30px rgba(74, 141, 255, 0.08), inset 0 0 40px rgba(46, 204, 113, 0.05);
    transition: all 0.3s;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glow-primary);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.card svg {
    transition: all 0.3s ease;
}

/* Prevent muddy card tones when light mode is active */
.light-mode .card {
    background: var(--bg-elevated);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(74, 141, 255, 0.2);
    box-shadow: 0 8px 24px rgba(14, 30, 37, 0.1);
}

/* Form Styles */
form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--glow-primary);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--info-color);
    box-shadow: 0 0 20px var(--glow-secondary);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input:focus-visible, .form-group textarea:focus-visible, .form-group select:focus-visible {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 1px;
}

.form-group input:invalid:not(:placeholder-shown), .form-group textarea:invalid, .form-group select:invalid {
    border-color: rgba(231, 76, 60, 0.7);
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-help {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.contact-help a {
    color: var(--link-color);
    text-decoration: underline;
}

.contact-help a:hover {
    opacity: 0.9;
}

.form-feedback {
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.form-feedback-success {
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.35);
    color: #9fffb5;
}

.form-feedback-error {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.35);
    color: #ffb3aa;
}

#contact-submit[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Mobile Nav */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--nav-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-links li {
        opacity: 0;
        margin: 2rem 0;
    }
    
    .burger {
        display: block;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Make the card lift up when hovered */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(46, 204, 113, 0.16), 0 10px 28px rgba(74, 141, 255, 0.12);
}

.card:hover svg {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(74, 141, 255, 0.35));
}

/* Filter Bar Container */
#filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* The Filter Buttons */
.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

/* The Active State (Selected) */
.filter-btn.active {
    background: var(--primary-green);
    color: #fff; /* White text on green background */
    border-color: var(--primary-green);
}

/* LinkedIn Button Styles */
.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0077b5, #005582);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
    color: white;
}

/* SVG Icon Sizing */
.linkedin-icon {
    width: 18px;
    height: 18px;
    fill: white;
}

/* =========================================
   ABOUT, FOOTER & COOKIES
   ========================================= */

/* --- Homepage About Snippet --- */
.about-snippet {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(46, 204, 113, 0.2);
    margin-bottom: 4rem;
    transition: all 0.3s ease;
}

.light-mode .about-snippet {
    background: var(--bg-elevated);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(74, 141, 255, 0.2);
    box-shadow: 0 8px 24px rgba(14, 30, 37, 0.1);
}

/* --- About Page Profile --- */
.about-profile-block {
    text-align: left;
    margin: 0.4rem 0 1rem 0;
}

.about-profile-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-green);
    box-shadow: 0 10px 28px rgba(74, 141, 255, 0.15);
}

.about-profile-signoff {
    margin-top: 0.3rem;
}

.about-snippet:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(46, 204, 113, 0.15);
}
.about-snippet img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-green);
}
@media (max-width: 768px) {
    .about-snippet {
        flex-direction: column;
        text-align: center;
    }

    .about-profile-photo {
        width: 96px;
        height: 96px;
    }
}

/* --- Homepage Latest Posts --- */
.latest-posts {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.light-mode .latest-posts {
    background: var(--bg-elevated);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(74, 141, 255, 0.2);
    box-shadow: 0 8px 24px rgba(14, 30, 37, 0.1);
}

.latest-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.latest-posts-header h2 {
    margin-bottom: 0;
}

.latest-posts-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

.latest-posts-link:hover {
    text-decoration: underline;
}

.latest-featured-link {
    margin-bottom: 1.25rem;
}

.latest-featured-card {
    opacity: 1;
    animation: none;
}

.latest-featured-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--primary-green);
}

.latest-post-date {
    font-size: 0.88rem;
    opacity: 0.85;
    margin-bottom: 0.6rem;
}

.latest-read-more {
    margin-top: 0.85rem;
    color: var(--link-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.latest-list-wrap {
    border-top: 1px solid rgba(46, 204, 113, 0.2);
    padding-top: 1rem;
}

.latest-list-title {
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.latest-list {
    list-style: none;
    padding: 0;
}

.latest-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.latest-list li:last-child {
    border-bottom: none;
}

.latest-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.latest-list a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

.latest-list span {
    font-size: 0.84rem;
    opacity: 0.75;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .latest-posts {
        padding: 1.25rem;
    }

    .latest-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
}

/* --- Fat Footer --- */
.fat-footer {
    background-color: var(--card-bg);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 3rem 5% 1rem 5%;
    margin-top: 4rem;
}
body:not(.light-mode) .fat-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}
.footer-col h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul li a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-green);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}
body:not(.light-mode) .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Cross-theme utility statuses */
.c-status-link {
    color: var(--brand-secondary);
    font-weight: 700;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.c-status-muted {
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.c-status-warm {
    color: var(--accent-warm);
    font-weight: 700;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.c-contact-alt-panel {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--glow-primary);
    background: rgba(255, 255, 255, 0.02);
}

.light-mode .c-contact-alt-panel {
    border-color: rgba(74, 141, 255, 0.2);
    background: rgba(74, 141, 255, 0.04);
}

.c-contact-booking-panel {
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(46, 204, 113, 0.35);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08), rgba(74, 141, 255, 0.06));
}

.light-mode .c-contact-booking-panel {
    border-color: rgba(74, 141, 255, 0.3);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(74, 141, 255, 0.1));
}

.c-book-call-btn {
    width: 100%;
    text-align: center;
}

/* =========================================
     CLASS NAMING CONVENTION
     =========================================
     This project uses lightweight prefixed class names:

     - c-* : Component classes
         Use for reusable UI pieces and page-specific blocks.
         Examples: c-card-standard, c-blog-toolbar, c-post-meta-row.

     - u-* : Utility classes
         Use for tiny, single-purpose helpers (spacing/alignment/etc.).
         Examples: u-card-grow, u-mb-1, u-text-left.

     Guidelines:
     1. Prefer c-* classes for most styling.
     2. Use u-* classes sparingly to avoid one-off inline styles.
     3. Do not add inline style="..." in templates.
     4. If a pattern repeats 2+ times, promote it to a c-* class.
*/

/* Reusable layout/text helpers to avoid inline styles */
.c-hero-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.c-section-title-center { text-align: center; margin-top: 3rem; margin-bottom: 1.5rem; }
.c-home-grid-spaced { margin-bottom: 3rem; }
.c-card-link { text-decoration: none; color: inherit; display: block; }
.c-card-link-flex { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.c-card-standard { height: 100%; transition: transform 0.2s ease; display: flex; flex-direction: column; }
.c-card-standard-left { align-items: flex-start; }
.u-card-grow { flex-grow: 1; }
.c-service-icon { margin-bottom: 1rem; }
.c-cta-inline { color: var(--primary-green); font-weight: 700; margin-top: 1rem; font-size: 0.9rem; }
.u-mb-1 { margin-bottom: 1rem; }
.u-mb-2 { margin-bottom: 2rem; }
.u-mt-1 { margin-top: 1rem; }
.u-text-center { text-align: center; }
.u-text-left { text-align: left; }

/* Header */
.c-burger-line { width: 25px; height: 3px; background: var(--text-color); margin: 5px; }

/* Blog page */
.c-blog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.c-blog-toolbar-title { margin: 0; }
.c-blog-search-wrap { text-align: center; margin-bottom: 1.5rem; position: relative; }
.c-blog-search-input { padding: 8px 12px; width: 300px; max-width: 100%; border-radius: 4px; border: 1px solid var(--border-color); }
.c-blog-card-title { color: var(--primary-green); margin-bottom: 0.5rem; }
.c-blog-card-date { font-size: 0.9rem; opacity: 0.8; margin-bottom: 0.5rem; }
.c-card-title-tight { margin: 0; }
.c-latest-title { color: var(--primary-green); margin-bottom: 0.5rem; }

/* Page wrappers */
.c-panel-800 { max-width: 800px; margin: 0 auto; background: var(--card-bg); padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); }
.c-panel-600 { max-width: 600px; margin: 0 auto; background: var(--card-bg); padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); }
.c-article-reading { line-height: 1.8; }

/* About/Contact/Privacy helpers */
.c-page-title-green-center { text-align: center; color: var(--primary-green); margin-bottom: 2rem; }
.c-page-title-green { color: var(--primary-green); margin-bottom: 2rem; }
.c-contact-intro { text-align: center; margin-bottom: 2rem; opacity: 0.9; }
.c-link-primary-strong { color: var(--primary-green); text-decoration: none; font-weight: 700; }
.c-btn-full-submit { width: 100%; font-weight: 700; margin-top: 10px; }
.c-contact-alt-title { margin: 0 0 0.4rem 0; color: var(--primary-green); font-size: 1.15rem; }
.c-contact-alt-copy { margin: 0 0 0.9rem 0; opacity: 0.85; }
.c-privacy-wrap { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.c-privacy-h3 { margin-top: 2rem; }
.c-privacy-updated { margin-top: 3rem; font-style: italic; opacity: 0.7; }

/* Work with me page */
.c-work-title { text-align: center; margin-bottom: 2rem; }
.c-calendly-card-trigger { cursor: pointer; display: block; }
.c-coming-soon-wrap { text-decoration: none; color: inherit; display: block; cursor: default; opacity: 0.85; }
.c-work-cta-section { text-align: center; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--card-bg); }
.c-work-cta-title { color: var(--primary-green); margin-bottom: 0.5rem; }
.c-work-cta-copy { margin-bottom: 1.5rem; }

/* Footer */
.c-footer-brand-link { text-decoration: none; }
.c-footer-brand-title { display: flex; align-items: center; gap: 10px; }
.c-footer-brand-logo { width: 24px; height: 24px; }
.c-footer-tagline { font-size: 0.9rem; opacity: 0.8; margin-top: 0.5rem; }

/* Post layout */
.c-post-meta-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; font-size: 0.9rem; opacity: 0.8; }
.c-post-divider { border: 0; border-top: 1px solid var(--border-color); margin-bottom: 2rem; }
.c-post-share-row { display: flex; gap: 1rem; align-items: center; margin: 3rem 0 2rem 0; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.c-post-share-label { font-weight: 600; }
.c-post-share-actions { display: flex; gap: 0.75rem; }
.c-post-back-wrap { text-align: left; margin-bottom: 2rem; }
.c-post-connect-box { background: var(--card-bg); padding: 2rem; border-radius: 8px; margin: 3rem 0; border-top: 2px solid var(--primary-green); }
.c-post-connect-title { color: var(--primary-green); margin-bottom: 1rem; }
.c-post-connect-copy { margin-bottom: 1.5rem; line-height: 1.6; }

/* 404 */
.c-error-copy { margin-bottom: 2rem; }
.u-btn-inline { display: inline-block; }

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--primary-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.5s ease;
}
.cookie-banner.show {
    transform: translateY(0);
}
.cookie-text {
    flex-grow: 1;
    margin-right: 1.5rem;
    font-size: 0.9rem;
}
.cookie-text a {
    color: var(--primary-green);
    text-decoration: underline;
}
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-text {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* --- Blog search field --- */
#blog-search {
    font-size: 0.95rem;
    transition: border-color 0.3s;
}
#blog-search:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 8px rgba(46,204,113,0.2);
}

/* autocomplete suggestions dropdown */
.suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 100;
    max-height: 180px;
    overflow-y: auto;
}

.suggestions li {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestions li:hover, .suggestions li.active {
    background: rgba(46,204,113,0.1);
}

/* --- Blog Article Styling --- */
/* Fix for the bullet/numbered list overhanging issues */
.article-body ul, .article-body ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

/* Add breathing room between paragraphs in blog posts */
.article-body p {
    margin-bottom: 1.5rem;
}

/* Ensure headings have space above them so they don't crowd the previous paragraph */
.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Specific styling for Lauren's LinkedIn mention */
.linkedin-mention {
    color: var(--primary-green);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.linkedin-mention:hover {
    color: #a3ffac;
    text-decoration: underline;
}

.substack-link {
    color: #ff6719;
    font-weight: bold;
    text-decoration: underline;
}

/* =========================================
   SOCIAL SHARE BUTTONS
   ========================================= */

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: var(--text-color);
    background: rgba(74, 141, 255, 0.1);
    border: 1px solid var(--glow-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.share-btn:hover {
    background: rgba(74, 141, 255, 0.2);
    border-color: rgba(74, 141, 255, 0.4);
    transform: translateY(-2px);
}

.share-twitter:hover {
    background: rgba(29, 155, 240, 0.15);
    border-color: rgba(29, 155, 240, 0.3);
    color: #1da1f2;
}

.share-linkedin:hover {
    background: rgba(0, 119, 181, 0.15);
    border-color: rgba(0, 119, 181, 0.3);
    color: #0077b5;
}

.share-facebook:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.3);
    color: #1877f2;
}

.share-copy:hover {
    background: rgba(46, 204, 113, 0.2);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* =========================================
   NEW JEKYLL ADDITIONS: BADGES & 404 
   ========================================= */

/* --- Work With Me Badges --- */
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.badge { font-size: 0.75rem; font-weight: 700; padding: 6px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; margin-left: 10px; margin-top: 3px; }
.badge-free { background-color: rgba(74, 141, 255, 0.12); color: var(--brand-secondary); border: 1px solid rgba(74, 141, 255, 0.35); }
.badge-paid { background-color: rgba(76, 175, 80, 0.1); color: var(--primary-green); border: 1px solid var(--primary-green); }
.badge-soon { background-color: rgba(158, 158, 158, 0.1); color: #757575; border: 1px solid rgba(158, 158, 158, 0.3); }
.badge-variable { background-color: rgba(245, 158, 11, 0.12); color: var(--accent-warm); border: 1px solid rgba(245, 158, 11, 0.35); }

/* --- Blog Pinned Post --- */
.card-pinned {
    border-top: 3px solid var(--primary-green);
}

.badge-pinned {
    background-color: rgba(46, 204, 113, 0.12);
    color: var(--primary-green);
    border: 1px solid rgba(46, 204, 113, 0.35);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#blog-container .card-pinned:hover .badge-pinned {
    background-color: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.55);
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.12);
}

#blog-container .card-header {
    gap: 0.5rem;
    flex-wrap: wrap;
}

#blog-container .card-header h2 {
    margin-top: 0;
}

#blog-container .badge {
    margin-left: 0;
    margin-top: 0;
}

/* --- 404 Error Styles --- */
.error-container { text-align: center; padding: 4rem 1rem; max-width: 600px; margin: 0 auto; }
.error-code { font-size: 6rem; color: var(--primary-green); margin: 0; line-height: 1; font-weight: bold; }
.error-message { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-color); }