/* Responsive Styles */

/* Desktop First Approach - Adjust for smaller screens */

/* Large screens (desktops, 1200px and up) - Base styles already cover this */

/* Medium screens (tablets, 768px to 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    .main-nav {
        width: 100%;
        order: 3; /* Move navigation below logo and search */
        margin-top: 10px;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 5px 10px;
    }

    .search-bar {
        margin-bottom: 10px;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .grid-3-cols, .grid-4-cols {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }

    .grid-2-cols {
        grid-template-columns: 1fr; /* 1 column for tablets */
    }

    .carousel-item {
        width: 220px; /* Adjust carousel item width */
    }
}

/* Small screens (phones, up to 767px) */
@media (max-width: 767px) {
    h2 {
        font-size: 2em;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 8px 0;
    }

    .search-bar {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    .search-bar input {
        width: 80%;
        max-width: 250px;
    }

    .search-bar input:focus {
        width: 85%;
    }

    .hero {
        height: 350px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .grid-3-cols, .grid-4-cols, .grid-2-cols {
        grid-template-columns: 1fr; /* Single column for phones */
    }

    .article-card img {
        height: 180px;
    }

    .article-card h3 {
        font-size: 1.3em;
    }

    .flash-actu-ticker-content span {
        font-size: 0.9em;
    }

    .carousel-item {
        width: 180px; /* Further adjust carousel item width */
    }

    .carousel-nav-btn {
        padding: 8px 12px;
        font-size: 1.2em;
    }

    .footer-links ul {
        flex-direction: column;
    }

    .footer-links li {
        margin: 5px 0;
    }
}

/* Extra small screens (smaller phones, up to 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .article-card-content {
        padding: 15px;
    }

    .article-card h3 {
        font-size: 1.2em;
    }
}