/* Mobile Dedicated Styles (max-width: 767px) */

@media (max-width: 767px) {
    /* Header Stack Structure */
    #header {
        height: auto !important;
        min-height: 100px;
    }

    .header-container {
        display: block !important;
        position: relative !important;
        padding: 0.75rem 1rem !important;
    }

    .header-left {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important; /* Override 2rem gap from desktop style.css! */
        width: 100%;
    }

    .logo { 
        order: 1 !important;
        font-size: 1.35rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0 !important;
    }

    .header-email { 
        order: 2 !important;
        font-size: 0.75rem !important;
        line-height: 1 !important;
        margin: 0.2rem 0 0 2px !important; /* 좁은 간격 보장 및 미세 들여쓰기 교정 */
        opacity: 0.8;
    }

    .nav-menu { 
        order: 3 !important;
        display: flex !important;
        justify-content: center !important;
        gap: 1.5rem !important;
        margin: 1rem 0 0 0 !important; 
        padding-top: 0.75rem !important;
        border-top: 1px solid rgba(226, 232, 240, 0.8);
        width: 100%;
    }

    .nav-link {
        font-size: 0.875rem !important;
    }

    .lang-selector { 
        position: absolute !important;
        top: 0.85rem !important;
        right: 1rem !important;
        z-index: 10;
    }

    /* Padding for Fixed Header Height Increase */
    .hero-section, .about-container, .blog-container, .post-container, .legal-container {
        padding-top: 14rem !important;
    }

    /* Common Adjustments */
    .hero-content h1 { font-size: 2.25rem !important; }
    #hero-sub-text {
        display: block !important;
        height: 4.0rem !important;
        margin-bottom: 0 !important;
        overflow: visible !important;
    }

    .section-container { padding: 2rem 1rem !important; }


    .service-grid { grid-template-columns: 1fr !important; }

    /* Blog Specific */
    .blog-title { font-size: 2rem !important; }
    .blog-grid { grid-template-columns: 1fr !important; }
    
    /* Post Content */
    .post-header, .post-header-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        overflow: hidden;
    }
    .breadcrumbs {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.25rem !important;
        word-break: break-all !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
    }
    .post-title { 
        font-size: 1.875rem !important;
        width: 100%;
        word-break: keep-all;
        line-height: 1.3 !important;
    }
    .post-meta {
        margin-bottom: 0 !important;
    }
    .markdown-body {
        padding: 2rem 1.25rem !important;
        border-radius: 1rem !important;
    }

    .blog-card-summary {
        font-size: 0.7em !important;
        line-height: 1.5 !important;
    }

    /* Footer */
    .footer-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        margin: 1.5rem 0 !important;
    }
    .footer-link-text {
        font-size: 0.8125rem;
        color: var(--text-muted);
        text-decoration: none;
    }
    .footer-divider {
        color: #e2e8f0;
    }

    .pc-hide {
        display: block !important;
    }
}

