/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ==========================================================================
   Google Fonts - Noto Serif KR
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700&display=swap');

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
    /* Font Family */
    --sg-font-serif: 'Pretendard', sans-serif;

    /* Text Colors */
    --sg-color-text-primary: #333333;
    --sg-color-text-secondary: #666666;
    --sg-color-text-tertiary: #999999;
    --sg-color-text-disabled: #d0d0d0;
    --sg-color-text-white: #ffffff;
    --sg-color-text-black: #000000;

    /* Point Colors */
    --sg-color-solar-amber: #ffc84a;
    --sg-color-solar-amber-hover: #e6b23f;
    --sg-color-cosmic-blue: #3a4bff;
    --sg-color-cosmic-blue-hover: #2f3edb;
    --sg-color-inferno-orange: #ff5a3c;
    --sg-color-inferno-orange-hover: #e94e34;

    /* Component Colors */
    --sg-color-box-fill-light: #f3f3f3;
    --sg-color-box-stroke: #d0d0d0;
    --sg-color-box-fill-dark: #333333;

    /* Background Colors */
    --sg-color-bg-light: #fafaf8;
    --sg-color-bg-dark: #222222;

    /* Typography - Desktop (Default) */
    --sg-h1-size: 32px;
    --sg-h1-weight: 700;
    --sg-h1-line-height: 41.6px;

    --sg-h2-size: 28px;
    --sg-h2-weight: 700;
    --sg-h2-line-height: 37.8px;

    --sg-h3-size: 24px;
    --sg-h3-weight: 700;
    --sg-h3-line-height: 33.6px;

    --sg-h4-size: 20px;
    --sg-h4-weight: 700;
    --sg-h4-line-height: 28px;

    --sg-body-size: 16px;
    --sg-body-weight: 400;
    --sg-body-line-height: 32px;

    --sg-sub-size: 14px;
    --sg-sub-weight: 400;
    --sg-sub-line-height: 22.4px;

    --sg-caption-size: 12px;
    --sg-caption-weight: 400;
    --sg-caption-line-height: 16.8px;

    /* Spacing */
    --sg-spacing-xs: 4px;
    --sg-spacing-sm: 8px;
    --sg-spacing-md: 12px;
    --sg-spacing-lg: 16px;
    --sg-spacing-xl: 24px;

    /* Border Radius */
    --sg-radius-sm: 2px;
    --sg-radius-md: 5px;
}

/* ==========================================================================
   Mobile Typography (Max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
    :root {
        --sg-h1-size: 24px;
        --sg-h1-line-height: 31.2px;

        --sg-h2-size: 20px;
        --sg-h2-line-height: 27px;

        --sg-h3-size: 18px;
        --sg-h3-line-height: 25.2px;

        --sg-h4-size: 18px;
        --sg-h4-line-height: 25.2px;

        --sg-body-line-height: 25.6px;
    }
}

/* ==========================================================================
   Base Typography Styles (Non-Elementor Areas Only)
   Excludes: Elementor widgets, Elementor editor, elements with Elementor classes
   ========================================================================== */

/* Apply font-family to body (Elementor can override when needed) */
body {
    font-family: var(--sg-font-serif);
    color: var(--sg-color-text-primary);
     -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.single-post .e-con>.e-con-inner {
    max-width: 640px;
}


:root {
    --real-header-h: 58px;
}


/* 기본(PC 포함) */
body:not(.home):not(.error404) #main-container .site-main {
    margin-top: 58px;
}

body.error404 #main-container .site-main {
    margin-top: 0px !important;
}

body.blog #main-container .site-main,
body.archive #main-container .site-main {
    margin-top: 58px;
}

body.single-post #main-container .site-main,
body.page-template:not(.home) #main-container .site-main {
    margin-top: 58px;
}

/* 모바일 오버라이드 */
@media (max-width: 767px) {

    body:not(.home):not(.error404) #main-container .site-main,
    body.blog #main-container .site-main,
    body.archive #main-container .site-main,
    body.single-post #main-container .site-main,
    body.page-template:not(.home) #main-container .site-main {
        margin-top: 40px;
    }
}



#wpdcom .wpd-form .wpdiscuz-textarea-wrap.wpd-txt .wpd-editor-buttons-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    position: relative !important;
    top: -35px!important;
    right: 15px!important;
}
	
	.wpd-form-row{
    display: inline-flex;
    justify-content: space-between;

    gap: 0 !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
        top: -20px !important;
    position: relative;
}

#wpdcom .wpd-form-row .wpd-form-col-right , #wpdcom .wpd-form-row .wpd-form-col-right {
    width: 50%;
}

/* ==========================================================================
   Login Button Styles (Top Header)
   - Bright: for light backgrounds
   - Dark: for dark backgrounds
   ========================================================================== */

/* Bright Login Button (Light Background) - Default */
.login_top_bright {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
    /* 140% = 16.8px */
    color: #666666;
    background-color: transparent;
    border: 1px solid #666666;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Bright Login Button - Hover */
.login_top_bright:hover {
    background-color: #e8e8e8;
    text-decoration: none !important;
}

/* Bright Login Button - Link Styles */
.login_top_bright a {
    color: #666666 !important;
    font-style: normal !important;
    text-decoration: none;
}

.login_top_bright:hover a {
    color: #666666 !important;
    text-decoration: none !important;
}

/* Dark Login Button (Dark Background) - Default */
.login_top_dark {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
    /* 140% = 16.8px */
    color: #999999;
    background-color: transparent;
    border: 1px solid #999999;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Dark Login Button - Hover */
.login_top_dark:hover {
    background-color: #4a4a4a;
    text-decoration: none !important;
}

/* Dark Login Button - Link Styles */
.login_top_dark a {
    color: #999999 !important;
    font-style: normal !important;
    text-decoration: none;
}

.login_top_dark:hover a {
    color: #999999 !important;
    text-decoration: none !important;
}

body.home #main-container .site-main {
    padding-top: var(--real-header-h);
}


/* H1 - Applies only outside Elementor context */
.entry-content h1:not([class*="elementor"]),
.site-content h1:not([class*="elementor"]),
article h1:not([class*="elementor"]) {
    font-family: var(--sg-font-serif);
    font-size: var(--sg-h1-size);
    font-weight: var(--sg-h1-weight);
    line-height: var(--sg-h1-line-height);
    color: var(--sg-color-text-primary);
}

/* H2 - Applies only outside Elementor context */
.entry-content h2:not([class*="elementor"]),
.site-content h2:not([class*="elementor"]),
article h2:not([class*="elementor"]) {
    font-family: var(--sg-font-serif);
    font-size: var(--sg-h2-size);
    font-weight: var(--sg-h2-weight);
    line-height: var(--sg-h2-line-height);
    color: var(--sg-color-text-primary);
}

/* H3 - Applies only outside Elementor context */
.entry-content h3:not([class*="elementor"]),
.site-content h3:not([class*="elementor"]),
article h3:not([class*="elementor"]) {
    font-family: var(--sg-font-serif);
    font-size: var(--sg-h3-size);
    font-weight: var(--sg-h3-weight);
    line-height: var(--sg-h3-line-height);
    color: var(--sg-color-text-primary);
}

/* H4 - Applies only outside Elementor context */
.entry-content h4:not([class*="elementor"]),
.site-content h4:not([class*="elementor"]),
article h4:not([class*="elementor"]) {
    font-family: var(--sg-font-serif);
    font-size: var(--sg-h4-size);
    font-weight: var(--sg-h4-weight);
    line-height: var(--sg-h4-line-height);
    color: var(--sg-color-text-primary);
}

/* Body text */
.entry-content p:not([class*="elementor"]),
.site-content p:not([class*="elementor"]),
article p:not([class*="elementor"]) {
    font-family: var(--sg-font-serif);
    font-size: var(--sg-body-size);
    font-weight: var(--sg-body-weight);
    line-height: var(--sg-body-line-height);
    color: var(--sg-color-text-primary);
}

/* ==========================================================================
   Typography Utility Classes (Use explicitly in templates/Elementor)
   Prefix: .sg- (Style Guide)
   ========================================================================== */

/* Heading Classes */
.sg-h1 {
    font-family: var(--sg-font-serif) !important;
    font-size: var(--sg-h1-size) !important;
    font-weight: var(--sg-h1-weight) !important;
    line-height: var(--sg-h1-line-height) !important;
    color: var(--sg-color-text-primary) !important;
}

.sg-h2 {
    font-family: var(--sg-font-serif) !important;
    font-size: var(--sg-h2-size) !important;
    font-weight: var(--sg-h2-weight) !important;
    line-height: var(--sg-h2-line-height) !important;
    color: var(--sg-color-text-primary) !important;
}

.sg-h3 {
    font-family: var(--sg-font-serif) !important;
    font-size: var(--sg-h3-size) !important;
    font-weight: var(--sg-h3-weight) !important;
    line-height: var(--sg-h3-line-height) !important;
    color: var(--sg-color-text-primary) !important;
}

.sg-h4 {
    font-family: var(--sg-font-serif) !important;
    font-size: var(--sg-h4-size) !important;
    font-weight: var(--sg-h4-weight) !important;
    line-height: var(--sg-h4-line-height) !important;
    color: var(--sg-color-text-primary) !important;
}

/* Text Classes */
.sg-body {
    font-family: var(--sg-font-serif) !important;
    font-size: var(--sg-body-size) !important;
    font-weight: var(--sg-body-weight) !important;
    line-height: var(--sg-body-line-height) !important;
    color: var(--sg-color-text-primary) !important;
}

.sg-sub {
    font-family: var(--sg-font-serif) !important;
    font-size: var(--sg-sub-size) !important;
    font-weight: var(--sg-sub-weight) !important;
    line-height: var(--sg-sub-line-height) !important;
    color: var(--sg-color-text-primary) !important;
}

.sg-caption {
    font-family: var(--sg-font-serif) !important;
    font-size: var(--sg-caption-size) !important;
    font-weight: var(--sg-caption-weight) !important;
    line-height: var(--sg-caption-line-height) !important;
    color: var(--sg-color-text-primary) !important;
}

/* ==========================================================================
   Color Utility Classes
   ========================================================================== */

/* Text Colors */
.sg-text-primary {
    color: var(--sg-color-text-primary) !important;
}

.sg-text-secondary {
    color: var(--sg-color-text-secondary) !important;
}

.sg-text-tertiary {
    color: var(--sg-color-text-tertiary) !important;
}

.sg-text-disabled {
    color: var(--sg-color-text-disabled) !important;
}

.sg-text-white {
    color: var(--sg-color-text-white) !important;
}

.sg-text-black {
    color: var(--sg-color-text-black) !important;
}

/* Point Colors */
.sg-text-amber {
    color: var(--sg-color-solar-amber) !important;
}

.sg-text-blue {
    color: var(--sg-color-cosmic-blue) !important;
}

.sg-text-orange {
    color: var(--sg-color-inferno-orange) !important;
}

/* Background Colors */
.sg-bg-light {
    background-color: var(--sg-color-bg-light) !important;
}

.sg-bg-dark {
    background-color: var(--sg-color-bg-dark) !important;
}

.sg-bg-box-light {
    background-color: var(--sg-color-box-fill-light) !important;
}

.sg-bg-box-dark {
    background-color: var(--sg-color-box-fill-dark) !important;
}

.sg-bg-amber {
    background-color: var(--sg-color-solar-amber) !important;
}

.sg-bg-blue {
    background-color: var(--sg-color-cosmic-blue) !important;
}

.sg-bg-orange {
    background-color: var(--sg-color-inferno-orange) !important;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

/* Base Button */
.sg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sg-spacing-md);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: var(--sg-font-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 16.8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Primary Button (Solar Amber) */
.sg-btn-primary {
    padding: 12px 24px;
    background-color: var(--sg-color-solar-amber);
    color: var(--sg-color-text-white);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--sg-radius-sm);
}

.sg-btn-primary:hover {
    background-color: var(--sg-color-solar-amber-hover);
}

/* Dark Button */
.sg-btn-dark {
    padding: 10px 20px;
    background-color: var(--sg-color-box-fill-dark);
    color: var(--sg-color-text-white);
    border-radius: var(--sg-radius-sm);
}

.sg-btn-dark:hover {
    background-color: #1a1a1a;
}

/* Chip Button */
.sg-btn-chip {
    padding: 8px 16px;
    background-color: transparent;
    color: var(--sg-color-text-secondary);
    border: 1px solid var(--sg-color-box-stroke);
    border-radius: var(--sg-radius-md);
    font-size: 14px;
    font-weight: 400;
}

.sg-btn-chip:hover {
    background-color: var(--sg-color-text-secondary);
    color: var(--sg-color-text-white);
}

.sg-btn-chip.active {
    background-color: var(--sg-color-text-white);
    color: var(--sg-color-text-primary);
    border-color: var(--sg-color-text-primary);
}

/* Text Button */
.sg-btn-text {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--sg-font-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--sg-color-text-primary);
    text-decoration: underline;
    padding: 0;
}

.sg-btn-text:hover {
    color: var(--sg-color-text-secondary);
}

/* Icon Button */
.sg-btn-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--sg-spacing-xs);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    color: var(--sg-color-text-primary);
    padding: 0;
}

/* ==========================================================================
   Form Input Styles
   ========================================================================== */

/* Comment/Search Input */
.sg-form-input {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--sg-color-box-fill-light);
    border-radius: var(--sg-radius-sm);
    gap: var(--sg-spacing-md);
}

.sg-form-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--sg-font-serif);
    font-size: 14px;
    color: var(--sg-color-text-tertiary);
    outline: none;
}

.sg-form-input input:focus {
    color: var(--sg-color-text-primary);
}

.sg-form-input input::placeholder {
    color: var(--sg-color-text-tertiary);
}

.sg-form-input button {
    padding: 4px 12px;
    background: transparent;
    border: none;
    font-family: var(--sg-font-serif);
    font-size: 12px;
    font-weight: 400;
    color: var(--sg-color-text-tertiary);
    cursor: pointer;
}

.sg-form-input.filled input {
    color: var(--sg-color-text-primary);
}

.sg-form-input.filled button {
    color: var(--sg-color-text-primary);
}

/* Text Input with Label */
.sg-input-group {
    display: flex;
    flex-direction: column;
    gap: var(--sg-spacing-sm);
}

.sg-input-label {
    font-family: var(--sg-font-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--sg-color-text-secondary);
}

.sg-input {
    padding: 12px;
    border: 1px solid var(--sg-color-box-stroke);
    border-radius: var(--sg-radius-sm);
    font-family: var(--sg-font-serif);
    font-size: 14px;
    color: var(--sg-color-text-primary);
    outline: none;
    background: transparent;
    transition: border-color 0.2s ease;
}

.sg-input:focus {
    border-color: var(--sg-color-cosmic-blue);
}

.sg-input::placeholder {
    color: var(--sg-color-text-tertiary);
}

/* ==========================================================================
   Link Styles (Non-Elementor)
   ========================================================================== */
