/* Modern UI Stylesheet for Arambagh24Hours News Website */
/* Updated with contemporary design elements */

:root {
    /* Modern Red, White, Black Color Palette */
    --primary: #dc2626; /* Red */
    --primary-dark: #b91c1c; /* Darker Red */
    --secondary: #000000; /* Black */
    --accent: #ffffff; /* White */
    --light: #ffffff; /* White */
    --dark: #000000; /* Black */
    --gray: #64748b; /* Gray */
    --success: #10b981; /* Green */
    --warning: #f59e0b; /* Amber */
    --danger: #ef4444; /* Red */
    
    /* Modern Typography */
    --font-main: 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Poppins', 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing & Sizing */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--accent); /* White background */
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: #334155;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Dark Mode Support */
[data-theme="dark"] {
    --light: #0f172a;
    --dark: #f8fafc;
    --gray: #cbd5e1;
    background-color: #0f172a;
    color: #f8fafc;
}

[data-theme="dark"] .card,
[data-theme="dark"] .widget,
[data-theme="dark"] .post-header,
[data-theme="dark"] .post-content,
[data-theme="dark"] .video-section {
    background-color: #1e293b;
    color: #f8fafc;
}

[data-theme="dark"] .card-meta,
[data-theme="dark"] .video-meta {
    border-top-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .categories-list a:hover,
[data-theme="dark"] .recent-post-content h4 a:hover {
    background-color: #334155;
}

[data-theme="dark"] .form-control {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .table th {
    background-color: #1e293b;
}

[data-theme="dark"] .table tbody tr:hover {
    background-color: #1e293b;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: #cbd5e1;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.3);
}

.btn-accent:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(14, 165, 233, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--box-shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
}

.fab:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Header & Navigation */
.header {
    background-color: var(--accent); /* White background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

/* Mobile Logo Optimization */
@media (max-width: 768px) {
    .logo-img {
        height: 35px;
    }
}

/* Enhanced Animations */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.float-in {
    animation: floatIn 0.6s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    color: var(--accent);
}

.nav-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    display: none;
    transition: transform 0.3s ease;
}

.nav-toggle:hover {
    transform: rotate(90deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: #e2e8f0;
    transform: rotate(15deg);
}

/* Mobile Menu */
.nav-menu-mobile {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.2s ease;
    z-index: 1001;
    padding: 20px;
}

.nav-menu-mobile.active {
    right: 0;
}

.nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    float: right;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.nav-overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 100px 0;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Card Components */
.card {
    background: var(--accent); /* White background */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    position: relative;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img {
    transform: scale(1.08);
}

.card-content {
    padding: 30px;
}

.card-badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-title a {
    color: var(--dark);
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 24px;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Featured Post */
.featured-post {
    grid-column: span 2;
    position: relative;
    overflow: hidden;
}

.featured-post .card-img {
    height: 350px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
}

.view-all:hover {
    background-color: rgba(220, 38, 38, 0.1);
    transform: translateX(3px);
    color: var(--primary-dark);
}

/* Video Section */
.video-section {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.video-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.video-content {
    padding: 20px;
}

.video-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.8rem;
}

/* Newsletter */
.newsletter {
    background: var(--secondary); /* Black background */
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 50px 30px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter h2 {
    color: white;
    margin-bottom: 15px;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 25px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
    background-color: var(--dark);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}

/* Widgets */
.widget {
    background: var(--accent);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: var(--box-shadow);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 15px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

.categories-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.categories-list a:hover {
    background-color: #f8fafc;
    color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.categories-list a:hover::before {
    transform: scaleY(1);
}

.badge {
    background-color: #e2e8f0;
    color: var(--gray);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recent-posts-list {
    list-style: none;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-item:hover {
    transform: translateX(8px);
}

.recent-post-img {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--box-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recent-post-item:hover .recent-post-img {
    transform: scale(1.08);
    box-shadow: var(--box-shadow-lg);
}

.recent-post-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 600;
}

.recent-post-content h4 a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recent-post-content h4 a:hover {
    color: var(--primary);
}

.recent-post-date {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Footer */
.footer {
    background-color: var(--secondary); /* Black background */
    color: white;
    padding: 60px 0 30px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    display: inline-block;
    letter-spacing: -0.5px;
}

.logo-img-footer {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-about p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #cbd5e1;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Post Detail Page */
.post-header {
    background: var(--accent); /* White background */
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.post-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    opacity: 0.95;
}

.post-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--box-shadow-lg);
}

.post-image:hover {
    transform: scale(1.02);
}

.post-content {
    background: var(--accent); /* White background */
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: var(--box-shadow-lg);
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.post-content p {
    font-size: 1.15rem;
    line-height: 1.85;
    margin-bottom: 25px;
    color: #334155;
}

.post-content h2 {
    margin-top: 35px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    color: var(--dark);
    font-weight: 700;
}

.post-content h3 {
    margin-top: 30px;
    color: var(--dark);
    font-weight: 600;
}

.post-content ul,
.post-content ol {
    margin-bottom: 30px;
    padding-left: 35px;
}

.post-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    margin: 30px 0;
    background-color: #f8fafc;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: #475569;
    box-shadow: var(--box-shadow);
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: 10px;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 50px 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-sm);
    background-color: white;
    color: var(--dark);
    font-weight: 600;
    box-shadow: var(--box-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.page-link:hover::before {
    left: 100%;
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tooltip */
.tooltip {
    position: absolute;
    background-color: var(--dark);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 1000;
    white-space: nowrap;
    animation: fadeIn 0.3s ease;
    box-shadow: var(--box-shadow);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-form {
    display: flex;
    gap: 15px;
}

.search-input {
    flex: 1;
    padding: 18px 22px;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.3), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-search:hover {
    background-color: #f1f5f9;
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .featured-post { grid-column: span 2; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.2rem; }
    .post-header { padding: 40px 30px; }
    .post-content { padding: 40px 30px; }
    .post-title { font-size: 2.3rem; }
    .post-image { height: 400px; }
    
    /* Adjust back to top button position */
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .featured-post {
        grid-column: span 1;
    }
    
    .hero {
        padding: 70px 0;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .post-header {
        padding: 30px 20px;
    }
    
    .post-title {
        font-size: 2.1rem;
    }
    
    .post-image {
        height: 280px;
    }
    
    .post-content {
        padding: 30px 20px;
    }
    
    .recent-post-img {
        width: 70px;
        height: 70px;
    }
    
    /* Adjust fab button position */
    .fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Adjust back to top button position */
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    
    .card-content {
        padding: 25px;
    }
    
    .card-img {
        height: 160px;
    }
    
    .featured-post .card-img {
        height: 220px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-image {
        height: 220px;
    }
    
    .newsletter {
        padding: 40px 20px;
    }
    
    .newsletter h2 {
        font-size: 1.7rem;
    }
    
    .newsletter p {
        font-size: 1rem;
    }
    
    .footer-content {
        gap: 30px;
        grid-template-columns: 1fr;
    }
    
    .footer-links h3 {
        margin-top: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Enhanced Animation Classes */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.pulse {
    animation: pulse 1.5s infinite;
}

.fade-out {
    animation: fadeOut 0.4s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.pb-20 { padding-bottom: 20px; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.transition-colors {
    transition: background-color, color 0.3s ease;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease-out;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Newsletter Widget */
.newsletter {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--border-radius-lg);
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin: 50px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 800;
}

.newsletter p {
    color: white;
    margin-bottom: 30px;
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 22px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

.newsletter-form button {
    background-color: white;
    color: var(--primary);
    border: none;
    padding: 16px 30px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.newsletter-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: #e2e8f0;
}

[data-theme="dark"] .theme-toggle {
    color: white;
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: #334155;
}