:root {
    --primary-color: #003366;
    --secondary-color: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
    background-color: #fafafa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    color: var(--secondary-color);
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-info h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-info p {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn:hover {
    background-color: #002244;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Section Common */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--light-text);
    font-size: 18px;
}

/* Stats Section */
.stats-section {
    background-color: #132149;
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffd700;
}

.stat-item p {
    font-size: 18px;
    opacity: 0.9;
}

/* Why Choose Us */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-card {
    background: var(--white);
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.why-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.why-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Technology Tabs */
.tech-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #ddd;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 0;
}

.tech-tab-btn {
    padding: 15px 40px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tech-tab-btn:hover {
    color: var(--primary-color);
}

.tech-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.tech-content {
    display: none;
}

.tech-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* Sub Tabs (Methods) */
.sub-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sub-tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    text-align: center;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #333;
    transition: all 0.3s;
    border-radius: 4px;
}

.sub-tab-btn:hover {
    background: #e0e0e0;
}

.sub-tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.method-detail {
    display: none;
}

.method-detail.active {
    display: block;
}

.tech-description {
    margin-bottom: 40px;
    line-height: 1.8;
}

.tech-description h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.tech-description p {
    color: #555;
    line-height: 1.8;
}

.tech-img-box {
    width: 100%;
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tech-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* Method Content Layout */
.method-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.method-description {
    color: #333;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 15px;
}

.method-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.method-image-item {
    position: relative;
}

.method-image-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--primary-color);
    text-align: right;
    line-height: 1.6;
}

/* Single Image Container */
.single-image-container {
    margin: 30px 0;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: bold;
}

/* Structure Details */
.structure-details {
    margin-top: 50px;
}

.structure-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.structure-item {
    position: relative;
}

/* Process Section */
.process-section {
    margin-top: 50px;
}

.process-title {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: bold;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.process-step {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    margin-bottom: 12px;
}

.step-title {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 5-Step Process Grid */
.process-steps-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.process-steps-5 .process-step:nth-child(4),
.process-steps-5 .process-step:nth-child(5) {
    grid-column: span 1;
}

/* Comparison Section */
.comparison-section {
    margin-top: 50px;
}

.comparison-title {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: bold;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.comparison-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.comparison-label {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.comparison-desc {
    margin-top: 15px;
    padding: 15px;
    background: #fafafa;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    margin-top: 50px;
}

.features-title {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: bold;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.feature-item p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

/* Features with Diagram Layout */
.features-with-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.features-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-badge {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.badge-label {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.badge-list {
    list-style: none;
    padding: 0;
}

.badge-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.badge-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.diagram-column {
    display: flex;
    align-items: center;
}

/* Application Cases */
.application-cases {
    margin-top: 40px;
}

.cases-title {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.case-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.case-label {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 4px;
}

/* Construction Sequence */
.construction-sequence {
    margin-top: 50px;
}

.sequence-title {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: bold;
}

.sequence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.sequence-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.sequence-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.sequence-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: center;
}

/* Projects Page */
.project-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #ddd;
    margin-bottom: 40px;
    gap: 0;
}

.project-tab-btn {
    padding: 15px 60px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.project-tab-btn:hover {
    color: var(--primary-color);
}

.project-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.project-content {
    display: none;
}

.project-content.active {
    display: block;
}

.project-sub-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.project-sub-tab-btn {
    flex: 1;
    max-width: 200px;
    padding: 12px 30px;
    text-align: center;
    background: #f5f5f5;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    color: #333;
    transition: all 0.3s;
    border-radius: 4px;
}

.project-sub-tab-btn:hover {
    background: #e0e0e0;
}

.project-sub-tab-btn.active {
    background-color: #1a5f3a;
    color: white;
    font-weight: bold;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}

.project-location {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 8px 12px;
    min-width: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-body {
    padding: 40px;
}

.modal-body h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* Modal Slider */
.modal-slider {
    position: relative;
    margin-bottom: 40px;
}

.slider-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.slider-image img,
.slider-image .slider-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 800px !important;
    max-height: 400px !important;
    object-fit: contain !important;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 5;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: var(--primary-color);
}

/* Modal Info */
.modal-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
}

.info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.info-value {
    color: #666;
    line-height: 1.6;
}

/* Patents Page */
.patent-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.stat-box {
    text-align: center;
    padding: 30px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #1a5f3a;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

.patent-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #ddd;
    margin-bottom: 40px;
    gap: 0;
}

.patent-tab-btn {
    padding: 15px 50px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.patent-tab-btn:hover {
    color: var(--primary-color);
}

.patent-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.patent-content {
    display: none;
}

.patent-content.active {
    display: block;
}

.patents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.patent-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.patent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.patent-image {
    width: 100%;
    overflow: hidden;
}

.patent-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.patent-card:hover .patent-image img {
    transform: scale(1.05);
}

.patent-info {
    padding: 20px;
    text-align: center;
}

.patent-info h3 {
    font-size: 15px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
    min-height: 42px;
}

.patent-number {
    font-size: 13px;
    color: #666;
}

.patent-detail-image {
    margin-bottom: 30px;
}

.patent-detail-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
}

/* ========== MOBILE RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
    .patents-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* Mobile */
@media (max-width: 768px) {

    /* Header Mobile - Center Logo */
    .header-inner {
        height: 60px;
        justify-content: center;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 30px !important;
    }

    /* Show hamburger menu */
    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 20px;
    }

    /* Hide desktop nav by default */
    nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
        z-index: 999;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    nav li {
        border-bottom: 1px solid #eee;
    }

    nav a {
        display: block;
        padding: 15px 20px;
        font-size: 15px;
    }

    /* Footer - center logo */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-info {
        width: 100%;
    }

    /* Font sizes - reduce for mobile */
    .section-title h2 {
        font-size: 22px;
    }

    .section-title p {
        font-size: 13px;
    }

    section {
        padding: 40px 0;
    }

    /* Hero section */
    .hero h1 {
        font-size: 28px !important;
        line-height: 1.4;
    }

    .tech-description p,
    .method-description {
        font-size: 13px;
    }

    /* MCM/URI sections - vertical layout on mobile */
    #mcm>.container>div,
    #uri>.container>div {
        flex-direction: column !important;
    }

    #mcm>.container>div>div,
    #uri>.container>div>div {
        flex: none !important;
        width: 100%;
    }

    /* Images and text - vertical layout */
    .method-images,
    .structure-images,
    .features-with-diagram {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-steps,
    .process-steps-5,
    .comparison-grid,
    .cases-grid,
    .sequence-grid,
    .sequence-grid-6 {
        grid-template-columns: 1fr;
    }

    .process-steps-5 .process-step:nth-child(4),
    .process-steps-5 .process-step:nth-child(5) {
        grid-column: span 1;
    }

    .step-title {
        font-size: 14px;
    }

    .step-desc {
        font-size: 12px;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-tab-btn {
        padding: 12px 25px;
        font-size: 13px;
    }

    .project-sub-tabs {
        flex-direction: column;
    }

    .project-sub-tab-btn {
        max-width: 100%;
        font-size: 14px;
    }

    /* Modal */
    .modal-body {
        padding: 20px;
    }

    .modal-body h2 {
        font-size: 18px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .info-label {
        font-size: 13px;
    }

    .info-value {
        font-size: 13px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    /* Patents */
    .patent-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 13px;
    }

    .patents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .patent-tab-btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .patent-info h3 {
        font-size: 13px;
        min-height: auto;
    }

    .patent-number {
        font-size: 11px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .patents-grid {
        grid-template-columns: 1fr;
    }

    .tech-tab-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    .sub-tab-btn {
        font-size: 11px;
        padding: 10px 8px;
    }

    .service-item img {
        max-width: 50px !important;
        max-height: 50px !important;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Core Services - icon size 100px */
.service-item>div {
    height: 120px !important;
}

.service-item img {
    max-width: 100px !important;
    max-height: 100px !important;
}

.service-item h3 {
    font-size: 16px;
}

/* Font sizes - reduce for mobile */
.section-title h2 {
    font-size: 22px;
}

.section-title p {
    font-size: 13px;
}

section {
    padding: 40px 0;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Why Choose Us - 769-999px에서 2줄 */
@media (min-width: 850px) and (max-width: 999px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 핵심 서비스 - 769-849px에서 2줄 */
@media (min-width: 850px) and (max-width: 999px) {
    .services-summary .container>div:last-child {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }

    .service-item {
        min-width: auto !important;
    }
}

/* Tablet (1024px 이하) - 통계만 2줄 */
@media (max-width: 1024px) {
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* Mobile (768px 이하) */
@media (max-width: 768px) {

    /* Header */
    .header-inner {
        height: 60px;
        justify-content: center;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 30px !important;
    }

    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 20px;
    }

    nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
        z-index: 999;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    nav li {
        border-bottom: 1px solid #eee;
    }

    nav a {
        display: block;
        padding: 15px 20px;
        font-size: 15px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    /* 핵심 서비스 - 세로 */
    .services-summary .container>div:last-child {
        flex-direction: column !important;
    }

    .service-item {
        min-width: 100% !important;
    }

    .service-item>div {
        height: 120px !important;
    }

    .service-item img {
        max-width: 100px !important;
        max-height: 100px !important;
    }

    /* Why Us - 세로 */
    .why-us-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tech Cards - 세로 */
    .tech-preview .container>div:last-child {
        flex-direction: column !important;
    }
}


/* 이미지 반응형 */
.method-images img,
.single-image-container img,
.process-step img,
.placeholder-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 517px 이하 - 서브탭 2개씩 */
@media (max-width: 517px) {
    .sub-tabs {
        gap: 10px !important;
    }

    .sub-tab-btn {
        flex: 0 0 calc(50% - 5px) !important;
        min-width: auto !important;
        padding: 12px 10px !important;
        font-size: 12px !important;
        white-space: normal !important;
        background: white !important;
        border: 2px solid #003366 !important;
        border-radius: 4px !important;
    }

    .sub-tab-btn:hover {
        background: #f0f0f0 !important;
    }

    .sub-tab-btn.active {
        background-color: #003366 !important;
        color: white !important;
    }
}

/* 태블릿 크기 (769px ~ 1024px) - 프로젝트 그리드 2열 */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
        justify-items: center;
    }

    .project-card {
        max-width: 400px;
        width: 100%;
    }

    .pagination {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        /* Font sizes - reduce for mobile */
        .section-title h2 {
            font-size: 22px;
        }

        .section-title p {
            font-size: 13px;
        }

        section {
            padding: 40px 0;
        }
    }
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Why Choose Us - 769-999px에서 2줄 */
@media (min-width: 850px) and (max-width: 999px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 핵심 서비스 - 769-849px에서 2줄 */
@media (min-width: 850px) and (max-width: 999px) {
    .services-summary .container>div:last-child {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }

    .service-item {
        min-width: auto !important;
    }
}

/* Tablet (1024px 이하) - 통계만 2줄 */
@media (max-width: 1024px) {
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* Mobile (768px 이하) */
@media (max-width: 768px) {

    /* Header */
    .header-inner {
        height: 60px;
        justify-content: center;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 30px !important;
    }

    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 20px;
    }

    nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
        z-index: 999;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    nav li {
        border-bottom: 1px solid #eee;
    }

    nav a {
        display: block;
        padding: 15px 20px;
        font-size: 15px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    /* 핵심 서비스 - 세로 */
    .services-summary .container>div:last-child {
        flex-direction: column !important;
    }

    .service-item {
        min-width: 100% !important;
    }

    .service-item>div {
        height: 120px !important;
    }

    .service-item img {
        max-width: 100px !important;
        max-height: 100px !important;
    }

    /* Why Us - 세로 */
    .why-us-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tech Cards - 세로 */
    .tech-preview .container>div:last-child {
        flex-direction: column !important;
    }
}


/* 이미지 반응형 */
.method-images img,
.single-image-container img,
.process-step img,
.placeholder-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 517px 이하 - 서브탭 2개씩 */
@media (max-width: 517px) {
    .sub-tabs {
        gap: 10px !important;
    }

    .sub-tab-btn {
        flex: 0 0 calc(50% - 5px) !important;
        min-width: auto !important;
        padding: 12px 10px !important;
        font-size: 12px !important;
        white-space: normal !important;
        background: white !important;
        border: 2px solid #003366 !important;
        border-radius: 4px !important;
    }

    .sub-tab-btn:hover {
        background: #f0f0f0 !important;
    }

    .sub-tab-btn.active {
        background-color: #003366 !important;
        color: white !important;
    }
}

/* 태블릿 크기 (769px ~ 1024px) - 프로젝트 그리드 2열 */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
        justify-items: center;
    }

    .project-card {
        max-width: 400px;
        width: 100%;
    }

    .pagination {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin-top: 40px;
    }
}

/* 모바일 화면 (768px 이하) - 비교 섹션 및 시공 순서 수정 */
@media (max-width: 768px) {

    /* 기존 공법과의 비교 - 한 줄씩 표시 */
    .comparison-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 시공 순서 - 이미지 위, 텍스트 아래 */
    .step-card>div[style*="display: flex"] {
        flex-direction: column !important;
    }

    .step-card>div[style*="display: flex"]>div {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #ddd;
    }

    .step-card .img-placeholder {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: 300px;
    }

    .step-card .img-placeholder img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    .step-card>div[style*="display: flex"]>div:last-child {
        border-bottom: none !important;
    }
}

/* 모바일 시공 순서 오버플로우 수정 */
@media (max-width: 768px) {
    .step-flex-container {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    .step-card {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .step-card .img-placeholder {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        flex: none !important;
    }

    .step-card .img-placeholder img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .step-flex-container>div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }

    /* 기존 공법과의 비교 - 한 줄씩 */
    .comparison-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 모바일 전체 이미지 반응형 강제 적용 */
@media (max-width: 768px) {

    /* 모든 이미지를 반응형으로 */
    img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }

    /* 이미지 컨테이너도 반응형으로 */
    .tech-img-box,
    .method-image-item,
    .structure-item,
    .single-image-container,
    .diagram-column {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* body와 container의 overflow 방지 */
    body {
        overflow-x: hidden !important;
    }

    .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* 시공 순서 섹션 모바일 수정 */
@media (max-width: 768px) {
    .step-flex-container {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    .step-card .img-placeholder {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        flex: none !important;
    }

    .step-flex-container>div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }
}

/* 시공 순서 섹션 모바일 수정 */
@media (max-width: 768px) {
    .step-flex-container {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    .step-card .img-placeholder {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        flex: none !important;
    }

    .step-flex-container>div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }
}

/* 초소형 모바일 (490px 이하) - 추가 오버플로우 방지 */
@media (max-width: 490px) {

    /* 모든 요소의 최대 너비 강제 */
    * {
        max-width: 100vw !important;
    }

    /* 이미지 강제 축소 */
    img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }

    /* 시공 순서 섹션 */
    .step-card,
    .step-card * {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .step-card .img-placeholder {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* 컨테이너 오버플로우 방지 */
    body,
    .container,
    section {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}

/* 시공 순서 이미지 높이 강제 조정 */
@media (max-width: 490px) {
    .step-card .img-placeholder {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .step-card .img-placeholder img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* 초소형 모바일 - 이미지 강제 축소 */
@media (max-width: 490px) {
    .step-card .img-placeholder img {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* ========================================
   MCM 페이지 모바일 반응형
   ======================================== */

/* 태블릿 및 모바일 (768px 이하) */
@media (max-width: 768px) {

    /* 전체 컨테이너 패딩 */
    .mcm-section .container {
        padding: 0 15px !important;
    }

    /* 섹션 헤더 크기 조정 */
    .mcm-section .section-header h2 {
        font-size: 24px !important;
    }

    .mcm-section .section-header p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* Flex 레이아웃을 세로로 변경 */
    .mcm-section .content-box>div[style*="display: flex"] {
        flex-direction: column !important;
    }

    .mcm-section .content-box>div[style*="display: flex"]>div {
        min-width: 100% !important;
        width: 100% !important;
    }

    /* 그리드를 1열로 변경 */
    .features-grid,
    .sequence-grid,
    .certificates-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 테이블 폰트 크기 조정 */
    .mcm-section table {
        font-size: 12px !important;
    }

    .mcm-section table th,
    .mcm-section table td {
        padding: 8px !important;
        font-size: 11px !important;
    }

    /* 시공실적 섹션 - 2단을 1단으로 */
    .mcm-section .content-box>div[style*="gap: 40px"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* 안전관리 리스트 */
    .mcm-section ul li {
        font-size: 14px !important;
    }

    /* 이미지 높이 자동 조정 */
    .mcm-section .img-placeholder {
        height: auto !important;
        min-height: 200px !important;
    }

    .mcm-section .img-placeholder img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* 초소형 모바일 (400px 이하) - 갤럭시 Z폴드 등 */
@media (max-width: 400px) {

    /* 섹션 패딩 축소 */
    .mcm-section {
        padding: 40px 0 !important;
    }

    .mcm-section .content-box {
        padding: 20px !important;
    }

    /* 헤더 크기 더 축소 */
    .mcm-section .section-header h2 {
        font-size: 20px !important;
    }

    .mcm-section .section-header p {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    /* 테이블 더 작게 */
    .mcm-section table {
        font-size: 10px !important;
    }

    .mcm-section table th,
    .mcm-section table td {
        padding: 6px 4px !important;
        font-size: 10px !important;
    }

    /* 카드 제목 크기 조정 */
    .feature-card h4,
    .sequence-card h4,
    .certificate-card h4 {
        font-size: 14px !important;
    }

    /* 카드 설명 크기 조정 */
    .feature-card p,
    .sequence-card p {
        font-size: 12px !important;
    }

    /* 시공실적 프로젝트 제목 */
    .mcm-section .content-box h3 {
        font-size: 16px !important;
    }

    .mcm-section .content-box ul li {
        font-size: 13px !important;
        padding: 8px 0 !important;
    }

    /* 안전관리 항목 */
    .mcm-section ul li span {
        font-size: 12px !important;
    }
}