.entry-content a:not([class*="elementor"]),
.site-content a:not([class*="elementor"]),
article a:not([class*="elementor"]) {
    color: var(--sg-color-cosmic-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-content a:not([class*="elementor"]):hover,
.site-content a:not([class*="elementor"]):hover,
article a:not([class*="elementor"]):hover {
    color: var(--sg-color-cosmic-blue-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Article / Card Components
   ========================================================================== */

/* Article Chip (Menu Button Style) */
.sg-article-chip {
    display: flex;
    flex-direction: column;
    gap: var(--sg-spacing-lg);
    padding: 20px;
    transition: background-color 0.2s ease;
}

.sg-article-chip-title {
    font-family: var(--sg-font-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 33.6px;
    color: var(--sg-color-text-disabled);
    transition: color 0.2s ease;
}

.sg-article-chip-subtitle {
    font-family: var(--sg-font-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 25.2px;
    color: var(--sg-color-text-primary);
    transition: color 0.2s ease;
}

.sg-article-chip:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sg-article-chip:hover .sg-article-chip-title,
.sg-article-chip:hover .sg-article-chip-subtitle {
    color: var(--sg-color-text-white);
}

/* ==========================================================================
   Utility Spacing Classes
   ========================================================================== */
.sg-mt-xs {
    margin-top: var(--sg-spacing-xs) !important;
}

.sg-mt-sm {
    margin-top: var(--sg-spacing-sm) !important;
}

.sg-mt-md {
    margin-top: var(--sg-spacing-md) !important;
}

.sg-mt-lg {
    margin-top: var(--sg-spacing-lg) !important;
}

.sg-mt-xl {
    margin-top: var(--sg-spacing-xl) !important;
}

.sg-mb-xs {
    margin-bottom: var(--sg-spacing-xs) !important;
}

.sg-mb-sm {
    margin-bottom: var(--sg-spacing-sm) !important;
}

.sg-mb-md {
    margin-bottom: var(--sg-spacing-md) !important;
}

.sg-mb-lg {
    margin-bottom: var(--sg-spacing-lg) !important;
}

.sg-mb-xl {
    margin-bottom: var(--sg-spacing-xl) !important;
}

.sg-pt-xs {
    padding-top: var(--sg-spacing-xs) !important;
}

.sg-pt-sm {
    padding-top: var(--sg-spacing-sm) !important;
}

.sg-pt-md {
    padding-top: var(--sg-spacing-md) !important;
}

.sg-pt-lg {
    padding-top: var(--sg-spacing-lg) !important;
}

.sg-pt-xl {
    padding-top: var(--sg-spacing-xl) !important;
}

.sg-pb-xs {
    padding-bottom: var(--sg-spacing-xs) !important;
}

.sg-pb-sm {
    padding-bottom: var(--sg-spacing-sm) !important;
}

.sg-pb-md {
    padding-bottom: var(--sg-spacing-md) !important;
}

.sg-pb-lg {
    padding-bottom: var(--sg-spacing-lg) !important;
}

.sg-pb-xl {
    padding-bottom: var(--sg-spacing-xl) !important;
}

/* ==========================================================================
   Elementor Global Override - Force Style Guide Typography
   All Elementor elements will use Noto Serif KR with style guide specs
   ========================================================================== */

/* Global font-family for all Elementor elements */
.elementor,
.elementor-widget,
[class*="elementor-element"],
[class*="elementor-widget"] {
    font-family: 'Noto Serif KR', serif !important;
}

/* Elementor Heading Widget - H1 */
.elementor-widget-heading h1.elementor-heading-title,
.elementor h1,
.elementor-widget h1 {
    font-family: 'Noto Serif KR', serif !important;
    font-size: var(--sg-h1-size) !important;
    font-weight: var(--sg-h1-weight) !important;
    line-height: var(--sg-h1-line-height) !important;
    /* color: var(--sg-color-text-primary) !important;*/
}

/* Elementor Heading Widget - H2 */
.elementor-widget-heading h2.elementor-heading-title,
.elementor h2,
.elementor-widget h2 {
    font-family: 'Noto Serif KR', serif !important;
    font-size: var(--sg-h2-size) !important;
    font-weight: var(--sg-h2-weight) !important;
    line-height: var(--sg-h2-line-height) !important;
    /*color: var(--sg-color-text-primary) !important;*/
}

/* Elementor Heading Widget - H3 */
.elementor-widget-heading h3.elementor-heading-title,
.elementor h3,
.elementor-widget h3 {
    font-family: 'Noto Serif KR', serif !important;
    font-size: var(--sg-h3-size) !important;
    font-weight: var(--sg-h3-weight) !important;
    line-height: var(--sg-h3-line-height) !important;

    /* color: var(--sg-color-text-primary) !important; */
}

/* Elementor Heading Widget - H4 */
.elementor-widget-heading h4.elementor-heading-title,
.elementor h4,
.elementor-widget h4 {
    font-family: 'Noto Serif KR', serif !important;
    font-size: var(--sg-h4-size) !important;
    font-weight: var(--sg-h4-weight) !important;
    line-height: var(--sg-h4-line-height) !important;
    /*color: var(--sg-color-text-primary) !important;*/
}

/* Elementor Text Editor Widget - Body Text */
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor p,
.elementor-widget p {
    /* font-family: 'Noto Serif KR', serif !important;
    font-size: var(--sg-body-size) !important;
    font-weight: var(--sg-body-weight) !important;
    line-height: var(--sg-body-line-height) !important;*/
    /*color: var(--sg-color-text-primary) !important;*/
}

/* Elementor Button Widget */
.elementor-widget-button .elementor-button,
.elementor-button {
    font-family: 'Noto Serif KR', serif !important;
}

/* Elementor Icon Box, Image Box, etc. */
.elementor-widget-icon-box .elementor-icon-box-title,
.elementor-widget-image-box .elementor-image-box-title {
    font-family: 'Noto Serif KR', serif !important;
    font-size: var(--sg-h4-size) !important;
    font-weight: var(--sg-h4-weight) !important;
    line-height: var(--sg-h4-line-height) !important;
}

.elementor-widget-icon-box .elementor-icon-box-description,
.elementor-widget-image-box .elementor-image-box-description {
    font-family: 'Noto Serif KR', serif !important;
    font-size: var(--sg-body-size) !important;
    font-weight: var(--sg-body-weight) !important;
    line-height: var(--sg-body-line-height) !important;
}

/* Elementor Tabs, Accordion, Toggle */
.elementor-widget-tabs .elementor-tab-title,
.elementor-widget-accordion .elementor-accordion-title,
.elementor-widget-toggle .elementor-toggle-title {
    font-family: 'Noto Serif KR', serif !important;
    font-size: var(--sg-h4-size) !important;
    font-weight: var(--sg-h4-weight) !important;
}

.elementor-widget-tabs .elementor-tab-content,
.elementor-widget-accordion .elementor-accordion-content,
.elementor-widget-toggle .elementor-toggle-content {
    font-family: 'Noto Serif KR', serif !important;
    font-size: var(--sg-body-size) !important;
    line-height: var(--sg-body-line-height) !important;
}

/* Elementor List Widget */
.elementor-widget-icon-list .elementor-icon-list-text {
    font-family: 'Noto Serif KR', serif !important;
    font-size: var(--sg-body-size) !important;
    line-height: var(--sg-body-line-height) !important;
}

/* Elementor Counter Widget */
.elementor-widget-counter .elementor-counter-number-wrapper,
.elementor-widget-counter .elementor-counter-title {
    font-family: 'Noto Serif KR', serif !important;
}

/* Elementor Testimonial Widget */
.elementor-widget-testimonial .elementor-testimonial-content,
.elementor-widget-testimonial .elementor-testimonial-name,
.elementor-widget-testimonial .elementor-testimonial-job {
    font-family: 'Noto Serif KR', serif !important;
}

/* ==========================================================================
   Elementor Mobile Override (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {

    .elementor-widget-heading h1.elementor-heading-title,
    .elementor h1,
    .elementor-widget h1 {
        font-size: var(--sg-h1-size) !important;
        line-height: var(--sg-h1-line-height) !important;
    }

    .elementor-widget-heading h2.elementor-heading-title,
    .elementor h2,
    .elementor-widget h2 {
        font-size: var(--sg-h2-size) !important;
        line-height: var(--sg-h2-line-height) !important;
    }

    .elementor-widget-heading h3.elementor-heading-title,
    .elementor h3,
    .elementor-widget h3 {
        font-size: var(--sg-h3-size) !important;
        line-height: var(--sg-h3-line-height) !important;
    }

    .elementor-widget-heading h4.elementor-heading-title,
    .elementor h4,
    .elementor-widget h4 {
        font-size: var(--sg-h4-size) !important;
        line-height: var(--sg-h4-line-height) !important;
    }

    .elementor-widget-text-editor,
    .elementor-widget-text-editor p,
    .elementor p {
        line-height: var(--sg-body-line-height) !important;
    }
}

/* ==========================================================================
   Off Canvas Side Menu - FIGMA MIGRATION (Strict Styling - Ultra High Specificity)
   ========================================================================== */

/* Main Panel Container - Using body prefix to beat theme bundles */
body div#offcanvas.ct-panel.ct-header {
    --panel-width: 393px !important;
    background-color: #222222 !important;
    color: #ffffff !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
    border: none !important;

}

body div#offcanvas.ct-panel.ct-header .ct-panel-inner {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #222222 !important;
    height: 100% !important;
}

/* Header/Close Button Area */
body div#offcanvas.ct-panel.ct-header .ct-panel-actions {
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 1.125rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

body div#offcanvas.ct-panel.ct-header .ct-toggle-close {
    color: #ffffff !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
    border: none !important;
    position: static !important;
    margin: 0 !important;
}

body div#offcanvas.ct-panel.ct-header .ct-toggle-close svg {
    width: 24px !important;
    height: 24px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
}

/* Content Layout */
body div#offcanvas.ct-panel.ct-header .ct-panel-content {
    padding: 2.5rem 2rem !important;
    background-color: transparent !important;
    flex-grow: 1 !important;
    overflow-y: auto !important;
}

body div#offcanvas.ct-panel.ct-header .ct-panel-content-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 3.375rem !important;
}

/* Navigation List Base */
body div#offcanvas.ct-panel.ct-header ul#menu-new-main-offcanvas,
body div#offcanvas.ct-panel.ct-header ul#menu-mobile-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body div#offcanvas.ct-panel.ct-header .menu-item {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Main Menu Links (Large) */
body div#offcanvas.ct-panel.ct-header .ct-menu-link {
    font-family: 'Noto Serif KR', serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #ffffff !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-decoration: none !important;
    display: inline-block !important;
}

/* Sub-menu styling */
body div#offcanvas.ct-panel.ct-header ul.sub-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: none !important;
}

body div#offcanvas.ct-panel.ct-header ul.sub-menu .ct-menu-link {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 2.0 !important;
    color: #ffffff !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s ease !important;
    padding: 0 !important;
}

body div#offcanvas.ct-panel.ct-header ul.sub-menu .ct-menu-link:hover {
    opacity: 1 !important;
    background: transparent !important;
    color: #ffffff !important;
}

/* Breadcrumb/Dropdown toggle adjustments */
body div#offcanvas.ct-panel.ct-header .ct-sub-menu-parent {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body div#offcanvas.ct-panel.ct-header .ct-toggle-dropdown-mobile {
    color: #ffffff !important;
    margin-left: 10px !important;
    opacity: 0.8 !important;
    background: transparent !important;
    border: none !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
}

/* Remove default Blocksy indicators/decoration */
body div#offcanvas.ct-panel.ct-header .ct-menu-link::before,
body div#offcanvas.ct-panel.ct-header .ct-menu-link::after,
body div#offcanvas.ct-panel.ct-header .ct-sub-menu-parent::after {
    display: none !important;
}

/* Header Text / Notice Area */
body div#offcanvas.ct-panel.ct-header .ct-header-text {
    margin-top: 1rem !important;
}

body div#offcanvas.ct-panel.ct-header .ct-header-text .entry-content p,
body div#offcanvas.ct-panel.ct-header .ct-header-text .entry-content a,
body div#offcanvas.ct-panel.ct-header .ct-header-text .entry-content strong {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    opacity: 0.8 !important;
    font-family: 'Noto Serif KR', serif !important;
}

body div#offcanvas.ct-panel.ct-header .ct-header-text .entry-content a {
    text-decoration: underline !important;
}

/* Fix for specific Blocksy behaviors */
body div#offcanvas.ct-panel.active {
    visibility: visible !important;
}

/* Global Reset for Offcanvas content to prevent bleed from main.min.css */
body div#offcanvas.ct-panel * {
    border-color: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Secondary Button Overall Overrides (Based on Brand Style Guide)
   Applying Secondary Button styles to all theme and plugin buttons.
   - Background: #F3F3F3
   - Text: #666666
   - Border: #D0D0D0
   - Hover Background: #E8E8E8
   ========================================================================== */

/* 1. Base Button Styles */
.button:not(#wpadminbar *):not(.product_detail_cart *):not(.ct-search-form-controls *),
.ct-button,
.added_to_cart,
.ct-button-ghost,
[type=submit]:not(#wpadminbar *):not(.product_detail_cart *):not(.ct-search-form-controls *),
.wp-element-button:not(.ct-search-form-controls *),
.wp-block-button__link,
button.regform-button,
button[class*=ajax],
.woocommerce button.button:not(.product_detail_cart *),
.woocommerce-message .showlogin,
.woocommerce-message .restore-item,
.forminator-ui[data-design=none] .forminator-button,
.fluentform .ff-el-group button.ff-btn,
.ct-button-secondary-text {
    font-family: 'Noto Serif KR', serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: normal !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    -webkit-text-decoration: none !important;
    text-decoration: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 12px 24px !important;
    border: 1px solid #D0D0D0 !important;
    appearance: none !important;
    cursor: pointer !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    text-align: center !important;
    border-radius: 0px !important;
    transition: all .12s cubic-bezier(0.455, 0.03, 0.515, 0.955) !important;
    --has-link-decoration: var(--false);

    background-color: #333333 !important;
    color: #FFFFFF !important;
}

/* 2. Hover Button Styles */
.button:hover:not(#wpadminbar *),
.ct-button:hover,
.entry-tags a:hover,
.added_to_cart:hover,
[type=submit]:hover:not(#wpadminbar *),
.wp-element-button:hover,
.wp-block-button__link:hover,
button.regform-button:hover,
button[class*=ajax]:hover,
.woocommerce button.button:hover,
.woocommerce-message .showlogin:hover,
.woocommerce-message .restore-item:hover,
.forminator-ui[data-design=none] .forminator-button:hover,
.fluentform .ff-el-group button.ff-btn:hover {
    color: #FFFFFF !important;
    border-color: #4A4A4A !important;
    background-color: #4A4A4A !important;
}

/* Boosted specificity with :not(#wpadminbar *) to override the global 14px rule */
body .ct-header-cart .ct-cart-content .buttons .button:not(#wpadminbar *),
body .ct-header-cart .ct-cart-content .buttons a.button:not(#wpadminbar *),
body .ct-header-cart .ct-cart-content .buttons a.wc-forward:not(#wpadminbar *) {
    font-size: 12px !important;
    min-height: 40px !important;
    padding: 8px 16px !important;
}





/* Specific: Apply Coupon Button Width */
button[name="apply_coupon"] {
    min-width: 140px !important;
}

/* Specific: Product Detail Add to Cart Button (Point Color - #3A4BFF) - High Specificity Override */
.product_detail_cart .elementor-widget-container .cart button.single_add_to_cart_button.button.alt {
    background-color: #3A4BFF !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 0px !important;
}

.product_detail_cart .elementor-widget-container .cart button.single_add_to_cart_button.button.alt:hover {
    background-color: #2F3EDB !important;
    color: #FFFFFF !important;
}

/* Specific: Detail Category Link (Point Color - #3A4BFF) */
.detail_category a {
    color: #3A4BFF !important;
}

.detail_category a:hover {
    color: #2F3EDB !important;
    text-decoration: underline !important;
}


/* ==========================================================================
   Form Elements Overall Overrides (Based on Brand Style Guide)
   Applying Style Guide input styling to all theme and plugin form fields.
   - Border: #D0D0D0
   - BG: #FFFFFF
   - Font: Noto Serif KR, 16px
   - Radius: 0px (Matches Button style)
   ========================================================================== */

/* 1. Base Input, Select, Textarea Styles */
/*select:not(#wpadminbar *),*/
textarea:not(#wpadminbar *),
input:is([type=url], [type=tel], [type=text], [type=time], [type=date], [type=datetime], [type=datetime-local], [type=email], [type=number], [type=search], [type=password]):not(#wpadminbar *),
.ct-pseudo-input:not(#wpadminbar *),
fieldset .wc-stripe-elements-field,
.ff-inherit-theme-style .ff-el-form-control:not([size]):not([multiple]) {
    appearance: none !important;
    width: 100% !important;
    height: 48px !important;
    /* Consistent with button height */
    color: #333333 !important;
    padding: 12px 16px !important;
    border: 1px solid #D0D0D0 !important;
    border-radius: 0px !important;
    /* Sharp corners as per recent button update */
    background-color: #FFFFFF !important;
    font-family: 'Noto Serif KR', serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    transition: color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955), border-color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955), background-color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955) !important;
}

/* Adjust Textarea specifically */
textarea {
    height: auto !important;
    min-height: 120px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Adjust Select arrow/padding */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 18px !important;
    padding-right: 40px !important;
}

/* 2. Select2 & Dropdown Compatibility */
span.select2-dropdown,
span.select2-container .select2-selection--single,
span.select2-container .select2-selection--single .select2-selection__rendered {
    font-family: 'Noto Serif KR', serif !important;
    font-size: 16px !important;
    border-radius: 0px !important;
    border-color: #D0D0D0 !important;
}

span.select2-container .select2-selection--single {
    height: 48px !important;
    background-color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
}

span.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 16px !important;
    color: #333333 !important;
}

span.select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 8px !important;
}

/* 3. Focus State */
select:focus:not(#wpadminbar *),
textarea:focus:not(#wpadminbar *),
input:focus:not(#wpadminbar *) {
    border-color: #333333 !important;
    outline: none !important;
}

/* 4. Fix Search Form Icon Button */
.ct-search-form .wp-element-button[data-button*=icon] {
    background: transparent !important;
    border: none !important;
    padding: 0 15px !important;
    min-height: 48px !important;
    width: auto !important;
    color: #666666 !important;
    box-shadow: none !important;
}

.ct-search-form .wp-element-button[data-button*=icon] svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
}

/* Ensure the loader doesn't hide the icon if not active */
.ct-search-form .ct-ajax-loader {
    display: none !important;
}

.ct-search-form .ct-ajax-loader.active {
    display: block !important;
}

/* ==========================================================================
   SINGLE POST CONTENT STYLES - Figma Migration
   Based on Figma design: 입시 아티클 홈페이지_Design
   PC: node-id=5-5217 | Mobile: node-id=5-4912
   ========================================================================== */

/* ---------------------------------------------
   CSS Custom Properties for Single Post
   --------------------------------------------- */
body.single-post {
    --sp-font-serif: 'Noto Serif KR', serif;

    /* PC Typography */
    --sp-h1-size: 32px;
    --sp-h1-weight: 700;
    --sp-h1-line-height: 1.3;

    --sp-h2-size: 28px;
    --sp-h2-weight: 700;
    --sp-h2-line-height: 1.35;

    --sp-h3-size: 24px;
    --sp-h3-weight: 700;
    --sp-h3-line-height: 1.4;

    --sp-h4-size: 20px;
    --sp-h4-weight: 700;
    --sp-h4-line-height: 1.4;

    --sp-h5-size: 18px;
    --sp-h5-weight: 700;
    --sp-h5-line-height: 1.4;

    --sp-h6-size: 16px;
    --sp-h6-weight: 700;
    --sp-h6-line-height: 1.6;

    --sp-body-size: 16px;
    --sp-body-weight: 400;
    --sp-body-line-height: 2;

    /* Colors */
    --sp-color-text-primary: #333333;
    --sp-color-text-secondary: #666666;
    --sp-color-inferno-orange: #FF5A3C;
    --sp-color-stroke: #D0D0D0;
    --sp-color-box-fill-light: #F3F3F3;
}

/* Mobile Typography Override */
@media (max-width: 767px) {
    body.single-post {
        --sp-h1-size: 24px;
        --sp-h1-line-height: 1.3;

        --sp-h2-size: 20px;
        --sp-h2-line-height: 1.35;

        --sp-h3-size: 18px;
        --sp-h3-line-height: 1.4;

        --sp-h4-size: 16px;
        --sp-h4-line-height: 1.6;

        --sp-h5-size: 16px;
        --sp-h5-line-height: 1.6;

        --sp-h6-size: 14px;
        --sp-h6-line-height: 1.6;

        --sp-body-line-height: 1.6;
    }
}

/* ---------------------------------------------
   Heading Styles: H1 - H6
   --------------------------------------------- */
body.single-post h1,
body.single-post .entry-content h1 {
    font-family: var(--sp-font-serif);
    font-size: var(--sp-h1-size);
    font-weight: var(--sp-h1-weight);
    font-style: normal;
    line-height: var(--sp-h1-line-height);
    color: var(--sp-color-text-primary);
    margin-top: 0;
    /*margin-bottom: 24px;*/
}

body.single-post h2,
body.single-post .entry-content h2 {
    font-family: var(--sp-font-serif);
    font-size: var(--sp-h2-size);
    font-weight: var(--sp-h2-weight);
    font-style: normal;
    line-height: var(--sp-h2-line-height);
    color: var(--sp-color-text-primary);
    /*margin-top: 48px;
    margin-bottom: 24px;*/
}

body.single-post h3,
body.single-post .entry-content h3 {
    font-family: var(--sp-font-serif);
    font-size: var(--sp-h3-size);
    font-weight: var(--sp-h3-weight);
    font-style: normal;
    line-height: var(--sp-h3-line-height);
    color: var(--sp-color-text-primary);
    /*margin-top: 40px;
    margin-bottom: 20px;*/
}

body.single-post h4,
body.single-post .entry-content h4 {
    font-family: var(--sp-font-serif);
    font-size: var(--sp-h4-size);
    font-weight: var(--sp-h4-weight);
    font-style: normal;
    line-height: var(--sp-h4-line-height);
    color: var(--sp-color-text-primary);
    /*margin-top: 32px;
    margin-bottom: 16px;*/
}

body.single-post h5,
body.single-post .entry-content h5 {
    font-family: var(--sp-font-serif);
    font-size: var(--sp-h5-size);
    font-weight: var(--sp-h5-weight);
    font-style: normal;
    line-height: var(--sp-h5-line-height);
    color: var(--sp-color-text-primary);
    /*margin-top: 24px;
    margin-bottom: 12px;*/
}

body.single-post h6,
body.single-post .entry-content h6 {
    font-family: var(--sp-font-serif);
    font-size: var(--sp-h6-size);
    font-weight: var(--sp-h6-weight);
    font-style: normal;
    line-height: var(--sp-h6-line-height);
    color: var(--sp-color-text-primary);
    /*margin-top: 20px;
    margin-bottom: 10px;*/
}

/* ---------------------------------------------
   Paragraph (P Tag) Styles
   --------------------------------------------- */
body.single-post .jet-listing-dynamic-field__content p,
body.single-post .entry-content p {
    font-family: var(--sp-font-serif);
    font-size: var(--sp-body-size);
    font-weight: var(--sp-body-weight);
    font-style: normal;
    line-height: var(--sp-body-line-height);
    color: var(--sp-color-text-primary);
    margin-top: 0;
    margin-bottom: 0px;
}

/* Last paragraph in section - remove bottom margin */
body.single-post .entry-content p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------
   Horizontal Rule (HR) Styles
   --------------------------------------------- */
body.single-post hr,
body.single-post .entry-content hr {
    border: none;
    border-top: 1px solid var(--sp-color-stroke);
    margin: 48px 0;
    height: 0;
    clear: both;
}

/* ---------------------------------------------
   Quick Tip Styles
   Top/bottom border box with "Quick Dip" title
   Usage: <span class="quick_tip">...</span>
   --------------------------------------------- */
body.single-post .quick_tip {
    display: block;
    position: relative;
    align-self: stretch;

    padding: 24px 0;
    padding-top: 56px;
    /* Space for title */
    background: transparent;

    /* Top and bottom borders */
    border-top: 1px solid #D0D0D0;
    border-bottom: 1px solid #D0D0D0;

    font-family: var(--sp-font-serif);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
    /* 32px */
    color: var(--sp-color-text-primary);

    /* Block-level display for span */
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 0;
}

/* Quick Dip Title */
body.single-post .quick_tip::before {
    content: "Quick Dip";
    display: block;
    position: absolute;
    top: 24px;
    left: 0;

    font-family: var(--sp-font-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #FF5A3C;

    margin-bottom: 12px;
}

/* Mobile Quick Tip */
@media (max-width: 767px) {
    body.single-post .quick_tip {
        font-size: 16px;
        line-height: 170%;
        /* Slightly tighter on mobile */
        padding-top: 52px;
    }

    body.single-post .quick_tip::before {
        font-size: 14px;
    }
}

/* ---------------------------------------------
   Blockquote2 Styles (Orange Background)
   Usage: <blockquote class="blockquote2">...</blockquote>
   --------------------------------------------- */
body.single-post blockquote.blockquote2,
body.single-post .entry-content blockquote.blockquote2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    align-self: stretch;

    padding: 24px 18px;
    background: rgba(255, 90, 60, 0.10);

    font-family: var(--sp-font-serif);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
    /* 32px */
    color: var(--sp-color-text-primary);

    margin: 24px 0;
    margin-left: 0;
    margin-right: 0;
    border: none;
    border-left: none;
    border-radius: 0;
    quotes: none;
}

body.single-post blockquote.blockquote2::before,
body.single-post blockquote.blockquote2::after {
    content: none;
}

/* Blockquote2 paragraph inside */
body.single-post blockquote.blockquote2 p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

/* Multiple paragraphs inside blockquote2 */
body.single-post blockquote.blockquote2 p+p {
    margin-top: 16px;
}

/* Bold inside blockquote2 */
body.single-post blockquote.blockquote2 strong,
body.single-post blockquote.blockquote2 b {
    font-weight: 700;
}

/* Mobile Blockquote2 */
@media (max-width: 767px) {

    body.single-post blockquote.blockquote2,
    body.single-post .entry-content blockquote.blockquote2 {
        font-size: 16px;
        line-height: 140%;
        /* 25.2px */
    }
}

/* ---------------------------------------------
   Standard Blockquote Styles (Left Border)
   Usage: <blockquote>...</blockquote>
   --------------------------------------------- */
body.single-post blockquote:not(.blockquote2),
body.single-post .entry-content blockquote:not(.blockquote2) {
    display: block;
    padding-left: 8px;
    padding-right: 0;
    align-self: stretch;

    border: none;
    border-left: 1px solid var(--sp-color-stroke);
    background: transparent;

    font-family: var(--sp-font-serif);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
    /* 32px */
    color: var(--sp-color-text-primary);

    margin: 24px 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    quotes: none;
}

body.single-post blockquote:not(.blockquote2)::before,
body.single-post blockquote:not(.blockquote2)::after {
    content: none;
}

/* Blockquote paragraph inside */
body.single-post blockquote:not(.blockquote2) p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

/* Multiple paragraphs inside blockquote */
body.single-post blockquote:not(.blockquote2) p+p {
    margin-top: 16px;
}

/* Bold inside blockquote */
body.single-post blockquote:not(.blockquote2) strong,
body.single-post blockquote:not(.blockquote2) b {
    font-weight: 700;
}

/* Mobile Standard Blockquote - Same styles for both PC and Mobile */
@media (max-width: 767px) {

    body.single-post blockquote:not(.blockquote2),
    body.single-post .entry-content blockquote:not(.blockquote2) {
        font-size: 16px;
        line-height: 200%;
        /* 32px */
    }
}

/* ---------------------------------------------
   Additional Content Elements
   --------------------------------------------- */

/* Images in post content */
body.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    display: block;
}

/* Figure and Figcaption */
body.single-post figure {
    margin: 24px 0;
}

body.single-post figcaption {
    font-family: var(--sp-font-serif);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--sp-color-text-secondary);
    text-align: center;
    margin-top: 8px;
}

/* Lists */
body.single-post ul,
body.single-post ol,
body.single-post .entry-content ul,
body.single-post .entry-content ol {
    font-family: var(--sp-font-serif);
    font-size: var(--sp-body-size);
    font-weight: var(--sp-body-weight);
    line-height: var(--sp-body-line-height);
    color: var(--sp-color-text-primary);
    margin-top: 0;
    margin-bottom: 0px;
    padding-left: 0px;
}

/* 2. 예외 처리: #header 내부의 리스트는 왼쪽 패딩을 0으로 설정 */
body.single-post #header ul,
body.single-post #header ol {
    padding-left: 0px !important;
}

/* 1. 먼저 모든 리스트에 간격 적용 */
body.single-post li,
body.single-post .entry-content li {
    margin-bottom: 8px;
}

/* 2. #header 내부의 리스트는 다시 0(또는 기존 값)으로 초기화 */
body.single-post #header li {
    margin-bottom: 0;
}

body.single-post li:last-child,
body.single-post .entry-content li:last-child {
    margin-bottom: 0;
}

/* Links within content */
body.single-post .entry-content a {
    color: #3A4BFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.single-post .entry-content a:hover {
    color: #2F3EDB;
    text-decoration: underline;
}

/* Code and Pre */
body.single-post code,
body.single-post .entry-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    background: var(--sp-color-box-fill-light);
    padding: 2px 6px;
    border-radius: 3px;
}

