/* =====================================================
   BlogPlatform AI - Modern Light Theme
   ===================================================== */
:root {
    --bg-body: #f5f7fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --bg-surface: #f0f2f5;
    --accent: #e94560;
    --accent-hover: #d63251;
    --accent-glow: rgba(233, 69, 96, 0.2);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    --border-color: #e2e5ea;
    --gradient-1: linear-gradient(135deg, #e94560, #0f3460);
    --gradient-2: linear-gradient(135deg, #533483, #e94560);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
}

html { font-size: 14px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.container, main.container-fluid { flex: 1; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem var(--accent-glow); border-color: var(--accent);
}

/* ===== NAVBAR ===== */
.navbar {
    background: #ffffff !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.25rem; font-weight: 800; letter-spacing: -1px;
    background: var(--gradient-2);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.navbar .nav-link {
    color: var(--text-secondary) !important; font-weight: 500; font-size: 0.8rem;
    padding: 0.4rem 0.75rem !important; border-radius: 8px; transition: all 0.2s;
}
.navbar .nav-link:hover { color: var(--text-primary) !important; background: rgba(233, 69, 96, 0.08); }

.navbar .dropdown-menu {
    background: #ffffff; border: 1px solid var(--border-color);
    border-radius: 12px; padding: 0.5rem; box-shadow: var(--shadow-lg);
}
.navbar .dropdown-item { color: var(--text-secondary); border-radius: 8px; padding: 0.5rem 1rem; }
.navbar .dropdown-item:hover { background: rgba(233, 69, 96, 0.08); color: var(--text-primary); }

.navbar .form-control {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    color: var(--text-primary); border-radius: 20px; padding: 0.4rem 1rem;
}
.navbar .form-control::placeholder { color: var(--text-muted); }
.navbar .btn-outline-light { border-radius: 20px; border-color: var(--border-color); color: var(--text-secondary); }
.navbar .btn-outline-light:hover { background: var(--accent); border-color: var(--accent); color: white; }

/* ===== HERO ===== */
.hero-section {
    padding: 4rem 0 3rem; text-align: center; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 50%, #1a1a2e 100%);
    color: white;
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(83, 52, 131, 0.15) 0%, transparent 50%);
}
.hero-section h1 {
    font-size: 3rem; font-weight: 800;
    background: linear-gradient(135deg, #fff, #e94560);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; position: relative; z-index: 1;
}
.hero-section p { color: rgba(255,255,255,0.7); font-size: 1.2rem; position: relative; z-index: 1; }
.hero-section .form-control {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white;
}
.hero-section .form-control::placeholder { color: rgba(255,255,255,0.5); }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 16px; overflow: hidden; transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.card-header {
    background: var(--bg-surface) !important; border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0 !important; color: var(--text-primary);
}
.card-footer { background: transparent; border-top: 1px solid var(--border-color); }
.post-card { cursor: pointer; }
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.12) !important;
    border-color: rgba(233, 69, 96, 0.3);
}
.post-card .card-title a { color: var(--text-primary) !important; font-weight: 600; }
.post-card .card-text { color: var(--text-secondary) !important; }

/* Placeholder Images */
.post-placeholder {
    height: 220px; display: flex; align-items: center; justify-content: center; overflow: hidden;
    position: relative;
}
.post-placeholder-1 { background: linear-gradient(135deg, #e94560, #533483); }
.post-placeholder-2 { background: linear-gradient(135deg, #0f3460, #e94560); }
.post-placeholder-3 { background: linear-gradient(135deg, #533483, #0f3460); }
.post-placeholder-4 { background: linear-gradient(135deg, #16213e, #e94560); }
.post-placeholder-5 { background: linear-gradient(135deg, #e94560, #16213e); }
.post-placeholder i { color: rgba(255,255,255,0.25); font-size: 4rem; }
.post-placeholder img {
    width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--accent); border-color: var(--accent); border-radius: 10px;
    font-weight: 600; padding: 0.5rem 1.5rem; transition: all 0.3s;
}
.btn-primary:hover {
    background: var(--accent-hover); border-color: var(--accent-hover);
    box-shadow: 0 4px 15px var(--accent-glow); transform: translateY(-1px);
}
.btn-outline-primary { color: var(--accent); border-color: var(--accent); border-radius: 10px; }
.btn-outline-primary:hover { background: var(--accent); border-color: var(--accent); color: white; }
.btn-outline-secondary { color: var(--text-secondary); border-color: var(--border-color); border-radius: 10px; }
.btn-outline-secondary:hover { background: var(--bg-surface); border-color: var(--text-muted); color: var(--text-primary); }
.btn-outline-danger, .btn-outline-success, .btn-outline-warning, .btn-outline-info { border-radius: 10px; }

/* ===== FORMS ===== */
.form-control, .form-select {
    background: #ffffff; border: 1px solid var(--border-color);
    color: var(--text-primary); border-radius: 10px; padding: 0.6rem 1rem;
}
.form-control:focus, .form-select:focus {
    background: #ffffff; color: var(--text-primary);
    border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; }
.form-check-input { background-color: #ffffff; border-color: var(--border-color); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-label { color: var(--text-secondary); }

/* ===== TABLES ===== */
.table { color: var(--text-primary); --bs-table-bg: transparent; }
.table th {
    font-weight: 600; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--text-muted); border-color: var(--border-color);
}
.table td { border-color: var(--border-color); vertical-align: middle; }
.table-hover tbody tr:hover { background-color: rgba(233, 69, 96, 0.04); }
.table-light { --bs-table-bg: var(--bg-surface); --bs-table-color: var(--text-primary); }
.table-warning { --bs-table-bg: rgba(255, 193, 7, 0.1); --bs-table-color: var(--text-primary); }

/* ===== ALERTS ===== */
.alert { border-radius: 12px; border: none; }
.alert-success { background: rgba(25, 135, 84, 0.1); border-left: 4px solid #198754; color: #0a5c2e; }
.alert-danger { background: rgba(233, 69, 96, 0.1); border-left: 4px solid var(--accent); color: #a42040; }
.alert-info { background: rgba(13, 202, 240, 0.08); border-left: 4px solid #0dcaf0; color: #055160; }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: transparent; }
.breadcrumb-item a { color: var(--accent); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 50%, #1a1a2e 100%);
    color: white;
    margin-top: auto;
    padding-top: 3rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
    padding-right: 2rem;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-logo i {
    color: var(--accent);
}
.footer-logo:hover {
    color: var(--accent);
}
.footer-tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 1rem 0 1.5rem;
    line-height: 1.6;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}
.footer-links h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links ul li {
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.footer-links ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links ul li a:hover {
    color: var(--accent);
}
.footer-links ul li i {
    width: 16px;
    color: var(--accent);
}
.footer-tech {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-tech span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.footer-tech span i {
    color: var(--accent);
    width: 16px;
}
.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
}
@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .footer-links ul li a,
    .footer-tech span {
        justify-content: center;
    }
}

/* ===== CHAT ===== */
#chatMessages { background: var(--bg-surface) !important; border: 1px solid var(--border-color) !important; border-radius: 16px !important; }

/* ===== STAT CARDS ===== */
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
    padding: 1.5rem; overflow: hidden; transition: all 0.3s; box-shadow: var(--shadow-sm);
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.stat-card h2 { font-weight: 800; font-size: 2rem; }

/* ===== TAG INPUT ===== */
.tag-container {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 8px;
    background: #ffffff; border: 1px solid var(--border-color);
    border-radius: 10px; min-height: 44px; cursor: text;
}
.tag-container:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.tag-container .tag {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
    background: var(--accent); color: white; border-radius: 6px;
    font-size: 0.85rem; font-weight: 500; animation: tagIn 0.2s ease;
}
@keyframes tagIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tag-container .tag .tag-remove { cursor: pointer; font-size: 1rem; opacity: 0.7; }
.tag-container .tag .tag-remove:hover { opacity: 1; }
.tag-container input {
    border: none; outline: none; background: transparent;
    color: var(--text-primary); font-size: 0.9rem; flex: 1; min-width: 120px; padding: 4px;
}
.tag-container input::placeholder { color: var(--text-muted); }

.tag-suggestions {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #ffffff; border: 1px solid var(--border-color);
    border-radius: 10px; box-shadow: var(--shadow-lg);
    z-index: 100; max-height: 200px; overflow-y: auto; display: none;
}
.tag-suggestions.active { display: block; }
.tag-suggestions .suggestion-item {
    padding: 8px 14px; cursor: pointer; color: var(--text-secondary); font-size: 0.9rem;
}
.tag-suggestions .suggestion-item:hover { background: rgba(233, 69, 96, 0.06); color: var(--text-primary); }

/* ===== IMAGE UPLOAD ===== */
.image-upload-area {
    border: 2px dashed var(--border-color); border-radius: 12px; padding: 2rem;
    text-align: center; cursor: pointer; transition: all 0.3s;
    background: var(--bg-surface);
}
.image-upload-area:hover { border-color: var(--accent); background: rgba(233, 69, 96, 0.03); }
.image-upload-area.has-image { border-style: solid; padding: 0; overflow: hidden; }
.image-upload-area img { width: 100%; height: 250px; object-fit: cover; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ===== MISC ===== */
.text-muted { color: var(--text-muted) !important; }
.bg-light { background-color: var(--bg-surface) !important; }
.border { border-color: var(--border-color) !important; }
hr { border-color: var(--border-color); opacity: 0.5; }
.list-group-item { background: transparent; border-color: var(--border-color); color: var(--text-primary); }
.badge { border-radius: 6px; font-weight: 500; }

/* ===== FEATURED HERO CARD ===== */
.featured-hero-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
}
.featured-hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(233, 69, 96, 0.15);
}
.featured-image-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}
.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-hero-card:hover .featured-image-wrapper img {
    transform: scale(1.05);
}
.featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e94560 0%, #533483 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-placeholder i {
    font-size: 8rem;
    color: rgba(255,255,255,0.2);
}
.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.7) 50%, transparent 100%);
}
.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    color: white;
}
.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.featured-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.featured-summary {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}
.author-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
}
.meta-stats {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}
.meta-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title i {
    color: var(--accent);
}
.posts-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 6px 14px;
    border-radius: 20px;
}

/* ===== BLOG LIST ===== */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.blog-list-item {
    display: flex;
    align-items: stretch;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.blog-list-item:hover {
    transform: translateX(8px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.1);
}
.blog-list-image {
    flex-shrink: 0;
    width: 200px;
    height: 160px;
    overflow: hidden;
}
.blog-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-list-item:hover .blog-list-image img {
    transform: scale(1.08);
}
.blog-list-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-list-placeholder i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.3);
}
.blog-list-placeholder.placeholder-1 { background: linear-gradient(135deg, #e94560, #533483); }
.blog-list-placeholder.placeholder-2 { background: linear-gradient(135deg, #0f3460, #e94560); }
.blog-list-placeholder.placeholder-3 { background: linear-gradient(135deg, #533483, #0f3460); }
.blog-list-placeholder.placeholder-4 { background: linear-gradient(135deg, #16213e, #e94560); }
.blog-list-placeholder.placeholder-5 { background: linear-gradient(135deg, #e94560, #16213e); }

.blog-list-content {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.blog-list-header {
    flex: 1;
}
.blog-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.blog-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent);
    border-radius: 12px;
    font-weight: 600;
}
.blog-list-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
    transition: color 0.2s;
}
.blog-list-item:hover .blog-list-title {
    color: var(--accent);
}
.blog-list-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.blog-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.blog-author-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.blog-list-arrow {
    flex-shrink: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}
.blog-list-item:hover .blog-list-arrow {
    background: var(--accent);
    color: white;
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
    margin-top: 3rem;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
}
.pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}
.pagination-link:hover {
    background: var(--bg-surface);
    border-color: var(--accent);
    color: var(--accent);
}
.pagination-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.pagination-prev,
.pagination-next {
    gap: 6px;
}
.pagination-ellipsis {
    padding: 0 8px;
    color: var(--text-muted);
}

/* ===== BLOG GRID (Large Cards) ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.blog-card-large {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card-large:hover {
    transform: translateY(-8px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.12);
}
.blog-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card-large:hover .blog-card-image img {
    transform: scale(1.08);
}
.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-placeholder i {
    font-size: 4rem;
    color: rgba(255,255,255,0.25);
}
.blog-card-placeholder.placeholder-1 { background: linear-gradient(135deg, #e94560, #533483); }
.blog-card-placeholder.placeholder-2 { background: linear-gradient(135deg, #0f3460, #e94560); }
.blog-card-placeholder.placeholder-3 { background: linear-gradient(135deg, #533483, #0f3460); }
.blog-card-placeholder.placeholder-4 { background: linear-gradient(135deg, #16213e, #e94560); }
.blog-card-placeholder.placeholder-5 { background: linear-gradient(135deg, #e94560, #16213e); }

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0 0.75rem;
    line-height: 1.3;
    transition: color 0.2s;
}
.blog-card-large:hover .blog-card-title {
    color: var(--accent);
}
.blog-card-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.blog-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.blog-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== POPULAR POSTS SECTION ===== */
.popular-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}
.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.popular-grid > a {
    display: block;
}
.popular-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.popular-card:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 12px 30px rgba(233, 69, 96, 0.1);
}
.popular-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}
.popular-image {
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}
.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.popular-card:hover .popular-image img {
    transform: scale(1.05);
}
.popular-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popular-placeholder i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.3);
}
.popular-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 110px;
}
.popular-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 auto;
    padding-bottom: 0.5rem;
    line-height: 1.4;
    height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popular-card:hover .popular-title {
    color: var(--accent);
}
.popular-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}
.popular-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popular-meta span:first-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popular-views {
    color: var(--accent);
    font-weight: 600;
}

/* ===== ABOUT US SECTION ===== */
.about-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}
.about-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 50%, #1a1a2e 100%);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}
.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
}
.about-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: rgba(233, 69, 96, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.about-icon i {
    font-size: 3.5rem;
    color: var(--accent);
}
.about-content {
    position: relative;
    z-index: 1;
    color: white;
}
.about-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
}
.about-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}
.about-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}
.about-feature i {
    color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .about-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    .about-features {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .featured-image-wrapper {
        height: 280px;
    }
    .featured-title {
        font-size: 1.5rem;
    }
    .featured-content {
        padding: 1.5rem;
    }
    .meta-stats {
        display: none;
    }
    .popular-grid {
        grid-template-columns: 1fr;
    }
    .blog-card-image {
        height: 200px;
    }
    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.8rem;
    }
    .about-icon {
        width: 80px;
        height: 80px;
    }
    .about-icon i {
        font-size: 2.5rem;
    }
    .about-features {
        flex-direction: column;
        align-items: center;
    }
}
