/* 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: #007bff;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    line-height: 1.3;
}

p {
    margin-bottom: 0px !important;
}

ul {
    list-style: none;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 a {
    color: #222;
    font-size: 28px;
    font-weight: 700;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animation for hamburger icon */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-right: 20px;
}

.main-nav ul li a {
    color: #555;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #007bff;
    background-color: #f1f1f1;
    text-decoration: none;
}

.search-bar {
    display: flex;
}

.search-bar input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
    width: 200px;
}

.search-bar button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 30px 0;
    background-color: #fff;
    margin-bottom: 30px;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main img {
    border-radius: 5px;
    margin-bottom: 15px;
}

.hero-text .category-tag {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-text h2 a {
    color: #222;
    font-size: 28px;
    margin-bottom: 15px;
    display: block;
}

.hero-text h2 a:hover {
    color: #007bff;
    text-decoration: none;
}

.excerpt {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.meta {
    color: #888;
    font-size: 14px;
}

.hero-sidebar .sidebar-item {
    display: flex;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.hero-sidebar .sidebar-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 15px;
}

.sidebar-text .category-tag {
    background-color: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
}

.sidebar-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.sidebar-text h3 a {
    color: #222;
}

.sidebar-text h3 a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Featured News */
.featured-news {
    padding: 30px 0;
    background-color: #fff;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    color: #222;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content .category-tag {
    background-color: #ffc107;
    color: #222;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-content h3 a {
    color: #222;
}

.news-content h3 a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Category Page */
.category-header {
    background-color: #007bff;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.category-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.category-header p {
    font-size: 18px;
    opacity: 0.9;
}

.news-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.main-content .news-card.large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.main-content .news-card.large img {
    height: 100%;
    object-fit: cover;
}

.main-content .news-card.large .news-content {
    padding: 25px;
}

.main-content .news-card.large .category-tag {
    background-color: #007bff;
    color: white;
}

.main-content .news-card.large h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.main-content .news-card.large h2 a {
    color: #222;
}

.main-content .news-card.large h2 a:hover {
    color: #007bff;
    text-decoration: none;
}

.main-content .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #555;
    border-radius: 3px;
}

.pagination a:hover,
.pagination a.active {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-color: #007bff;
}

.sidebar-widget {
    background-color: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list li a {
    color: #555;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.category-list li a:hover {
    color: #007bff;
    text-decoration: none;
}

.trending-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f1f1;
}

.trending-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.trending-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 15px;
}

.trending-content h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.trending-content h4 a {
    color: #222;
}

.trending-content h4 a:hover {
    color: #007bff;
    text-decoration: none;
}

.trending-content .meta {
    font-size: 12px;
    color: #888;
}

.newsletter-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
}

.newsletter-form button:hover {
    background-color: #0069d9;
}

/* Post View */
.breadcrumb {
    padding: 15px 0;
    background-color: #e9ecef;
    font-size: 14px;
}

.breadcrumb a {
    color: #007bff;
}

.article-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.article-full h1 {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.featured-image {
    margin-bottom: 30px;
}

.featured-image img {
    border-radius: 5px;
    margin-bottom: 10px;
}

.image-caption {
    font-size: 14px;
    color: #666;
    text-align: center;
    font-style: italic;
}

.article-body h2 {
    font-size: 24px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.article-body p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-body ul li {
    list-style: disc;
    margin-bottom: 10px;
}

.article-image {
    margin: 25px 0;
}

.article-tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.article-tags span {
    font-weight: bold;
    margin-right: 10px;
}

.article-tags a {
    display: inline-block;
    background-color: #f1f1f1;
    color: #555;
    padding: 5px 12px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.article-tags a:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

.social-sharing {
    margin-bottom: 40px;
}

.social-sharing span {
    font-weight: bold;
    margin-right: 10px;
}

.social-link {
    display: inline-block;
    background-color: #f1f1f1;
    color: #555;
    padding: 8px 15px;
    border-radius: 3px;
    margin-right: 10px;
    font-size: 14px;
}

.social-link:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

.comments-section h3 {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.comment-author h4 {
    margin-bottom: 5px;
}

.comment-date {
    font-size: 14px;
    color: #888;
}

.comment-form h3 {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
}

.submit-btn:hover {
    background-color: #0069d9;
}

.related-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f1f1;
}

.related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 15px;
}

.related-content h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.related-content h4 a {
    color: #222;
}

.related-content h4 a:hover {
    color: #007bff;
    text-decoration: none;
}

.related-content .meta {
    font-size: 12px;
    color: #888;
}

/* Privacy and Terms Pages */
.content-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.main-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.main-content h2 {
    font-size: 24px;
    margin: 30px 0 20px;
}

.main-content h3 {
    font-size: 20px;
    margin: 25px 0 15px;
}

.main-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.main-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.main-content ul li {
    list-style: disc;
    margin-bottom: 10px;
}

.legal-links li {
    margin-bottom: 12px;
}

.legal-links li a {
    display: block;
    padding: 10px 15px;
    border-radius: 3px;
    color: #555;
    background-color: #f8f9fa;
}

.legal-links li a:hover,
.legal-links li a.active {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

/* Footer */
.site-footer {
    background-color: #222;
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
}

.footer-section ul li a:hover {
    color: #fff;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links li a {
    display: block;
    padding: 8px 12px;
    background-color: #333;
    border-radius: 3px;
}

.footer-bottom {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}
.category-news{
    padding: 30px 0;
}
/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-layout,
    .article-layout,
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
        margin-bottom: 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        position: relative;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile Navigation */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 15px 0;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 10px;
    }
    
    .search-bar input {
        width: 150px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content .news-card.large {
        grid-template-columns: 1fr;
    }
    
    .main-content .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-text h2 a {
        font-size: 22px;
    }
    
    .excerpt {
        font-size: 16px;
    }
    
    .news-content h3 {
        font-size: 16px;
    }
    
    .article-full h1 {
        font-size: 28px;
    }
    
    .article-body p {
        font-size: 16px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .search-bar input {
        width: calc(100% - 80px);
    }
}