/* ==========================================================================
   Design Tokens & Root Variables
   ========================================================================== */
:root {
    --primary-color: #2e6f40;       /* 포레스트 올리브 그린: 신뢰와 안정 */
    --primary-light: #eaf3ec;       /* 초경량 그린: 배경 및 카드 강조용 */
    --primary-hover: #22532f;       /* 딥 올리브 그린: 버튼 호버 */
    --secondary-color: #c5a880;     /* 웜 샴페인 골드: 프리미엄 포인트 */
    --secondary-light: #f5eedf;     /* 초경량 골드 */
    --bg-warm: #ffffff;             /* 깔끔한 화이트 테마: 메인 바디 배경 */
    --bg-white: #ffffff;
    --text-dark: #233526;           /* 부드러운 숲속 검은색: 가독성 확보 */
    --text-mid: #526355;            /* 중간 톤 그레이-그린 */
    --text-light: #869989;          /* 밝은 그레이-그린 */
    --border-color: #e2e8e3;
    
    --font-sans: 'Noto Sans KR', sans-serif;
    --font-serif: 'Noto Serif KR', serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-subtle: 0 4px 20px rgba(46, 111, 64, 0.05);
    --shadow-medium: 0 8px 30px rgba(46, 111, 64, 0.08);
    --shadow-premium: 0 20px 40px rgba(35, 53, 38, 0.06);
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    outline: none;
}

/* ==========================================================================
   Typography & Core Elements
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
}

.section-title-wrap {
    margin-bottom: 3.5rem;
}

.sub-title {
    font-family: var(--font-sans);
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.8rem auto 0 auto;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-mid);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* Common Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 0.9rem 2rem;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(46, 111, 64, 0.2);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 111, 64, 0.3);
}

/* ==========================================================================
   Header & GNB (Desktop)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    height: 85px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
}

.logo-top-slogan {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: -0.2px;
    line-height: 1;
}

.logo-title-oneline {
    font-family: 'Jua', sans-serif;
    font-size: 1.55rem;
    font-weight: 400; /* 주아체는 자체 두께감이 있어 기본 400으로 충분합니다 */
    letter-spacing: -0.5px;
    white-space: nowrap;
    line-height: 1.1;
}

.logo-title-oneline .text-black {
    color: #1b1c1d;
}

.logo-title-oneline .text-green {
    color: var(--primary-color);
    margin: 0 2px;
}

/* Desktop Navigation */
.desktop-nav {
    height: 100%;
}

.gnb-list {
    display: flex;
    height: 100%;
    align-items: center;
}

.gnb-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.gnb-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 0;
    position: relative;
}

.gnb-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.gnb-item:hover .gnb-link {
    color: var(--primary-color);
}

.gnb-item:hover .gnb-link::after {
    width: 100%;
}

/* Dropdown LNB */
.lnb-list {
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 260px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    padding: 12px 0;
    transition: var(--transition-smooth);
}

.lnb-list li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.92rem;
    color: var(--text-mid);
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
}

.lnb-list li a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
}

.gnb-item:hover .lnb-list {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-tel-quick {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 0.6rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.2);
}

.btn-tel-quick:hover {
    background-color: #bfa075;
    transform: scale(1.03);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Mobile Overlay Menu
   ========================================================================== */
.mobile-overlay-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background-color: var(--bg-warm);
    z-index: 2000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-overlay-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-white);
}

.mobile-menu-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.menu-close-btn {
    font-size: 2rem;
    color: var(--text-dark);
    line-height: 1;
}

.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-gnb-item {
    border-bottom: 1px solid rgba(46,111,64,0.06);
}

