/* Global Variables */
:root {
    --primary-color: #1a253a;
    /* Dark Navy */
    --secondary-color: #c5a065;
    /* Gold/Bronze */
    --accent-color: #e74c3c;
    /* Red (SOS) */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Reset & Typography */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
}

.inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo a {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.gnb>ul {
    display: flex;
    gap: 30px;
}

.gnb>ul>li>a {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    padding: 10px 0;
    border-bottom: 2px solid transparent;
}

.gnb>ul>li>a:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.user-menu {
    display: flex;
    gap: 10px;
}

.user-menu a {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.btn-partners {
    background: var(--primary-color);
    color: var(--white) !important;
}

.btn-partners:hover {
    background: #2c3e50;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-danger {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Main Services */
.main-services {
    padding: 80px 0;
}

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

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

.section-title p {
    color: var(--text-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(197, 160, 101, 0.2);
}

.card:hover::after {
    transform: scaleX(1);
}

.card-icon-wrap {
    font-size: 48px;
    margin-bottom: 25px;
    width: 80px;
    height: 80px;
    background: #fbf8f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.card:hover .card-icon-wrap {
    transform: rotate(10deg) scale(1.1);
    background: #fdf2e9;
}

.card h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 800;
}

.card p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.card .case-teaser {
    font-weight: 600;
    color: var(--primary-color);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.card-footer {
    margin-top: auto;
    width: 100%;
}

.btn-text {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 2px;
}

.btn-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.btn-text:hover::before {
    width: 100%;
}

.card a:hover {
    text-decoration: underline;
}

/* Stats Section (Deleted) - Keeping grid styles if used elsewhere */
.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h4 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

/* Expert Slider Section */
.expert-section {
    background: var(--white);
    padding: 80px 0;
    overflow: hidden;
    /* For container query niceness */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.section-header h3 {
    font-size: 28px;
    color: var(--primary-color);
}

.btn-more {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

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

.expert-slider-container {
    width: 100%;
    overflow-x: auto;
    /* Horizontal Scroll */
    padding-bottom: 20px;
    /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
}

/* Hide Scrollbar */
.expert-slider-container::-webkit-scrollbar {
    height: 6px;
}

.expert-slider-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.expert-slider {
    display: flex;
    gap: 20px;
    width: max-content;
    /* Ensure items don't wrap */
}

.expert-card {
    width: 280px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.expert-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge.red {
    background-color: var(--accent-color);
}

.expert-img {
    height: 150px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.expert-info {
    padding: 20px;
}

.expert-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.expert-desc {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}


/* Footer */
.site-footer {
    background: #111;
    color: rgba(255, 255, 255, 0.6);
    padding: 50px 0;
    font-size: 14px;
    border-top: 3px solid var(--secondary-color);
}

.footer-info p {
    margin: 5px 0;
}

/* Premium Card Grid (added to end of file) */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.premium-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft large shadow */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    /* Flex layout for better height management if content differs */
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.premium-card .card-image {
    height: 150px;
    width: 100%;
    /* border-bottom-left-radius: 50% 20px;  Optional: Curve effect */
    /* border-bottom-right-radius: 50% 20px; */
    position: relative;
    background-size: cover;
    background-position: center;
}

.premium-card .card-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 125px;
    /* Overlaps image and content */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.premium-card .card-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
}

.premium-card .card-content {
    padding: 35px 20px 25px;
    /* Top padding accomdates the icon */
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.premium-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.premium-card .subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 15px;
    min-height: auto;
    /* Alignment fix */
}

/* Feature List Styling */
.feature-list {
    text-align: left;
    margin-bottom: 20px;
    padding: 0 10px;
    font-size: 14px;
    color: #555;
    flex-grow: 1;
    /* Pushes button down */
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.feature-list li span {
    color: var(--secondary-color);
    /* Checkmark color */
    margin-right: 10px;
    font-weight: bold;
}

/* Action Button */
.btn-card-action {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #3f6ad8;
    /* Matches purple/blue in image roughly */
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
}

.btn-card-action:hover {
    background: #3f6ad8;
    color: #fff;
    border-color: #3f6ad8;
}

/* Slider Controls */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-btn {
    background: var(--white);
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: var(--transition);
    user-select: none;
    flex-shrink: 0;
}

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

.slider-btn.prev {
    margin-right: 15px;
}

.slider-btn.next {
    margin-left: 15px;
}

.expert-slider-container {
    cursor: grab;
    /* Cursor hint for draggable area */
}

.expert-slider-container.active {
    cursor: grabbing;
}

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

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .inner {
        padding: 0 15px;
        /* Smaller padding */
    }

    /* Header & Nav */
    .mobile-menu-btn {
        display: flex;
    }

    .gnb {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transition: 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 80px;
    }

    .gnb.active {
        right: 0;
    }

    .gnb ul {
        flex-direction: column;
        gap: 15px;
    }

    .gnb a {
        font-size: 18px;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .user-menu {
        display: none;
        /* Hide user menu in header, maybe move inside nav for full mobile support */
    }

    /* Hero Section */
    .hero-section {
        padding: 80px 0;
    }

    .hero-section h2 {
        font-size: 28px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        margin: 0 !important;
    }

    /* Stats & Grid */
    .stats-grid {
        flex-direction: column;
        gap: 20px;
    }

    .service-grid,
    .premium-grid {
        grid-template-columns: 1fr;
        /* Single column */
    }

    /* Expert Slider */
    .expert-course {
        padding: 40px 0;
    }

    .slider-btn {
        /* Hide slider buttons on mobile (use swipe) */
        display: none;
    }
}

/* About Page Responsive */
@media (max-width: 768px) {
    .story-wrapper {
        flex-direction: column;
    }

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

/* Notice Page Styles */
.sub-visual {
    background: #001f3f;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.sub-visual h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #d4af37;
}

.sub-content {
    margin-bottom: 100px;
}

/* Notice List Table */
.notice-table {
    width: 100%;
    border-top: 2px solid #333;
    border-collapse: collapse;
}

.notice-table th,
.notice-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.notice-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #333;
}

.notice-table td.td-title {
    text-align: left;
}

.notice-table td.td-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.notice-table td.td-title a:hover {
    text-decoration: underline;
    color: #001f3f;
}

.no-data {
    padding: 50px 0;
    color: #888;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 34px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    margin: 0 3px;
    font-size: 14px;
}

.pagination a.active,
.pagination a:hover {
    background: #001f3f;
    color: #fff;
    border-color: #001f3f;
}

/* Notice View */
.notice-view-container {
    border-top: 2px solid #333;
}

.notice-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
}

.notice-title {
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: 500;
}

.notice-meta {
    font-size: 14px;
    color: #888;
}

.notice-meta span {
    margin-right: 15px;
}

.notice-body {
    padding: 40px 20px;
    border-bottom: 1px solid #ddd;
    min-height: 300px;
    line-height: 1.6;
}

.notice-body img {
    max-width: 100%;
}

.notice-btn-wrap {
    text-align: center;
    margin-top: 30px;
}

.btn-list {
    display: inline-block;
    padding: 12px 40px;
    background: #333;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.btn-list:hover {
    background: #555;
}

/* Responsive adjustment for table */
@media (max-width: 768px) {

    .th-date,
    .td-date,
    .th-views,
    .td-views {
        display: none;
    }
}


/* Submenu Styles */
.gnb ul li {
    position: relative;
}

.gnb ul li.has-sub:hover .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 160px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid #eee;
    /* Added border for definition */
}

.submenu li {
    display: block;
    margin: 0;
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    border-bottom: none;
    /* Ensure no underline from parent */
    font-weight: normal;
}

.submenu li a:hover {
    background: #f8f9fa;
    color: #001f3f;
    border-bottom: none;
}

/* Notice & FAQ Section */
.notice-faq-section {
    padding: 80px 0;
    background-color: #fff;
}

.notice-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .notice-faq-grid {
        grid-template-columns: 1fr;
    }
}

.nf-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.nf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.nf-header h3 {
    font-size: 22px;
    color: var(--primary-color);
}

.nf-more {
    font-size: 14px;
    color: #007bff;
    font-weight: 600;
}

.nf-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

.nf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nf-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
    padding: 15px 0;
}

.nf-list li:last-child {
    border-bottom: none;
}

.nf-list li a {
    color: var(--text-color);
    font-size: 16px;
    display: block;
    width: 75%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nf-list li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.nf-date {
    font-size: 14px;
    color: #888;
}

/* Construction Case Gallery */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.case-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.case-card .card-img {
    height: 220px;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.case-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.case-card .card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-card .card-title {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 3.2em;
    /* 2 lines max */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.case-card .card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
}

.case-card .btn-view {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.case-card .btn-view:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
}