body.single-post pre,
body.single-post .entry-content pre {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    background: var(--sp-color-box-fill-light);
    padding: 16px;
    border-radius: 0;
    overflow-x: auto;
    margin: 24px 0;
}

body.single-post pre code {
    background: transparent;
    padding: 0;
}

/* Table */
body.single-post table,
body.single-post .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-family: var(--sp-font-serif);
    font-size: var(--sp-body-size);
}

body.single-post th,
body.single-post .entry-content th {
    font-weight: 700;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--sp-color-stroke);
}

body.single-post td,
body.single-post .entry-content td {
    padding: 12px;
    border-bottom: 1px solid var(--sp-color-stroke);
}

/* Strong / Bold */
body.single-post strong,
body.single-post b,
body.single-post .entry-content strong,
body.single-post .entry-content b {
    font-weight: 700;
}

/* Italic / Emphasis */
body.single-post em,
body.single-post i,
body.single-post .entry-content em,
body.single-post .entry-content i {
    font-style: italic;
}

/* Mobile Adjustments for Content Spacing */
@media (max-width: 767px) {

    body.single-post h2,
    body.single-post .entry-content h2 {
        margin-top: 40px;
        margin-bottom: 20px;
    }

    body.single-post h3,
    body.single-post .entry-content h3 {
        margin-top: 32px;
        margin-bottom: 16px;
    }

    body.single-post hr,
    body.single-post .entry-content hr {
        margin: 32px 0;
    }

    body.single-post p,
    body.single-post .entry-content p {
        margin-bottom: 20px;
    }

    body.single-post .quick_tip,
    body.single-post blockquote.blockquote2,
    body.single-post blockquote:not(.blockquote2) {
        margin: 20px 0;
    }
}


/* Specific: MFS Form Button Styles - ID Specificity Boost to override global styles */
body .mfs_form .button:not(#_override_),
body .mfs_form input[type="submit"]:not(#_override_),
body .mfs_form button:not(#_override_) {
    background-color: #333333 !important;
    color: #FFFFFF !important;
    border-color: #333333 !important;
}

body .mfs_form .button:hover:not(#_override_),
body .mfs_form input[type="submit"]:hover:not(#_override_),
body .mfs_form button:hover:not(#_override_) {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border-color: #000000 !important;
}

/* Search Modal Button Adjustments */
#search-modal form .ct-search-form-controls button {
    margin-top: 0px !important;
    top: -5px !important;
    position: relative;
    background-color: transparent !important;
    border: none !important;
    /* Ensure no border if inherited */
}

#search-modal form .ct-search-form-controls button:hover {
    background-color: transparent !important;
    /* No background on hover */
    color: #333333 !important;
    /* Change icon color to darker gray */
}

/* =========================================
   Search Results Page Styling
   ========================================= */

/* Main Container Spacing */
body.search .site-main {
    padding-top: 60px;
    padding-bottom: 60px;
    max-width: 960px;
    margin: auto;
}

/* Page Title ("...에 대한 검색 결과") */
body.search .page-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 40px;
    text-align: left !important;
    /* Force Left Align */
}

/* Force Left Alignment for Hero Section if needed */
body.search .hero-section {
    text-align: left !important;
    align-items: flex-start !important;
}

/* Entry Card Layout */
body.search .entry-card {
    border-bottom: 1px solid #D0D0D0;
    padding: 40px 0;
    display: flex;
    flex-direction: row;
    /* Changed to row */
    align-items: flex-start !important;
    /* Force Left Align */
    text-align: left !important;
    gap: 16px;
}

/* Remove default bottom margin for grid items in search results */
body.search [data-archive=default][data-layout=simple]>article:not(:last-child) {
    margin-bottom: 0 !important;
}

/* Category (Meta) */
body.search .entry-meta,
body.search .entry-meta a {
    font-family: "Noto Serif KR", sans-serif;
    font-size: 14px;
    color: #3A4BFF !important;
    /* Point Blue */
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 4px;
}

/* Entry Title */
body.search .entry-title {
    margin: 0;
    line-height: 1.4;
}

body.search .entry-title a {
    font-family: 'Noto Serif KR', serif;
    font-size: 24px;
    /* H3 Desktop */
    font-weight: 700;
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.search .entry-title a:hover {
    color: #3A4BFF;
}

/* Read More Button ("더 보기") */
body.search .entry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border: 1px solid #D0D0D0;
    background-color: #F3F3F3;
    color: #666666;
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 26px;
    /* Increased by 10px (16px -> 26px) */
    cursor: pointer;
}

body.search .entry-button:hover {
    background-color: #E8E8E8;
    /* Hover Fill */
    color: #333333;
    border-color: #D0D0D0;
}

body.search .entry-button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin-left: 4px;
}

/* Pagination */
body.search .ct-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: flex-start !important;
    /* Force Left Align */
    align-items: center;
    gap: 8px;
}

body.search .ct-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #D0D0D0;
    /* Navigation Stroke */
    background-color: #F3F3F3;
    /* Navigation Box */
    color: #666666;
    /* Secondary Color */
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Current Page */
body.search .ct-pagination .page-numbers.current {
    background-color: #333333;
    /* Primary */
    color: #FFFFFF;
    /* White */
    border-color: #333333;
    font-weight: 700;
}

/* Hover State */
body.search .ct-pagination .page-numbers:not(.current):not(.dots):hover {
    background-color: #E8E8E8;
    color: #333333;
}

/* Dots */
body.search .ct-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #999999;
    cursor: default;
}

/* Next/Prev Buttons */
body.search .ct-pagination .next.page-numbers,
body.search .ct-pagination .prev.page-numbers {
    font-weight: 700;
    padding: 0 20px;
    width: auto;
}

body.search .ct-pagination .next.page-numbers svg,
body.search .ct-pagination .prev.page-numbers svg {
    width: 10px;
    height: 10px;
    margin: 0 6px;
    fill: currentColor;
}

.dodn-modal-box {
    max-width: 960px;
}

/* =========================================
   Order Complete Page Styling (Strict Figma Match)
   ========================================= */

/* 1. Hide Default WooCommerce Elements */
.woocommerce-thankyou-order-received,
.woocommerce-order-overview.order_details,
.woocommerce-column__title {
    display: none !important;
}

/* 2. Page Title Override */
.woocommerce-checkout .hero-section .page-title,
.woocommerce-order-received .hero-section .page-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 40px;
}

.woocommerce-order-received .ct-container-full {
    padding-top: 0;
}

.woocommerce-order-received #main-container .site-main {
    width: 960px;
    margin: auto;
}

/* 3. Custom Order Header (Order Num, Info) - Defined in thankyou.php */
.dodn-order-header-wrap {
    margin-bottom: 60px;
}

.dodn-order-number-section {
    margin-bottom: 30px;
}

.dodn-label {
    font-family: "Noto Serif KR", sans-serif;
    font-size: 12px;
    color: #999999;
    margin-bottom: 8px;
    display: block;
}

.dodn-value-lg {
    font-family: 'Noto Serif KR', serif;
    font-size: 28px !important;
    font-style: normal;
    font-weight: 700 !important;
    line-height: 135% !important;
    /* 37.8px */
}

.dodn-order-info-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 20px;
    flex-direction: column;
}

.dodn-info-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dodn-info-item .dodn-label {
    margin-bottom: 0;
    min-width: 80px;
    font-size: 14px;
    color: #666666;
}

.dodn-info-item .dodn-value {
    font-family: "Noto Serif KR", sans-serif;
    font-size: 14px;
    color: #666666;
    font-weight: 400;
}

/* 4. Section Titles (Downloads, Order Details, Customer Details) */
.woocommerce-order h2,
.woocommerce-order h3,
.woocommerce-order h4,
.msmp-email-section h4 {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin-top: 50px;
    margin-bottom: 20px;
}

/* 5. Tables Global Style (Downloads, Order Details) */
/* Reset borders */
table.shop_table,
table.order_details,
.bank-account-info table,
.download-table {
    border: none !important;
    border-collapse: collapse !important;
    width: 100%;
    margin-bottom: 40px;
}

table.shop_table td,
table.shop_table th,
table.order_details td,
table.order_details th,
.bank-account-info table td,
.bank-account-info table th {
    border: none !important;
    /* Reset all first */
    border-bottom: 1px solid #E5E5E5 !important;
    /* Only bottom border */
    padding: 16px 8px;
    text-align: left;
    font-size: 14px;
}

/* Header Specifics */
table.shop_table thead th,
table.order_details thead th,
.bank-account-info table th {
    font-weight: 400;
    color: #999999;
}

/* Cell Specifics */
table.shop_table td,
.bank-account-info table td {
    color: #333333;
}

/* Links (Product Names, Downloads) */
table.shop_table a,
.download-table a {
    color: #3A4BFF !important;
    text-decoration: none;
    font-weight: 400;
}

/* Remove last border if needed, or keep for consistency */
table.shop_table tr:last-child td {
    border-bottom: 1px solid #E5E5E5 !important;
}

/* 6. Order Detail Totals (Footer) */
table.shop_table tfoot th {
    font-weight: 400;
    color: #666666;
    text-align: left;
    padding-left: 8px;
}

table.shop_table tfoot td {
    text-align: right;
    font-weight: 700;
    /* Values are bold */
    color: #333333;
    padding-right: 8px;
}

/* 7. Billing Address Section */
.woocommerce-customer-details h2 {
    display: block !important;
    /* Ensure title is visible if hidden previously */
    border-bottom: none;
    padding-bottom: 0;
}

.woocommerce-customer-details address {
    border: 0;
    background-color: transparent;
    padding: 0px;
    font-family: "Noto Serif KR", sans-serif;
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
    color: #666666;
    border-radius: 4px;
}

.woocommerce-customer-details address p {
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .dodn-order-info-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================
   404 Page Styling
   ========================================= */

/* Body Background */
body.error404 {
    background-color: #FAFAF8;
}

/* Main Container: Full Height & Centering */
body.error404 .site-main {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}


body.error404 .ct-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}


