/* Large Devices (Desktops, 1200px and down) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-card.large {
        grid-column: span 1;
    }
    
    .featured-card.large .card-image img {
        height: 250px;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
}

/* Medium Devices (Tablets, 992px and down) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .featured-image img {
        height: 400px;
    }
    
    .article-image img {
        height: 300px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment.reply {
        margin-left: 30px;
    }
}

/* Small Devices (Landscape Phones, 768px and down) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        background-color: #f8f9fa;
        padding: 15px;
        border-radius: 4px;
        margin-top: 10px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-actions {
        display: none;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero-main .hero-image img {
        height: 300px;
    }
    
    .hero-sidebar .sidebar-card .card-image img {
        height: 150px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb ul {
        flex-wrap: wrap;
    }
    
    .category-header h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .featured-image img {
        height: 300px;
    }
    
    .article-image img {
        height: 250px;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .trending-posts .trending-post {
        flex-direction: column;
    }
    
    .trending-post .post-image {
        margin-bottom: 10px;
    }
}

/* Extra Small Devices (Portrait Phones, 576px and down) */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .hero-main .hero-image img {
        height: 250px;
    }
    
    .card-image img {
        height: 180px;
    }
    
    .featured-card .card-image img {
        height: 180px;
    }
    
    .news-card .card-image img {
        height: 180px;
    }
    
    .newsletter {
        padding: 40px 0;
    }
    
    .newsletter h2 {
        font-size: 1.8rem;
    }
    
    .newsletter p {
        font-size: 1rem;
    }
    
    .category-header {
        padding: 40px 0;
    }
    
    .category-header h1 {
        font-size: 1.8rem;
    }
    
    .category-header p {
        font-size: 1rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .featured-image img {
        height: 250px;
    }
    
    .article-image img {
        height: 200px;
    }
    
    .comment.reply {
        margin-left: 20px;
    }
    
    .pagination ul {
        flex-wrap: wrap;
    }
    
    .hero-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Extra Extra Small Devices (Small Phones, 400px and down) */
@media (max-width: 400px) {
    .hero-main .hero-image img {
        height: 200px;
    }
    
    .card-image img {
        height: 150px;
    }
    
    .featured-card .card-image img {
        height: 150px;
    }
    
    .news-card .card-image img {
        height: 150px;
    }
    
    .featured-image img {
        height: 200px;
    }
    
    .article-image img {
        height: 150px;
    }
    
    .social-share span {
        display: none;
    }
}