/* ===== CSS Variables ===== */
:root {
    /* Silo Colors */
    --silo-home: #10b981;
    --silo-tech: #3b82f6;
    --silo-financial: #f59e0b;
    --silo-time: #8b5cf6;
    
    /* Neutrals */
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-background: #ffffff;
    --color-surface: #f8fafc;
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===== Header ===== */
.site-header {
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: between;
    align-items: center;
}

.site-branding {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-primary { color: var(--color-text); }
.logo-accent { color: var(--silo-tech); }

/* Region Switcher */
.region-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--color-surface);
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.region-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.region-btn.active {
    background: var(--color-primary);
    color: black;
    border-color: var(--color-primary);
}

.region-btn:hover:not(.active) {
    background: var(--color-surface);
}

/* Regional Submenu */
.silo-nav-item {
    position: relative;
}

.regional-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    padding: 0.5rem;
    display: none;
    z-index: 1000;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.silo-nav-item:hover .regional-submenu {
    display: block;
}

.regional-submenu a {
    display: block;
    padding: 0.5rem;
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.regional-submenu a:hover {
    background: var(--color-surface);
}

/* Post Context Badges */
.post-context {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.silo-badge, .region-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.silo-badge {
    background: var(--color-surface);
    color: var(--color-text);
}

.region-badge {
    background: #e0f2fe;
    color: #0369a1;
}

/* ===== Silo Navigation ===== */

/* Silo-specific colors */
.silo-home a { 
    border-color: var(--silo-home);
}
.silo-tech a { 
    border-color: var(--silo-tech);
}
.silo-financial a { 
    border-color: var(--silo-financial);
}
.silo-time a { 
    border-color: var(--silo-time);
}

.silo-home a:hover { background: rgba(16, 185, 129, 0.05); }
.silo-tech a:hover { background: rgba(59, 130, 246, 0.05); }
.silo-financial a:hover { background: rgba(245, 158, 11, 0.05); }
.silo-time a:hover { background: rgba(139, 92, 246, 0.05); }
/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-background) 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===== Silo Grid ===== */
.silos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 3rem 0;
}

.silo-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.silo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.silo-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.silo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    flex-grow: 0;
}

.silo-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.silo-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative; /* Add this */
}

.silo-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: all 0.2s;
    margin-top: auto; /* This pushes button to bottom */
    opacity: 1; /* Ensure it's always visible */
    visibility: visible; /* Ensure it's always visible */
    margin: 0 0.5rem 0.5rem 0; /* Add this line */
}

/* Remove any hover effects that hide the button */
.silo-card:hover .silo-link {
    opacity: 1;
    visibility: visible;
}

.silo-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Silo card colors */
.silo-home { 
    background: rgba(16, 185, 129, 0.05); 
    border-color: var(--silo-home); 
}
.silo-tech { 
    background: rgba(59, 130, 246, 0.05); 
    border-color: var(--silo-tech); 
}
.silo-financial { 
    background: rgba(245, 158, 11, 0.05); 
    border-color: var(--silo-financial); 
}
.silo-time { 
    background: rgba(139, 92, 246, 0.05); 
    border-color: var(--silo-time); 
}

.silo-home .silo-link { background: var(--silo-home); }
.silo-tech .silo-link { background: var(--silo-tech); }
.silo-financial .silo-link { background: var(--silo-financial); }
.silo-time .silo-link { background: var(--silo-time); }

/* ===== Posts Grid ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: 2rem 0;
}

.post-card {
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s;
}

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

.post-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: var(--space-lg);
}

.post-silo-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-card h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--silo-tech);
}

.post-excerpt {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--color-text-light);
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
    .silos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .silos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .silo-card {
        padding: 1.5rem 1rem;
    }
    
    .silo-icon {
        font-size: 2.5rem;
    }
    
    .silo-card h3 {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}



/* ===== Category Template ===== */
.category-header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Single Post Template ===== */
.single-post {
    margin: 0 auto;
    padding: 2rem 0;
}

.post-header {
    margin-bottom: 2rem;
}

.post-silo-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border-left: 4px solid;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-featured-image {
    margin: 2rem 0;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.post-content {
    line-height: 1.7;
    font-size: 1.125rem;
}

.post-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
}

.post-footer {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.post-categories,
.post-tags {
    margin-bottom: 1rem;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--color-surface);
    border-radius: 0.25rem;
    font-size: 0.8rem;
    margin: 0.25rem;
    text-decoration: none;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.related-posts {
    margin: 3rem 0;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.related-post-card {
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s;
}

.related-post-card:hover {
    transform: translateY(-2px);
}

.related-post-image {
    height: 150px;
    background: var(--color-surface);
}

.related-post-content {
    padding: 1rem;
}

.related-silo-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    color: white;
    margin-bottom: 0.5rem;
}

.related-post-content h4 {
    font-size: 1rem;
    margin: 0;
}

.related-post-content h4 a {
    color: var(--color-text);
    text-decoration: none;
}

.related-post-content h4 a:hover {
    color: var(--silo-tech);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-branding .footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--color-text-light);
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--color-primary);
}

.footer-silos h4,
.footer-pages h4,
.footer-newsletter h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-silo-links,
.footer-pages ul {
    list-style: none;
}

.footer-silo-links li,
.footer-pages ul li {
    margin-bottom: 0.5rem;
}

.footer-silo-links a {
    text-decoration: none;
    transition: color 0.2s;
}

.silo-home { color: var(--silo-home); }
.silo-tech { color: var(--silo-tech); }
.silo-financial { color: var(--silo-financial); }
.silo-time { color: var(--silo-time); }

.footer-silo-links a:hover {
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    font-family: inherit;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ===== Pagination ===== */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-numbers.current {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--color-surface);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-previous,
    .nav-next {
        text-align: left;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Fix for list markers */
.wp-block-list {
    margin-left: 0;
    padding-left: 20px;
    margin-bottom: 20px;
}

.wp-block-list li {
    margin-bottom: 10px;
    padding-left: 10px;
    position: relative;
}

/* Ensure list markers are contained */
.wp-block-list li::marker {
    color: #4a6491;
    font-weight: bold;
}

strong {
    color: #2c3e50;
}
.conclusion {
    background-color: #f0f7ff;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #4a6491;
    margin-top: 30px;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .post-header, .post-content {
        padding: 20px;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
}