/* Base Design Tokens */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #c5a059;
    /* Gold point */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --font-main: 'Noto Sans KR', sans-serif;
    --font-title: 'Noto Serif KR', serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

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

/* Common Section Styles */
.section {
    padding: 100px 0;
}

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

.section-title h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    /* 기존 80px에서 확대 */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    /* 수직 중앙 정렬을 위해 추가 */
    align-items: center;
}

#header .logo img {
    height: 75px;
    /* 기존 50px에서 확대 (약 1.5배) */
    width: auto;
}

.gnb ul li {
    margin-left: 30px;
}

.gnb ul li a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: color 0.3s;
}

.gnb ul li a:hover {
    color: var(--secondary-color);
}

/* Layer Popup */
.layer-popup {
    position: fixed;
    top: 100px;
    left: 50px;
    width: 400px;
    background: var(--white);
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

.popup-container img {
    width: 100%;
}

.popup-footer {
    padding: 10px 15px;
    background: #333;
    color: #fff;
    font-size: 0.85rem;
}

.popup-footer button {
    color: #fff;
    font-weight: bold;
}

/* Hero Swiper */
#home {
    height: 100vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    pointer-events: none;
}

.hero-content img {
    max-width: 600px;
    margin: 0 auto 20px;
}

/* Product Navigation (SN Life Style) */
.product-nav-wrap {
    position: sticky;
    top: 70px; /* Adjusted for mobile header height */
    z-index: 900;
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.product-nav {
    display: flex;
    justify-content: flex-start;
    min-width: 600px; /* Ensure 4 tabs fit and scroll */
    margin: 0 auto;
}

.product-nav-item {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.product-nav-item:hover {
    color: var(--secondary-color);
}

.product-nav-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

.product-nav-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: #aaa;
    margin-bottom: 4px;
}

/* Product Content Overhaul */
.product-content-wrap {
    display: none;
}

.product-content-wrap.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.product-hero-summary {
    position: relative;
    padding: 80px 0;
    background: #111;
    color: #fff;
    margin-bottom: 60px;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
}

.product-hero-summary .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.product-hero-summary .content {
    position: relative;
    z-index: 2;
}

.product-hero-summary h3 {
    font-size: 2.8rem;
    font-family: var(--font-title);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.product-hero-summary .price {
    font-size: 5rem; /* Massive size for impact */
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1;
}

.product-hero-summary .price span {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 500;
    margin-left: 5px;
}

.product-hero-summary p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Introduction Section */
.intro-content {
    gap: 50px;
}

.intro-img {
    flex: 1;
}

.intro-img img {
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--secondary-color);
}

.intro-text {
    flex: 1;
}

.intro-text h3 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.intro-text h3 span {
    color: var(--secondary-color);
}

.intro-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.intro-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.intro-features li {
    position: relative;
    padding-left: 30px;
    font-weight: 500;
}

.intro-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Products Section */
#products {
    background: var(--light-gray);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Desktop 2x2 */
    gap: 30px;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
        /* Mobile/Tablet 1 col */
    }
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.product-info ul {
    text-align: left;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.btn-detail {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
}

/* Product Item Advanced Styles */
.product-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.product-summary {
    padding: 30px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.product-summary:hover {
    background: #fdfdfd;
}

.product-summary .product-img {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.product-summary .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-family: var(--font-title);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--primary-color);
}

.product-info h3 .price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    color: #D4AF37;
    /* Gold point */
    font-family: var(--font-main);
    margin: 0 4px;
}

.product-info h3 .eng-sub {
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info .summary-desc {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.summary-list {
    margin-bottom: 20px;
}

.summary-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
}

.summary-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.arrow-icon {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: transform 0.3s;
}

.product-item.active .arrow-icon {
    transform: rotate(180deg);
}

.product-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #f9f9f9;
}

.details-inner {
    padding: 30px;
    border-top: 1px solid #eee;
}

.details-inner h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.details-inner ul {
    margin-bottom: 20px;
}

.details-inner ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
    word-break: keep-all;
}

/* Premium Product Detail Overhaul */
.product-detail-section {
    padding: 20px 0;
}

.detail-category {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.detail-category:last-child {
    border-bottom: none;
}

.detail-category-title {
    font-size: 1.25rem;
    font-family: var(--font-title);
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-category-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--secondary-color);
    display: inline-block;
}

.detail-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.detail-img {
    flex: 0 0 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.detail-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center top;
}

.detail-text {
    flex: 1;
}

.detail-text h6 {
    font-size: 1.1rem;
    color: #111;
    margin-bottom: 15px;
    font-weight: 700;
}

.detail-text p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.detail-specs {
    background: #f1f1f1;
    padding: 15px;
    border-radius: 8px;
}