/* Title ("이런! 해당 페이지를 찾을 수 없습니다.") */
body.error404 .page-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* Description */
body.error404 .page-description {
    font-family: 'Noto Serif KR', serif;
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Hide Search Form */
body.error404 .entry-content form {
    display: none !important;
}

/* Go to Main Button */
.btn-go-main {
    display: inline-flex;
    padding: 14px 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #3A4BFF;
    /* Point Blue */
    color: #FFFFFF !important;
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.btn-go-main:hover {
    background-color: #2F3EDB;
    color: #FFFFFF !important;
}

/* ==========================================================================
   CARITAS_LAYOUT2 MERGED STYLES START HERE
   ========================================================================== */


/* --- Merged from variables.css --- */
:root {
    /* Brand Colors (Catholic Busan Style - Diocese) */
    --color-primary: #76103b;
    /* Key color */
    --color-primary-light: #9d154f;
    --color-primary-dark: #5a0c2d;
    --color-accent: #EAB308;
    /* Gold/Yellow for warming */

    /* Brand Colors (Caritas) */
    --color-caritas: #E11D48;
    /* Red */
    --color-caritas-light: #F43F5E;
    --color-caritas-dark: #BE123C;

    /* Neutrals */
    --color-bg: #F8FAFC;
    --color-white: #FFFFFF;
    --color-text: #1E293B;
    --color-text-light: #64748B;
    --color-border: #E2E8F0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 100%);
    --gradient-caritas: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
    --gradient-warm: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    --spacing-2xl: 96px;

    /* Typography */
    --font-heading: 'Gyeonggi_Batang_Regular', 'Noto Serif KR', serif;
    --font-body: 'Pretendard', sans-serif;
    --font-point: 'Gyeonggi_Batang_Regular', 'Noto Serif KR', serif;

    /* Font Weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Base Font Sizes (PC) */
    --fs-h1: 48px;
    --fs-h2: 40px;
    --fs-h3: 36px;
    --fs-h4: 28px;
    --fs-h5: 20px;
    --fs-h6: 18px;
    --fs-body: 16px;
    --fs-small: 14px;

    /* Line Heights */
    --lh-heading: 1.2;
    --lh-sub: 1.4;
    --lh-body: 1.6;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 1000;
    --z-header: 1100;
    --z-modal: 1200;
}

/* --- Merged from layout.css --- */
/* Container */
.container {
    width: 100%;
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Section Padding */
.section-padding {
    padding: var(--spacing-2xl) 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-label {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, rgba(144, 26, 0, 0.1) 0%, rgba(193, 68, 14, 0.1) 100%);
    color: var(--color-primary);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    line-height: var(--lh-heading);
}

.section-description {
    font-size: var(--fs-h5);
    font-weight: var(--fw-light);
    color: var(--color-text-light);
    line-height: var(--lh-body);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(144, 26, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(144, 26, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-white {
    background: white;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--color-primary);
}

.btn-outline-primary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline-primary:hover {
    background: var(--color-primary);
    color: white;
}

.btn-lg {
    padding: 18px 40px;
    font-size: var(--fs-h5);
}

/* Utilities */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: var(--fs-h2);
    }

    .section-description {
        font-size: var(--fs-body);
    }

    .btn {
        padding: 12px 24px;
        font-size: var(--fs-small);
    }

    .btn-lg {
        padding: 16px 32px;
        font-size: var(--fs-body);
    }
}

/* --- Merged from components.css --- */
/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: transparent;
    transition: all var(--transition-base);
}

.header-top {
    background: var(--gradient-primary);
    padding: 12px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-links {
    display: flex;
    gap: var(--spacing-md);
}

.quick-links a,
.quick-links button {
    color: white;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.quick-links button {
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

.quick-links a:hover,
.quick-links button:hover {
    opacity: 0.8;
}

.header-sns {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--fs-small);
    transition: var(--transition-fast);
}

.header-sns a i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-size: var(--fs-body);
    transition: var(--transition-fast);
}

.header-sns a i:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.header-util-link {
    font-size: 13px !important;
    font-weight: var(--fw-medium);
    margin-right: 8px;
    opacity: 0.9;
}

.header-util-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.header-main {
    --nav-base-width: 696.3px;
    --nav-hover-width: 1056px;
    --mega-offset-x: 0px;
    padding: var(--spacing-md) 0;
    background: rgba(255, 255, 255, 0);
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.header-main:hover,
.header.scrolled .header-main {
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
}

.header-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    transition: var(--transition-fast);
    filter: brightness(0) invert(1);
}

.header-main:hover .logo img,
.header.scrolled .header-main .logo img {
    filter: none;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: var(--nav-hover-width);
}

.nav-menu {
    width: min(var(--nav-base-width), 100%);
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: stretch;
    transition: width 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.header-main:hover .nav-menu {
    width: min(var(--nav-hover-width), 100%);
}

.nav-menu > li {
    min-width: 0;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: var(--fs-h5);
    font-weight: var(--fw-semibold);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.header-main:hover .nav-menu li a,
.header.scrolled .header-main .nav-menu li a {
    color: var(--color-text);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: white;
}

.header-main:hover .nav-menu li a:hover,
.header.scrolled .header-main .nav-menu li a:hover,
.header-main:hover .nav-menu li a.active,
.header.scrolled .header-main .nav-menu li a.active {
    color: var(--color-primary);
}

/* Submenu / Mega Menu Styles */
.nav-menu li.has-submenu {
    position: static;
}

.nav-menu li.has-submenu>a {
    padding-right: 0;
}

/* 화살표 기본 비노출 (hover 시에도 노출 X) */
.nav-menu li.has-submenu>a::before {
    display: none;
}

/* active 시 아래방향 화살표 노출 */
.nav-menu li.has-submenu>a.active::before {
    display: none;
}

/* Mega Menu Panel: Accordion style dropdown */
.mega-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    box-shadow: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease 0.1s, visibility 0.6s;
    z-index: 100;
    border-top: 1px solid #E8E8E8;
}

.header-main:hover .mega-menu-panel {
    max-height: 700px; /* 콘텐츠를 충분히 덮을 크기 */
    opacity: 1;
    visibility: visible;
}

.mega-menu-inner {
    width: min(var(--nav-base-width), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    transform: translateX(var(--mega-offset-x));
    transition: width 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    left: 65px;
    position: relative;
}

.header-main:hover .mega-menu-inner {
    width: min(var(--nav-hover-width), 100%);
    gap: 0;
}

.mega-menu-col {
    width: auto;
    border-right: 1px solid #E8E8E8;
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 0 12px;
    box-sizing: border-box;
    min-width: 0;
    text-align: left; /* 좌측 정렬 요청 반영 */
}

.mega-menu-col:last-child {
    border-right: none;
}

.mega-menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease 0.15s;
}

.header-main:hover .mega-menu-col ul {
    opacity: 1;
    transform: translateY(0);
}

.mega-menu-col ul li a {
    display: block;
    width: 100%;
    padding: 6px 0;
    color: var(--color-text) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: var(--transition-fast);
    text-align: center !important;
    line-height: 1.4;
    white-space: normal;
    word-break: keep-all;
}

.mega-menu-col ul li a::after,
.mega-menu-col ul li a::before {
    display: none !important;
}

.mega-menu-col ul li a:hover {
    color: var(--color-primary) !important;
}

/* Hide old submenu styles */
.submenu {
    display: none !important;
}

/* .nav-menu li.has-submenu:hover>a::before 회전 효과 제거됨 */
.header-actions {
    display: flex;
    gap: 16px;
}

.btn-search,
.btn-menu {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px; /* 막대 사이 간격 정적 부여 */
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: var(--fs-h4);
    transition: var(--transition-fast);
}

.header-main:hover .btn-search,
.header-main:hover .btn-menu,
.header.scrolled .header-main .btn-search,
.header.scrolled .header-main .btn-menu {
    background: var(--color-bg);
    color: var(--color-text);
}

.btn-search:hover,
.btn-menu:hover {
    background: var(--color-primary) !important;
    color: white !important;
}

.btn-menu {
    display: none;
}

.btn-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    margin: 0; /* 부모의 gap으로 조절 */
    transition: var(--transition-fast);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    margin-top: 0;
}

.hero-slide {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-label {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: var(--fw-bold);
    color: white !important;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: var(--fs-h4);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 12px;
    font-weight: var(--fw-semibold);
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, white, transparent);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========================================
   QUICK MENUS (FLOATING SIDEBAR - RIGHT)
   ======================================== */

.quick-menus {
    position: fixed;
    top: 50%;
    right: -95px;
    /* Hidden initially, toggled by JS */
    transform: translateY(-50%);
    z-index: 1000;
    transition: right var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.quick-menus.active {
    right: 0;
}

.quick-menu-toggle {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 1001;
}

.quick-menu-toggle i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s;
}

.quick-menus.active .quick-menu-toggle i {
    transform: rotate(45deg);
}

.quick-menu-toggle span {
    font-size: 11px;
    font-weight: var(--fw-semibold);
}

.quick-menu-grid {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px 0 0 20px;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 95px;
    transition: width var(--transition-base);
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 15px 0;
    transition: var(--transition-base);
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    width: 95px;
}

.quick-link:last-child {
    border-bottom: none;
}

.quick-link:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.quick-icon {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.quick-link span {
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
}

/* On mobile */
@media (max-width: 768px) {
    .quick-menu-toggle {
        width: 50px;
        height: 50px;
        left: -50px;
    }

    .quick-menu-toggle i {
        font-size: 16px;
    }

    .quick-menu-toggle span {
        font-size: 10px;
    }

    .quick-icon {
        width: 36px;
        font-size: 16px;
    }

    .quick-menu-grid {
        width: 85px;
    }

    .quick-link {
        padding: 12px 0;
        width: 85px;
    }
}

/* ========================================
   HOME DUAL GRID (Banner & Notice)
   ======================================== */
.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.main-banner {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 400px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.banner-slider,
.banner-slider .swiper-slide {
    height: 100%;
}

.banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 60px 40px 80px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: white;
    z-index: 2;
}

.banner-text .badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-primary);
    color: white;
    font-size: 13px;
    font-weight: var(--fw-semibold);
    border-radius: 50px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text h3 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-text p {
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    color: white;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.banner-slider .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.banner-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-accent);
}

.main-notice {
    padding: 40px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}

.notice-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notice-tabs button,
.notice-tabs .title-bold {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: var(--fw-bold);
    background: none;
    padding: 0;
    color: var(--color-text-light);
    transition: var(--transition-fast);
}

.notice-tabs button.active,
.notice-tabs .title-bold {
    color: var(--color-text);
}

.notice-tabs .divider {
    color: var(--color-border);
}

.title-bold {
    margin-right: 12px;
}

.news-filters {
    display: flex;
    gap: 8px;
}

.news-filters button {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    background: white;
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    color: var(--color-text-light);
    transition: var(--transition-fast);
}

.news-filters button.active,
.news-filters button:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.notice-more {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 50%;
    color: var(--color-text-light);
    transition: var(--transition-fast);
}

.notice-more:hover {
    background: var(--color-primary);
    color: white;
}

.notice-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.notice-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--color-border);
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list .badge {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 4px;
    font-weight: var(--fw-semibold);
    flex-shrink: 0;
}

.badge-blue {
    background: var(--color-primary-light);
    color: white;
}

.badge-light {
    background: var(--color-text);
    color: white;
}

.notice-list a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--fs-body);
    color: var(--color-text);
    transition: var(--transition-fast);
}

.notice-list a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.notice-list .date {
    font-size: var(--fs-small);
    color: var(--color-text-light);
    flex-shrink: 0;
}

/* ========================================
   HOME MIDDLE CARDS
   ======================================== */
.bg-light {
    background-color: var(--color-bg);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.cbs-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.cbs-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.cbs-card-header {
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.cbs-card-title {
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
}

.cbs-card-more {
    color: var(--color-text-light);
    transition: var(--transition-fast);
}

.cbs-card-more:hover {
    color: var(--color-primary);
}

.cbs-card-body {
    position: relative;
    height: 320px;
    flex: 1;
    overflow: hidden;
}

.cbs-card-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.cbs-card:hover .cbs-card-body img {
    transform: scale(1.05);
}

.cbs-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Changed to solid semi-transparent for better centered text legibility */
    color: white;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cbs-card-overlay h4 {
    font-size: 22px;
    font-weight: var(--fw-bold);
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cbs-card-overlay p {
    font-size: 15px;
    color: white;
    opacity: 0.9;
    line-height: 1.5;
}

.cbs-card-overlay.align-bottom {
    justify-content: center;
}

/* Dark Card Variant for Sermons */
.dark-card {
    background: var(--color-text);
    color: white;
}

.dark-card .cbs-card-title {
    color: white;
}

.dark-card .cbs-card-header {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-card .cbs-card-more {
    color: white;
}

/* ========================================
   PHOTO NEWS
   ======================================== */
.mb-xl {
    margin-bottom: var(--spacing-xl);
    border-bottom: none;
    padding-bottom: 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.photo-item {
    cursor: pointer;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.5);
}

.photo-item:hover .photo-img img {
    transform: scale(1.05);
}

.photo-img {
    overflow: hidden;
    height: 220px;
    position: relative;
}

.photo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.photo-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--color-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: var(--fw-semibold);
}

.bg-green {
    background: #10B981;
}

.photo-info {
    padding: var(--spacing-md) var(--spacing-lg);
}

.photo-info h4 {
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: var(--transition-fast);
}

.photo-item:hover .photo-info h4 {
    color: var(--color-primary);
}

.photo-info .date {
    font-size: var(--fs-small);
    color: var(--color-text-light);
}

/* ========================================
   EVENT CALENDAR (DUAL PANE)
   ======================================== */
.calendar-wrap {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.calendar-month {
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
}

.calendar-prev-btn,
.calendar-next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    border: none;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.calendar-prev-btn:hover,
.calendar-next-btn:hover {
    background: var(--color-primary);
    color: white;
}

.pseudo-calendar {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.pseudo-calendar th {
    padding: 12px 0;
    font-weight: var(--fw-semibold);
    color: var(--color-text-light);
    border-bottom: 2px solid var(--color-border);
}

.pseudo-calendar td {
    padding: 12px 0;
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    z-index: 1;
}

.pseudo-calendar td::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: -1;
    transition: var(--transition-fast);
}

.pseudo-calendar td:not(.empty):hover::before {
    background: var(--color-bg);
}

.pseudo-calendar td.empty {
    color: transparent;
    cursor: default;
}

.pseudo-calendar td.has-event {
    color: var(--color-primary);
    font-weight: var(--fw-bold);
}

/*.pseudo-calendar td.has-event::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-caritas);
    border-radius: 50%;
    z-index: 2;
}*/

.pseudo-calendar td.active {
    color: white;
    font-weight: var(--fw-bold);
}

.pseudo-calendar td.active::before {
    background: var(--color-primary);
}

.pseudo-calendar td.active:hover {
    color: var(--color-text);
}

.pseudo-calendar td.active:hover::before {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.pseudo-calendar td.active::after {
    background: white;
}

.pseudo-calendar td.active:hover::after {
    background: var(--color-primary);
}

.event-list-wrap {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.event-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 12px;
}

.event-list-header h3 {
    font-size: 22px;
    font-weight: var(--fw-bold);
}

.text-primary {
    color: var(--color-primary);
}

.event-scroll-area {
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
    padding-right: 12px;
}

/* Custom Scrollbar */
.event-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.event-scroll-area::-webkit-scrollbar-track {
    background: var(--color-bg);
    border-radius: 4px;
}

.event-scroll-area::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.event-scroll-area::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-light);
}

.event-row {
    display: flex;
    gap: 24px;
    padding: 24px;
    margin-bottom: var(--spacing-sm);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.event-row:last-child {
    margin-bottom: 0;
}

.event-row:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
    background: white;
}

.event-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    flex-shrink: 0;
    border-right: 1px solid var(--color-border);
    padding-right: 16px;
}

.edate-day {
    font-size: 42px;
    font-weight: var(--fw-bold);
    color: var(--color-text);
    line-height: 1;
}

.edate-month {
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: var(--fw-medium);
    margin-bottom: 4px;
}

.event-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0px 0;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: var(--fw-medium);
    border-radius: 50px;
    color: white;
    text-align: center;
}

.event-item .badge {
    margin-bottom: 0;
    min-width: 50px;
}

.badge-caritas {
    background: var(--gradient-caritas);
}

.badge-diocese {
    background: var(--color-primary);
}

.event-title {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    color: var(--color-text);
    transition: var(--transition-fast);
}

.event-row:hover .event-title {
    color: var(--color-primary);
}

.event-location,
.event-time {
    font-size: var(--fs-small);
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.event-location i,
.event-time i {
    width: 16px;
    color: var(--color-primary-light);
    margin-right: 4px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #2C3E50;
    color: white;
}

.footer-main {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-xl);
}

.footer-logo {
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.footer-sns {
    display: flex;
    gap: 12px;
}

.footer-sns a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: var(--fs-h5);
    transition: var(--transition-fast);
}

.footer-sns a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.footer-title {
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
    margin-bottom: var(--spacing-md);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

/* Rosario Caritas Elementor history timeline */
.rsc-caritas-layout2 .rsc-history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.rsc-caritas-layout2 .rsc-history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: var(--color-border);
}

.rsc-caritas-layout2 .rsc-history-year-block {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.rsc-caritas-layout2 .rsc-history-year-block:last-child {
    margin-bottom: 0;
}

.rsc-caritas-layout2 .rsc-history-point {
    position: absolute;
    left: 11px;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--color-primary);
    z-index: 1;
}

.rsc-caritas-layout2 .rsc-history-year {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    margin: 0 0 20px;
}

.rsc-caritas-layout2 .rsc-history-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.rsc-caritas-layout2 .rsc-history-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.rsc-caritas-layout2 .rsc-history-month-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rsc-caritas-layout2 .rsc-history-month-item {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
}

.rsc-caritas-layout2 .rsc-history-month-item:last-child {
    margin-bottom: 0;
}

.rsc-caritas-layout2 .rsc-history-month {
    flex: 0 0 44px;
    font-weight: var(--fw-bold);
    color: var(--color-primary);
}

.rsc-caritas-layout2 .rsc-history-text {
    min-width: 0;
}

@media (max-width: 768px) {
    .rsc-caritas-layout2 .rsc-history-timeline {
        padding: 24px 0;
    }

    .rsc-caritas-layout2 .rsc-history-year-block {
        padding-left: 46px;
        margin-bottom: 36px;
    }

    .rsc-caritas-layout2 .rsc-history-year {
        font-size: 26px;
    }

    .rsc-caritas-layout2 .rsc-history-card {
        padding: 20px;
    }

    .rsc-caritas-layout2 .rsc-history-month-item {
        gap: 12px;
        font-size: 16px;
    }
}

/* Rosario Caritas Elementor location */
.rsc-caritas-layout2 .rsc-location-map {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 40px;
    background: #eef2f7;
    box-shadow: var(--shadow-sm);
}

.rsc-caritas-layout2 .rsc-location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.rsc-caritas-layout2 .rsc-location-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.rsc-caritas-layout2 .rsc-location-card {
    display: flex;
    gap: 24px;
    min-width: 0;
    padding: 40px 30px;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.rsc-caritas-layout2 .rsc-location-card:hover {
    border-color: rgba(0, 0, 0, 0.16);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.rsc-caritas-layout2 .rsc-location-icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    color: var(--color-primary);
    font-size: 24px;
}

.rsc-caritas-layout2 .rsc-location-text {
    min-width: 0;
}

.rsc-caritas-layout2 .rsc-location-text h3 {
    margin: 0 0 12px;
    color: var(--color-text);
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
}

.rsc-caritas-layout2 .rsc-location-text p {
    margin: 0 0 8px;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
}

.rsc-caritas-layout2 .rsc-location-highlight {
    color: var(--color-primary);
    font-weight: var(--fw-bold);
}

.rsc-caritas-layout2 .rsc-location-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin-top: 12px;
    padding: 10px 22px;
    border-radius: var(--radius-lg);
    background: var(--color-primary);
    color: #fff;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    line-height: 1;
    text-decoration: none;
    transition: var(--transition-fast);
}

.rsc-caritas-layout2 .rsc-location-map-link:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .rsc-caritas-layout2 .rsc-location-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rsc-caritas-layout2 .rsc-location-map {
        height: 360px;
        margin-bottom: 28px;
    }

    .rsc-caritas-layout2 .rsc-location-card {
        flex-direction: column;
        gap: 18px;
        padding: 28px 22px;
    }
}

.footer-links li,
.footer-contact li {
    margin-left: 0;
}

.footer-links a {
    font-size: var(--fs-small);
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 8px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    font-size: var(--fs-small);
    opacity: 0.8;
}

.footer-contact i {
    color: var(--color-primary);
    font-size: var(--fs-body);
}

