/* Reset / base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0b0c10;
    color: #f5f5f5;
    line-height: 1.6;
}

/* Containers */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.site-header {
    background: #10111a;
    border-bottom: 1px solid #202331;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo span {
    color: #4fd1c5;
}

.tagline {
    font-size: 0.8rem;
    color: #a0aec0;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    justify-content: flex-end;
}

.main-nav a {
    text-decoration: none;
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.main-nav a:hover {
    background: #2d3748;
    color: #f7fafc;
}

.btn-nav {
    background: #4fd1c5;
    color: #0b0c10 !important;
}

/* Ticker */
.ticker-wrap {
    background: #111827;
    border-bottom: 1px solid #202331;
}

.ticker-inner {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.ticker {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.ticker span {
    display: inline-block;
    animation: ticker 18s linear infinite;
    color: #e5e7eb;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 2rem;
    padding: 1.5rem 0 2.5rem;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

/* Sections */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.4rem;
}

.section-subtitle {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Reader Panel */
.reader-panel {
    background: #020617;
    border-radius: 1rem;
    border: 1px solid #1f2937;
    padding: 1.2rem 1.1rem 1.4rem;
    margin: 1.5rem 0;
    position: relative;
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.reader-close {
    position: absolute;
    top: 0.7rem;
    right: 0.8rem;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 1.4rem;
    cursor: pointer;
}

.reader-close:hover {
    color: #e5e7eb;
}

.reader-panel h2 {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
}

.reader-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.7rem;
}

.reader-panel img {
    width: 100%;
    border-radius: 0.7rem;
    margin-bottom: 0.8rem;
    object-fit: cover;
}

.reader-body p {
    font-size: 0.92rem;
    color: #e5e7eb;
    margin-bottom: 0.7rem;
}

/* Posts */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.featured-grid .side-featured {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main-featured img,
.side-featured img {
    width: 100%;
    border-radius: 0.75rem;
    object-fit: cover;
}

.main-featured {
    position: relative;
    overflow: hidden;
}

.main-featured .post-content {
    margin-top: 0.7rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.post {
    background: #111827;
    border-radius: 0.75rem;
    padding: 0.7rem;
    border: 1px solid #1f2937;
}

.post.list-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.8rem;
}

.post.list-item img {
    width: 100%;
    height: 100%;
    border-radius: 0.6rem;
    object-fit: cover;
}

@media (max-width: 640px) {
    .post.list-item {
        grid-template-columns: 1fr;
    }
}

.post-content h3,
.post-content h4 {
    margin: 0.3rem 0;
    font-size: 1rem;
}

.post-content p {
    font-size: 0.9rem;
    color: #d1d5db;
}

.post-content a {
    color: #f9fafb;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-meta {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Badges */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.badge-category {
    background: #4fd1c5;
    color: #0b0c10;
}

/* Sidebar */
.sidebar .widget {
    background: #111827;
    border-radius: 0.75rem;
    padding: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #1f2937;
}

.sidebar h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li + li {
    margin-top: 0.4rem;
}

.sidebar a {
    color: #e5e7eb;
    font-size: 0.9rem;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

.sidebar p {
    font-size: 0.85rem;
    color: #d1d5db;
}

/* Form */
.form-container {
    background: #111827;
    border-radius: 0.9rem;
    padding: 1.5rem;
    margin: 1.5rem 0 2.5rem;
    border: 1px solid #1f2937;
}

.form-container h2 {
    margin-bottom: 0.5rem;
}

.form-container p {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.55rem;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.form-group small {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Buttons */
.submit-btn {
    border: none;
    outline: none;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background: #4fd1c5;
    color: #0b0c10;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.1s, box-shadow 0.1s;
}

.submit-btn:hover {
    transform: tra