.detail-specs li {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.detail-specs li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Item Grid Category Labels */
.item-category-label {
    display: inline-block;
    padding: 8px 25px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    border-radius: 50px;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.item-grid-section {
    margin-top: 60px;
    padding: 50px 0;
}

.item-grid-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.item-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 0 1px var(--secondary-color);
    border-color: transparent;
}

.item-card .img-box {
    width: 100%;
    height: 180px;
    background: #fbfbfb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.item-card .img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.item-card:hover .img-box img {
    transform: scale(1.1) rotate(1deg);
}

.item-card .info-box {
    padding: 18px 15px;
    background: #fff;
}

.item-card h6 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-family: var(--font-title);
}

.item-card p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
    word-break: keep-all;
}

@media (max-width: 992px) {
    .item-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .item-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .item-grid {
        grid-template-columns: 1fr;
    }
    .item-card .img-box {
        height: 180px;
    }
}

/* Real-time Inquiry Section */
.realtime-inquiry-container {
    margin-top: 80px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    display: flex;
    overflow: hidden;
}

.inquiry-info {
    flex: 1.2;
    padding: 50px;
    background: var(--primary-color);
    color: var(--white);
}

.inquiry-info h3 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.inquiry-info p {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 30px;
}

.inquiry-contact-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-contact-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: 0.3s;
}

.btn-tel-large {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-kakao-large {
    background: #fee500;
    color: #3c1e1e;
}

.inquiry-form-side {
    flex: 2;
    padding: 50px;
}

.inquiry-form-side h4 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.type-selector {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.type-item {
    flex: 1;
}

.type-item input {
    display: none;
}

.type-item label {
    display: block;
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.type-item input:checked + label {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Mobile FAB Inquiry */
.mobile-inquiry-fab {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 10px 20px;
    gap: 10px;
}

@media (max-width: 992px) {
    .realtime-inquiry-container {
        flex-direction: column;
    }
    .detail-flex {
        flex-direction: column;
    }
    .detail-img {
        flex: 0 0 auto;
        width: 100%;
    }
    .detail-img img {
        height: 250px;
    }
    .mobile-inquiry-fab {
        display: flex;
    }
    body {
        padding-bottom: 70px; /* Space for FAB */
    }
}


/* Common Benefits Section */
.bg-gray-100 {
    background-color: #f3f4f6;
    border-radius: 15px;
    padding: 40px;
    margin-top: 60px;
}

.benefits-title {
    font-size: 1.5rem;
    font-family: var(--font-title);
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.benefits-grid li {
    position: relative;
    padding-left: 25px;
    font-size: 1rem;
    color: #444;
}

.benefits-grid li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.benefits-notice {
    margin-top: 25px;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

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

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

/* Procedure Section */
.procedure-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.procedure-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}

.step-num {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Locations Section */
.tab-menu {
    gap: 20px;
    margin-bottom: 40px;
}

.tab-menu li {
    padding: 10px 40px;
    background: #e0e0e0;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
}

.tab-menu li.active {
    background: var(--secondary-color);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.location-item {
    gap: 50px;
}

.location-img {
    flex: 1;
}

.location-img img {
    border-radius: 15px;
}

.location-text {
    flex: 1;
}

/* Video Section */
#video {
    background: #222;
    color: var(--white);
}

#video .section-title h2 {
    color: var(--white);
}

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

.video-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 16/9;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Consultation Form */
#consultation {
    background: var(--light-gray);
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
    transition: 0.3s;
}

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

/* Footer */
#footer {
    padding: 60px 0;
    background: var(--primary-color);
    color: #ccc;
    font-size: 0.9rem;
}

.footer-logo img {
    height: 100px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-info strong {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Floating Buttons */
.floating-btns {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-kakao img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.btn-top {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.btn-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    #header {
        height: 85px;
        /* 모바일 헤더 높이 조정 */
    }

    #header .logo img {
        height: 55px;
        /* 모바일 로고 크기 최적화 */
    }

    .gnb {
        display: none;
    }

    .intro-content,
    .location-item {
        flex-direction: column;
    }

    .procedure-steps {
        flex-direction: column;
        gap: 40px;
    }

    .procedure-steps::before {
        display: none;
    }

    .step-item {
        width: 100%;
    }

    .form-wrapper {
        padding: 30px;
    }

    .layer-popup {
        width: 80%;
        left: 10%;
        top: 50px;
    }
}

/* Sub Page Specific */
.sub-page #header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sub-hero {
    height: 500px;
    /* Increased from 400px */
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
    /* Ensure zoomed video doesn't bleed out */
}

.sub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* Hide default overlay if explicit video overlay is present to avoid double darkness */
.sub-hero:has(.video-overlay)::before {
    display: none;
}

video.header-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.05);
    /* Optimized from 1.08 to minimize cropping */
    transform-origin: center bottom;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.sub-hero .container {
    position: relative;
    z-index: 3;
    /* Ensure content is on top of video and overlay */
}

.sub-hero h2 {
    font-family: var(--font-title);
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Added shadow for better contrast */
}

.sub-hero h2 strong {
    font-weight: 700;
    color: var(--white);
}

.sub-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    /* Strengthened shadow */
    word-break: keep-all;
}

/* Backgrounds for each sub-hero */
.intro-hero {
    /* Background image removed to use video backdrop */
    background-color: #000;
}

.products-hero {
    background-image: url('../g/장례상품.jpg');
    background-size: 115% !important;
    /* Zoom in to hide bottom-right watermark */
    background-position: left top !important;
}

.procedure-hero {
    min-height: 550px;
    height: 60vh;
    background-color: #000;
}

.procedure-hero video.header-bg-video {
    object-position: center center;
    transform: translate(-50%, -50%) scale(1.02);
}

.locations-hero {
    background-image: url('../g/8.png');
}

.locations-hero h2 {
    font-family: 'Noto Serif KR', serif;
    /* Elegant Serif for emotional impact */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    /* Stronger shadow for bright bg */
}

.locations-hero p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.video-hero {
    background-image: url('../g/1.png');
}

.consultation-hero {
    background-image: url('../g/6.png');
}

.page-content {
    padding: 100px 0;
}

.content-box {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.content-box h3 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
}

.content-box p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.placeholder-img {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 800px;
}

@media (max-width: 768px) {
    .sub-hero {
        height: 350px;
        /* Adjusted from 300px for better video display */
    }

    .procedure-hero.sub-hero {
        min-height: 400px;
    }

    .sub-hero h2 {
        font-size: 2.2rem;
    }

    .procedure-hero.sub-hero h2 {
        font-size: 2.5rem;
        /* Increased for prominence on mobile */
    }

    .products-hero.sub-hero {
        background-size: 150% !important;
        /* More zoom for mobile aspect ratio */
        background-position: center top !important;
    }

    video.header-bg-video {
        transform: translate(-50%, -50%) scale(1.15);
        /* Slightly higher scale on mobile to cover portrait aspect ratio */
    }

    .sub-hero p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .content-box {
        padding: 30px;
    }
}

/* Intro Page Components */
.intro-profile {
    gap: 50px;
    margin-bottom: 80px;
}

.profile-img {
    flex: 0 0 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-img img {
    width: 100%;
    display: block;
}

.profile-text h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-family: var(--font-title);
}

.profile-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.brand-strategy {
    margin-top: 100px;
}

.brand-strategy h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-family: var(--font-title);
}