.footer-bottom {
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    text-align: center;
    font-size: var(--fs-small);
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {

    .card-grid,
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dual-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .header-top,
    .header-sns {
        display: none;
    }

    /* Mobile Side Navigation (Slide from Left) */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100%;
        background: #fff;
        z-index: var(--z-fixed);
        padding: 80px 20px 40px;
        transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        display: block !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 15px !important;
        width: 100% !important;
    }

    .nav-menu li {
        width: 100%;
        position: relative;
    }

    .nav-menu li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        font-size: 18px;
        font-weight: 600;
        color: var(--color-text);
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-menu li a:hover,
    .nav-menu li a.active {
        background: rgba(var(--color-primary-rgb, 42, 120, 182), 0.1);
        color: var(--color-primary);
        padding-left: 15px; /* 호버 시 간격 늘어남 방지 (기본 패딩 유지) */
        transform: none; /* 혹시 모를 트랜스폼 제거 */
    }

    /* Mobile Submenu Accordion */
    .nav-menu li.has-submenu .submenu {
        display: block !important;
        position: static;
        width: 100%;
        background: transparent;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding-left: 20px;
        border-left: 2px solid #eee;
        margin-left: 10px;
        margin-top: 5px;
    }

    .nav-menu li.has-submenu.open .submenu {
        max-height: 1000px;
        margin-bottom: 10px;
    }

    .submenu li a {
        font-size: 16px;
        font-weight: 400;
        padding: 10px 15px;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    /* Add Arrow Icon for submenu toggle - Only for Active or Open item */
    .nav-menu li.has-submenu > a.active::after,
    .nav-menu li.has-submenu.open > a::after {
        content: '\f107';
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 14px;
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .nav-menu li.has-submenu > a::after {
        display: none; /* 기본 비노출 */
    }

    .nav-menu li.has-submenu.open > a::after {
        display: inline-block;
        transform: rotate(180deg);
    }

    /* 모바일에서는 데스크탑용 좌측/Active 화살표 아이콘 사용 안 함 */
    .nav-menu li.has-submenu > a::before {
        display: none !important;
    }

    /* Hide desktop mega menu on mobile */
    .mega-menu-panel {
        display: none !important;
    }

    /* Mobile Logo in Sidenav */
    .mobile-logo {
        display: block;
        margin-bottom: 40px;
        padding-left: 15px;
    }

    .mobile-logo img {
        height: 40px;
    }

    /* Mobile Menu Button Animation */
    .btn-menu {
        display: flex;
        z-index: calc(var(--z-fixed) + 1);
    }

    .btn-menu.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .btn-menu.active span:nth-child(2) { opacity: 0; }
    .btn-menu.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    /* Navigation Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: calc(var(--z-fixed) - 1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Prevent scrolling when menu is open */
    .mobile-nav-open {
        overflow: hidden;
    }
}

/* Hide mobile-logo on desktop */
.mobile-logo {
    display: none;
}

@media (max-width: 768px) {
    .btn-search {
        display: none;
    }
    .hero-title {
        font-size: 42px;
    }


    .hero-description {
        font-size: var(--fs-body);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .card-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .news-filters {
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Merged from components_addon.css --- */
/* Magazine Slider */
.magazine-slider {
    padding: 0 40px;
}

.magazine-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.magazine-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.magazine-cover {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.magazine-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.magazine-issue {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    font-weight: var(--fw-bold);
    font-size: var(--fs-small);
    border-radius: 50px;
}

.magazine-info {
    padding: var(--spacing-lg);
    text-align: center;
}

.magazine-title {
    font-size: 22px;
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: 8px;
}

.magazine-theme {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.btn-sm {
    padding: 10px 24px;
    font-size: var(--fs-small);
}

/* Photo Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.2);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: var(--fs-h4);
    font-weight: var(--fw-bold);
    margin-bottom: 8px;
}

.gallery-overlay p {
    font-size: var(--fs-small);
    opacity: 0.9;
}

/* Recruitment */
.recruitment-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.recruitment-tab-btn {
    padding: 12px 32px;
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    color: var(--color-text-light);
    background: white;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.recruitment-tab-btn:hover {
    color: var(--color-text);
}

.recruitment-tab-btn.active {
    background: var(--gradient-primary);
    color: white;
}

.recruitment-panel {
    display: none;
}

.recruitment-panel.active {
    display: block;
}

.recruitment-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.recruitment-item {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.recruitment-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.recruitment-badge {
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: white;
    font-size: 13px;
    font-weight: var(--fw-bold);
    border-radius: 50px;
    flex-shrink: 0;
}

.recruitment-badge.ended {
    background: #95a5a6;
}

.recruitment-info {
    flex: 1;
}

.recruitment-title {
    font-size: var(--fs-h4);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: 12px;
}

.recruitment-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: var(--fs-small);
    color: var(--color-text-light);
}

.recruitment-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.recruitment-meta i {
    color: var(--color-primary);
}

/* Event Calendar */
.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.calendar-prev-btn,
.calendar-next-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-sm);
    font-size: var(--fs-h3);
    color: var(--color-primary);
    transition: var(--transition-fast);
}

.calendar-prev-btn:hover,
.calendar-next-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.calendar-month {
    font-size: 28px;
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.event-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    display: flex;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.event-date-badge {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.event-day {
    font-size: 32px;
    font-weight: var(--fw-bold);
    line-height: 1;
}

.event-month {
    font-size: 12px;
    font-weight: var(--fw-semibold);
    opacity: 0.9;
    letter-spacing: 1px;
}

.event-info {
    flex: 1;
}

.event-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(144, 26, 0, 0.1);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: var(--fw-semibold);
    border-radius: 50px;
    margin-bottom: 8px;
}

.event-title {
    font-family: var(--font-body);
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: 12px;
}

.event-location,
.event-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-small);
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.event-location i,
.event-time i {
    color: var(--color-primary);
}

/* Responsive for new sections */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .recruitment-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .recruitment-meta {
        flex-direction: column;
        gap: 8px;
    }

    .calendar-month {
        font-size: 22px;
    }

    .event-card {
        flex-direction: column;
    }

    .magazine-cover {
        height: 300px;
    }
}

/* --- Merged from subpage.css --- */
/* ========================================
   SUBPAGE STYLES
   ======================================== */

.sub-header {
    position: relative;
    height: 480px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 130px;
    margin-top: 0;
    
}

/* ---- Subpage header: always white background ---- */
.about-page .header-main,
.history-page .header-main,
.location-page .header-main,
.work-page .header-main {
    background: transparent !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    border-bottom-color: transparent;
}
.about-page .header-main .logo img,
.history-page .header-main .logo img,
.location-page .header-main .logo img,
.work-page .header-main .logo img {
    filter: brightness(0) invert(1);
}
.about-page .header-main .nav-menu li a,
.history-page .header-main .nav-menu li a,
.location-page .header-main .nav-menu li a,
.work-page .header-main .nav-menu li a {
    color: var(--color-text);
}
.about-page .header-main .nav-menu li a:hover,
.about-page .header-main .nav-menu li a.active,
.history-page .header-main .nav-menu li a:hover,
.history-page .header-main .nav-menu li a.active,
.location-page .header-main .nav-menu li a:hover,
.location-page .header-main .nav-menu li a.active,
.work-page .header-main .nav-menu li a:hover,
.work-page .header-main .nav-menu li a.active {
    color: var(--color-primary);
}
.about-page .header-main .btn-search,
.about-page .header-main .btn-menu,
.history-page .header-main .btn-search,
.history-page .header-main .btn-menu,
.location-page .header-main .btn-search,
.location-page .header-main .btn-menu,
.work-page .header-main .btn-search,
.work-page .header-main .btn-menu {
    background: var(--color-bg);
    color: var(--color-text);
}

@media (max-width: 768px) {
    .sub-header {
        height: 330px;
        padding-top: 80px;
        margin-top: 0;
    }
}

.sub-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sub-header .container {
    position: relative;
    z-index: 2;
}

.sub-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: var(--fw-bold);
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.sub-description {
    font-size: var(--fs-h5);
    font-weight: var(--fw-medium);
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* ========================================
   SUB NAVIGATION (LNB)
   ======================================== */

.sub-nav {
    background: white;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.sub-nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-nav-list li {
    flex: 1;
    max-width: 250px;
}

.sub-nav-list a {
    display: block;
    text-align: center;
    padding: 12px 0;
    font-size: var(--fs-h5);
    font-weight: var(--fw-semibold);
    color: var(--color-text-light);
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
}

.sub-nav-list a:hover {
    color: var(--color-primary);
}

.sub-nav-list a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: var(--fw-bold);
}

@media (max-width: 768px) {
    .sub-nav-list {
        flex-wrap: wrap;
    }

    .sub-nav-list li {
        max-width: 33.333%;
    }

    .sub-nav-list a {
        font-size: 14px;
        padding: 12px 0;
    }
}

/* ========================================
   SUBPAGE MAIN CONTENT & SECTIONS
   ======================================== */

.sub-main {
    background: #FFFFFF;
}

.about-section {
    padding: 80px 0;
}

.section-divider {
    height: 1px;
    background: var(--color-border);
    max-width: 1000px;
    margin: 0 auto;
}

.highlight-text {
    font-weight: var(--fw-bold);
    font-size: var(--fs-h5);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

/* Greeting */
.greeting-content {
    display: flex;
    gap: 60px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.greeting-img {
    flex: 0 0 40%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.greeting-img img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.greeting-text {
    flex: 1;
}

.greeting-text h3 {
    font-size: 32px;
    font-weight: var(--fw-bold);
    margin-bottom: 24px;
    color: var(--color-text);
}

.greeting-text p {
    font-size: var(--fs-h5);
    line-height: 1.8;
    color: var(--color-text);
}

.signature {
    margin-top: 40px;
    text-align: right;
    font-size: 20px !important;
}

@media (max-width: 900px) {
    .greeting-content {
        flex-direction: column;
    }

    .greeting-img {
        flex: 1;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    background: white;
    padding: 50px 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-base);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.bg-primary-light {
    background: var(--color-bg);
}

.mission-card .icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

.mission-card h3 {
    font-size: 24px;
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    margin-bottom: 16px;
}

.mission-card p {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }
}

/* CI Content */
.ci-content {
    display: flex;
    gap: 60px;
    align-items: center;
    background: white;
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.ci-img-box {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
}

.ci-img-box img {
    max-width: 100%;
}

.ci-text {
    flex: 1;
}

.ci-text h4 {
    font-size: 24px;
    font-weight: var(--fw-bold);
    margin-bottom: 24px;
}

.ci-text ul {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.ci-text li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.ci-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.ci-download {
    display: flex;
    gap: 16px;
}

@media (max-width: 768px) {
    .ci-content {
        flex-direction: column;
        padding: 30px;
    }

    .ci-img-box {
        flex: 1;
        width: 100%;
    }
}

/* Org Chart (Simplified Box Design) */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.org-level {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.org-box {
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: var(--fw-bold);
    border: 2px solid transparent;
    text-align: center;
    min-width: 150px;
    box-shadow: var(--shadow-sm);
}

.bg-dark {
    background: var(--color-text);
    color: white;
}

.bg-primary {
    background: var(--color-primary);
    color: white;
}

.bg-gray {
    background: #E2E8F0;
    color: var(--color-text);
}

.org-box.outline {
    background: white;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.org-line-vertical {
    width: 2px;
    height: 30px;
    background: var(--color-border);
    margin-bottom: 30px;
    margin-top: -30px;
}

.org-line-fork {
    width: 170px;
    border-top: 2px solid var(--color-border);
    margin-bottom: 30px;
    margin-top: -30px;
}

.org-line-fork.wide {
    width: 500px;
}

@media (max-width: 768px) {
    .org-line-fork.wide {
        width: 250px;
    }

    .org-level.org-bottom {
        flex-wrap: wrap;
    }
}
/* ========================================
   ABOUT PAGE: GREETING + MISSION/VISION (2026)
   ======================================== */

#greeting .greeting-content {
    align-items: stretch;
    padding: 52px;
    border-radius: 26px;
    border: 1px solid #efe6ea;
    background: linear-gradient(140deg, #ffffff 0%, #fffafc 100%);
}

#greeting .greeting-text {
    min-width: 0;
}

#greeting .greeting-main-quote {
    color: #b11221;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.33;
    letter-spacing: -0.01em;
    font-weight: var(--fw-bold);
    margin-bottom: 10px;
}

#greeting .greeting-scripture {
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: var(--fw-medium);
    color: #505050;
    margin-bottom: 30px;
}

#greeting .greeting-text p {
    font-size: clamp(16px, 1.4vw, 22px);
    line-height: 1.86;
    margin-bottom: 12px;
}

#greeting .signature {
    margin-top: 26px;
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: var(--fw-bold);
    color: #111;
}

#greeting .bishop-portrait-wrap {
    flex: 0 0 340px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    position: relative;
    align-self: center;
    overflow: visible;
}

#greeting .portrait-orbit {
    position: absolute;
    border-radius: 50%;
    background: rgba(95, 142, 183, 0.2);
    z-index: 1;
}

#greeting .orbit-1 {
    width: 78px;
    height: 78px;
    right: -26px;
    top: 42px;
}

#greeting .orbit-2 {
    width: 52px;
    height: 52px;
    right: -58px;
    bottom: 58px;
}

#greeting .orbit-3 {
    width: 24px;
    height: 24px;
    left: -18px;
    bottom: 36px;
}

#greeting .bishop-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 3;
    background: #f3f4f6;
}

#greeting .greeting-photo-placeholder {
    display: none;
}

#greeting .bishop-portrait-wrap.is-missing {
    border: 2px dashed #d5d5d5;
    background: radial-gradient(circle at 30% 30%, #f8fafc, #e2e8f0);
}

#greeting .bishop-portrait-wrap.is-missing .bishop-portrait {
    display: none;
}

#greeting .bishop-portrait-wrap.is-missing .greeting-photo-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6d6d6d;
    text-align: center;
    font-size: 18px;
    font-weight: var(--fw-semibold);
    padding: 18px;
    z-index: 2;
}

#mission .mission-visual {
    background: #fff;
    border: 1px solid #efe8eb;
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
    padding: 42px;
    margin-bottom: 42px;
}

#mission .mv-stage {
    position: relative;
    border-radius: 12px;
    border: 1px solid #ead8df;
    padding: 34px 20px 20px;
    text-align: center;
}

#mission .mv-stage.mission {
    background: #f8edf2;
}

#mission .mv-stage.vision {
    border-color: #e5d9d1;
    background: #f7f1ed;
}

#mission .mv-badge {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: #b41658;
    color: #fff;
    font-size: clamp(18px, 1.8vw, 28px);
    font-weight: var(--fw-bold);
    border-radius: 6px;
    min-width: 280px;
    text-align: center;
    padding: 10px 18px;
}

#mission .mv-stage.vision .mv-badge {
    background: #bc5e2b;
}

#mission .mv-body {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: var(--fw-semibold);
    line-height: 1.45;
    color: #bf2c50;
}

#mission .mv-stage.vision .mv-body {
    color: #b45f31;
}

#mission .mv-line {
    width: 2px;
    height: 34px;
    margin: 0 auto;
    background: #c8c8c8;
}

#mission .mv-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

#mission .mv-panel {
    border: 1px solid #91c0dc;
    border-radius: 10px;
    padding: 20px 24px;
    background: #ebf6fe;
}

#mission .mv-panel h3 {
    margin: 0 0 14px;
    font-size: clamp(18px, 1.7vw, 26px);
    color: #146f9f;
    font-weight: var(--fw-bold);
    text-align: center;
}

#mission .mv-panel ol {
    margin: 0;
    padding-left: 24px;
}

#mission .mv-panel ol li {
    font-size: clamp(16px, 1.35vw, 21px);
    line-height: 1.68;
    color: #245770;
}

#mission .mv-spirit {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    align-items: center;
    gap: 16px;
}

#mission .mv-spirit-left {
    margin: 0;
    font-size: clamp(18px, 1.6vw, 27px);
    line-height: 1.35;
    text-align: center;
    font-weight: var(--fw-bold);
    color: #245770;
}

#mission .mv-spirit-right {
    border-left: 1px solid #8eb5cb;
    padding-left: 16px;
}

#mission .mv-spirit-right p {
    margin: 0;
    font-size: clamp(17px, 1.5vw, 24px);
    line-height: 1.5;
    color: #245770;
    font-weight: var(--fw-semibold);
}

#mission .guideline-article {
    margin-top: 26px;
}

#mission .guideline-article h3 {
    margin: 0 0 6px;
    color: #af1527;
    font-size: clamp(28px, 2.6vw, 44px);
    font-weight: var(--fw-bold);
}

#mission .guideline-theme {
    margin: 0 0 24px;
    color: #b60d1f;
    font-size: clamp(20px, 2vw, 32px);
    font-weight: var(--fw-bold);
}

#mission .guideline-article p {
    margin: 0 0 20px;
    color: #124e84;
    font-size: clamp(15px, 1.25vw, 20px);
    line-height: 1.86;
    letter-spacing: -0.01em;
}

#mission .practice-guideline {
    margin-top: 20px;
}

#mission .practice-guideline h3 {
    margin: 0 0 14px;
    color: #af1527;
    font-size: clamp(30px, 2.8vw, 48px);
    font-weight: var(--fw-bold);
}

#mission .practice-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#mission .practice-list li {
    border: 1px solid #dfdfdf;
    background: #f3f3f3;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 10px;
}

#mission .practice-list li:last-child {
    margin-bottom: 0;
}

#mission .practice-list p {
    margin: 0;
    color: #333;
    font-size: clamp(15px, 1.2vw, 19px);
    line-height: 1.62;
}

#mission .practice-heading {
    font-weight: var(--fw-bold);
    margin-bottom: 3px;
}

@media (max-width: 1180px) {
    #greeting .greeting-content {
        padding: 36px;
        gap: 32px;
    }

    #greeting .bishop-portrait-wrap {
        flex-basis: 280px;
        width: 280px;
        height: 280px;
    }

    #mission .mission-visual {
        padding: 30px 24px;
    }
}

@media (max-width: 900px) {
    #greeting .greeting-content {
        flex-direction: column;
        padding: 30px 22px;
    }

    #greeting .bishop-portrait-wrap {
        width: 250px;
        height: 250px;
        flex-basis: 250px;
    }
}

@media (max-width: 768px) {
    #mission .mv-bottom {
        grid-template-columns: 1fr;
    }

    #mission .mv-badge {
        width: calc(100% - 22px);
        min-width: auto;
    }

    #mission .mv-stage {
        padding: 34px 12px 18px;
    }

    #mission .mv-spirit {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #mission .mv-spirit-right {
        border-left: 0;
        border-top: 1px solid #8eb5cb;
        padding-left: 0;
        padding-top: 10px;
    }

    #mission .mv-spirit-right p {
        text-align: center;
    }
}

/* ========================================
   MISSION INFOGRAPHIC V2
   ======================================== */
#mission .mission-visual {
    padding: clamp(24px, 3vw, 40px);
    border-radius: 20px;
    border: 1px solid #e8e8e8;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

#mission .mv-stage {
    border-radius: 6px;
    border-width: 1px;
    padding: clamp(30px, 3vw, 40px) 20px 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

#mission .mv-stage.mission {
    border-color: #e5bfd0;
    background: #f5e8ee;
}

#mission .mv-stage.vision {
    border-color: #e6cbbd;
    background: #f5efec;
}

#mission .mv-badge {
    min-width: min(52vw, 360px);
    border-radius: 4px;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

#mission .mv-body {
    font-size: clamp(22px, 2.1vw, 36px);
    font-weight: 700;
}

#mission .mv-line {
    height: 26px;
    background: #bcbcbc;
}

#mission .mv-branch {
    position: relative;
    height: 26px;
}

#mission .mv-branch::before {
    content: '';
    position: absolute;
    left: 22%;
    right: 22%;
    top: 0;
    border-top: 1px solid #bcbcbc;
}

#mission .mv-bottom {
    position: relative;
    gap: clamp(18px, 2.2vw, 28px);
    margin-top: 6px;
}

#mission .mv-panel {
    border-color: #7fb5d8;
    border-radius: 4px;
    padding: clamp(20px, 2.4vw, 28px);
    background: #cfe4f1;
    position: relative;
    box-shadow: 0 10px 22px rgba(28, 92, 130, 0.08);
}

#mission .mv-panel::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -27px;
    width: 1px;
    height: 27px;
    background: #bcbcbc;
}

#mission .mv-panel h3 {
    color: #fff;
    background: #4ea0cd;
    border-radius: 2px;
    display: inline-block;
    padding: 9px 20px;
    margin: -42px auto 18px;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    box-shadow: 0 8px 18px rgba(25, 96, 136, 0.25);
}

#mission .mv-panel ol {
    padding-left: 1.2em;
}

#mission .mv-panel ol li {
    font-size: clamp(19px, 1.4vw, 33px);
    line-height: 1.58;
    color: #1f5471;
    font-weight: 600;
}

#mission .mv-spirit {
    grid-template-columns: minmax(90px, 0.9fr) 1.35fr;
    gap: 20px;
}

#mission .mv-spirit-left {
    font-size: clamp(20px, 1.5vw, 34px);
    color: #1f5471;
}

#mission .mv-spirit-right {
    border-left: 2px solid #74a3c2;
    padding-left: 18px;
}

#mission .mv-spirit-right p {
    font-size: clamp(19px, 1.45vw, 33px);
    color: #1f5471;
    font-weight: 600;
}

@media (max-width: 1024px) {
    #mission .mv-branch::before {
        left: 12%;
        right: 12%;
    }

    #mission .mv-panel h3 {
        margin-top: -38px;
    }
}

@media (max-width: 768px) {
    #mission .mv-branch {
        display: none;
    }

    #mission .mv-panel::before {
        display: none;
    }

    #mission .mv-panel h3 {
        margin-top: -8px;
        transform: none;
        left: 0;
        display: block;
    }

    #mission .mv-body {
        font-size: 24px;
    }

    #mission .mv-panel ol li,
    #mission .mv-spirit-right p,
    #mission .mv-spirit-left {
        font-size: 20px;
    }
}

#mission .mv-branch + .mv-stage {
    display: none;
}

/* ========================================
   ABOUT INFOGRAPHIC V3
   ======================================== */

#greeting .greeting-content {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 360px);
    gap: clamp(22px, 2.8vw, 42px);
    align-items: stretch;
    padding: clamp(24px, 3vw, 44px);
    border-radius: 22px;
    border: 1px solid #e8e3e7;
    background:
        radial-gradient(circle at 8% 12%, rgba(186, 34, 76, 0.07), transparent 38%),
        radial-gradient(circle at 90% 88%, rgba(64, 141, 187, 0.08), transparent 34%),
        #fff;
}

#greeting .greeting-main-quote {
    margin: 0 0 6px;
    padding: clamp(18px, 2vw, 24px);
    border-radius: 14px;
    background: #fff1f3;
    border-left: 6px solid #b11833;
    color: #b11833;
    font-size: clamp(24px, 2.2vw, 38px);
    line-height: 1.4;
    font-weight: 700;
}

#greeting .greeting-scripture {
    margin: 0 0 24px;
    color: #6d6d6d;
    font-size: clamp(16px, 1.25vw, 22px);
    font-weight: 600;
}

#greeting .greeting-text p {
    margin: 0 0 11px;
    color: #222;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.84;
}

#greeting .signature {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #d3d3d3;
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 700;
}

#greeting .bishop-portrait-wrap {
    width: 100%;
    max-width: 360px;
    height: auto;
    min-height: 100%;
    border-radius: 20px;
    background: linear-gradient(160deg, #12273f 0%, #2f516d 56%, #6a8fa5 100%);
    padding: 10px;
    box-shadow: 0 18px 34px rgba(19, 44, 66, 0.22);
    overflow: hidden;
}

#greeting .portrait-orbit {
    display: none;
}

#greeting .bishop-portrait {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
    border: 0;
    box-shadow: none;
}

#greeting .bishop-portrait-wrap.is-missing {
    background: linear-gradient(160deg, #f2f6f9, #dfe8ef);
    border: 2px dashed #bfd0de;
}

