:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --accent-color: #38bdf8;
    --highlight: #818cf8;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #334155;
}

/* --- HEADER & LOGO RE-FIX --- */
nav { 
    display: flex; 
    flex-direction: column; /* Force clean stack on mobile to prevent overlap */
    align-items: center; 
    gap: 1rem;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.logo svg {
    display: block;
    max-width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

.logo a:hover svg {
    transform: scale(1.02); /* Subtle "pop" on hover */
}

nav ul { 
    display: flex; 
    list-style: none; 
    padding: 0;
    margin: 0;
    gap: 15px;
    flex-wrap: wrap; 
    justify-content: center;
}

nav ul li a { 
    text-decoration: none; 
    color: #94a3b8; 
    font-size: 0.8rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul li a:hover { color: var(--accent-color); }

/* Desktop Switch: Restore side-by-side layout */
@media (min-width: 768px) {
    nav { 
        flex-direction: row; 
        justify-content: space-between; 
        gap: 0;
    }
    .logo { font-size: 1.8rem; }
    nav ul { gap: 25px; }
    nav ul li a { font-size: 0.9rem; }
}

.hero {
    text-align: center;
    padding: 100px 5%;
}

.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.highlight { color: var(--highlight); }

button {
    background: var(--accent-color);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover { opacity: 0.8; transform: translateY(-2px); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 50px 5%;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #334155;
}

footer { 
    text-align: center; 
    padding: 60px 5%; 
    font-size: 0.8rem; 
    color: #94a3b8; 
    border-top: 1px solid #334155;
    margin-top: 100px;
}
.footer-nav { margin-top: 15px; }
.footer-nav a { margin: 0 10px; color: var(--accent-color); text-decoration: none; }

/* UI Enhancements */
.card-link { text-decoration: none; color: inherit; display: block; }
.read-more { color: var(--accent-color); font-size: 0.8rem; font-weight: bold; margin-top: 10px; display: block; }

.card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    transform: translateY(-5px);
}

.footer-nav { margin-top: 10px; }
.footer-nav a { color: #94a3b8; text-decoration: none; font-size: 0.75rem; margin: 0 10px; }
.footer-nav a:hover { color: var(--accent-color); }

/* Article & Author Box Styling */
.pro-content { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.article-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--accent-color); }
.author-meta { font-size: 0.9rem; color: #94a3b8; margin-bottom: 40px; border-bottom: 1px solid #334155; padding-bottom: 20px; }
.author-meta a { color: var(--highlight); text-decoration: none; }

.content-body h2 { color: var(--highlight); margin-top: 40px; }

.author-box {
    margin-top: 60px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}
.author-info h3 { margin-top: 0; color: var(--accent-color); }
.author-info p { margin-bottom: 0; font-size: 0.95rem; }
.author-info a { color: var(--highlight); font-weight: bold; }