@media screen and (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: fixed;
        top: 74px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        padding: 1rem;
        width: 100%;
        display: block;
    }

    .hamburger {
        display: block;
    }

    /* Hero Section */
    .hero {
        height: 80vh;
        margin-top: 74px;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-content .sub-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-buttons .cta-button {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    /* Welcome Message */
    .welcome-message {
        padding: 3rem 0;
    }

    .welcome-message .container {
        padding: 0 1.5rem;
    }

    .welcome-message h2 {
        font-size: 2rem;
    }

    .welcome-message p {
        font-size: 1.1rem;
    }

    /* Features Section */
    .features {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem;
    }

    /* Quick Links */
    .quick-links {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .link-card {
        padding: 1.5rem;
    }

    /* News Section */
    .latest-news {
        padding: 3rem 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    /* Footer */
    footer {
        padding: 3rem 1.5rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links,
    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .sub-text {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .welcome-message h2 {
        font-size: 1.8rem;
    }

    .link-card h3,
    .news-card h3 {
        font-size: 1.3rem;
    }
}

/* Landscape Mode */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }

    .hero-content {
        padding: 1rem;
    }

    .nav-links.active {
        max-height: calc(100vh - 74px);
        overflow-y: auto;
    }
}