.strategy-grid {
    gap: 30px;
}

.strategy-item {
    flex: 1;
    background: #fdfdfd;
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.strategy-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--secondary-color);
}

.strategy-item h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.strategy-icon {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.promise-list {
    list-style: none;
    padding: 0;
}

.promise-list li {
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

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

.promise-list li strong {
    color: var(--primary-color);
    margin-right: 10px;
    min-width: 180px;
}

.promise-list li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 15px;
}


.strategy-item p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .intro-profile {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .profile-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .strategy-grid {
        flex-direction: column;
    }
}

/* Product Grid & Accordion */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.product-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-summary {
    display: flex;
    align-items: center;
    padding: 25px;
    position: relative;
}

.product-img {
    flex: 0 0 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 25px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.product-info h3 span {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 400;
}

.product-info p {
    font-size: 1rem;
    color: #666;
}

.arrow-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    transition: 0.3s;
}

.product-item.active .arrow-icon {
    transform: translateY(-50%) rotate(180deg);
    color: var(--secondary-color);
}

.product-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #fafafa;
}

.details-inner {
    padding: 30px 40px;
    border-top: 1px solid #eee;
}

.details-inner ul {
    list-style: none;
    padding: 0;
}

.details-inner ul li {
    font-size: 1.1rem;
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
    color: #444;
}

.details-inner ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

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

@media (max-width: 576px) {
    .product-summary {
        flex-direction: column;
        text-align: center;
    }

    .product-img {
        margin-right: 0;
        margin-bottom: 20px;
        flex: 0 0 100px;
        width: 100%;
        max-width: 200px;
    }
}

/* Timeline UI */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 50px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #D4AF37;
}

/* --- Revised Procedure Page Styling (Clean Version) --- */

/* Tab Menu */
.procedure-tabs {
    margin: 50px 0;
    text-align: center;
}

.tab-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.tab-item {
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #888;
    background: #f8f8f8;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.tab-item:hover {
    color: var(--secondary-color);
    background: #fff;
    border-color: var(--secondary-color);
}

.tab-item.active {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Tab Panels Visibility */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeInUp 0.6s ease both;
}

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

/* Section 1: Prep Checklist */
.prep-checklist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.checklist-item {
    background: #fff;
    padding: 50px 35px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid #f2f2f2;
    text-align: center;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.checklist-item:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.checklist-item .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
}

.checklist-item h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.checklist-item p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
}

