/* Custom CSS Variables */
:root {
    --primary: #4a6fa5;
    --secondary: #166088;
    --accent: #4fc3a1;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

/* General Styles */
body {
    background-color: #f5f7f9;
    color: #333;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: color 0.3s;
}

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

/* Header Styles */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.text-accent {
    color: var(--accent) !important;
}

.navbar-nav .nav-link {
    color: var(--gray);
    font-weight: 500;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #4a6fa5, #166088) !important;
    margin-bottom: 30px;
}

/* Card Styles */
.post-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post-excerpt {
    color: var(--gray);
    margin-bottom: 15px;
}

/* Placeholder Images */
.placeholder-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.popular-post-img {
    width: 80px;
    height: 60px;
    background: var(--light-gray);
    border-radius: 4px;
}

.ad-placeholder {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.categories-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.categories-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Footer Styles */
footer {
    background: var(--dark) !important;
}

footer h5 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .auth-buttons {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    footer .col-lg-3 {
        text-align: center;
        margin-bottom: 30px;
    }
    
    footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
}