.mobile-menu-trigger {
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mobile-menu-trigger i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.mobile-gnb-item.active .mobile-menu-trigger {
    color: var(--primary-color);
    background-color: rgba(46,111,64,0.03);
}

.mobile-gnb-item.active .mobile-menu-trigger i {
    transform: rotate(180deg);
}

.mobile-lnb {
    max-height: 0;
    overflow: hidden;
    background-color: rgba(46, 111, 64, 0.02);
    transition: max-height 0.35s ease-out;
}

.mobile-lnb li a {
    display: block;
    padding: 12px 40px;
    font-size: 0.95rem;
    color: var(--text-mid);
    border-left: 3px solid transparent;
}

.mobile-lnb li a:hover {
    color: var(--primary-color);
    border-left-color: var(--secondary-color);
    background-color: rgba(46, 111, 64, 0.05);
}

.mobile-menu-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

.mobile-footer-call {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    margin-bottom: 10px;
}

.mobile-footer-addr {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

/* ==========================================================================
   Views Setup (SPA)
   ========================================================================== */
#main-content {
    margin-top: 85px;
    min-height: calc(100vh - 85px - 250px);
}

.view-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.view-section.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   Home View Banners & Sliders
   ========================================================================== */
.hero-slider {
    position: relative;
    height: calc(100vh - 85px);
    min-height: 600px;
    max-height: 850px;
    overflow: hidden;
    background-color: #233526;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    color: var(--bg-white);
}

.slide-tag {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 1rem;
}

.slide-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease backwards;
}

.slide-desc {
    font-size: 1.35rem;
    max-width: 650px;
    margin-bottom: 2.2rem;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.slide-content .btn-primary {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--secondary-color);
    width: 30px;
    border-radius: 10px;
}

/* ==========================================================================
   Home View: Main Services Grid
   ========================================================================== */
.main-services-sec {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 20px;
}

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

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    width: 100%;
    height: 160px;
    border-radius: var(--border-radius-md);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.service-card:hover .card-icon {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-more {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

/* ==========================================================================
   Home View: FAQ Accordions
   ========================================================================== */
.main-faq-sec {
    background-color: rgba(46, 111, 64, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 6rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question i {
    font-size: 0.95rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
    background-color: rgba(46,111,64,0.01);
}

.faq-answer {
    display: none;
    padding: 24px 28px;
    color: var(--text-mid);
    border-top: 1px solid var(--border-color);
    background-color: rgba(46, 111, 64, 0.01);
}

.faq-item.active .faq-question {
    color: var(--primary-color);
    font-weight: 700;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer ul, .faq-answer ol {
    margin-top: 10px;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* ==========================================================================
   Home View: CTA Consultation Banner
   ========================================================================== */
/* ==========================================================================
   Home View: CTA Consultation Banner
   ========================================================================== */
.main-cta-sec {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 4.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-text h4 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-serif);
    color: var(--primary-color);
}

.cta-text p {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin-bottom: 1.2rem;
}

.cta-tel {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.cta-tel span {
    color: var(--text-dark);
}

.cta-btns {
    display: flex;
    gap: 15px;
}

.btn-cta-call {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(46, 111, 64, 0.2);
}

.btn-cta-call:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-cta-sub {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 50px;
}

.btn-cta-sub:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* ==========================================================================
   Sub-page Layout & Banner
   ========================================================================== */
.sub-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    z-index: 1;
}

.sub-hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
}

.sub-hero-text h2 {
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
}

.sub-hero-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

.sub-content-container {
    max-width: 1000px;
    margin: 5rem auto;
    padding: 0 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-subtle);
    padding: 5rem 4rem;
}

/* ==========================================================================
   Sub-page Contents: 1. Center Intro
   ========================================================================== */
/* Greetings */
.greeting-wrap {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 45px;
}

.greeting-img-box {
    background-color: var(--primary-light);
    border-radius: var(--border-radius-md);
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.greeting-placeholder-icon {
    font-size: 6.5rem;
    color: var(--primary-color);
    opacity: 0.85;
}

.greeting-title-badge {
    position: absolute;
    bottom: 20px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 6px 18px;
    font-size: 0.85rem;
    border-radius: 50px;
    font-weight: 500;
}

.greeting-text-box h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.greeting-text-box p {
    color: var(--text-mid);
    margin-bottom: 1.2rem;
}

.signature {
    margin-top: 2.5rem;
    text-align: right;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
}

.signature span {
    font-size: 1.4rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 2px;
}

/* Goals */
.goals-wrap .goal-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.goals-wrap .goal-header p {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 4rem;
}

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

.goal-item {
    border-left: 3px solid var(--secondary-color);
    padding-left: 24px;
}

.goal-num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.goal-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.goal-desc {
    color: var(--text-mid);
    font-size: 0.95rem;
}

/* Map & Full-width Map Layout */
.map-wrap h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.map-subtitle {
    color: var(--text-mid);
    margin-bottom: 2rem;
}

.map-display-box {
    margin-bottom: 3.5rem;
}

.map-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.map-info-card {
    background-color: var(--primary-light);
    border-radius: var(--border-radius-md);
    padding: 30px 24px;
    text-align: center;
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-white);
    color: var(--primary-color);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    box-shadow: var(--shadow-subtle);
}

.map-info-card h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.map-info-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ==========================================================================
   Sub-page Contents: 2. Insurance
   ========================================================================== */
.concept-box {
    background-color: var(--secondary-light);
    border-left: 5px solid var(--secondary-color);
    padding: 2rem 2.5rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.concept-box h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.concept-box p {
    color: var(--text-dark);
}

.section-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 3.5rem 0;
}

.insurance-targets h4 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
}

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

.target-box {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    display: flex;
    gap: 20px;
}

.target-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.target-box h5 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.target-box p {
    font-size: 0.9rem;
    color: var(--text-mid);
}

.benefit-box-info h4 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.styled-list li i {
    color: var(--secondary-color);
    margin-top: 5px;
}

/* Timeline */
.process-wrap h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.process-intro {
    color: var(--text-mid);
    margin-bottom: 3.5rem;
}

.process-timeline {
    position: relative;
    padding-left: 45px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 0;
    width: 2px;
    height: 92%;
    background-color: var(--border-color);
}

.timeline-card {
    position: relative;
    background-color: var(--bg-warm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 28px 32px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-subtle);
}

.timeline-num {
    position: absolute;
    left: -65px;
    top: 25px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(46,111,64,0.3);
}

.timeline-body h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.timeline-body p {
    font-size: 0.95rem;
    color: var(--text-mid);
}

.tip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--secondary-light);
    color: #a0845a;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Calculator & Official Link Styles */
.calc-wrap h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calc-intro {
    color: var(--text-mid);
    margin-bottom: 3.5rem;
}

.official-calc-card {
    background-color: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-medium);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.badge-icon-wrap {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem auto;
}

.official-calc-card h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.official-calc-card p {
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-size: 0.95rem;
}

.nhis-calc-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--bg-white);
    padding: 1.2rem 3rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 25px rgba(46, 111, 64, 0.25);
    transition: var(--transition-smooth);
}

