/* CSS Variables */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;

    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    color: #000;
    background: #f3f0ff;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'GGCMTitle', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    font-size: 33px;
    font-weight: 900;
    color: #4200a8;
}

.logo .house {
    font-size: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.phone {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    display: none;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 24px;
    color: #333;
    font-weight: 500;
}

.nav a:hover {
    color: #000;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.hero-slide-bg {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('../images/main.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 25px;
    display: inline-block;
}

.hero-title {
    font-size: 72px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 50px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-title .fw-600 {
    font-weight: 600;
}

.hero-button-area {
    margin-top: 30px;
}

.hero-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: rgba(255,255,255,0.95);
    color: #000;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.hero-search-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.hero-search-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 18px;
}

/* Icon Menu Section */
.icon-menu-section {
    background: #001140;
    border-bottom: 1px solid #001140;
    max-width: 1400px;
    margin: 0 auto;
}

.icon-menu-container {
    max-width: 1200px;
    margin: 0 auto;
}

.icon-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.icon-menu-item {
    border-right: 1px solid #e0e0e0;
    padding: 45px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.icon-menu-item:last-child {
    border-right: none;
}

.icon-menu-item:hover {
    background: #fafafa;
}

.icon-menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.icon-box {
    margin-bottom: 10px;
}

.icon-box svg {
    display: block;
}

.icon-label {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 50px;
    background: #fff;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    color: #000;
    margin-bottom: 40px;
    text-align: left;
}

/* Projects Grid */
.projects-grid {
    margin: 0 -20px;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

/* Project Card - The Sharp Style */
.project-card {
    position: relative;
    width: 33.3333%;
    padding: 0 20px;
    margin-bottom: 40px;
    cursor: pointer;
}

.project-card > div {
    border-radius: 10px;
    overflow: hidden;
}

.project-card .sales-data {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-bottom: 0;
    position: relative;
}

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    display: block;
    position: relative;
    background: #c9dbed;
    margin-left: -1px;
    margin-top: -1px;
    border: 1px solid #e5e5e5;
    box-sizing: border-box;
}

.project-image img {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-status {
    position: absolute;
    z-index: 11;
    top: 232px;
    right: 20px;
    display: inline-block;
    text-align: center;
    width: 85px;
    height: 85px;
    border-radius: 85px;
    line-height: 1.2;
    font-size: 16px;
    background: #001140;
    color: #fff;
    padding-top: 32px;
}

.project-status.ongoing {
    background: #001140;
    color: #fff;
    padding-top: 32px;
}

.project-status.upcoming {
    background: #001140;
    color: #fff;
    padding-top: 32px;
    font-weight: 400;
    white-space: nowrap;
    font-size: 16px;
}

.project-status.completed {
    background: #001140;
    color: #fff;
    padding-top: 32px;
    white-space: nowrap;
    font-size: 16px;
}

.project-info {
    padding: 0;
    background: #f5f5f5;
}

.project-type {
    color: #48729c;
    padding: 35px 35px 12px;
    font-size: 14px;
    display: block;
}

.project-title {
    color: #001140;
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    /* text-overflow: ellipsis; */
    padding: 0 35px;
    text-align: center;
}

.project-details {
    min-height: 200px;
    padding: 15px 35px;
    list-style: none;
    margin: 0;
}

.project-details li {
    color: #001041;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 400;
    word-break: keep-all;
    display: table;
}

.project-details li .label {
    display: table-cell;
    font-weight: 400;
    width: 90px;
}

.project-details li .value {
    display: table-cell;
    padding-right: 5px;
}

.btn-set {
    background: #e9ebf0;
    display: none;
    margin-left: -1px;
    margin-right: -1px;
}

/* Footer */
.footer {
    background: #1f2937;
    border-top: 1px solid #000;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    color: #ffffff;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.8;
}

#footerContent {
    text-align: center;
}

.footer-section a:hover {
    color: #f0f0f0;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    background-color: #1f2937;
    color: #ffffff;
    font-size: 0.875rem;
    border-top: 1px solid #374151;
}

/* Responsive */
@media (max-width: 1024px) {
    .icon-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .icon-menu-item {
        border-bottom: 1px solid #e0e0e0;
    }

    .icon-menu-item:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .header-right {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .icon-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .icon-menu-item:nth-child(2n) {
        border-right: none;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .icon-menu-grid {
        grid-template-columns: 1fr;
    }

    .icon-menu-item {
        border-right: none;
    }

    .hero-slider {
        min-height: 500px;
    }

    .hero-title {
        font-size: 36px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #1f2937;
    color: white;
    padding: 1.5rem;
}

.admin-logo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #3b82f6;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-menu-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: #d1d5db;
    transition: all 0.15s;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: #374151;
    color: white;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background: #f9fafb;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-title {
    font-size: 1.875rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #000;
    color: white;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: #000;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Tables */
.data-table {
    width: 100%;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.data-table tr:hover {
    background: #f9fafb;
}

/* Status badges for dashboard */
.status-예정,
.status-진행,
.status-완료 {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-예정 {
    background: #dbeafe;
    color: #1e40af;
}

.status-진행 {
    background: #d1fae5;
    color: #065f46;
}

.status-완료 {
    background: #f3f4f6;
    color: #6b7280;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-button {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    font-weight: 500;
    transition: all 0.15s;
}

.page-button:hover:not(:disabled) {
    background: #000;
    color: white;
    border-color: #000;
}

.page-button.active {
    background: #000;
    color: white;
    border-color: #000;
}

.page-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s;
}

.filter-select:focus {
    border-color: #000;
}

/* Utility */
.loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.error {
    padding: 1rem;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.gap-1 {
    gap: 0.75rem;
}

/* Page Header */
.page-header {
    position: relative;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header-bg {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('../images/main.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.page-header-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Filter Section */
.filter-section {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 30px 0;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-form {
    width: 80%;
    margin: 0 auto;
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-col {
    flex: 1;
    min-width: 180px;
}

.filter-col-btn {
    display: flex;
    gap: 10px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.filter-select:focus,
.filter-input:focus {
    border-color: #000;
}

.filter-btn-search,
.filter-btn-reset {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn-search {
    background: #000;
    color: #fff;
}

.filter-btn-search:hover {
    background: #333;
}

.filter-btn-reset {
    background: #f5f5f5;
    color: #333;
}

.filter-btn-reset:hover {
    background: #e0e0e0;
}

/* Sort Section */
.sort-section {
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.sort-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-info {
    font-size: 15px;
    color: #666;
}

.sort-info strong {
    color: #000;
    font-weight: 600;
}

.sort-buttons {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 8px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-btn:hover {
    border-color: #000;
    color: #000;
}

.sort-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Project List Section */
.project-list-section {
    background: #fff;
    padding: 40px 0;
    min-height: 400px;
}

.project-list-container {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

.no-results,
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Detail Pages */
.detail-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 50px 60px;
    background: #fff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #666;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #000;
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #000;
    font-weight: 500;
}

.detail-header {
    margin-bottom: 30px;
}

.detail-title {
    font-size: 39px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: center;
}

.detail-subtitle {
    font-size: 26px;
    color: red;
    margin-top: 0.5rem;
    line-height: 1.4;
    text-align: center;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
}

.status-ongoing {
    background: #000;
    color: #fff;
}

.status-upcoming {
    background: #f0f0f0;
    color: #333;
}

.status-completed {
    background: #e0e0e0;
    color: #666;
}

.detail-views {
    font-size: 14px;
    color: #999;
}

.detail-content {
    display: block;
    width: 100%;
}

.detail-main {
    min-width: 0;
}

.detail-gallery {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.detailSwiper {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.detailSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.detail-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-section {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
}

.detail-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.detail-location {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.location-address {
    margin-bottom: 15px;
}

/* Sidebar Info Box */
.detail-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.info-box {
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    text-align: center;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    margin-bottom: 6px;
}

.info-value {
    font-size: 18px;
    color: #000;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 12px;
}

.badge-ongoing {
    background: #000;
    color: #fff;
}

.badge-upcoming {
    background: #f0f0f0;
    color: #333;
}

.badge-completed {
    background: #e0e0e0;
    color: #666;
}

.phone-link {
    color: #000;
    font-weight: 700;
}

.phone-link:hover {
    text-decoration: underline;
}

.info-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-contact,
.btn-share {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-contact {
    background: #000;
    color: #fff;
}

.btn-contact:hover {
    background: #333;
}

.btn-share {
    background: #f5f5f5;
    color: #000;
}

.btn-share:hover {
    background: #e0e0e0;
}

.quick-links {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.quick-link {
    display: block;
    padding: 10px;
    color: #666;
    font-size: 14px;
    text-align: center;
    transition: color 0.2s;
}

.quick-link:hover {
    color: #000;
}

/* Responsive - Detail Pages */
@media (max-width: 1024px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-sidebar {
        position: relative;
        top: 0;
    }

    .info-box {
        max-width: 500px;
        margin: 0 auto 20px;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr !important;
    }

    .page-header {
        height: 200px;
    }

    .page-title {
        font-size: 24px;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-col {
        min-width: 100%;
    }

    .filter-col-btn {
        flex-direction: column;
    }

    .filter-form {
        padding: 0;
    }

    .filter-btn-search,
    .filter-btn-reset {
        width: 100%;
    }

    .sort-container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .detail-title {
        font-size: 32px;
    }

    .detail-subtitle {
        font-size: 21px;
    }

    .section-heading {
        font-size: 20px;
    }
}
/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    color: #fff;
}

.contact-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.contact-subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-feature {
    display: flex;
    gap: 16px;
    align-items: start;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.feature-content p {
    font-size: 16px;
    margin-bottom: 4px;
    color: #fff;
    opacity: 0.9;
}

.feature-time {
    font-size: 14px;
    opacity: 0.7 !important;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form .form-input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.contact-form .form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form textarea.form-input {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-submit-btn {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-features {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Detail page grid layout */
    .detail-content[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .header {
        padding: 15px 0;
    }

    .header-container {
        padding: 0 15px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 24px;
    }

    .logo .house {
        font-size: 20px;
    }

    .header-right {
        gap: 15px;
        flex-direction: row;
        align-items: center;
    }

    .phone {
        display: none;
    }

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 18px;
    }

    /* Hero Section Mobile */
    .hero-slider {
        height: 100vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-search-btn {
        padding: 14px 30px;
        font-size: 15px;
    }

    /* Icon Menu Mobile */
    .icon-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .icon-menu-item {
        padding: 15px;
    }

    .icon-box svg {
        width: 40px;
        height: 40px;
    }

    .icon-label {
        font-size: 13px;
    }

    /* Projects Grid Mobile */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 0;
    }

    .project-card {
        cursor: pointer;
    }

    .project-type {
        font-size: 12px;
        padding: 35px 15px 12px;
    }

    .project-title {
        font-size: 20px;
    }

    .project-details {
        padding: 15px 15px;
    }

    .project-details li {
        font-size: 14px;
    }

    .project-details li .label {
        width: 80px;
    }

    .project-location {
        font-size: 13px;
    }

    .project-status {
        top: 180px;
        width: 70px;
        height: 70px;
        font-size: 13px;
        padding-top: 26px;
    }

    .project-status.ongoing {
        padding-top: 26px;
    }

    .project-status.upcoming,
    .project-status.completed {
        white-space: nowrap;
        padding-top: 26px;
        font-size: 13px;
    }

    /* Main Content */
    .main-content {
        padding: 40px 0 0 0;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    /* Contact Section Mobile */
    .contact-section {
        padding: 50px 0;
    }

    .contact-title {
        font-size: 36px;
    }

    .contact-subtitle {
        font-size: 20px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .feature-content h3 {
        font-size: 18px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 12px;
    }

    /* Project Detail Mobile */
    .detail-container {
        padding: 20px 10px;
        max-width: 100%;
    }

    .breadcrumb {
        font-size: 13px;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .detail-header {
        padding: 0 5px;
    }

    .detail-title {
        font-size: 28px;
    }

    .detail-subtitle {
        font-size: 17px;
    }

    .detail-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .detail-badge {
        font-size: 13px;
    }

    .detail-views {
        font-size: 13px;
    }

    .detail-content[style*="grid-template-columns"] {
        padding: 0 5px;
        gap: 1rem !important;
    }

    .info-box {
        padding: 16px;
        margin-bottom: 15px;
        max-width: 100% !important;
        width: 100% !important;
    }

    .info-title {
        font-size: 24px;
    }

    .info-item {
        padding: 14px 0;
    }

    .info-label {
        font-size: 17px;
    }

    .info-value {
        font-size: 18px;
    }

    /* Filter Section Mobile */
    .filter-section {
        padding: 10px 0;
    }

    .filter-form {
        padding: 10px 15px;
    }

    .filter-select,
    .filter-input {
        padding: 6px 10px;
        font-size: 13px;
    }

    .filter-btn-search,
    .filter-btn-reset {
        padding: 4px 10px;
        font-size: 12px;
    }

    .sort-section {
        padding: 8px 0;
    }

    .sort-info {
        font-size: 13px;
    }

    .sort-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* Pagination Mobile */
    .pagination {
        gap: 5px;
        padding: 20px 0;
    }

    .page-button {
        min-width: 36px;
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header-right {
        gap: 10px;
        flex-direction: row;
        align-items: center;
    }

    .phone {
        display: none;
    }

    .nav {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .icon-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-image {
        height: 200px;
    }

    .contact-features {
        gap: 20px;
    }

    .contact-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-section {
        text-align: center;
    }

    /* Reduced padding for small screens */
    .contact-form-wrapper {
        padding: 25px 15px;
    }

    .contact-section {
        padding: 40px 0;
    }

    .main-content {
        padding: 30px 0 0 0;
    }

    /* Project Detail Extra Small Mobile */
    .detail-container {
        padding: 15px 5px !important;
    }

    .breadcrumb {
        padding: 0 5px;
        font-size: 12px;
    }

    .detail-header {
        padding: 0 5px;
    }

    .detail-title {
        font-size: 26px;
    }

    .detail-subtitle {
        font-size: 15px;
    }

    .detail-content[style*="grid-template-columns"] {
        padding: 0 !important;
        gap: 1rem !important;
    }

    .detail-container h2 {
        font-size: 23px !important;
        font-weight: 700 !important;
        color: #001140 !important;
        margin-bottom: 1rem !important;
    }

    .info-box {
        padding: 12px !important;
        margin-bottom: 12px !important;
        border-radius: 8px;
    }

    .info-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .info-item {
        padding: 12px 0;
    }

    .info-label {
        font-size: 16px;
    }

    .info-value {
        font-size: 17px;
    }

    /* 상담 신청 폼 480px */
    .info-box form {
        width: 100%;
    }

    .info-box form input,
    .info-box form textarea {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    .info-box form button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 15px !important;
    }

    .info-box form label {
        font-size: 13px;
    }

    /* 프로젝트 이미지 섹션 */
    .detail-container > div[style*="width: 100%"] {
        padding: 0 5px !important;
        margin-bottom: 1.5rem !important;
    }

    .section-heading {
        font-size: 18px !important;
        padding: 0 5px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .project-card {
        min-height: 44px;
    }

    .btn,
    .filter-btn-search,
    .filter-btn-reset,
    .contact-submit-btn {
        min-height: 30px;
    }

    .nav a {
        padding: 12px;
    }

    /* Remove hover effects on touch devices */
    .project-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* Hero Height Adjustment - 50% */
.hero-slider {
    height: 50vh;
    min-height: 400px;
}

/* Region Menu Section */
.region-menu-section {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    max-width: 1400px;
    margin: 0 auto;
}

.region-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.region-menu-wrapper {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.region-menu-item {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
}

.region-menu-item:hover {
    color: #0a69f7;
    background: #f0f7ff;
}

.region-menu-item.active {
    color: #0a69f7;
    font-weight: 700;
}

.region-menu-item.active::before {
    content: '✓ ';
    font-weight: 700;
}

/* Type Menu Grid */
.type-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.type-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #001140;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 60px;
    white-space: nowrap;
}

.type-menu-item:hover {
    color: #fff;
    background: #002060;
    transform: translateY(-3px);
}

.type-menu-item.active {
    color: #ffe066;
    font-weight: 700;
    background: #003080;
}

.type-menu-item.active::before {
    content: '✓ ';
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .region-menu-wrapper {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
        padding: 10px 12px;
    }

    .region-menu-item {
        padding: 6px 8px;
        font-size: 15px;
    }

    .type-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .type-menu-item {
        padding: 16px;
        font-size: 13px;
        min-height: 70px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 50vh;
        min-height: 300px;
    }

    .region-menu-section {
        padding: 15px 0;
    }

    .region-menu-wrapper {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        padding: 8px;
    }

    .region-menu-item {
        padding: 6px 4px;
        font-size: 14px;
    }

    .type-menu-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        max-width: 100%;
    }

    .type-menu-item {
        padding: 10px 4px;
        font-size: 11px;
        min-height: 50px;
    }

    /* Project Card Tablet - 2 columns */
    .projects-grid {
        margin: 0 -15px;
    }

    .project-card {
        width: 50%;
        padding: 0 15px;
    }

    .project-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .project-status {
        top: 200px;
        width: 70px;
        height: 70px;
        font-size: 13px;
    }

    .project-status.upcoming,
    .project-status.completed {
        white-space: nowrap;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 50vh;
        min-height: 250px;
    }

    .region-menu-wrapper {
        grid-template-columns: repeat(6, 1fr);
        padding: 6px;
        gap: 3px;
    }

    .region-menu-item {
        padding: 5px 2px;
        font-size: 12px;
    }

    .type-menu-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        max-width: 100%;
    }

    .type-menu-item {
        padding: 8px 2px;
        font-size: 11px;
        min-height: 45px;
    }

    /* Project Card Mobile */
    .projects-grid {
        margin: 0 -10px;
    }

    .project-card {
        width: 100%;
        padding: 0 10px;
    }

    .project-type {
        font-size: 13px;
        padding: 35px 25px 12px;
    }

    .project-title {
        font-size: 21px;
    }

    .project-details {
        padding: 15px 25px;
    }

    .project-details li {
        font-size: 15px;
    }

    .project-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .project-status {
        top: 155px;
        width: 60px;
        height: 60px;
        font-size: 11px;
        padding-top: 22px;
    }

    .project-status.ongoing {
        padding-top: 22px;
    }

    .project-status.upcoming,
    .project-status.completed {
        white-space: nowrap;
        padding-top: 22px;
        font-size: 11px;
    }
}
}

/* Hide Customer Register Link */
.hide-customer-register {
    display: none;
}

/* Mobile Menu Button (Hamburger) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background: #001140;
    border-radius: 10px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    transition: visibility 0.3s;
}

.mobile-sidebar.active {
    visibility: visible;
}

.mobile-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-sidebar.active .mobile-sidebar-overlay {
    opacity: 1;
}

.mobile-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-sidebar.active .mobile-sidebar-content {
    transform: translateX(0);
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #001140;
}

.mobile-sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.mobile-sidebar-close {
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.mobile-sidebar-nav a {
    padding: 18px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.mobile-sidebar-nav a:hover {
    background: #f5f5f5;
    color: #001140;
}

.mobile-sidebar-nav .mobile-phone-link {
    color: #001140;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-sidebar-nav .mobile-phone-link span {
    font-size: 20px;
}

/* Show mobile menu button on tablet and mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        display: none;
    }

    /* 모바일 하단 고정바 표시 */
    .mobile-bottom-bar {
        display: block !important;
    }

    /* 모바일에서 하단 고정바 때문에 여백 추가 */
    body {
        padding-bottom: 50px;
    }

    /* footerContent 모바일 폰트 크기 */
    #footerContent {
        font-size: 14px;
    }

    /* footer-bottom 모바일 폰트 크기 */
    .footer-bottom {
        font-size: 12px;
    }
}
