/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    color: #333;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #e60000;
}

a {
    text-decoration: none;
    color: #e60000;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 60px 0;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e60000;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #e60000;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Page Title */
.page-title {
    background-color: #e60000;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-title h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
}

.page-title p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Section */
.blog-section {
    background-color: #fff;
}

.blog-sidebar {
    width: 300px;
    float: left;
    padding-right: 30px;
}

.sidebar-widget {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e60000;
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.search-form button {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #cc0000;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    transition: color 0.3s;
}

.categories-list a:hover {
    color: #e60000;
}

.categories-list a::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
}

.recent-posts-list {
    list-style: none;
}

.recent-posts-list li {
    margin-bottom: 20px;
}

.recent-posts-list a {
    display: flex;
    gap: 15px;
    color: #555;
    transition: color 0.3s;
}

.recent-posts-list a:hover {
    color: #e60000;
}

.recent-posts-list img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
}

.recent-post-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.post-date {
    font-size: 0.8rem;
    color: #999;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-cloud a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tags-cloud a:hover {
    background-color: #e60000;
    color: white;
}

.blog-content {
    margin-left: 330px;
}

.blog-post {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 300px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: #e60000;
}

.post-content h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.post-content h2::after {
    display: none;
}

.post-content p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    background-color: #e60000;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #cc0000;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.page-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #e60000;
    color: white;
    border-color: #e60000;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    background-color: #fff;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.page-number:hover, .page-number.active {
    background-color: #e60000;
    color: white;
    border-color: #e60000;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #f8f8f8;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 15px;
}

.newsletter-content p {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    gap: 10px;
}

.form-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.subscribe-btn {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-btn:hover {
    background-color: #cc0000;
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.message-content i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

.message-content h3 {
    margin-bottom: 10px;
}

.message-content p {
    color: #666;
    margin-bottom: 20px;
}

.close-btn {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: #cc0000;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 70px 0 20px;
    clear: both;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: #e60000;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #aaa;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    color: #e60000;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e60000;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e60000;
}

.footer-contact p {
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #e60000;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #aaa;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #e60000;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: #fff;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.5s ease-in-out;
        z-index: 10;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .burger {
        display: block;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .blog-sidebar {
        width: 100%;
        float: none;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .blog-content {
        margin-left: 0;
    }
}

@media screen and (max-width: 480px) {
    .page-title h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .form-group {
        flex-direction: column;
    }

    .subscribe-btn {
        width: 100%;
    }
}