#greeting .bishop-portrait-wrap.is-missing .greeting-photo-placeholder {
    position: static;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #48667c;
    font-size: 20px;
    font-weight: 700;
}

#mission .mission-visual {
    padding: clamp(24px, 3vw, 40px);
    border-radius: 24px;
    border: 1px solid #e3e5e8;
    background:
        linear-gradient(180deg, #fcfdfe 0%, #f5f8fb 100%);
    box-shadow: 0 12px 26px rgba(31, 58, 80, 0.08);
}

#mission .mv-stage {
    border-radius: 6px;
    border: 1px solid transparent;
    padding: 36px 20px 20px;
}

#mission .mv-stage.mission {
    border-color: #dfbccb;
    background: #f3e5ec;
}

#mission .mv-stage.vision {
    border-color: #e5cab8;
    background: #f4ece8;
}

#mission .mv-badge {
    min-width: min(56vw, 420px);
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    font-size: clamp(18px, 1.6vw, 30px);
    letter-spacing: 0.01em;
}

#mission .mv-body {
    font-size: clamp(24px, 2vw, 38px);
    font-weight: 700;
    line-height: 1.42;
}

#mission .mv-line {
    width: 2px;
    height: 24px;
    background: #b6b8bb;
}

#mission .mv-branch {
    position: relative;
    height: 26px;
}

#mission .mv-branch::before {
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    top: 0;
    border-top: 1px solid #b6b8bb;
}

#mission .mv-branch + .mv-stage {
    display: none;
}

#mission .mv-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 26px);
    margin-top: 0;
}

#mission .mv-panel {
    position: relative;
    border: 1px solid #80b2d1;
    border-radius: 4px;
    padding: clamp(18px, 2vw, 26px);
    background: #cde2f0;
}

#mission .mv-panel::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -26px;
    transform: translateX(-50%);
    width: 1px;
    height: 26px;
    background: #b6b8bb;
}

#mission .mv-panel h3 {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: -40px auto 16px;
    display: inline-block;
    padding: 10px 18px;
    border-radius: 2px;
    background: #4e9ec9;
    color: #fff;
    box-shadow: 0 8px 16px rgba(31, 99, 134, 0.25);
    font-size: clamp(18px, 1.4vw, 28px);
}

#mission .mv-panel ol {
    padding-left: 1.2em;
    margin: 0;
}

#mission .mv-panel ol li {
    color: #1f526f;
    font-size: clamp(18px, 1.25vw, 24px);
    line-height: 1.58;
    font-weight: 600;
}

#mission .mv-spirit {
    grid-template-columns: minmax(88px, 0.95fr) 1.35fr;
    gap: 18px;
}

#mission .mv-spirit-left {
    color: #1f526f;
    font-size: clamp(20px, 1.4vw, 28px);
    font-weight: 700;
}

#mission .mv-spirit-right {
    border-left: 2px solid #76a8c5;
    padding-left: 16px;
}

#mission .mv-spirit-right p {
    color: #1f526f;
    font-size: clamp(18px, 1.25vw, 24px);
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    #greeting .greeting-content {
        grid-template-columns: 1fr;
    }

    #greeting .bishop-portrait-wrap {
        max-width: 420px;
        margin: 0 auto;
    }

    #mission .mv-branch::before {
        left: 10%;
        right: 10%;
    }
}

@media (max-width: 768px) {
    #mission .mv-badge {
        min-width: auto;
        width: calc(100% - 24px);
    }

    #mission .mv-bottom {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #mission .mv-branch,
    #mission .mv-panel::before {
        display: none;
    }

    #mission .mv-panel h3 {
        left: 0;
        transform: none;
        display: block;
        margin: -6px 0 14px;
        text-align: center;
    }

    #mission .mv-spirit {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #mission .mv-spirit-right {
        border-left: 0;
        border-top: 2px solid #76a8c5;
        padding: 10px 0 0;
    }

    #mission .mv-spirit-right p,
    #mission .mv-spirit-left,
    #mission .mv-panel ol li {
        text-align: center;
    }
}
/* ========================================
   GUIDELINE / PRACTICE BOX CONSISTENCY V4
   ======================================== */
#mission .guideline-article,
#mission .practice-guideline {
    margin-top: 0;
}

#mission .info-box {
    position: relative;
    border: 1px solid #222222;
    padding: 40px;
    padding-top: 60px;
    margin-top: 70px;
}

#mission .info-box.info-box-odd {
    background: #ffffff;
}

#mission .info-box.info-box-even {
    background: #cde2f0;
}

#mission .info-box-title {
    position: absolute;
    top: 0px;
    left: 15px;
    font-size: 22px;
    display: inline-block;
    padding: 10px 20px;
    transform: translateY(-50%);
    background-color: #fff;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    margin: 0;
}

#mission .guideline-theme {
    margin-top: 4px;
    color: var(--color-text);
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
}

#mission .guideline-article p {
    color: var(--color-text);
    font-size: var(--fs-h5);
    line-height: 1.85;
}

#mission .practice-list {
    margin-top: 6px;
}

#mission .practice-list li {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 18px;
}

#mission .practice-list li:last-child {
    margin-bottom: 0;
}

#mission .practice-list p {
    color: var(--color-text);
    font-size: var(--fs-h5);
    line-height: 1.8;
}

#mission .practice-heading {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    #mission .info-box {
        padding: 22px;
        padding-top: 46px;
        margin-top: 46px;
    }

    #mission .info-box-title {
        left: 12px;
        font-size: 18px;
        padding: 7px 12px;
    }

    #mission .guideline-article p,
    #mission .practice-list p {
        font-size: 16px;
    }

    #mission .practice-heading {
        font-size: 18px;
    }
}
/* ========================================
   CONTENT TITLE SYSTEM + WHITE BACKGROUND V5
   ======================================== */
.about-page .sub-main {
    background: #ffffff;
}

.about-page #mission .mission-visual,
.about-page #mission .info-box,
.about-page #mission .info-box.info-box-odd,
.about-page #mission .info-box.info-box-even {
    background: #ffffff;
}

.about-page #mission .info-box {
    position: relative;
    border: 1px solid #222222;
    padding: 40px;
    padding-top: 60px;
    margin-top: 70px;
}

.about-page #mission .info-box-title.title-bold {
    position: absolute;
    top: 0px;
    left: 15px;
    display: inline-block;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 10px 20px;
    line-height: 1.3;

    /* index.html title-bold system */
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0;
    margin-right: 0;
}

.about-page #mission .guideline-theme {
    color: var(--color-text);
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
}

.about-page #mission .guideline-article p,
.about-page #mission .practice-list p {
    color: var(--color-text);
    font-size: var(--fs-h5);
}

.about-page #mission .practice-heading {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
}

@media (max-width: 768px) {
    .about-page #mission .info-box {
        padding: 22px;
        padding-top: 48px;
        margin-top: 48px;
    }

    .about-page #mission .info-box-title.title-bold {
        left: 12px;
        font-size: 22px;
        padding: 8px 12px;
    }
}
/* ========================================
   CONNECTION PRECISION + PHOTO CLEANUP V6
   ======================================== */

/* 주교님 사진: 배경/장식 제거 */
.about-page #greeting .portrait-orbit {
    display: none !important;
}

.about-page #greeting .bishop-portrait-wrap {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 380px;
    min-height: 0;
    height: auto;
    align-self: center;
}

.about-page #greeting .bishop-portrait {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center top;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* 미션/비전: 선 연결 정확도 개선 */
.about-page #mission .mission-visual {
    --mv-gap: clamp(20px, 2.2vw, 34px);
}

.about-page #mission .mv-branch + .mv-stage {
    display: block;
}

.about-page #mission .mv-line {
    width: 2px;
    height: 30px;
    margin: 0 auto;
    background: #aeb5bf;
}

.about-page #mission .mv-bottom {
    gap: var(--mv-gap);
}

.about-page #mission .mv-branch {
    position: relative;
    height: 1px;
    margin: 0 0 30px;
}

.about-page #mission .mv-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(25% - (var(--mv-gap) / 4));
    right: calc(25% - (var(--mv-gap) / 4));
    border-top: 1px solid #aeb5bf;
}

.about-page #mission .mv-panel {
    position: relative;
}

.about-page #mission .mv-panel::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -30px;
    width: 1px;
    height: 30px;
    transform: translateX(-50%);
    background: #aeb5bf;
}

/* 조직도: 박스 중심 기준 선 길이 계산 */
.about-page #organization .org-chart {
    --org-mid-w: 200px;
    --org-mid-gap: 28px;
    --org-bot-w: 170px;
    --org-bot-gap: 18px;
    --org-line: #aeb5bf;
}

.about-page #organization .org-level {
    align-items: center;
}

.about-page #organization .org-level.org-top .org-box {
    min-width: 220px;
}

.about-page #organization .org-level.org-middle {
    gap: var(--org-mid-gap);
    position: relative;
}

.about-page #organization .org-level.org-middle .org-box {
    width: var(--org-mid-w);
    min-width: var(--org-mid-w);
}

.about-page #organization .org-level.org-middle::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -30px;
    width: 1px;
    height: 30px;
    transform: translateX(-50%);
    background: var(--org-line);
}

.about-page #organization .org-level.org-bottom {
    gap: var(--org-bot-gap);
    position: relative;
}

.about-page #organization .org-level.org-bottom .org-box {
    width: var(--org-bot-w);
    min-width: var(--org-bot-w);
}

.about-page #organization .org-level.org-bottom::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -30px;
    width: 1px;
    height: 30px;
    transform: translateX(-50%);
    background: var(--org-line);
}

.about-page #organization .org-line-vertical {
    width: 1px;
    height: 30px;
    margin: 0;
    background: var(--org-line);
}

.about-page #organization .org-line-fork {
    width: calc(var(--org-mid-w) + var(--org-mid-gap));
    margin: 0;
    border-top: 1px solid var(--org-line);
}

.about-page #organization .org-line-fork.wide {
    width: calc((3 * var(--org-bot-w)) + (3 * var(--org-bot-gap)));
}

@media (max-width: 960px) {
    .about-page #mission .mv-bottom {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about-page #mission .mv-branch,
    .about-page #mission .mv-panel::before {
        display: none;
    }

    .about-page #organization .org-line-fork.wide,
    .about-page #organization .org-level.org-bottom::before {
        display: none;
    }

    .about-page #organization .org-level.org-bottom {
        display: grid;
        grid-template-columns: repeat(2, minmax(130px, 1fr));
        gap: 14px;
        width: 100%;
        max-width: 430px;
    }

    .about-page #organization .org-level.org-bottom .org-box {
        width: auto;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .about-page #organization .org-line-fork,
    .about-page #organization .org-level.org-middle::before {
        display: none;
    }

    .about-page #organization .org-level.org-middle {
        flex-direction: column;
        gap: 12px;
    }

    .about-page #organization .org-level.org-middle .org-box {
        width: 100%;
        min-width: 0;
        max-width: 300px;
    }
}
/* V6 tuning: organization spacing/alignment */
.about-page #organization .org-level {
    margin-bottom: 0;
}

.about-page #organization .org-line-vertical {
    margin: 14px 0;
}

.about-page #organization .org-line-fork,
.about-page #organization .org-line-fork.wide {
    margin: 14px 0;
}
/* ========================================
   SIZE REDUCTION + ORG LINE FIX V7
   ======================================== */

/* 미션/비전 타이틀 박스 50% 축소 */
.about-page #mission .mv-badge {
    min-width: min(28vw, 210px);
    font-size: clamp(11px, 0.85vw, 15px);
    padding: 5px 10px;
    top: -14px;
}

.about-page #mission .mv-stage {
    padding-top: 26px;
}

/* 운영원칙/3대정신 타이틀 박스 50% 축소 */
.about-page #mission .mv-panel h3 {
    font-size: clamp(11px, 0.85vw, 14px);
    padding: 5px 10px;
    margin: -24px auto 10px;
}

/* 조직도 라인-박스 연결 보정 */
.about-page #organization .org-chart {
    --org-v-gap: 26px;
}

.about-page #organization .org-level {
    margin-bottom: 0;
}

.about-page #organization .org-line-vertical {
    height: var(--org-v-gap);
    margin: 0;
}

.about-page #organization .org-line-fork,
.about-page #organization .org-line-fork.wide {
    position: relative;
    margin: 0;
    border-top: 1px solid var(--org-line);
}

.about-page #organization .org-line-fork::before,
.about-page #organization .org-line-fork.wide::before {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(-1 * var(--org-v-gap));
    transform: translateX(-50%);
    width: 1px;
    height: var(--org-v-gap);
    background: var(--org-line);
}

.about-page #organization .org-level.org-middle::before,
.about-page #organization .org-level.org-bottom::before {
    top: calc(-1 * var(--org-v-gap));
    height: var(--org-v-gap);
}

@media (max-width: 960px) {
    .about-page #mission .mv-badge {
        min-width: min(50vw, 180px);
        font-size: 12px;
    }

    .about-page #mission .mv-panel h3 {
        font-size: 12px;
        margin: -16px auto 10px;
    }

    .about-page #organization .org-line-fork.wide,
    .about-page #organization .org-line-fork.wide::before,
    .about-page #organization .org-level.org-bottom::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .about-page #organization .org-line-fork,
    .about-page #organization .org-line-fork::before,
    .about-page #organization .org-level.org-middle::before {
        display: none;
    }
}
/* V7.1 overlap tuning for pixel gap */
.about-page #organization .org-level + .org-line-vertical,
.about-page #organization .org-level + .org-line-fork,
.about-page #organization .org-level + .org-line-fork.wide {
    margin-top: -1px;
}

.about-page #organization .org-line-vertical + .org-level,
.about-page #organization .org-line-fork + .org-level,
.about-page #organization .org-line-fork.wide + .org-level {
    margin-top: -1px;
}
/* ========================================
   ORG CHART CONSISTENT SPACING V8
   ======================================== */
.about-page #organization .org-chart {
    --org-line: #aeb5bf;
    --org-gap: 28px;
    --org-top-w: 220px;
    --org-mid-w: 200px;
    --org-mid-gap: 28px;
    --org-bot-w: 170px;
    --org-bot-gap: 18px;
}

/* 이전 겹침 보정 해제 */
.about-page #organization .org-level + .org-line-vertical,
.about-page #organization .org-level + .org-line-fork,
.about-page #organization .org-level + .org-line-fork.wide,
.about-page #organization .org-line-vertical + .org-level,
.about-page #organization .org-line-fork + .org-level,
.about-page #organization .org-line-fork.wide + .org-level {
    margin-top: 0 !important;
}

.about-page #organization .org-level {
    margin-bottom: 0;
    position: relative;
}

.about-page #organization .org-level.org-top .org-box {
    width: var(--org-top-w);
    min-width: var(--org-top-w);
}

.about-page #organization .org-level.org-middle {
    gap: var(--org-mid-gap);
}

.about-page #organization .org-level.org-middle .org-box {
    width: var(--org-mid-w);
    min-width: var(--org-mid-w);
}

.about-page #organization .org-level.org-bottom {
    gap: var(--org-bot-gap);
}

.about-page #organization .org-level.org-bottom .org-box {
    width: var(--org-bot-w);
    min-width: var(--org-bot-w);
}

/* 라인 요소 간격 통일 */
.about-page #organization .org-line-vertical {
    width: 1px;
    height: var(--org-gap);
    margin: 0;
    background: var(--org-line);
}

.about-page #organization .org-line-fork,
.about-page #organization .org-line-fork.wide {
    position: relative;
    margin: 0;
    border-top: 1px solid var(--org-line);
}

.about-page #organization .org-line-fork {
    width: calc((2 * var(--org-mid-w)) + var(--org-mid-gap));
}

.about-page #organization .org-line-fork.wide {
    width: calc((4 * var(--org-bot-w)) + (3 * var(--org-bot-gap)));
}

/* 상위 박스에서 가로라인 중심으로 내려오는 수직선 */
.about-page #organization .org-line-fork::before,
.about-page #organization .org-line-fork.wide::before {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(-1 * var(--org-gap));
    width: 1px;
    height: var(--org-gap);
    transform: translateX(-50%);
    background: var(--org-line);
}

/* 가로라인에서 각 박스로 내려오는 수직선 */
.about-page #organization .org-level.org-middle .org-box,
.about-page #organization .org-level.org-bottom .org-box {
    position: relative;
}

.about-page #organization .org-level.org-middle .org-box::before,
.about-page #organization .org-level.org-bottom .org-box::before {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(-1 * var(--org-gap));
    width: 1px;
    height: var(--org-gap);
    transform: translateX(-50%);
    background: var(--org-line);
}

/* 이전 버전의 중복 수직선 제거 */
.about-page #organization .org-level.org-middle::before,
.about-page #organization .org-level.org-bottom::before {
    content: none;
}

@media (max-width: 1180px) {
    .about-page #organization .org-chart {
        --org-gap: 24px;
        --org-mid-w: 178px;
        --org-mid-gap: 20px;
        --org-bot-w: 146px;
        --org-bot-gap: 14px;
    }
}

@media (max-width: 960px) {
    .about-page #organization .org-chart {
        --org-gap: 20px;
        --org-mid-w: 160px;
        --org-mid-gap: 14px;
    }

    .about-page #organization .org-line-fork.wide,
    .about-page #organization .org-line-fork.wide::before,
    .about-page #organization .org-level.org-bottom .org-box::before {
        display: none;
    }

    .about-page #organization .org-level.org-bottom {
        display: grid;
        grid-template-columns: repeat(2, minmax(130px, 1fr));
        gap: 14px;
        width: 100%;
        max-width: 430px;
    }

    .about-page #organization .org-level.org-bottom .org-box {
        width: auto;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .about-page #organization .org-line-fork,
    .about-page #organization .org-line-fork::before,
    .about-page #organization .org-level.org-middle .org-box::before {
        display: none;
    }

    .about-page #organization .org-line-vertical {
        height: 18px;
    }

    .about-page #organization .org-level.org-middle,
    .about-page #organization .org-level.org-bottom {
        flex-direction: column;
        display: flex;
        gap: 10px;
    }

    .about-page #organization .org-level.org-middle .org-box,
    .about-page #organization .org-level.org-bottom .org-box {
        width: 100%;
        max-width: 300px;
    }
}


/* V8.1 middle/bottom spacing fix */
.about-page #organization .org-line-fork,
.about-page #organization .org-line-fork.wide {
    margin: var(--org-gap) 0;
}

/* V10: equal connector spacing for all org chart lines */
.about-page #organization .org-chart {
    --org-gap: 28px;
}

.about-page #organization .org-line-vertical {
    height: var(--org-gap);
    margin: 0 !important;
}

.about-page #organization .org-line-fork,
.about-page #organization .org-line-fork.wide {
    margin: var(--org-gap) 0 !important;
}

.about-page #organization .org-line-fork::before,
.about-page #organization .org-line-fork.wide::before,
.about-page #organization .org-level.org-middle .org-box::before,
.about-page #organization .org-level.org-bottom .org-box::before {
    top: calc(-1 * var(--org-gap));
    height: var(--org-gap);
}

@media (max-width: 1180px) {
    .about-page #organization .org-chart {
        --org-gap: 24px;
    }
}

@media (max-width: 960px) {
    .about-page #organization .org-chart {
        --org-gap: 20px;
    }
}
/* ========================================
   ORG CONNECTOR RESTRUCTURE V11
   ======================================== */
.about-page #organization .org-chart {
    --org-gap: 28px;
}

.about-page #organization .org-level {
    margin-bottom: 0 !important;
}

.about-page #organization .org-line-vertical {
    width: 1px;
    height: var(--org-gap);
    margin: 0 !important;
    background: var(--org-line);
}

.about-page #organization .org-line-fork,
.about-page #organization .org-line-fork.wide {
    margin: 0 !important;
    border-top: 1px solid var(--org-line);
}

/* fork의 보조 stem은 사용하지 않고, 실제 line-vertical 요소로 통일 */
.about-page #organization .org-line-fork::before,
.about-page #organization .org-line-fork.wide::before {
    content: none !important;
}

