/* Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --text-dark: #1a1a2e;
    --text-body: #4b5563;
    --text-light: #9ca3af;
    
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-light);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-label {
    background: #991b1b;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    padding: 8px 16px;
}

.ticker-items {
    display: flex;
    gap: 32px;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-items a {
    color: white;
    white-space: nowrap;
    font-size: 14px;
}

.ticker-items a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

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

.logo a {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.logo .tagline {
    font-size: 13px;
    color: var(--text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-lighter);
}

.admin-link {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Navigation */
.main-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-menu li a {
    display: block;
    padding: 16px 20px;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-menu li a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
}

.search-form {
    position: relative;
}

.search-form input {
    width: 200px;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-light);
    transition: var(--transition);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    width: 280px;
}

.search-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* Hero Section */
.hero-section {
    margin-bottom: 40px;
}

.featured-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: white;
}

.slide-content .category-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.slide-content h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    margin-bottom: 16px;
    max-width: 800px;
}

.slide-content h2 a {
    color: white;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-prev, .slider-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
    background: var(--primary);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Main Section */
.main-section {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.main-content {
    min-width: 0;
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.post-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-image .category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.post-image .category-badge a {
    color: white;
}

.breaking-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.post-content {
    padding: 24px;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-content h3 a {
    color: var(--text-dark);
}

.post-content h3 a:hover {
    color: var(--primary);
}

.post-content p {
    font-size: 15px;
    color: var(--text-body);
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar */
.sidebar {
    min-width: 0;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--primary);
}

/* Trending Widget */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending-item {
    display: flex;
    gap: 16px;
}

.trending-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    min-width: 32px;
}

.trending-content {
    flex: 1;
}

.trending-content .category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.trending-content h4 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
}

.trending-content h4 a {
    color: var(--text-dark);
}

.trending-content h4 a:hover {
    color: var(--primary);
}

.trending-content .views {
    font-size: 12px;
    color: var(--text-light);
}

/* Category Widget */
.category-list li {
    border-bottom: 1px solid var(--border-light);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--text-body);
}

.category-list a:hover {
    color: var(--primary);
}

.cat-count {
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 13px;
}

/* Newsletter Widget */
.newsletter-form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form-sidebar input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.btn-subscribe {
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Social Widget */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: white;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateX(4px);
    color: white;
}

.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.youtube { background: #ff0000; }

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-body);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--bg-lighter);
    color: var(--text-dark);
}

.pagination a.active {
    background: var(--primary);
    color: white;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: #d1d5db;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    color: white;
    margin-bottom: 8px;
}

.footer-logo .tagline {
    color: #9ca3af;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-widget h3 {
    font-size: 16px;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #9ca3af;
}

.footer-links a:hover {
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: #9ca3af;
}

.newsletter-form button {
    padding: 12px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #9ca3af;
}

/* Single Post */
.post-hero {
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
}

.post-hero-content {
    position: relative;
    padding: 60px 0;
    color: white;
}

.post-hero-content .category-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary);
    margin-bottom: 16px;
}

.post-hero-content h1 {
    font-family: var(--font-serif);
    font-size: 42px;
    max-width: 900px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.author-avatar, .author-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-name {
    font-weight: 500;
}

/* Single Post Content */
.single-post {
    max-width: 800px;
}

.post-body {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: -60px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.post-excerpt {
    font-size: 20px;
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.post-video {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-video iframe, .post-video video {
    width: 100%;
    aspect-ratio: 16/9;
}

.post-content {
    font-size: 17px;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2, .post-content h3, .post-content h4 {
    color: var(--text-dark);
    margin: 32px 0 16px;
}

.post-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tags-label {
    font-weight: 500;
    color: var(--text-dark);
}

.tag {
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-body);
}

.tag:hover {
    background: var(--primary);
    color: white;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 0;
}

.share-label {
    font-weight: 500;
    color: var(--text-dark);
    align-self: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: white;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: var(--bg-lighter); color: var(--text-dark); }

/* Comments */
.comments-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 2px solid var(--border);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.comment-form h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.comment-form .form-group {
    margin-bottom: 16px;
}

.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-item {
    display: flex;
    gap: 16px;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-date {
    font-size: 13px;
    color: var(--text-light);
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-post {
    display: flex;
    gap: 12px;
}

.related-post a:first-child {
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.related-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    flex: 1;
}

.related-content .category {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
}

.related-content h4 {
    font-size: 14px;
    line-height: 1.4;
    margin: 4px 0;
}

.related-content h4 a {
    color: var(--text-dark);
}

.related-content .date {
    font-size: 12px;
    color: var(--text-light);
}

/* Category Hero */
.category-hero {
    padding: 80px 0;
    text-align: center;
    color: white;
}

.category-hero h1 {
    font-family: var(--font-serif);
    font-size: 48px;
    margin-bottom: 12px;
}

.category-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Search */
.search-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 60px 0;
    text-align: center;
    color: white;
}

.search-hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

.search-hero strong {
    font-weight: 600;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-list-item {
    display: flex;
    gap: 24px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-list-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.post-list-item .post-image {
    width: 280px;
    aspect-ratio: auto;
    height: 200px;
}

.post-list-item .post-content {
    flex: 1;
    padding: 24px;
}

.post-list-item h3 {
    font-size: 22px;
}

/* Error Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-size: 150px;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
}

.error-content h1 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-home, .btn-search {
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-home {
    background: var(--primary);
    color: white;
}

.btn-search {
    background: var(--bg-lighter);
    color: var(--text-dark);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
}

.no-posts i {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 16px;
}

.no-posts h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.no-posts p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-nav .container {
        flex-direction: column;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .search-form {
        width: 100%;
        padding: 12px 0;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .featured-slider {
        height: 400px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .post-hero-content h1 {
        font-size: 28px;
    }
    
    .post-body {
        padding: 24px;
        margin-top: -40px;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .post-list-item {
        flex-direction: column;
    }
    
    .post-list-item .post-image {
        width: 100%;
        height: 200px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}
