@charset "utf-8";

/* Reset & Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #2D3748;
    background-color: #F7FAFC;
    /* Warm White */
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul,
li {
    list-style: none;
}

:root {
    --primary: #10B981;
    /* Emerald 500 */
    --primary-dark: #059669;
    --secondary: #3B82F6;
    /* Sky Blue */
    --text-main: #2D3748;
    --text-light: #718096;
    --bg-white: #FFFFFF;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 40px;
    /* Constrain height */
}

.logo a {
    display: block;
    height: 100%;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--secondary);
    font-weight: 300;
    font-size: 16px;
}

.gnb ul {
    display: flex;
    gap: 30px;
}

.gnb>ul>li>a {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-main);
    position: relative;
}

.gnb>ul>li>a:hover {
    color: var(--primary);
}

.gnb>ul>li>a.active {
    color: var(--primary);
}

.gnb>ul>li>a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Mobile Menu Button (Desktop Hidden) */
.m-menu-btn {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    /* Push to right */
    position: relative;
    /* Ensure z-index works */
    z-index: 1100;
    /* Higher than .gnb.active (1000) */
}

/* Mobile Extras (Inside Overlay) */
.mobile-extras {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.mobile-extras .sns-group {
    justify-content: center;
}

.mobile-extras .btn-press {
    background: var(--primary);
    color: #fff;
    width: 80%;
    text-align: center;
    padding: 10px;
}

.header-util {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* SNS Circle Icons */
.sns-group {
    display: flex;
    gap: 8px;
}

.sns-icon {
    width: 28px;
    height: 28px;
    /* background: #EDF2F7; */
    /* border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 12px; font-weight: bold; color: #718096; */
    transition: transform 0.3s;
}

.sns-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sns-icon:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Buttons */
.btn-press {
    background: var(--text-main);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.btn-press:hover {
    background: var(--primary);
}

/* Hero */
.hero-section {
    padding: 100px 20px;
    text-align: center;
    background: url(../images/main_bg.jpg) no-repeat center 70% / cover;
    border-radius: 0 0 50% 50% / 40px;
    /* 기존 border-radius 유지 */
    margin-bottom: 60px;
    overflow: hidden;
    position: relative;
    color: #333;
    /* 텍스트 가독성 고려 */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 배경이 어두울 경우를 대비한 반투명 오버레이, 필요시 조정 */
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%);
    border-radius: 50%;
}

.hero-content {
	padding: 10px 0;
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background: #fff;
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #1A202C;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 18px;
    color: #fff;
    color: #fff;
    margin-bottom: 40px;
}

/* Cards Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1A202C;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 Columns for Compactness */
    gap: 10px;
    /* Reduced gap further */
}

.eco-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid #F7FAFC;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center vertical content */
    cursor: pointer;
    height: 320px;
    /* Increased height for large icons */
    text-align: center;
}

.eco-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 150, 100, 0.15);
    /* Green tint shadow */
    border-color: var(--primary);
}

.card-icon {
    width: 130px;
    /* Much larger icon */
    height: 130px;
    background: var(--gray-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    margin: 0 auto 25px;
    /* Centered */
    color: var(--primary);
    overflow: hidden;
}

.card-icon img {
    width: 65%;
    /* adjusted internal size */
    height: 65%;
    object-fit: contain;
    /* Apply Green Filter to match #10B981 approx */
    filter: invert(56%) sepia(68%) saturate(464%) hue-rotate(106deg) brightness(88%) contrast(93%);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.card-text {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    word-break: keep-all;
}

/* .card-link styles removed */

.card-link::after {
    content: '→';
    font-size: 16px;
    transition: 0.2s;
}

.eco-card:hover .card-link::after {
    transform: translateX(5px);
}

/* Banners / Stats */
.stats-banner {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    margin-top: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

/* Footer */
/* Footer (Theme A Style) */
footer {
    background: #333;
    color: #999;
    padding: 40px 0;
    font-size: 13px;
    text-align: left;
    /* Aligned left like Theme A */
}

footer .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    display: block;
}

footer address {
    font-style: normal;
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-slogan {
    color: #ddd;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-style: italic;
}

/* Response */
/* Response */
@media (max-width: 1024px) {
    .header-inner {
        padding: 10px 20px;
        height: 60px;
    }

    .m-menu-btn {
        display: block;
    }

    /* Hide Desktop Menu */
    .gnb,
    .header-util {
        display: none;
    }

    /* Mobile Menu Overlay */
    .gnb.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        /* Above header */
        padding-top: 80px;
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
    }

    .gnb ul {
        flex-direction: column;
        gap: 0;
        /* Reset gap */
        width: 100%;
    }

    .gnb>ul>li>a {
        font-size: 18px;
        display: block;
        padding: 20px 0;
        border-bottom: 1px solid #f5f5f5;
        width: 100%;
        text-align: center;
    }

    /* Layout Responsive */
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tablet */
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-banner {
        flex-direction: column;
        gap: 30px;
    }

    /* Ensure gnb is still handled by the 1024px rule, no need to duplicate display:none */
}


/* ==========================================================================
   Sub Page Styles (Added)
   ========================================================================== */

/* Sub Page Common */
.sub-hero {
    padding: 80px 20px 100px;
    text-align: center;
    color: #fff;
    border-radius: 0 0 40px 40px;
}

.sub-hero h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.sub-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.content-wrap {
    max-width: 1000px;
    margin: -60px auto 0;
    padding: 0 20px 60px;
    position: relative;
    z-index: 10;
}

.content-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.content-title {
    font-size: 24px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F0F0F0;
}

/* Page Specific Hero Backgrounds */
.page-local .sub-hero {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.page-economy .sub-hero {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.page-realestate .sub-hero {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.page-fair .sub-hero {
    background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
}

.page-public .sub-hero {
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
}

/* Sub1 Specific (Local) */
.list-style-eco li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: #4A5568;
    line-height: 1.6;
}

.list-style-eco li::before {
    content: '■';
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 8px;
    color: var(--primary);
}

.highlight-box {
    background: #F0FFF4;
    border-left: 5px solid #10B981;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Sub2 Specific (Economy) */
.card-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mini-card {
    background: #F7FAFC;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.mini-card h4 {
    color: #3B82F6;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Sub3 Specific (Realestate) */
.big-stat-box {
    display: flex;
    justify-content: center;
    gap: 50px;
    text-align: center;
}

.big-stat-val {
    font-size: 48px;
    font-weight: 800;
    color: #D97706;
}

.big-stat-desc {
    font-size: 16px;
    color: #718096;
}

/* Sub4 Specific (Fair) */
.icon-list-item {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 20px;
}

.icon {
    width: 40px;
    height: 40px;
    background: #FEF2F2;
    color: #EF4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-list-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Sub5 Specific (Public) */
.service-box {
    background: #F7FAFC;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.service-box h4 {
    color: #2D3748;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Responsive adjustments for subpages */
@media (max-width: 768px) {
    .card-grid-small {
        grid-template-columns: 1fr;
    }

    .big-stat-box {
        flex-direction: column;
        gap: 30px;
    }
}

/* Sub1 Detail Styles (New) */
.sub-item {
    padding-left: 15px;
    margin-top: 5px;
    font-size: 0.95rem;
    color: #555;
    position: relative;
    list-style: none;
}

.sub-item::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #999;
}

.footnote {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 5px;
    padding-left: 10px;
    /* rounded box style optional */
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
}

.footnote span {
    color: var(--primary);
    font-weight: bold;
    margin-right: 4px;
}