:root {
    --bg-dark: #0f172a; /* Slate 900 - More depth */
    --bg-card: #1e293b; /* Slate 800 - Solid background for better readability */
    --bg-glass: rgba(15, 23, 42, 0.9);
    --border-glass: rgba(255, 255, 255, 0.1);
    --accent-primary: #10b981;
    --accent-secondary: #3b82f6;
    --accent-glow: rgba(16, 185, 129, 0.2);
    --text-main: #ffffff; /* Pure white for maximum contrast */
    --text-muted: #cbd5e1; /* Slate 300 - Much lighter for better reading */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, var(--accent-glow), transparent 60%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30 L30 0 M30 30 L60 30 M30 30 L30 60 M30 30 L0 30' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: #fff;
}

.hero-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 100px;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.search-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 1.5rem;
    font-size: 1rem;
}

.search-form input:focus {
    outline: none;
}

.search-form button {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    transform: scale(1.05);
    background: var(--accent-primary);
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
    text-align: left;
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.section-title .count {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 1rem;
    vertical-align: middle;
}

/* Posts Grid */
.posts-section {
    padding: 4rem 0 8rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    background: #334155; /* Slate 700 - Lighter on hover */
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.5);
}

.post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    background: #111;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--accent-primary);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.categories {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-primary);
    background: rgba(0, 242, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(0, 242, 255, 0.2);
    transition: var(--transition);
}

.category:hover {
    background: var(--accent-primary);
    color: #000;
}

/* Pagination */
.pagination {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    align-items: center;
}

.pagination a, .pagination span {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: #fff; /* Brighter for better visibility */
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination .current {
    background: var(--accent-primary);
    color: #000;
    border: none;
}

/* Post Content Styling */

.post-content p, .post-content span, .post-content li, .post-content div, .post-content font, .post-content i, .post-content em, .post-content u {
    color: var(--text-muted) !important; 
    background: transparent !important; /* Ensure no white backgrounds from pasted content */
    font-weight: 450;
    line-height: 1.8;
}

.post-content ul, .post-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
    color: var(--text-muted) !important;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    color: #fff !important; /* Force white for headings */
    margin: 2.5rem 0 1.2rem;
}

.post-content strong, .post-content b, .post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    color: #fff !important;
    font-weight: 700 !important;
}

.post-content a {
    color: var(--accent-primary) !important;
    text-decoration: underline;
}


.post-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.03);
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 16px 16px 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
}

.placeholder-image {
    height: 220px;
    background: linear-gradient(135deg, #111, #222);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.placeholder-image::after {
    content: 'BIZFUTUR';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    font-size: 1.5rem;
    opacity: 0.2;
    letter-spacing: 5px;
    color: #fff;
}

/* Footer */
.footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1, .hero p, .search-form, .post-card {
    animation: fadeIn 1s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner { height: 70px; }
    .hero { padding: 8rem 0 4rem; }
    .hero h1 { font-size: 3rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .container { padding: 0 1.5rem; }
}