/* 가로선 아래 간격은 동일값으로 확보 */
.about-page #organization .org-level.org-middle,
.about-page #organization .org-level.org-bottom {
    margin-top: var(--org-gap);
}

/* 가로선 -> 각 박스 연결 세로선 */
.about-page #organization .org-level.org-middle .org-box::before,
.about-page #organization .org-level.org-bottom .org-box::before {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(-1 * var(--org-gap));
    width: 1px;
    height: var(--org-gap);
    transform: translateX(-50%);
    background: var(--org-line);
}

/* 중복 stem 비활성 */
.about-page #organization .org-level.org-middle::before,
.about-page #organization .org-level.org-bottom::before {
    content: none !important;
}

@media (max-width: 1180px) {
    .about-page #organization .org-chart {
        --org-gap: 24px;
    }
}

@media (max-width: 960px) {
    .about-page #organization .org-chart {
        --org-gap: 20px;
    }

    .about-page #organization .org-line-fork.wide,
    .about-page #organization .org-level.org-bottom .org-box::before {
        display: none;
    }

    .about-page #organization .org-level.org-middle,
    .about-page #organization .org-level.org-bottom {
        margin-top: 16px;
    }
}

@media (max-width: 640px) {
    .about-page #organization .org-line-fork,
    .about-page #organization .org-level.org-middle .org-box::before {
        display: none;
    }

    .about-page #organization .org-line-vertical {
        height: 16px;
    }
}
/* ========================================
   ORGANIZATION DIAGRAM REBUILD V12
   ======================================== */
.about-page #organization .org-diagram {
    --og-line: #aeb5bf;
    --og-gap: 28px;
    --og-top-w: 220px;
    --og-mid-w: 200px;
    --og-mid-gap: 28px;
    --og-bot-w: 170px;
    --og-bot-gap: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.about-page #organization .orgd-node {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 74px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: var(--fw-bold);
    box-shadow: var(--shadow-sm);
}

body.rsc-menu-lang-en .about-page #organization .orgd-node {
    font-size: 15px;
    text-align: center;
}

.about-page #organization .orgd-dark {
    width: var(--og-top-w);
    background: var(--color-text);
    color: #fff;
}

.about-page #organization .orgd-primary {
    width: var(--og-top-w);
    background: #29459a;
    color: #fff;
}

.about-page #organization .orgd-gray {
    width: var(--og-mid-w);
    background: #c3cad3;
    color: var(--color-text);
}

.about-page #organization .orgd-outline {
    width: var(--og-bot-w);
    border: 2px solid #29459a;
    background: #fff;
    color: #29459a;
}

.about-page #organization .orgd-v {
    width: 1px;
    height: var(--og-gap);
    background: var(--og-line);
}

.about-page #organization .orgd-h {
    height: 1px;
    background: var(--og-line);
}

.about-page #organization .orgd-h-mid {
    width: calc((2 * var(--og-mid-w)) + var(--og-mid-gap));
}

.about-page #organization .orgd-h-bottom {
    width: calc((4 * var(--og-bot-w)) + (3 * var(--og-bot-gap)));
}

.about-page #organization .orgd-row {
    display: flex;
    justify-content: center;
}

.about-page #organization .orgd-row-mid {
    gap: var(--og-mid-gap);
}

.about-page #organization .orgd-row-bottom {
    gap: var(--og-bot-gap);
}

.about-page #organization .orgd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-page #organization .orgd-item .orgd-v {
    height: var(--og-gap);
}

@media (max-width: 1180px) {
    .about-page #organization .org-diagram {
        --og-gap: 24px;
        --og-mid-w: 178px;
        --og-mid-gap: 20px;
        --og-bot-w: 146px;
        --og-bot-gap: 14px;
    }
}

@media (max-width: 960px) {
    .about-page #organization .org-diagram {
        --og-gap: 20px;
    }

    .about-page #organization .orgd-h-bottom,
    .about-page #organization .orgd-row-bottom .orgd-item .orgd-v {
        display: none;
    }

    .about-page #organization .orgd-row-bottom {
        display: grid;
        grid-template-columns: repeat(2, minmax(130px, 1fr));
        gap: 12px;
        width: 100%;
        max-width: 430px;
    }

    .about-page #organization .orgd-outline {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .about-page #organization .orgd-h-mid,
    .about-page #organization .orgd-row-mid .orgd-item .orgd-v {
        display: none;
    }

    .about-page #organization .orgd-row-mid,
    .about-page #organization .orgd-row-bottom {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 320px;
    }

    .about-page #organization .orgd-gray,
    .about-page #organization .orgd-outline,
    .about-page #organization .orgd-dark,
    .about-page #organization .orgd-primary {
        width: 100%;
    }

    .about-page #organization .orgd-v {
        height: 16px;
    }
}

/* ========================================
   ORG CONNECTOR WIDTH/CENTER TUNING V13
   ======================================== */
.about-page #organization .orgd-row-mid,
.about-page #organization .orgd-row-bottom {
    width: fit-content;
    margin: 0 auto;
}

/* 가운데-가운데 기준 폭 */
.about-page #organization .orgd-h-mid {
    width: calc(var(--og-mid-w) + var(--og-mid-gap));
}

/* 첫번째 가운데 ~ 마지막 가운데 기준 폭 */
.about-page #organization .orgd-h-bottom {
    width: calc((3 * var(--og-bot-w)) + (3 * var(--og-bot-gap)));
}

/* 중간 2개 수직선 정렬 보강 */
.about-page #organization .orgd-row-mid .orgd-item {
    width: var(--og-mid-w);
    align-items: center;
}

.about-page #organization .orgd-row-mid .orgd-item > .orgd-v {
    display: block;
    width: 1px;
    height: var(--og-gap);
    background: var(--og-line);
    flex: 0 0 auto;
}
/* V14: two connectors below mid row */
.about-page #organization .orgd-row-mid-connect {
    display: flex;
    gap: var(--og-mid-gap);
    width: fit-content;
    margin: 0 auto;
}

.about-page #organization .orgd-row-mid-connect .orgd-item {
    width: var(--og-mid-w);
    display: flex;
    justify-content: center;
}

.about-page #organization .orgd-row-mid-connect .orgd-v {
    width: 1px;
    height: var(--og-gap);
    background: var(--og-line);
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .about-page #organization .orgd-row-mid-connect {
        display: none;
    }
}

@media (max-width: 960px) {
    .about-page #organization .orgd-row-mid-connect {
        display: none;
    }
}


/* V16: mission visual border remove */
#mission .mission-visual {
    border: 0;
}

/* ========================================
   GREETING TYPOGRAPHY + SIGNATURE BADGE V17
   ======================================== */
.about-page #greeting .greeting-content {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 380px);
    align-items: start;
    gap: clamp(22px, 2.8vw, 42px);
}

.about-page #greeting .greeting-quote-wrap {
    position: relative;
    border: 1px solid #222;
    padding: 40px 24px 20px;
    margin-bottom: 26px;
    background: #fff;
}

.about-page #greeting .greeting-main-quote.title-bold {
    position: absolute;
    top: 0;
    left: 15px;
    font-family: var(--font-heading);
    font-size: 22px;
    display: inline-block;
    padding: 10px 20px;
    transform: translateY(-50%);
    background-color: #fff;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    margin: 0;
    max-width: calc(100% - 30px);
    margin-right: 0;
}

.about-page #greeting .greeting-scripture {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #324b6e;
    line-height: 1.6;
}

.about-page #greeting .greeting-body-scripture {
    font-family: var(--font-heading);
    font-size: clamp(20px, 1.45vw, 26px);
    line-height: 1.6;
    color: #21395f;
    letter-spacing: -0.01em;
    margin: 8px 0 14px;
}

.about-page #greeting .greeting-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.about-page #greeting .bishop-portrait-wrap {
    width: 100%;
    max-width: 380px;
}

.about-page #greeting .bishop-portrait {
    border-radius: 30px !important;
}

.about-page #greeting .signature-badge.title-bold {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #222;
    border-radius: 0;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    margin: 0;
    text-align: center;
}

@media (max-width: 1024px) {
    .about-page #greeting .greeting-content {
        grid-template-columns: 1fr;
    }

    .about-page #greeting .greeting-side {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .about-page #greeting .greeting-quote-wrap {
        padding: 34px 16px 16px;
    }

    .about-page #greeting .greeting-main-quote.title-bold,
    .about-page #greeting .signature-badge.title-bold {
        font-size: 18px;
        padding: 8px 12px;
    }

    .about-page #greeting .greeting-scripture {
        font-size: 16px;
    }

    .about-page #greeting .greeting-body-scripture {
        font-size: 19px;
    }
}
/* ========================================
   GREETING TITLE/BADGE BALANCE V18
   ======================================== */
.about-page #greeting .greeting-content {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 400px);
    align-items: start;
}

.about-page #greeting .greeting-quote-wrap {
    position: relative;
    border: 1px solid #222222;
    padding: 40px;
    padding-top: 60px;
    margin-top: 24px;
    margin-bottom: 30px;
    background: #fff;
}

.about-page #greeting .greeting-main-quote.title-bold {
    position: absolute;
    top: 0;
    left: 15px;
    display: inline-block;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 10px 20px;
    line-height: 1.3;
    font-family: var(--font-heading);
    font-size: clamp(22px, 1.5vw, 30px);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0;
    max-width: calc(100% - 30px);
}

.about-page #greeting .greeting-scripture {
    margin: 0;
    font-size: clamp(16px, 1.05vw, 20px);
    font-weight: 600;
    line-height: 1.5;
    color: #324b6e;
}

.about-page #greeting .greeting-body-scripture {
    font-family: var(--font-heading);
    font-size: clamp(20px, 1.35vw, 26px);
    line-height: 1.6;
    color: #21395f;
    letter-spacing: -0.01em;
    margin: 10px 0 16px;
    padding: 10px 16px;
    border-left: 4px solid #b11833;
    background: linear-gradient(90deg, #fff5f8 0%, #ffffff 72%);
}

.about-page #greeting .greeting-side {
    justify-self: end;
    width: min(100%, 380px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.about-page #greeting .bishop-portrait-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.about-page #greeting .bishop-portrait {
    display: block;
    width: 100%;
    height: auto !important;
    border-radius: 30px !important;
}

.about-page #greeting .signature-badge.title-bold {
    position: relative;
    transform: translateY(-50%);
    display: inline-block;
    width: fit-content;
    max-width: calc(100% - 24px);
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #222222;
    font-family: var(--font-heading);
    font-size: clamp(18px, 1.2vw, 22px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    margin: 0;
    text-align: center;
    white-space: normal;
}

@media (max-width: 1024px) {
    .about-page #greeting .greeting-content {
        grid-template-columns: 1fr;
    }

    .about-page #greeting .greeting-side {
        justify-self: center;
        width: min(100%, 380px);
    }
}

@media (max-width: 768px) {
    .about-page #greeting .greeting-quote-wrap {
        padding: 28px 16px 16px;
        padding-top: 48px;
        margin-top: 18px;
    }

    .about-page #greeting .greeting-main-quote.title-bold {
        left: 12px;
        max-width: calc(100% - 24px);
        padding: 8px 12px;
        font-size: 20px;
    }

    .about-page #greeting .greeting-body-scripture {
        font-size: 18px;
        padding: 8px 12px;
    }

    .about-page #greeting .signature-badge.title-bold {
        transform: translateY(-36%);
        font-size: 16px;
        padding: 8px 12px;
    }
}
/* ========================================
   GREETING INFO-BOX RESTORE V19
   ======================================== */
.about-page #greeting .greeting-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
    padding: 0;
    border: 0;
    background: transparent;
}

.about-page #greeting .greeting-text.greeting-info-box {
    position: relative;
    border: 1px solid #222222;
    padding: 40px;
    padding-top: 60px;
    margin-top: 70px;
    background: #fff;
}

.about-page #greeting .greeting-text.greeting-info-box .greeting-main-quote.title-bold {
    position: absolute;
    top: 0;
    left: 15px;
    display: inline-block;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 10px 20px;
    line-height: 1.3;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0;
    max-width: calc(100% - 30px);
}

.about-page #greeting .greeting-text.greeting-info-box .greeting-scripture {
    margin: 0 0 10px;
    color: #324b6e;
    font-size: var(--fs-h5);
    font-weight: var(--fw-semibold);
    line-height: 1.5;
}

.about-page #greeting .greeting-text.greeting-info-box p {
    color: var(--color-text);
    font-size: var(--fs-h5);
    line-height: 1.9;
}

.about-page #greeting .greeting-text.greeting-info-box .greeting-body-scripture {
    font-family: var(--font-heading);
    font-size: clamp(21px, 1.35vw, 26px);
    line-height: 1.6;
    letter-spacing: -0.01em;
    margin: 8px 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
}

.about-page #greeting .greeting-side {
    justify-self: end;
    width: min(100%, 380px);
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.about-page #greeting .bishop-portrait-wrap {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.about-page #greeting .bishop-portrait {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: cover;
    object-position: center top;
    border: 0 !important;
    border-radius: 30px !important;
    box-shadow: none !important;
    background: transparent !important;
}

.about-page #greeting .greeting-side .signature {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--font-heading);
    font-size: clamp(18px, 1.15vw, 22px);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .about-page #greeting .greeting-content {
        grid-template-columns: 1fr;
    }

    .about-page #greeting .greeting-text.greeting-info-box,
    .about-page #greeting .greeting-side {
        margin-top: 56px;
    }

    .about-page #greeting .greeting-side {
        justify-self: center;
    }
}

@media (max-width: 768px) {
    
    .about-page #greeting .greeting-content {
        display: flex !important;
        flex-direction: column; /* 텍스트와 이미지를 위아래로 깔끔하게 배치 */
        gap: 24px; /* 텍스트 박스와 이미지 사이의 간격 */
        
        /* 모바일용 여백 조절 */
        padding: 24px;
        margin-top: 48px;
    }
    
    .about-page #greeting .greeting-text.greeting-info-box {
        padding: 24px;
        padding-top: 48px;
        margin-top: 48px;
    }

    .about-page #greeting .greeting-text.greeting-info-box .greeting-main-quote.title-bold {
        left: 12px;
        padding: 8px 12px;
        font-size: 22px;
        max-width: calc(100% - 24px);
    }

    .about-page #greeting .greeting-side {
        margin-top: 18px;
        width: min(100%, 360px);
    }

    .about-page #greeting .greeting-side .signature {
        font-size: 17px;
    }
}
/* ========================================
   GREETING SINGLE BOX + PHOTO INSIDE V20
   ======================================== */
.about-page #greeting .greeting-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
    border: 1px solid #222222;
    padding: 40px;
    padding-top: 60px;
    margin-top: 70px;
    background: #fff;
}

.about-page #greeting .greeting-content .title-bold.info-box-title {
    position: absolute;
    top: 0;
    left: 15px;
    display: inline-block;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 10px 20px;
    line-height: 1.3;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0;
    max-width: calc(100% - 30px);
}

.about-page #greeting .greeting-text.greeting-info-box {
    position: static;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
}

.about-page #greeting .greeting-text.greeting-info-box .greeting-scripture {
    margin: 0 0 10px;
    color: #324b6e;
    font-size: var(--fs-h5);
    font-weight: var(--fw-semibold);
    line-height: 1.5;
}

.about-page #greeting .greeting-text.greeting-info-box p {
    color: var(--color-text);
    font-size: var(--fs-h5);
    line-height: 1.9;
}

.about-page #greeting .greeting-text.greeting-info-box .greeting-body-scripture {
    font-family: var(--font-heading);
    font-size: clamp(21px, 1.35vw, 26px);
    line-height: 1.6;
    letter-spacing: -0.01em;
    margin: 8px 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
}

.about-page #greeting .greeting-side {
    justify-self: end;
    width: min(100%, 380px);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.about-page #greeting .bishop-portrait-wrap {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.about-page #greeting .bishop-portrait {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: contain;
    object-position: center center;
    border: 0 !important;
    border-radius: 30px !important;
    box-shadow: none !important;
    background: transparent !important;
}

.about-page #greeting .greeting-side .signature {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--font-heading);
    font-size: clamp(18px, 1.15vw, 22px);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .about-page #greeting .greeting-content {
        grid-template-columns: 1fr;
        margin-top: 56px;
    }

    .about-page #greeting .greeting-side {
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .about-page #greeting .greeting-content {
        padding: 24px;
        padding-top: 48px;
        margin-top: 48px;
    }

    .about-page #greeting .greeting-content .title-bold.info-box-title {
        left: 12px;
        padding: 8px 12px;
        font-size: 22px;
        max-width: calc(100% - 24px);
    }

    .about-page #greeting .greeting-side {
        width: min(100%, 360px);
    }

    .about-page #greeting .greeting-side .signature {
        font-size: 17px;
    }
}
/* ========================================
   GREETING PHOTO FULL-SIZE TUNING V21
   ======================================== */
.about-page #greeting .greeting-content {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 42%);
}

.about-page #greeting .greeting-side {
    display: block;
    justify-self: stretch;
    width: 100%;
    max-width: none;
}

.about-page #greeting .bishop-portrait-wrap {
    width: 100%;
    max-width: none;
}

.about-page #greeting .bishop-portrait {
    width: 100%;
    height: auto !important;
    object-fit: contain;
    position: sticky;
    top: 295px;
    box-shadow: 20px 20px 25px #00000033;
    border-radius: 30px !important;
}

.about-page #greeting .greeting-side .signature {
    margin-top: 16px;
    text-align: center;
}

@media (max-width: 1024px) {
    .about-page #greeting .greeting-content {
        grid-template-columns: 1fr;
    }

    .about-page #greeting .bishop-portrait {
        position: static;
        top: auto;
    }
}
/* ========================================
   GREETING RADIUS + PHOTO SIZE V22
   ======================================== */
.about-page #greeting .greeting-content {
    border-radius: 0;
}

.about-page #greeting .greeting-side {
    width: 380px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.about-page #greeting .bishop-portrait-wrap {
    width: 380px;
    max-width: 100%;
    height: 500px;
}

.about-page #greeting .bishop-portrait {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    border-radius: 30px !important;
}

@media (max-width: 768px) {
    .about-page #greeting .bishop-portrait-wrap {
        height: auto;
    }

    .about-page #greeting .bishop-portrait {
        height: auto !important;
    }
}
/* ========================================
   GREETING RIGHT SPACE + CENTER ALIGN V23
   ======================================== */
@media (min-width: 1025px) {
    .about-page #greeting .greeting-content {
        grid-template-columns: minmax(0, 1fr) 380px;
        column-gap: 40px;
        padding-right: 40px;
    }

    .about-page #greeting .greeting-side {
        width: 100%;
        max-width: 380px;
        margin-left: 0;
        margin-right: 0;
        justify-self: end;
        text-align: center;
    }

    .about-page #greeting .bishop-portrait-wrap {
        width: 100%;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========================================
   MISSION BODY SIZE V24
   ======================================== */
.about-page #mission .mv-body {
    font-size: 28px;
}

/* ========================================
   info.html Layout Classes
   ======================================== */
.info-content-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(40%, 380px);
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
}

/* info-content-row 내부에서 .greeting-img 기본 제한 해제 */
.info-content-row .greeting-img {
    flex: none;
    overflow: visible;
}

.info-content-row .greeting-img img {
    object-fit: contain;
    aspect-ratio: unset;
    display: inline-block;
}

/* 우측 컬럼 기본 */
.info-side-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 이미지 래퍼 기본 */
.info-img-wrap {
    width: 100%;
    text-align: center;
}

/* 기본 이미지 사이즈 (카리타스, 로사리오, 사회사목) */
.info-img-wrap > img {
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
}

/* ============================
   국제 카리타스 전용 스타일
   ============================ */

/* 로고 박스: 배경 투명, 가운데 정렬, 지도와 20px 간격 */
.info-logo-box {
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    width: 100%;
}