.checklist-item strong {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Section 2: Timeline Revision */
.procedure-timeline {
    max-width: 900px;
    margin: 40px auto;
    position: relative;
    padding-left: 20px;
}

.procedure-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(to bottom, var(--secondary-color), #eee);
}

.timeline-step {
    position: relative;
    padding-bottom: 80px;
    padding-left: 60px;
}

.timeline-step:last-child {
    padding-bottom: 30px;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--secondary-color);
    z-index: 2;
    box-shadow: 0 0 0 5px #fff;
}

.timeline-step .day-tag {
    display: inline-block;
    padding: 5px 18px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.timeline-step h3 {
    font-family: var(--font-title);
    font-size: 1.9rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.step-desc ul {
    list-style: none;
    padding: 0;
}

.step-desc ul li {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 18px;
    line-height: 1.8;
    position: relative;
    padding-left: 25px;
}

.step-desc ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.step-desc ul li strong {
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: inset 0 -8px 0 rgba(197, 160, 89, 0.15);
}

/* Section 3: Etiquette Grid */
.etiquette-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.etiquette-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: 0.3s ease;
}

.etiquette-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.card-header {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 25px;
    font-size: 1.4rem;
    font-family: var(--font-title);
    font-weight: 700;
    text-align: center;
    border-bottom: 3px solid var(--secondary-color);
}

.card-body {
    padding: 40px 30px;
}

.card-body ul {
    list-style: none;
    padding: 0;
}

.card-body ul li {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
    position: relative;
    padding-left: 25px;
}

.card-body ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.card-body strong {
    color: var(--primary-color);
    font-weight: 800;
}

.procedure-footer-note {
    text-align: center;
    margin-top: 100px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 15px;
    font-size: 1.1rem;
    color: #777;
}

/* Tablet / Mobile Optimized */
.timeline-item {
    padding-left: 100px;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-node {
    position: absolute;
    left: 20px;
    top: 5px;
    width: 42px;
    height: 42px;
    background: #D4AF37;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 0 0 8px #fff;
}

.timeline-content {
    background: #fdfdfd;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: #D4AF37;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.step-day {
    font-size: 0.9rem;
    font-weight: bold;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-icon {
    font-size: 2rem;
}

.step-header h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--primary-color);
}

.step-body h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-family: var(--font-title);
}

.step-body ul {
    list-style: none;
    padding: 0;
}

.step-body ul li {
    font-size: 1.05rem;
    color: #666;
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
}

.step-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-weight: bold;
}

.timeline-note {
    text-align: center;
    margin-top: 50px;
    font-size: 0.95rem;
    color: #999;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-node {
        left: 0;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-content {
        padding: 30px 20px;
    }

    .step-header h3 {
        font-size: 1.5rem;
    }
}

/* Video Gallery UI */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.video-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

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

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #e0e0e0;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.video-card:hover .video-thumb img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 5px;
    /* Adjust for triangle centering */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.video-card:hover .play-btn {
    transform: scale(1.2);
    background: var(--secondary-color);
    color: var(--white);
}

.video-info {
    padding: 25px;
}

.video-info h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
}

.video-info p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Consultation Page UI */
.emergency-box {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    padding: 40px 0;
    margin-bottom: 60px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.2);
}

.emergency-inner p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.btn-emergency-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: #e74c3c;
    padding: 0 50px;
    height: 70px;
    border-radius: 35px;
    font-size: 1.5rem;
    font-weight: 800;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-emergency-call:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    background: var(--primary-color);
    color: var(--white);
}

/* Form refinement */
.form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
    max-width: 800px;
    margin: 0 auto;
}

.consult-form .form-group label {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.consult-form input,
.consult-form textarea {
    border: 1px solid #eee;
    background: #fcfcfc;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    transition: 0.3s;
}

.consult-form input:focus,
.consult-form textarea:focus {
    border-color: var(--secondary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.radio-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: #fbfbfb;
    border: 1px solid #efefef;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.radio-item input {
    margin-bottom: 12px;
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-color);
    cursor: pointer;
}

.radio-item span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #444;
    transition: 0.3s;
}

.radio-item:hover {
    border-color: var(--secondary-color);
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.radio-item:has(input:checked) {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.radio-item:has(input:checked) span {
    color: var(--white);
}

.radio-item:has(input:checked) input {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .radio-group {
        grid-template-columns: 1fr;
    }

    .radio-item {
        padding: 20px;
    }
}

/* CEO Section */
.ceo-section {
    padding: 80px 0;
}

.ceo-container {
    gap: 60px;
}

.ceo-image {
    flex: 0 0 40%;
}

.ceo-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.ceo-content {
    flex: 1;
}

.ceo-headline {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 20px;
}

.ceo-sub-headline {
    font-size: 1.2rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 40px;
}

.ceo-body-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    text-align: left;
}

/* Consultation Page UI */
.emergency-box {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    padding: 40px 0;
    margin-bottom: 60px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.2);
}

