/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Header Styles */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: nowrap;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.subscribe-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #CC0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Navigation Styles */
.categories {
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 1rem 0;
    gap: 2rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.categories a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    position: relative;
}

.categories a:hover {
    color: #FF0000;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Hero Section */
.news {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    min-height: 400px;
}

.banner {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.8);
}

.about-news {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.news-header {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.news-text {
    max-width: 800px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Breaking News Section */
.breaking-news-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #FF0000;
    border-radius: 12px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.1);
}

.breaking-news-header {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: white;
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.breaking-badge {
    background: #ffffff;
    color: #FF0000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.breaking-news-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.breaking-news-content {
    padding: 0.8rem;
}

.breaking-story {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.breaking-image {
    flex: 0 0 250px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
}

.breaking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breaking-text {
    flex: 1;
}

.breaking-category {
    display: inline-block;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: #ffffff;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
}

.breaking-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.breaking-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.7rem;
}

.breaking-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 0.6rem;
}

.breaking-time {
    font-weight: 600;
    color: #FF0000;
}

/* Latest News Section */
.latest-news {
    font-size: 2.5rem;
    text-align: left;
    margin: 3rem 0 2rem;
    color: #1a1a1a;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.latest-news::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    border-radius: 2px;
}
/* More News heading */
.more-news {
    font-size: 2.5rem;
    text-align: left;
    margin: 3rem 0 2rem;
    color: #1a1a1a;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}
.more-news::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    border-radius: 2px;
}
/* Articles Container */
.articles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Article Cards */
.article-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.article-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 0.7rem;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: #ffffff;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #1a1a1a;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: #FF0000;
}

.article-excerpt {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.5rem;
}

.article-date {
    font-weight: 500;
}

.article-author {
    font-style: italic;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #FF0000;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FF0000;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid #333;
    text-align: center;
    padding: 1.5rem 1rem;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        padding: 0.8rem 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 70px;
    }
    
    .site-logo {
        height: 40px;
    }
    
    .subscribe-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .categories {
        gap: 1rem;
        padding: 0.8rem 0;
    }

    .categories a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .news-header {
        font-size: 2rem;
    }

    .news-text {
        font-size: 1rem;
    }

    .latest-news {
        font-size: 2rem;
    }
     .more-news {
        font-size: 2rem;
    }

    .articles-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem 1rem;
    }

    main {
        padding: 0 0.5rem;
    }
    
    .articles-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .breaking-story {
        flex-direction: column;
        gap: 1rem;
    }
    
    .breaking-image {
        flex: none;
        width: 100%;
        height: 160px;
    }
    
    .breaking-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0.6rem 0.8rem;
        min-height: 60px;
    }
    
    .site-logo {
        height: 35px;
    }
    
    .subscribe-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .news-header {
        font-size: 1.5rem;
    }

    .latest-news {
        font-size: 1.5rem;
    }
    .more-news {
        font-size: 1.5rem;
    }
    .article-content {
        padding: 1rem;
    }

    .article-title {
        font-size: 1.1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #FF0000;
    outline-offset: 2px;
}

/* Loading animation for images */
.article-image img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Card Below Section */
.card-below {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.card-content {
    max-width: 500px;
    margin: 0 auto;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.card-button {
    display: inline-block;
    background: #ffffff;
    color: #FF0000;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-button:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}