/* 로고 이미지: 흰색→검정 변환, 잘림 방지 */
.info-logo-box img {
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0);
}

/* 지도 박스: 우측 영역 폭 100% 가득 채우기 */
.info-map-box {
    width: 100%;
}

.info-map-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
    aspect-ratio: unset;
    border-radius: 0;
}

/* 국제 카리타스 섹션: 우측 영역을 넓게 */
#internationalis .info-side-center {
    width: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* 국제 카리타스: .greeting-img 기본 flex 40% 제한 해제 */
#internationalis .greeting-img {
    flex: 1 1 auto;
    border-radius: var(--radius-lg);
}

/* 국제 카리타스: .greeting-img img의 cover/aspect-ratio 해제 */
#internationalis .greeting-img img {
    object-fit: unset;
    aspect-ratio: unset;
}

/* 지도 상하좌우 전체 라운드 적용 */
#internationalis .info-map-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

#internationalis .info-map-box img {
    border-radius: var(--radius-lg);
}

/* Greeting Info Box Style */
.info-content-row .greeting-info-box {
    position: relative;
    border: 1px solid #222222;
    padding: 40px;
    padding-top: 60px;
    margin-top: 70px;
    background: #fff;
}

.info-content-row .info-box-title.title-bold {
    position: absolute;
    top: 0;
    left: 15px;
    display: inline-block;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 10px 20px;
    line-height: 1.3;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0;
    max-width: calc(100% - 30px);
}

/* Info.html Responsive */
@media (max-width: 991px) {
    .info-content-row {
        grid-template-columns: 1fr;
    }
    .info-side-center {
        margin-top: 30px;
    }
    .info-content-row .greeting-info-box {
        padding: 30px 20px;
        padding-top: 50px;
    }
}

/* Page Title Override */
.sub-title, .sub-description {
    color: #ffffff !important;
}

/* Subpage Header Style refined: Transparent by default, Opaque White on Hover and Scroll */
.about-page .header:not(.scrolled):not(:hover) .header-main,
.history-page .header:not(.scrolled):not(:hover) .header-main,
.location-page .header:not(.scrolled):not(:hover) .header-main,
.work-page .header:not(.scrolled):not(:hover) .header-main {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, .15) !important;
}

/* White Logo on Transparent Subpage Header */
.about-page .header:not(.scrolled):not(:hover) .logo img,
.history-page .header:not(.scrolled):not(:hover) .logo img,
.location-page .header:not(.scrolled):not(:hover) .logo img,
.work-page .header:not(.scrolled):not(:hover) .logo img {
    filter: brightness(0) invert(1) !important;
}

/* Navigation Menu on Transparent Subpage Header (Initial State) */
.about-page .header:not(.scrolled):not(:hover) .nav-menu li a,
.history-page .header:not(.scrolled):not(:hover) .nav-menu li a,
.location-page .header:not(.scrolled):not(:hover) .nav-menu li a,
.work-page .header:not(.scrolled):not(:hover) .nav-menu li a {
    color: rgba(255, 255, 255, 0.9) !important; /* Slightly transparent inactive */
}

.about-page .header:not(.scrolled):not(:hover) .nav-menu li a.active,
.history-page .header:not(.scrolled):not(:hover) .nav-menu li a.active,
.location-page .header:not(.scrolled):not(:hover) .nav-menu li a.active,
.work-page .header:not(.scrolled):not(:hover) .nav-menu li a.active {
    color: white !important; /* Solid white active for visibility */
}

/* Opaque White Background on Hover or Scroll */
.about-page .header:hover .header-main,
.about-page .header.scrolled .header-main,
.history-page .header:hover .header-main,
.history-page .header.scrolled .header-main,
.location-page .header:hover .header-main,
.location-page .header.scrolled .header-main,
.work-page .header:hover .header-main,
.work-page .header.scrolled .header-main {
    background: white !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    border-bottom-color: transparent !important;
}

/* Original Logo and Dark Text on Opaque Header */
.about-page .header:hover .logo img, 
.about-page .header.scrolled .logo img,
.history-page .header:hover .logo img,
.history-page .header.scrolled .logo img,
.location-page .header:hover .logo img,
.location-page .header.scrolled .logo img,
.work-page .header:hover .logo img,
.work-page .header.scrolled .logo img {
    filter: none !important;
}

.about-page .header:hover .nav-menu li a,
.about-page .header.scrolled .nav-menu li a,
.history-page .header:hover .nav-menu li a,
.history-page .header.scrolled .nav-menu li a,
.location-page .header:hover .nav-menu li a,
.location-page .header.scrolled .nav-menu li a,
.work-page .header:hover .nav-menu li a,
.work-page .header.scrolled .nav-menu li a {
    color: var(--color-text) !important;
}

/* Active Highlight for Opaque State and Global Hovers */
.about-page .header.scrolled .nav-menu li a.active,
.about-page .header:hover .nav-menu li a.active,
.history-page .header.scrolled .nav-menu li a.active,
.history-page .header:hover .nav-menu li a.active,
.location-page .header.scrolled .nav-menu li a.active,
.location-page .header:hover .nav-menu li a.active,
.work-page .header.scrolled .nav-menu li a.active,
.work-page .header:hover .nav-menu li a.active,
.about-page .nav-menu li a:hover,
.history-page .nav-menu li a:hover,
.location-page .nav-menu li a:hover,
.work-page .nav-menu li a:hover {
    color: #76103b !important;
}

/* Exception: hover highlight when header is transparent */
.about-page .header:not(.scrolled):not(:hover) .nav-menu li a:hover {
    color: white !important;
}


/* ==========================================================================
   WordPress Menu Compatibility Override for caritas_layout2
   ========================================================================== */
.nav-menu li.menu-item-has-children {
    position: static;
}
.nav-menu li.menu-item-has-children > a {
    padding-right: 0;
}
.nav-menu li.menu-item-has-children > a::before {
    display: none;
}
.nav-menu .sub-menu {
    display: none !important;
}


/* ==========================================================================
   CARITAS_LAYOUT2 HEADER TRANSPARENCY & LNB/MARKER FIXES
   ========================================================================== */

/* 1. Header Main: 기본 상태에서 투명화 보장 */
.header-main {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}

/* 호버 및 스크롤 시 화이트 배경과 그림자 적용 */
.header-main:hover,
.header.scrolled .header-main {
    background: white !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    border-bottom-color: transparent !important;
}

/* 2. Text Colors: 투명 상태일 때는 흰색, 호버/스크롤 시 검은색 계열 */
.nav-menu li a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.header-main:hover .nav-menu li a,
.header.scrolled .header-main .nav-menu li a {
    color: var(--color-text) !important;
}

/* 마우스 호버 시 포인트 컬러 전환 */
.nav-menu li a:hover,
.nav-menu li a.active {
    color: white !important;
}

.header-main:hover .nav-menu li a:hover,
.header.scrolled .header-main .nav-menu li a:hover,
.header-main:hover .nav-menu li a.active,
.header.scrolled .header-main .nav-menu li a.active {
    color: var(--color-primary) !important;
}

/* 3. Logo Filter: 기본 투명 헤더일 때는 흰색 로고, 호버/스크롤 시 원래 색상 */
.logo img {
    filter: brightness(0) invert(1) !important;
}

.header-main:hover .logo img,
.header.scrolled .header-main .logo img {
    filter: none !important;
}

/* 4. Action Buttons: 검색 및 메뉴 아이콘 색상 전환 */
.btn-search,
.btn-menu {
    color: white !important;
}

.header-main:hover .btn-search,
.header-main:hover .btn-menu,
.header.scrolled .header-main .btn-search,
.header.scrolled .header-main .btn-menu {
    color: var(--color-text) !important;
}

.btn-search:hover,
.btn-menu:hover {
    color: white !important;
}

@media (min-width: 992px) {
    body.rsc-menu-lang-en .header-main,
    body.rsc-menu-lang-ja .header-main {
        --nav-base-width: var(--nav-hover-width);
    }

    body.rsc-menu-lang-en .nav-menu,
    body.rsc-menu-lang-ja .nav-menu,
    body.rsc-menu-lang-en .mega-menu-inner,
    body.rsc-menu-lang-ja .mega-menu-inner {
        width: min(var(--nav-hover-width), 100%) !important;
    }

    body.rsc-menu-lang-en .nav-menu > li > a,
    body.rsc-menu-lang-ja .nav-menu > li > a {
        padding-right: 4px !important;
        padding-left: 4px !important;
        font-size: 18px !important;
        line-height: 1.25 !important;
    }

    body.rsc-menu-lang-en .nav-menu > li > a {
        align-items: flex-start !important;
        justify-content: center !important;
        min-height: 52px;
        text-align: center !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    body.rsc-menu-lang-ja .nav-menu > li > a {
        white-space: nowrap !important;
        word-break: keep-all !important;
    }
}

@media (min-width: 992px) and (max-width: 1280px) {
    body.rsc-menu-lang-en .nav-menu > li > a,
    body.rsc-menu-lang-ja .nav-menu > li > a {
        font-size: 17px !important;
    }
}

/* 5. ::marker & List Style Fix: 메뉴 사이의 점(마커) 제거 */
.nav-menu,
.nav-menu li,
.nav-menu ul,
.mega-menu-inner,
.mega-menu-col,
.mega-menu-col ul,
.mega-menu-col ul li {
    list-style: none !important;
    list-style-type: none !important;
}

.nav-menu li::marker,
.nav-menu ul li::marker,
.mega-menu-col li::marker,
.mega-menu-col ul li::marker {
    display: none !important;
    content: "" !important;
    font-size: 0 !important;
}

/* ==========================================================================
   RSC Mobile Drawer & Header Search
   ========================================================================== */
.rsc-sitemap-modal {
    position: fixed;
    inset: 0;
    z-index: 10070;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(255, 255, 255, 0.98);
    color: var(--color-text);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rsc-sitemap-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.rsc-sitemap-inner {
    width: min(1320px, calc(100% - 80px));
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 68px 0 58px;
    overflow-y: auto;
}

.rsc-sitemap-head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 0 72px 30px 0;
    border-bottom: 2px solid #111;
}

.rsc-sitemap-title-area {
    min-width: 0;
}

.rsc-sitemap-eyebrow {
    margin: 0 0 10px !important;
    color: #0b559f !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.rsc-sitemap-head h2 {
    margin: 0;
    color: #111;
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
}

.rsc-sitemap-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 0;
    background: #0b559f !important;
    color: #fff !important;
    font-size: 30px;
    cursor: pointer;
}

.rsc-language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Pretendard', sans-serif;
}

.rsc-language-switcher img {
    display: none !important;
}

.rsc-language-switcher__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 34px;
    padding: 7px 12px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    white-space: nowrap;
}

.rsc-language-switcher__item > a,
.rsc-language-switcher__item > span,
.rsc-language-switcher__item > button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

.rsc-language-switcher__item * {
    color: inherit !important;
    font: inherit !important;
}

.rsc-language-switcher__item:hover {
    border-color: #0b559f !important;
    color: #0b559f !important;
}

.rsc-language-switcher__item.rsc-language-switcher__item--active {
    background: #fff !important;
    color: #1D4ED8 !important;
}

.rsc-header-language-switcher {
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.rsc-header-language-switcher .rsc-language-switcher__item {
    min-height: 24px;
    padding: 4px 8px !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.rsc-header-language-switcher .rsc-language-switcher__item:hover {
    border-color: #fff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

.rsc-header-language-switcher .rsc-language-switcher__item.rsc-language-switcher__item--active {
    background: #fff !important;
    color: #1D4ED8 !important;
}

.rsc-sitemap-nav {
    padding-top: 36px;
}

.rsc-sitemap-menu,
.rsc-sitemap-menu ul {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.rsc-sitemap-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    border-left: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
}

.rsc-sitemap-menu li {
    list-style: none !important;
}

.rsc-sitemap-menu li::marker {
    display: none !important;
    content: "" !important;
}

.rsc-sitemap-menu > li {
    min-width: 0;
    padding: 26px 18px 34px;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.rsc-sitemap-menu > li > a {
    display: block;
    margin-bottom: 20px;
    color: #111 !important;
    font-family: 'Pretendard', sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    word-break: keep-all;
}

.rsc-sitemap-menu .sub-menu {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
}

.rsc-sitemap-menu .sub-menu a {
    display: block;
    color: #555 !important;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    word-break: keep-all;
}

.rsc-sitemap-menu .sub-menu .sub-menu {
    margin-top: 8px;
    padding-top: 8px;
    gap: 7px;
    border-top: 1px solid #efefef;
}

.rsc-sitemap-menu .sub-menu .sub-menu a {
    color: #777 !important;
    font-size: 14px;
    font-weight: 400;
}

.rsc-sitemap-menu a:hover {
    color: var(--color-primary) !important;
}

body.rsc-sitemap-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .rsc-sitemap-inner {
        width: calc(100% - 40px);
        padding: 54px 0 40px;
    }

    .rsc-sitemap-head {
        display: block;
        padding: 0 58px 22px 0;
    }

    .rsc-sitemap-head h2 {
        font-size: 32px;
    }

    .rsc-sitemap-close {
        width: 46px;
        height: 46px;
        font-size: 26px;
    }

    .rsc-header-language-switcher {
        display: none;
    }

    .rsc-sitemap-menu {
        grid-template-columns: 1fr;
    }

    .rsc-sitemap-menu > li,
    .rsc-sitemap-menu > li > a,
    .rsc-sitemap-menu .sub-menu a {
        text-align: left;
    }

    .rsc-sitemap-menu > li {
        padding: 22px 20px 24px;
    }
}

.rsc-mobile-overlay,
.rsc-mobile-drawer {
    display: none;
}

.rsc-search-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rsc-search-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.rsc-search-modal-inner {
    width: min(980px, calc(100% - 48px));
    padding: 96px 0 56px;
    position: relative;
}

.rsc-search-close {
    position: absolute;
    top: 28px;
    right: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    background: #0b559f !important;
    color: #fff !important;
    border-radius: 0;
    font-size: 28px;
    cursor: pointer;
}

.rsc-search-form label {
    display: block;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    color: var(--color-text);
}

.rsc-search-field {
    display: flex;
    align-items: center;
    border-bottom: 3px solid #111;
}

.rsc-search-field input {
    flex: 1;
    height: 68px;
    border: 0 !important;
    background: transparent !important;
    padding: 0 12px 0 0 !important;
    font-size: 24px;
    color: #111;
    outline: none;
    box-shadow: none !important;
}

.rsc-search-field button {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    background: transparent !important;
    color: #111 !important;
    font-size: 24px;
    cursor: pointer;
}

.rsc-search-results {
    margin-top: 40px;
}

.rsc-search-results ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #ddd;
}

.rsc-search-results li {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 54px;
    border-bottom: 1px solid #eee;
}

.rsc-search-results time {
    font-size: 14px;
    color: #777;
    white-space: nowrap;
}

.rsc-search-results a {
    min-width: 0;
    overflow: hidden;
    color: #111;
    font-size: 17px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rsc-search-results a:hover {
    color: var(--color-primary);
}

.rsc-search-message {
    margin: 0;
    color: #777;
    font-size: 16px;
}

.rsc-search-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .main-nav {
        display: none !important;
    }

    .btn-search,
    .btn-menu {
        display: flex !important;
    }

    .rsc-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 10020;
        display: block;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body.rsc-mobile-menu-open .rsc-mobile-overlay {
        opacity: 1;
        visibility: visible;
    }

    .rsc-mobile-drawer {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 10030;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 76px;
        width: min(100vw, 500px);
        max-width: 100vw;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        background: #fff;
    }

    body.rsc-mobile-menu-open .rsc-mobile-drawer {
        transform: translateX(0);
    }

    .rsc-mobile-panel {
        min-width: 0;
        height: 100%;
        overflow-y: auto;
        background: #fff;
    }

    .rsc-mobile-logo {
        display: flex;
        align-items: center;
        height: 44px;
        padding: 0 18px;
        border-bottom: 1px solid #eee;
    }

    .rsc-mobile-logo img {
        width: auto;
        height: 25px;
        filter: none !important;
    }

    .rsc-mobile-menu,
    .rsc-mobile-menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .rsc-mobile-menu > li {
        position: relative;
        min-height: 61px;
        border-bottom: 1px solid #eee;
    }

    .rsc-mobile-menu > li > a {
        display: flex;
        align-items: center;
        min-height: 61px;
        padding: 0 58px 0 30px;
        color: #050505 !important;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.2;
        text-align: left;
    }

    .rsc-mobile-sub-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 58px;
        height: 61px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0 !important;
        background: transparent !important;
        color: #cbd4e2 !important;
        font-size: 17px;
        cursor: pointer;
    }

    .rsc-mobile-sub-toggle i {
        transition: transform 0.25s ease;
    }

    .rsc-mobile-menu > li.is-open > .rsc-mobile-sub-toggle i {
        transform: rotate(180deg);
    }

    .rsc-mobile-menu .sub-menu {
        display: none !important;
        padding: 0 0 14px;
        background: #fafafa;
        border-top: 1px solid #eee;
    }

    .rsc-mobile-menu > li.is-open > .sub-menu {
        display: block !important;
    }

    .rsc-mobile-menu .sub-menu a {
        display: block;
        padding: 10px 30px 10px 42px;
        color: #333 !important;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.35;
        text-align: left;
    }

    .rsc-mobile-menu .current-menu-item > a,
    .rsc-mobile-menu .sub-menu a:hover,
    .rsc-mobile-menu > li > a:hover {
        color: #0b559f !important;
    }

    .rsc-mobile-rail {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: 100%;
        background: #0757a6;
        color: #fff;
    }

    .rsc-mobile-close {
        width: 76px;
        height: 84px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0 !important;
        background: transparent !important;
        color: #fff !important;
        font-size: 34px;
        cursor: pointer;
    }

    .rsc-mobile-user-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    .rsc-mobile-user-links a {
        width: 100%;
        padding: 14px 6px;
        color: #fff !important;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
    }

    .rsc-mobile-user-links a + a {
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }

    .rsc-mobile-language-switcher {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    .rsc-mobile-language-switcher .rsc-language-switcher__item {
        display: block;
        width: 100%;
        min-height: 38px;
        padding: 11px 4px !important;
        border: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
        background: transparent !important;
        color: #fff !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        text-align: center;
    }

    .rsc-mobile-language-switcher .rsc-language-switcher__item > a,
    .rsc-mobile-language-switcher .rsc-language-switcher__item > span,
    .rsc-mobile-language-switcher .rsc-language-switcher__item > button {
        width: 100%;
        text-align: center;
    }

    .rsc-mobile-language-switcher .rsc-language-switcher__item:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.12) !important;
    }

    .rsc-mobile-language-switcher .rsc-language-switcher__item.rsc-language-switcher__item--active {
        background: #fff !important;
        color: #1D4ED8 !important;
    }

    .rsc-mobile-rail-links {
        display: flex;
        flex-direction: column;
        margin-top: auto;
    }

    .rsc-mobile-rail-links a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 82px;
        padding: 10px 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        color: #fff !important;
        text-align: center;
    }

    .rsc-mobile-rail-links i {
        margin-bottom: 6px;
        font-size: 26px;
    }

    .rsc-mobile-rail-links span {
        font-size: 14px;
        font-weight: 800;
        line-height: 1.25;
    }

    body.rsc-mobile-menu-open {
        overflow: hidden;
    }

    .rsc-search-modal-inner {
        width: calc(100% - 40px);
        padding: 74px 0 36px;
    }

    .rsc-search-close {
        top: 18px;
        right: 0;
    }

    .rsc-search-form label {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .rsc-search-field input {
        height: 56px;
        font-size: 19px;
    }

    .rsc-search-results {
        margin-top: 28px;
    }

    .rsc-search-results li {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 12px;
        min-height: 48px;
    }

    .rsc-search-results time {
        font-size: 12px;
    }

    .rsc-search-results a {
        font-size: 15px;
    }
}
