/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Article Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Featured Carousel */
.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0.25rem;
}

/* Article Content */
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Sidebar */
.sidebar-card {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer a {
    color: #adb5bd;
}

.footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* Utility Classes */
.section-title {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
}
.card-img-container {
    position: relative;
}

.object-fit-cover {
    object-fit: cover;
    object-position: center;
}
/* Admin Styles */
.admin-header {
    background-color: #343a40;
    color: #fff;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.admin-sidebar {
    position: sticky;
    top: 20px;
}

.admin-nav .nav-link {
    color: #495057;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-meta > div:first-child {
        margin-bottom: 0.5rem;
    }
}

