/* Hong Kong Labor Insight - Responsive Styles */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    /* Navigation */
    nav ul {
        gap: 1.5rem;
    }

    nav ul li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.95rem;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Grid Layouts - 2 Columns for Tablet */
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mission Section */
    .mission-content {
        gap: 2rem;
    }

    .mission-image {
        height: 350px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.15rem; }

    /* Header and Navigation */
    .header-content {
        padding: 0.8rem 0;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1002;
        padding: 2rem;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        width: 100%;
        border-radius: 8px;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1003;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Hero */
    .hero {
        min-height: 500px;
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

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

    .hero-content {
        padding: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    /* Grid Layouts - 1 Column for Mobile */
    .grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Mission Section */
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-image {
        height: 300px;
        order: -1;
    }

    /* Blog */
    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Article */
    .article-header {
        padding-top: 2rem;
        margin-bottom: 2rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .article-content {
        padding: 1rem;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
    }

    .article-content p {
        font-size: 1rem;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container iframe {
        height: 300px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        text-align: center;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
    }

    /* Resources */
    .resource-card {
        padding: 1.5rem;
    }

    /* FAQ */
    .faq-item {
        padding: 1.5rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    /* Legal */
    .legal-content {
        padding: 2rem 1rem;
    }

    /* Breadcrumb */
    .breadcrumb ul {
        flex-wrap: wrap;
    }

    /* Stat Card */
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .article-title {
        font-size: 1.7rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    section {
        padding: 2.5rem 0;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
    }

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

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .cookie-banner,
    .cta-buttons,
    .mobile-menu-toggle,
    .breadcrumb {
        display: none;
    }

    body {
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero::before {
        display: none;
    }

    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }

    .card,
    .blog-card,
    .resource-card,
    .faq-item {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