.emergency-inner p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.btn-emergency-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: #e74c3c;
    padding: 0 50px;
    height: 70px;
    border-radius: 35px;
    font-size: 1.5rem;
    font-weight: 800;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-emergency-call:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    background: var(--primary-color);
    color: var(--white);
}

/* Form refinement */
.form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
    max-width: 800px;
    margin: 0 auto;
}

.consult-form .form-group label {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.consult-form input,
.consult-form textarea {
    border: 1px solid #eee;
    background: #fcfcfc;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    transition: 0.3s;
}

.consult-form input:focus,
.consult-form textarea:focus {
    border-color: var(--secondary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.radio-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: #fbfbfb;
    border: 1px solid #efefef;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.radio-item input {
    margin-bottom: 12px;
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-color);
    cursor: pointer;
}

.radio-item span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #444;
    transition: 0.3s;
}

.radio-item:hover {
    border-color: var(--secondary-color);
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.radio-item:has(input:checked) {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.radio-item:has(input:checked) span {
    color: var(--white);
}

.radio-item:has(input:checked) input {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .radio-group {
        grid-template-columns: 1fr;
    }

    .radio-item {
        padding: 20px;
    }
}

/* CEO Section */
.ceo-section {
    padding: 80px 0;
}

.ceo-container {
    gap: 60px;
}

.ceo-image {
    flex: 0 0 40%;
}

.ceo-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.ceo-content {
    flex: 1;
}

.ceo-headline {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 20px;
}

.ceo-sub-headline {
    font-size: 1.2rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 40px;
}

.ceo-body-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    text-align: left;
}

@media (max-width: 992px) {
    .ceo-container {
        gap: 40px;
    }

    .ceo-headline {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .ceo-container {
        flex-direction: column;
    }

    .ceo-image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin-bottom: 40px;
    }

    .ceo-image img {
        height: auto;
    }
}
/* Jangji (Funeral Locations) Overhaul */
.jangji-philosophy {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 20px;
    background: #fdfdfd;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.02);
}

.jangji-philosophy h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-family: var(--font-title);
    word-break: keep-all;
}

.jangji-philosophy p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto;
    word-break: keep-all;
}

.jangji-group {
    margin-bottom: 100px;
}

.jangji-group-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jangji-group-title small {
    font-size: 1rem;
    color: #888;
    font-weight: 500;
}

.jangji-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.jangji-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.jangji-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border-color: var(--secondary-color);
}

.item-img-placeholder {
    height: 250px;
    position: relative;
    background: #f8f8f8;
    overflow: hidden;
}

.item-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.jangji-card:hover .item-img-placeholder img {
    transform: scale(1.1);
}

