/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #0d6efd;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 15px;
    line-height: 1.3;
    color: #212529;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 0px;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.logo h1 a {
    color: #0d6efd;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav ul li a {
    color: #495057;
    font-weight: 500;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #0d6efd;
}

.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0d6efd;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 8px 12px;
    outline: none;
    width: 200px;
}

.search-box button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

.user-actions a {
    color: #495057;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.user-actions a:hover {
    color: #0d6efd;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 40px 0;
    background-color: #fff;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.hero-main .hero-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-main .hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-title {
    margin-bottom: 15px;
}

.hero-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s;
}

.hero-title a:hover {
    color: #0d6efd;
}

.hero-excerpt {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

.post-meta .author a {
    color: #0d6efd;
    text-decoration: none;
}

.post-meta .author a:hover {
    text-decoration: underline;
}

.hero-sidebar .sidebar-card {
    margin-bottom: 25px;
}

.hero-sidebar .sidebar-card:last-child {
    margin-bottom: 0;
}

.card-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0px;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #0d6efd;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.sidebar-card h3 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-card h3 a:hover {
    color: #0d6efd;
}

/* Featured Section */
.featured {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0d6efd;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.featured-card.large {
    grid-column: span 2;
}

.featured-card.large .card-image img {
    height: 300px;
}

.featured-card .card-image img {
    height: 200px;
}

.card-content {
    padding: 20px;
}

.card-content h3 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s;
}

.card-content h3 a:hover {
    color: #0d6efd;
}

.card-content p {
    color: #495057;
    margin-bottom: 20px;
}

/* Latest News */
.latest-news {
    padding: 60px 0;
    background-color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card.large {
    grid-column: span 2;
}

.news-card.large .card-image img {
    height: 300px;
}

.news-card .card-image img {
    height: 200px;
}

.news-card .card-content {
    padding: 15px;
}

.news-card .card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.news-card .card-content h3 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s;
}

.news-card .card-content h3 a:hover {
    color: #0d6efd;
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background-color: #0d6efd;
    color: white;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 15px;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: #fff;
    color: #0d6efd;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #e9ecef;
}