.nhis-calc-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(46, 111, 64, 0.35);
}

.badge-title {
    font-size: 0.8rem;
    opacity: 0.85;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.badge-action {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Guide Grid for Calculator */
.calc-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.guide-card {
    background-color: var(--bg-warm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
    position: relative;
    transition: var(--transition-smooth);
}

.guide-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-subtle);
}

.guide-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.guide-card h5 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.guide-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* Help Box Callout */
.calc-help-box {
    display: flex;
    gap: 20px;
    background-color: var(--primary-light);
    border-left: 5px solid var(--primary-color);
    padding: 2.5rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.calc-help-box i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.calc-help-box p strong {
    color: var(--primary-color);
}

/* ==========================================================================
   Sub-page Contents: 3. Major Services
   ========================================================================== */
.service-limit {
    font-family: var(--font-sans) !important;
}

.service-limit h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.limit-intro {
    color: var(--text-mid);
    margin-bottom: 3.5rem;
}

/* Tables styling */
.table-container {
    overflow-x: auto;
    margin-bottom: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(46, 111, 64, 0.06);
    border: 1px solid rgba(46, 111, 64, 0.08);
}

.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
    background-color: var(--bg-white);
    font-family: var(--font-sans) !important;
}

.premium-table th {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 700;
    padding: 18px 16px;
    text-align: center;
    border-bottom: 2px solid var(--primary-hover);
    font-size: 0.98rem;
    letter-spacing: 0.5px;
    font-family: var(--font-sans) !important;
}

/* 둥근 테이블 테두리를 위한 첫 행/마지막 행 모서리 처리 */
.premium-table tr:first-child th:first-child {
    border-top-left-radius: 12px;
}
.premium-table tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

.premium-table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 400;
    font-family: var(--font-sans) !important;
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.premium-table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
.premium-table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.premium-table tr:hover {
    background-color: var(--primary-light);
}

/* 표 상단 타이틀 h5, h4 세련되게 다듬기 */
.service-limit h4 {
    font-family: var(--font-sans) !important;
    font-size: 1.45rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.service-limit h4::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.service-limit h5 {
    font-family: var(--font-sans) !important;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 1.2rem;
    padding: 10px 18px;
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-limit h5 .af {
    font-size: 0.85rem;
    color: var(--text-mid);
    font-weight: 400;
}

.grade-badge-cell strong {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.free-text {
    color: var(--primary-color);
    font-weight: 700;
}

.limit-callout {
    display: flex;
    gap: 15px;
    background-color: var(--primary-light);
    padding: 20px 24px;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
}

.limit-callout i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Service Detail View Cards */
.service-detail-wrap h3 {
    font-size: 1.65rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-subtext {
    color: var(--text-mid);
    margin-bottom: 3rem;
}

.service-content-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
}

.service-info-img {
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-md);
    min-height: 380px;
}

.detail-features li {
    margin-bottom: 24px;
}

.detail-features li strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.detail-features li strong i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* Family Leave Cards */
.family-leave-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-card-family {
    background-color: var(--bg-warm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 35px 28px;
}

.info-card-family h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.info-card-family h4 i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.info-card-family ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style: disc;
}

.info-card-family li {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* ==========================================================================
   Sub-page Contents: 4. Data & Articles
   ========================================================================== */
.job-scope-wrap h3, .abuse-prevent-wrap h3, .dementia-rules h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.job-intro, .abuse-intro, .rules-intro {
    color: var(--text-mid);
    margin-bottom: 3.5rem;
}

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

.scope-box {
    padding: 35px;
    border-radius: var(--border-radius-md);
}

.scope-box.allowed {
    background-color: rgba(46, 111, 64, 0.03);
    border: 1px solid rgba(46, 111, 64, 0.15);
}

.scope-box.prohibited {
    background-color: rgba(220, 53, 69, 0.02);
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.scope-box h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.scope-box.allowed h4 {
    color: var(--primary-color);
}

.scope-box.prohibited h4 {
    color: #dc3545;
}

.scope-box ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 22px;
    font-size: 0.95rem;
}

.scope-box ul li::before {
    content: '•';
    position: absolute;
    left: 8px;
    font-weight: 700;
}

.scope-box.allowed ul li::before {
    color: var(--primary-color);
}

.scope-box.prohibited ul li::before {
    color: #dc3545;
}

/* Abuse Prevention Types */
.abuse-types h4 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
}

.type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 3.5rem;
}

.type-card {
    background-color: var(--bg-warm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
}

.type-card h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

.type-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
}

.report-box {
    background-color: var(--secondary-light);
    border-radius: var(--border-radius-md);
    padding: 30px;
    text-align: center;
}

.report-box h4 {
    color: #a0845a;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.report-numbers {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.report-numbers span {
    font-weight: 700;
    font-size: 1.05rem;
}

.report-numbers strong {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Dementia Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.rule-group {
    padding: 30px;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-warm);
    border: 1px solid var(--border-color);
}

.rule-group h4 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.badge {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
}

.badge-red {
    background-color: #dc3545;
}

.badge-gold {
    background-color: var(--secondary-color);
}

.rule-group ul li {
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ==========================================================================
   Sub-page Contents: 5. Community & Board
   ========================================================================== */
.board-wrap h3, .gallery-wrap h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.board-table-container {
    overflow-x: auto;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.board-table th {
    border-top: 2px solid var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 10px;
    font-weight: 700;
}

.board-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-mid);
}

.board-table tr:hover {
    background-color: rgba(46,111,64,0.01);
}

.notice-pin {
    background-color: rgba(197, 168, 128, 0.05);
}

.pin-icon {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}

.text-left {
    text-align: left !important;
}

.text-left a {
    color: var(--text-dark);
}

.text-left a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Gallery Grid */
.gallery-intro {
    color: var(--text-mid);
    margin-bottom: 3.5rem;
}

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

.gallery-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-img-box {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.gallery-card-body {
    padding: 20px;
}

.gallery-card-body h5 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.5;
}

.gallery-card-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ==========================================================================
   Footer & Brand Info
   ========================================================================== */
.main-footer {
    background-color: #1f2d21;      /* 어두운 딥 포레스트 그린 */
    color: #b6c5b9;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--bg-white);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand-sub {
    font-size: 0.85rem;
    opacity: 0.75;
}

.footer-tel-box span {
    font-size: 0.85rem;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.2rem;
}

.footer-tel-box h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    font-family: var(--font-sans);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.footer-tel-box p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-bottom {
    padding: 2rem 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-info span {
    margin-right: 20px;
}

.copyright {
    margin-top: 1.5rem;
    opacity: 0.6;
}

/* ==========================================================================
   Media Queries & Responsive Design
   ========================================================================== */
@media (max-width: 991px) {
    .header-container {
        height: 75px;
    }
    
    .lnb-list {
        display: none;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    #main-content {
        margin-top: 75px;
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .slide-title {
        font-size: 2.6rem;
    }
    
    .greeting-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .greeting-img-box {
        height: 280px;
    }
    
    .service-content-grid {
        grid-template-columns: 1fr;
    }
    
    .service-info-img {
        min-height: 250px;
    }
    
    .calc-box-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 2.1rem;
    }
    
    .slide-desc {
        font-size: 1.05rem;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .target-grid {
        grid-template-columns: 1fr;
    }
    
    .scope-comparison {
        grid-template-columns: 1fr;
    }
    
    .type-cards {
        grid-template-columns: 1fr;
    }
    
    .sub-content-container {
        padding: 3.5rem 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .btn-tel-quick {
        display: none;
    }
    
    .logo-title {
        font-size: 1.25rem;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Main Home Full-width Map Style
   ========================================================================== */
.main-full-map {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    background-color: #e5e3df;
}

.main-full-map iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* ==========================================================================
   Happy Center Slogan Banner Styles (Image Version)
   ========================================================================== */
.happy-center-banner-img {
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    overflow: hidden;
}

.happy-banner-wrapper {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.slogan-img-fluid {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   Monthly Limit & Suga Tables Sub-classes
   ========================================================================== */
.table-title-sec {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 3.5rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
}

.table-title-sec i {
    color: var(--secondary-color);
}

.limit-sub-info {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-top: 1rem;
    padding-left: 10px;
    border-left: 3px solid var(--border-color);
}

/* ==========================================================================
   Right Side Floating Quick Menu
   ========================================================================== */
.floating-quick-menu {
    position: fixed;
    right: 25px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.quick-item i {
    font-size: 1.45rem;
}

.quick-item .quick-text {
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: -0.5px;
}

/* 전화문의 배너: 브랜드 메인 그린 */
.quick-item.call {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}
.quick-item.call:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 30px rgba(46, 111, 64, 0.3);
}

/* 블로그 바로가기: 네이버 블로그 브랜드 대표 컬러 (#3EAF0E) */
.quick-item.blog {
    background: linear-gradient(135deg, #3EAF0E, #2d820a);
}
.quick-item.blog:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 30px rgba(62, 175, 14, 0.4);
}

/* 오시는 길: 샴페인 골드 포인트 */
.quick-item.map {
    background: linear-gradient(135deg, var(--secondary-color), #bfa075);
}
.quick-item.map:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 30px rgba(197, 168, 128, 0.4);
}

/* 위로가기: 단정한 미드그레이 */
.quick-item.gotop {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    margin: 0 auto;
}
.quick-item.gotop i {
    font-size: 1.1rem;
}
.quick-item.gotop:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 모바일 전용 미디어 쿼리 대응 */
@media (max-width: 768px) {
    .floating-quick-menu {
        right: 15px;
        bottom: 20px;
        gap: 8px;
    }
    .quick-item {
        width: 52px;
        height: 52px;
    }
    .quick-item i {
        font-size: 1.25rem;
    }
    .quick-item .quick-text {
        font-size: 0.58rem;
    }
    .quick-item.gotop {
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   Admin Modal Popup Styles
   ========================================================================== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.custom-modal-content {
    background-color: #ffffff;
    border: 1px solid #3a3e4a;
    border-radius: 3px;
    width: 95%;
    max-width: 450px;
    max-height: 90vh;            /* 팝업창이 모바일/PC 화면 높이를 넘지 않도록 최대 높이 설정 */
    display: flex;
    flex-direction: column;      /* 헤더와 스크롤 바디의 분리 레이아웃 형성 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: modalSlideUp 0.15s ease-out;
}

/* 글 상세 보기 모달 등은 가로가 넓으므로 별도로 최대 높이 및 스크롤 영역 관리 */
#board-detail-modal .custom-modal-content,
#board-write-modal .custom-modal-content {
    max-width: 750px;
    max-height: 90vh;
}

#board-detail-modal .modal-body,
#board-write-modal .modal-body {
    overflow-y: auto;            /* 내용이 길면 팝업창 내에서만 스크롤이 되도록 방어 */
    flex: 1;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background-color: #3a3e4a;
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2e313b;
}

.modal-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.modal-close-btn {
    font-size: 1.4rem;
    color: #ffffff;
    opacity: 0.8;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s;
}
.modal-close-btn:hover {
    opacity: 1;
}

.modal-body {
    padding: 16px;
}

/* 그누보드 5 스타일 게시판 양식 오버라이드 및 확장 */
.gnuboard-form-table {
    width: 100%;
    border-top: 2px solid #3a3e4a;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 15px;
    border-collapse: collapse;
}

.gnuboard-form-table th {
    width: 100px;
    background-color: #f8f9fa;
    color: #333333;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 10px 12px;
    border-bottom: 1px solid #eeeeee;
    border-right: 1px solid #eeeeee;
    text-align: left;
    white-space: nowrap;
}

.gnuboard-form-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
}

.gnuboard-input {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 0.88rem;
    color: #333;
    outline: none;
    box-sizing: border-box;
}
.gnuboard-input:focus {
    border-color: #3a3e4a;
}

/* 스마트에디터2 툴바 모사 스타일 */
.se2-editor-container {
    border: 1px solid #bdbebf;
    background-color: #f4f4f4;
    border-radius: 2px;
}

.se2-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 6px;
    background-color: #f7f7f8;
    border-bottom: 1px solid #dcdcdc;
    align-items: center;
}

.se2-toolbar-btn {
    height: 24px;
    padding: 0 6px;
    background: #ffffff;
    border: 1px solid #c5c5c5;
    font-size: 0.75rem;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    gap: 4px;
}

.se2-toolbar-btn:hover {
    border-color: #999;
    background-color: #f0f0f0;
}

.se2-toolbar-sep {
    width: 1px;
    height: 16px;
    background-color: #e0e0e0;
    margin: 0 4px;
}

.se2-iframe-body {
    background-color: #ffffff;
    padding: 12px;
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #333;
    border: none;
    outline: none;
    box-sizing: border-box;
}
.se2-iframe-body:focus {
    background-color: #fff;
}

.se2-status-bar {
    height: 22px;
    background-color: #f4f4f4;
    border-top: 1px solid #dcdcdc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 0.7rem;
    color: #777;
}

/* 그누보드 5 버튼 스타일 */
.btn-gnuboard-submit {
    height: 38px;
    padding: 0 24px;
    background-color: #ff4747; /* 그누보드 테마컬러 (레드 포인트) */
    color: #ffffff;
    font-weight: bold;
    font-size: 0.88rem;
    border: 1px solid #e03b3b;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.15s;
}
.btn-gnuboard-submit:hover {
    background-color: #e03b3b;
}

.btn-gnuboard-cancel {
    height: 38px;
    padding: 0 20px;
    background-color: #ffffff;
    color: #333333;
    font-size: 0.88rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
    transition: background-color 0.15s;
}
.btn-gnuboard-cancel:hover {
    background-color: #f5f5f5;
}

/* 그누보드 5 뷰 페이지 상세 디자인 */
.gnuboard-view-container {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-top: 2px solid #333333;
    border-radius: 2px;
    padding: 20px;
    text-align: left;
}

.gnuboard-view-header {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.gnuboard-view-title {
    font-family: var(--font-sans) !important;
    font-size: 1.3rem !important;
    font-weight: bold;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.4;
}

.gnuboard-view-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.gnuboard-view-meta span strong {
    color: #444;
    font-weight: 500;
}

.gnuboard-view-meta .meta-divider {
    color: #ddd;
}

.gnuboard-view-content {
    min-height: 180px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #333;
    word-break: break-word;      /* 단어 긴 텍스트도 자연스럽게 줄바꿈되도록 수정 */
    overflow-wrap: break-word;   /* 모바일 화면을 넘치지 않게 방어 */
    white-space: pre-wrap;
}

/* 게시판 본문 내용 내부의 이미지들이 모바일 가로폭을 넘지 않도록 제한 */
.gnuboard-view-content img {
    max-width: 100% !important;
    height: auto !important;
}

.gnuboard-view-footer {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