.badge-wrap {
    position: absolute;
    top: 25px;
    left: 25px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.badge-public { background: #4a5a7d; }
.badge-benefit { background: var(--secondary-color); }

.jangji-card .card-body {
    padding: 35px;
    flex: 1;
}

.jangji-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.jangji-card .card-info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.jangji-card .card-info-list li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.jangji-card .card-info-list li strong {
    color: #333;
    min-width: 60px;
    font-weight: 600;
}

.jangji-card .card-cta {
    display: block;
    width: 100%;
    padding: 20px;
    text-align: center;
    background: #fdfdfd;
    border-top: 1px solid #f0f0f0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
    text-decoration: none;
}

.jangji-card:hover .card-cta {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 1024px) {
    .jangji-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .jangji-grid {
        grid-template-columns: 1fr;
    }
    .jangji-philosophy {
        padding: 40px 20px;
    }
    .jangji-philosophy h2 {
        font-size: 1.6rem;
    }
    .jangji-group-title {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* Premium Essential Items (Added by Request) */
.premium-essential-list {
    margin-top: 50px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.essential-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.essential-item:hover {
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    border-color: var(--secondary-color);
    background: #fdfaf5;
}

.essential-item-img {
    flex: 0 0 180px;
}

.essential-item-img img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.essential-item-text {
    flex: 1;
}

.essential-item-text h6 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.essential-item-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .essential-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
    .essential-item-img {
        flex: 0 0 auto;
        width: 100%;
    }
    .essential-item-img img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
}

/* Emergency CTA Banner */
.emergency-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a2533 0%, var(--primary-color) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 80px 0;
    border-radius: 20px;
}

.emergency-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../g/33.jpg') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.emergency-content {
    position: relative;
    z-index: 2;
}

.emergency-label {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(188, 153, 91, 0.4);
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(188, 153, 91, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 4px 25px rgba(188, 153, 91, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(188, 153, 91, 0.4); }
}

.emergency-title {
    font-size: 3.5rem;
    font-family: var(--font-title);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.emergency-number {
    font-size: 6.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 30px;
    transition: 0.3s;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.emergency-number:hover {
    color: var(--white);
    transform: translateY(-5px);
}

.emergency-desc {
    font-size: 1.35rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .emergency-banner {
        padding: 60px 20px;
        margin: 40px 0;
        border-radius: 15px;
    }
    .emergency-title {
        font-size: 1.8rem;
    }
    .emergency-number {
        font-size: 3.2rem;
        margin-bottom: 20px;
    }
    .emergency-desc {
        font-size: 1.1rem;
    }
    .emergency-label {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
}

/* --- Condolence Etiquette Page Styling --- */

.etiquette-section {
    padding: 80px 0;
}

.etiquette-section .container {
    max-width: 1200px;
}

.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #eee, transparent);
    margin: 40px 0;
}

/* Section 1: Clothing Cards */
.clothing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.clothing-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: 0.4s;
}

.clothing-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.clothing-card .card-tag {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.clothing-card .card-content {
    padding: 40px;
}

.clothing-card h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
}

.clothing-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.clothing-card ul {
    list-style: none;
    padding: 0;
}

.clothing-card ul li {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
    word-break: keep-all; /* 단어 단위 줄바꿈으로 깔끔하게 */
}

.clothing-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.clothing-card strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Section 2: Step Timeline (Redesigned as Cards) */
.step-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 60px auto 0;
    max-width: 1000px;
}

.step-item {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: 0.4s;
    display: block; /* Change from flex to block to match card structure */
    padding: 0; /* Remove internal padding, will add to content */
    width: 100%;
}

.step-item:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.step-tag {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
}

.step-card-content {
    padding: 40px;
}

.step-card-content h4 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    word-break: keep-all;
}

.step-card-content h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.step-card-content p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
    word-break: keep-all;
}

.step-card-content p:last-child {
    margin-bottom: 0;
}

.step-content strong {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Section 3: Highlight Box */
.hand-position-info {
    margin: 40px 0 80px;
}

.highlight-box {
    background: #1a2533;
    padding: 60px 40px;
    border-radius: 30px;
    color: #fff;
    text-align: center;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.highlight-box h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    position: relative;
}

.highlight-box > p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hand-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
}

.hand-item {
    padding: 30px 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    flex: 1;
    max-width: 300px;
}

.hand-item .gender {
    display: block;
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 10px;
}

.hand-item .pos {
    font-size: 1.6rem;
    font-weight: 700;
}

.hand-item.line {
    width: 2px;
    height: 60px;
    background: rgba(212, 175, 55, 0.3);
    padding: 0;
    border: 0;
    flex: 0 0 2px;
}

/* Section 4: Accordion */
.accordion-wrap {
    max-width: 900px;
    margin: 40px auto 0;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}

.accordion-header {
    padding: 25px 30px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.accordion-header span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.accordion-header .arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    transform: rotate(45deg);
    transition: 0.3s;
}

.accordion-item.active .accordion-header {
    background: #fdfaf4;
}

.accordion-item.active .arrow {
    transform: rotate(-135deg);
    margin-top: 5px;
}

.accordion-body {
    height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: all 0.3s ease;
    opacity: 0;
}

.accordion-item.active .accordion-body {
    height: auto;
    padding: 0 30px 40px;
    opacity: 1;
}

.accordion-body p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.accordion-body .note {
    font-size: 1rem;
    color: #999;
    font-style: italic;
    margin-top: 15px;
}

.sms-box {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--secondary-color);
    margin-top: 20px;
}