/* Footer */
.footer {
    background-color: #212529;
    color: #fff;
    padding: 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Container and layout adjustments */
    .container {
        padding: 0 10px;
    }
    
    /* Header adjustments */
    .header-content {
        padding: 5px 0;
    }
    
    .main-nav ul {
        gap: 10px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    /* Hero section adjustments */
    .hero {
        padding: 20px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .post-meta {
        gap: 10px;
    }
    
    .hero-sidebar .sidebar-card {
        margin-bottom: 10px;
    }
    
    /* Featured section adjustments */
    .featured {
        padding: 30px 0;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .featured-card.large {
        grid-column: span 1;
    }
    
    .card-content {
        padding: 10px;
    }
    
    /* Latest news adjustments */
    .latest-news {
        padding: 30px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .news-card.large {
        grid-column: span 1;
    }
    
    .news-card .card-content {
        padding: 10px;
    }
    
    /* Newsletter adjustments */
    .newsletter {
        padding: 30px 0;
    }
    
    .newsletter p {
        margin: 0 auto 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .footer-col h3,
    .footer-col h4 {
        margin-bottom: 10px;
    }
    
    .footer-col p {
        margin-bottom: 10px;
    }
    
    .footer-col ul li {
        margin-bottom: 5px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .contact-info li {
        margin-bottom: 10px;
        gap: 5px;
    }
    
    /* Breadcrumb adjustments */
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb ul {
        gap: 5px;
    }
    
    /* Category page adjustments */
    .category-header {
        padding: 30px 0;
    }
    
    .category-content {
        padding: 30px 0;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .sidebar {
        padding: 10px;
    }
    
    .widget {
        margin-bottom: 10px;
    }
    
    .category-list li {
        padding: 5px 0;
    }
    
    .trending-posts .trending-post {
        gap: 10px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    /* Pagination adjustments */
    .pagination {
        margin-top: 20px;
    }
    
    .pagination ul {
        gap: 5px;
    }
    
    .pagination ul li a {
        padding: 8px 10px;
    }
    
    /* Article page adjustments */
    .article-content {
        padding: 20px 0;
    }
    
    .article {
        padding: 10px;
    }
    
    .article-header {
        margin-bottom: 15px;
    }
    
    .featured-image {
        margin-bottom: 15px;
    }
    
    .article-body {
        margin-bottom: 20px;
    }
    
    .article-body h2 {
        margin-top: 15px;
        margin-bottom: 10px;
        padding-bottom: 5px;
    }
    
    .article-body ul {
        margin-bottom: 10px;
    }
    
    .article-body ul li {
        margin-bottom: 5px;
    }
    
    .article-body blockquote {
        margin: 15px 0;
        padding: 10px 15px;
    }
    
    .article-image {
        margin: 15px 0;
    }
    
    .article-footer {
        padding-top: 10px;
    }
    
    .tags {
        gap: 5px;
    }
    
    .social-share {
        gap: 5px;
    }
    
    /* Author box adjustments */
    .author-box {
        gap: 10px;
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .author-info h3 {
        margin-bottom: 5px;
    }
    
    .author-info p {
        margin-bottom: 10px;
    }
    
    .author-social {
        gap: 5px;
    }
    
    /* Related posts adjustments */
    .related-posts {
        margin-bottom: 20px;
    }
    
    .related-posts h3 {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    /* Comments section adjustments */
    .comments-section {
        padding-top: 15px;
    }
    
    .comment-form h4 {
        margin-bottom: 10px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .comments-list {
        margin-top: 20px;
    }
    
    .comment {
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .comment.reply {
        margin-left: 20px;
    }
    
    .comment-header {
        margin-bottom: 5px;
    }
    
    .comment-content p {
        margin-bottom: 10px;
    }
    
    /* Page content adjustments */
    .page-content {
        padding: 20px 0;
    }
    
    .page-links li {
        margin-bottom: 5px;
    }
    
    .page-links li a {
        padding: 8px 10px;
    }
    .trending-post .post-image img{
        width: 100% !important;
        height: 100% !important;
    }
}

.footer-col h3,
.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col p {
    color: #adb5bd;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #343a40;
    color: #fff;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #0d6efd;
    text-decoration: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #adb5bd;
}

.footer-bottom {
    text-align: center;
    color: #adb5bd;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background-color: #e9ecef;
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb ul li {
    color: #495057;
    font-size: 0.9rem;
}

.breadcrumb ul li a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb ul li a:hover {
    text-decoration: underline;
}

.breadcrumb ul li i {
    font-size: 0.7rem;
}

/* Category Header */
.category-header {
    padding: 60px 0;
    text-align: center;
    background-color: #fff;
}

.category-header h1 {
    margin-bottom: 20px;
}

.category-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #495057;
}

/* Category Content */
.category-content {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.main-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0d6efd;
    color: #212529;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    color: #495057;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    width: 100%;
    transition: color 0.3s;
}

.category-list li a:hover {
    color: #0d6efd;
}

.category-list li a span {
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.trending-posts .trending-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.trending-posts .trending-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.trending-post .post-image {
    flex-shrink: 0;
}

.trending-post .post-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.trending-post .post-content h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.trending-post .post-content h4 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s;
}

.trending-post .post-content h4 a:hover {
    color: #0d6efd;
}

.trending-post .post-content .date {
    font-size: 0.8rem;
    color: #6c757d;
}

.ad-banner {
    text-align: center;
}

.ad-banner img {
    width: 100%;
    border-radius: 4px;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination ul li a {
    display: block;
    padding: 10px 15px;
    background-color: #fff;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination ul li a:hover,
.pagination ul li a.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Article Content */
.article-content {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.article {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-header .category-tag {
    position: relative;
    top: 0;
    left: 0;
    margin: 0 auto 15px;
}

.article-header h1 {
    margin-bottom: 20px;
}

.article-header .post-meta {
    justify-content: center;
    margin-bottom: 0;
}

.article-header .post-meta .author a {
    color: #0d6efd;
    text-decoration: none;
}

.article-header .post-meta .author a:hover {
    text-decoration: underline;
}

.featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
}

.article-body {
    margin-bottom: 40px;
}

.article-body h2 {
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.article-body ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.article-body ul li {
    margin-bottom: 10px;
    list-style: disc;
}

.article-body blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid #0d6efd;
    background-color: #f8f9fa;
    font-style: italic;
    color: #495057;
}

.article-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tags a:hover {
    background-color: #0d6efd;
    color: #fff;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-share span {
    color: #495057;
}

.share-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 40px;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 10px;
}

.author-info p {
    color: #495057;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.author-social a:hover {
    background-color: #0b5ed7;
}

/* Related Posts */
.related-posts {
    margin-bottom: 40px;
}

.related-posts h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

/* Comments Section */
.comments-section {
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.comment-form h4 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0b5ed7;
}

.comments-list {
    margin-top: 40px;
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment.reply {
    margin-left: 50px;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-header h4 {
    margin-bottom: 0;
    color: #212529;
}

.comment-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.comment-content p {
    margin-bottom: 15px;
    color: #495057;
}

.reply-link {
    color: #0d6efd;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.reply-link:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

/* Page Content */
.page-content {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.page-links li {
    margin-bottom: 10px;
}

.page-links li a {
    display: block;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-links li a:hover,
.page-links li a.active {
    background-color: #0d6efd;
    color: #fff;
}

.contact-info {
    padding-left: 0;
}

.contact-info li {
    margin-bottom: 15px;
}