/* Responsive adjustments for smaller screens */

/* Tablets and small desktops (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .hero h2 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    section h3 {
        font-size: 2.2rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .detail-section h2 {
        font-size: 2.4rem;
    }

    .detail-content p {
        font-size: 1.05rem;
    }
}

/* Mobile devices (up to 767px) - already covered in styles.css, but adding specific overrides if needed */
@media (max-width: 767px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        display: none; /* Hidden by default */
        text-align: center;
        margin-top: 15px;
    }

    nav ul.active {
        display: flex; /* Show when active */
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .hero {
        padding: 80px 15px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    section {
        padding: 40px 0;
    }

    section h3 {
        font-size: 1.8rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-header {
        font-size: 1.2rem;
    }

    .card-body p {
        font-size: 0.9rem;
    }

    .detail-section {
        padding: 40px 0;
    }

    .detail-section h2 {
        font-size: 2rem;
    }

    .detail-content {
        padding: 15px;
    }

    .detail-content h3 {
        font-size: 1.4rem;
    }

    .detail-content p, .detail-content ul li {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        width: 100%; /* Adjust for padding */
    }

    footer ul {
        flex-direction: column;
    }

    footer ul li {
        margin: 5px 0;
    }
}

/* Small mobile devices (up to 480px) */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

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

    section h3 {
        font-size: 1.6rem;
    }

    .card-header {
        font-size: 1.1rem;
    }

    .detail-section h2 {
        font-size: 1.8rem;
    }

    .detail-content h3 {
        font-size: 1.2rem;
    }
}