/* Tablet / Mobile Optimization */
@media (max-width: 992px) {
    .clothing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .highlight-box h3 {
        font-size: 1.6rem;
    }
    .hand-flex {
        flex-direction: column;
        gap: 20px;
    }
    .hand-item.line {
        width: 100px;
        height: 2px;
        flex: 0 0 2px;
    }
    .hand-item {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .etiquette-section {
        padding: 60px 0;
    }
    .step-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 25px;
        gap: 20px;
    }
    .step-num {
        flex: 0 0 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .step-content h4 {
        font-size: 1.3rem;
    }
    .step-content p {
        font-size: 1rem;
    }
    .clothing-card .card-content {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .step-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 15px;
    }
    .step-num {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .highlight-box {
        padding: 40px 20px;
    }
    .highlight-box h3 {
        font-size: 1.4rem;
    }
    .accordion-header {
        padding: 20px;
    }
    .accordion-header span {
        font-size: 1.1rem;
    }
}


/* Footer Refined Styles */
#footer {
    background: #1a1c20;
    color: #b0b0b0;
    padding: 80px 0 60px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-nav {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    margin-bottom: 50px;
}

.footer-nav ul {
    display: flex !important;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-direction: row !important;
}

.footer-nav ul li {
    display: inline-block !important;
    margin: 0 !important;
}

.footer-nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 300;
    transition: 0.3s;
}

.footer-nav ul li a:hover {
    color: #fff;
}

.footer-nav ul li a.bold {
    font-weight: 700 !important;
    color: #fff !important;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 40px;
}

.footer-left {
    flex: 2;
}

.footer-logo img {
    height: 50px;
    margin: 0 0 25px;
    filter: brightness(0) invert(1);
    width: auto;
}

.footer-info-text {
    line-height: 1.8;
    margin-bottom: 25px;
    color: #999;
    text-align: left;
}

.footer-info-text span {
    display: inline-block;
    margin: 0 15px 5px 0;
}

.footer-contact .tel {
    font-size: 2rem;
    color: #fff;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

/* Footer Map Box */
.footer-map-box {
    flex: 1;
    min-width: 300px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    transition: 0.3s;
}

.footer-map-box:hover {
    background: rgba(255,255,255,0.05);
}

.footer-map-box .map-title {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Header & GNB Refinement */
@media (max-width: 768px) {
    #header {
        height: 70px;
    }
    #header .logo img {
        height: 45px;
    }
    .gnb {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        z-index: 1001;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid #eee;
    }
    .gnb.active {
        left: 0;
    }
    .gnb ul {
        flex-direction: column;
        padding: 40px 0;
        align-items: center;
        gap: 20px;
    }
    .gnb ul li {
        margin: 0;
    }
    .gnb ul li a {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--primary-color);
    }
    
    /* Hamburger Button (모바일에서만 보임) */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        z-index: 1002;
    }
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #c5a059; /* 금색 포인트 */
        border-radius: 3px;
        transition: 0.3s;
    }
    
    /* Animation for active state */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

.footer-map-box .map-preview {
    width: 100%;
    height: 120px;
    background: #2a2d32;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
}

.footer-map-box .map-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: 0.5s;
}

.footer-map-box:hover .map-preview img {
    opacity: 0.8;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.footer-map-box .map-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.3s;
}

.footer-map-box .map-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 992px) {
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-left {
        width: 100%;
    }
    .footer-logo img {
        margin: 0 auto 30px;
    }
    .footer-info-text {
        text-align: center;
    }
    .footer-map-box {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .footer-nav ul {
        gap: 20px;
    }
    .footer-info-text span {
        display: block;
        margin: 5px 0;
    }
    .footer-logo img {
        height: 140px !important; /* 모바일에서 로고 크기 대폭 확대 (기존의 2배 수준) */
        margin: 20px auto 60px !important;
    }
}

/* Map Section Styles */
.map-section {
    margin-top: 80px;
}

.map-container {
    width: 100%;
    height: 500px;
    background: #f4f4f4;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.map-info {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.map-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #444;
}

.map-info p strong {
    color: var(--primary-color);
    margin-right: 10px;
}

@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
}

/* Funeral Locations Guide */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.adv-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.advantage-item ul {
    list-style: none;
    padding: 0;
}

.advantage-item li {
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

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

.gallery-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.gallery-item .img-box {
    height: 250px;
    overflow: hidden;
}

.gallery-item .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .img-box img {
    transform: scale(1.1);
}

.gallery-item .info-box {
    padding: 25px;
    text-align: center;
}

.gallery-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.gallery-item p {
    font-size: 0.95rem;
    opacity: 0.7;
}

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

/* Field Work Gallery */
.work-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.work-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.work-item:hover {
    transform: scale(1.03);
}

.work-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.work-item p {
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}
.reviews-section {
    background: #fdfbf7;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .reviews-container {
        grid-template-columns: 1fr;
    }
}

/* Review Form Styling */
.review-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.review-form-box h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.review-form-box p {
    color: #888;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.input-group input, 
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
    outline: none;
}

.review-form-box .btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    border-radius: 8px;
    margin-top: 10px;
    transition: all 0.3s;
}

.review-form-box .btn-submit:hover {
    background: var(--secondary-color);
}

/* Review Slider Styling */
.reviews-slider-wrap {
    width: 100%;
    overflow: hidden;
}

.review-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: #f1f1f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: 700;
    color: var(--secondary-color);
}

.user-meta h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-meta .stars {
    color: #ffc107;
    font-size: 0.85rem;
}

.review-body {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 25px;
    word-break: keep-all;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-tag {
    font-size: 0.85rem;
    color: var(--secondary-color);
    background: rgba(197, 160, 89, 0.08);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
}

.review-date {
    font-size: 0.85rem;
    color: #bbb;
}

/* Review Swiper specific navigation */
.review-swiper {
    padding-bottom: 60px !important;
}

.review-swiper .swiper-pagination-bullet-active {
    background: var(--secondary-color);
}

/* Hero Slider Correction */
.hero-swiper, .hero-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 5.5rem;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    word-break: keep-all;
    font-weight: 700;
}

.hero-desc {
    font-size: 2.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    word-break: keep-all;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }
    .hero-desc {
        font-size: 1.2rem;
    }
}

.hero-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* 390 Popular Product Highlight Effect */
.product-item.popular {
    border: 2.5px solid var(--secondary-color);
    box-shadow: 0 20px 50px rgba(197, 160, 89, 0.25);
    background: #fff;
    transform: translateY(-8px);
    position: relative;
    z-index: 5;
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15); }
    50% { box-shadow: 0 25px 60px rgba(197, 160, 89, 0.35); }
    100% { box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15); }
}

.popular-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #D4AF37, #F2D06B);
    color: var(--white);
    padding: 6px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.popular-badge::before {
    content: '★';
    font-size: 1rem;
    color: #fff;
}

/* Sub-page Nav Badge */
.product-nav-item {
    padding-top: 22px !important;
}

.product-nav-item.best-highlight {
    position: relative;
}

.product-nav-item.best-highlight::after {
    content: 'BEST';
    position: absolute;
    top: 5px;
    right: 2px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popular-hero-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}
/* ==========================================================================
   Map Section (오시는 길)
   ========================================================================== */
#map-section {
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.map-container-box {
    margin-top: 40px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

/* Kakao Map Visual Link Design */
.map-visual-link {
    display: block;
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.map-visual-link .map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.map-visual-link:hover .map-img {
    transform: scale(1.05);
}

.map-overlay-marker {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 10;
}

.marker-label {
    background: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1rem;
    border: 2px solid var(--secondary-color);
    white-space: nowrap;
    position: relative;
}

.marker-label::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 10px solid var(--secondary-color);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.map-info-footer {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    gap: 30px;
}

.map-info-footer .info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.map-info-footer .label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-info-footer .val {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    word-break: keep-all;
}

.map-action-btns {
    display: flex;
    gap: 12px;
}

.btn-map-action {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* 카카오톡 상담 플로팅 버튼 정밀 디자인 (Circle Style) */
.floating-btns {
    position: fixed;
    bottom: 30px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-kakao {
    width: 60px !important;
    height: 60px !important;
    background: #FEE500 !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    transition: 0.3s !important;
    border: 2px solid #fff !important;
    overflow: hidden;
    cursor: pointer;
}

.btn-kakao img {
    display: none !important; /* 깨진 이미지 숨김 */
}

.btn-kakao::after {
    content: '톡상담';
    font-size: 0.75rem;
    font-weight: 800;
    color: #191919;
    line-height: 1;
}

/* 위에 작은 카톡 아이콘 모양 추가 (가상 요소) */
.btn-kakao::before {
    content: '';
    display: block;
    width: 20px;
    height: 18px;
    background: url('../g/제목 없음3.png') center/contain no-repeat; /* 실루엣 활용 */
    filter: brightness(0);
    margin-bottom: 2px;
}

.btn-kakao:hover {
    transform: translateY(-5px) scale(1.1);
    background: #f7e000 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}

#top-btn {
    width: 60px;
    height: 60px;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid #eee;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.3s;
}

#top-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

#top-btn {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-map-action.large {
    background: #fff;
    color: var(--primary-color);
    border: 1.5px solid #eee;
}

.btn-map-action:hover {
    transform: translateY(-3px);
}

.btn-map-action.route:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-map-action.large:hover {
    border-color: var(--secondary-color);
}

/* Responsive Map */
@media (max-width: 992px) {
    .map-info-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }
    .map-action-btns {
        width: 100%;
    }
    .btn-map-action {
        flex: 1;
    }
}

/* ==========================================================================
   Service Detail Info Section (장례 서비스 상세 안내 표)
   ========================================================================== */
.service-info-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.service-info-title {
    text-align: center;
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.service-info-table-wrap {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.service-info-table {
    width: 100%;
    border-collapse: collapse;
}

.service-info-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.service-info-row {
    border-bottom: 1px solid #f0f0f0;
    display: flex;
}

.service-info-row:last-child {
    border-bottom: none;
}

.service-info-label {
    flex: 0 0 140px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    word-break: keep-all;
}

.service-info-content {
    flex: 1;
    padding: 25px 30px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}

/* Row Background Colors - 이미지 색상 반영 (조정됨) */
.row-pre { background-color: #fffde7; } /* 사전 가입 */
.row-common { background-color: #f1f8e9; } /* 공통 서비스 */
.row-agreement { background-color: #f3e5f5; } /* 협약 서비스 */
.row-notice { background-color: #fff; } /* 안내 사항 */

.service-info-content ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
}

.service-info-content ul li {
    position: relative;
    padding-left: 20px;
}

.service-info-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 800;
}

.notice-list li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 5px;
}

.notice-list li::before {
    content: '*' !important;
}

@media (max-width: 992px) {
    .service-info-content ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-info-row {
        flex-direction: column;
    }
    .service-info-label {
        flex: none;
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    .service-info-content {
        padding: 20px;
    }
}
