:root {
    /* Colors */
    --c-primary: #1B4D3E;
    /* Deep Green */
    --c-primary-dark: #123329;
    --c-accent: #2f965b;
    /* Sea Green */
    --c-text-main: #111111;
    --c-text-sub: #555555;
    --c-text-white: #ffffff;
    --c-bg-light: #F8F9FA;
    --c-bg-white: #FFFFFF;

    /* Layout */
    --w-max: 1280px;
    --header-h: 80px;

    /* Radius */
    --r-lg: 80px;
    /* Signature large radius */
    --r-md: 20px;
    --r-sm: 8px;

    /* Spacing */
    --section-gap: 120px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', sans-serif;
    color: var(--c-text-main);
    line-height: 1.6;
    word-break: keep-all;
    background-color: var(--c-bg-white);
    padding-top: var(--header-h);
    /* Compensate for fixed header since hero is gone */
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
li {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Utilities */
.inner {
    max-width: var(--w-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    width: 100%;
}

.label-bubble {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--c-primary);
    color: #fff;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.label-bubble.light {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.section-title {
    font-size: 3rem;
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 24px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--c-text-sub);
    max-width: 600px;
}

/* 0. Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    /* Always visible style */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    /* Same as default */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--c-primary);
    transition: color 0.3s;
}

.header.scrolled .logo {
    color: var(--c-primary);
}

.gnb ul {
    display: flex;
    gap: 40px;
}

.gnb a {
    color: var(--c-text-main);
    font-weight: 500;
    transition: color 0.3s;
}

.header.scrolled .gnb a {
    color: var(--c-text-main);
}

.gnb a:hover {
    color: #fff;
}

.header.scrolled .gnb a:hover {
    color: var(--c-accent);
}

.btn-menu {
    display: none;
    background: none;
    flex-direction: column;
    gap: 5px;
}

.btn-menu span {
    width: 24px;
    height: 2px;
    background: #000;
}

.header.scrolled .btn-menu span {
    background: #000;
}

/* 1. Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: var(--header-h);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('https://images.unsplash.com/photo-1518531933037-91b2f5d2294c?q=80&w=2000&auto=format&fit=crop') no-repeat center/cover;
}

.hero-bg .overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.sub-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.main-title {
    font-size: 4rem;
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-content .desc {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.btn-hero {
    display: inline-flex;
    padding: 15px 40px;
    border: 1px solid #fff;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    border-radius: 50px;
}

.btn-hero:hover {
    background: #fff;
    color: var(--c-primary);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.scroll-down .arrow {
    animation: bounce 2s infinite;
    font-size: 1.2rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* 2. Intro Section */
.section-intro {
    padding: 30px 0 120px;
    /* Reduced top padding significantly */
}

.intro-text {
    text-align: center;
    margin-bottom: 60px;
}

.intro-image-wrap {
    max-width: 1000px;
    margin: 0 auto;
    height: 500px;
    border-top-left-radius: var(--r-lg);
    /* Signature Rounding */
    overflow: hidden;
    position: relative;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.intro-image-wrap .img-box {
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?q=80&w=1600&auto=format&fit=crop') no-repeat center/cover;
    transition: transform 0.5s;
}

.intro-image-wrap:hover .img-box {
    transform: scale(1.05);
}

/* 3. Values Section (Refactored) */
.section-values {
    /* Removed background color */
    padding: var(--section-gap) 0;
}

.text-white {
    color: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--r-md);
    transition: transform 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.value-card .num {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--c-accent);
    opacity: 0.5;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.value-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.value-card .card-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.1;
}

/* 4. Features Section */
.section-features {
    padding: var(--section-gap) 0;
    background-color: var(--c-bg-light);
}

.feature-container {
    max-width: var(--w-max);
    margin: 0 auto;
    padding: 60px;
    background: #fff;
    border-radius: var(--r-lg);
    /* Signature Rounding Container */
    display: flex;
    gap: 60px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.feature-text-grouop {
    flex: 1;
}

.feature-image-group {
    flex: 1;
    height: 500px;
    background: blue;
    border-radius: var(--r-md);
    overflow: hidden;
}

.feature-image-group .img-box {
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1544367563-12123d8965cd?q=80&w=1600&auto=format&fit=crop') no-repeat center/cover;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--c-primary);
}

.feature-list li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--c-accent);
    border-radius: 50%;
}

/* 5. Media Section */
.section-media {
    padding: var(--section-gap) 0;
}

.title-area.center {
    text-align: center;
    margin-bottom: 60px;
}

.channel-row {
    margin-bottom: 60px;
}

.channel-row:last-child {
    margin-bottom: 0;
}

.ch-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.ch-info h3 {
    font-size: 1.5rem;
    color: var(--c-primary);
}

.btn-link {
    color: var(--c-text-sub);
    font-size: 0.9rem;
    font-weight: 600;
}

.shorts-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    /* Hide Scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.shorts-scroller::-webkit-scrollbar {
    display: none;
}

.loader {
    width: 100%;
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Styles for frames injected by JS */
.shorts-frame {
    flex: 0 0 200px;
    height: 350px;
    border-radius: 12px;
    background: #000;
    overflow: hidden;
}

.shorts-container {
    min-height: 560px;
    background: #f7f7f7;
    display: flex;
    /* Ensure it behaves like the scroller */
    gap: 20px;
    padding: 20px;
    align-items: center;
    justify-content: center;
    /* Center Items */
    border-radius: var(--r-md);
    overflow-x: auto;
    /* Still allow scroll if screen is too small */
}

/* 6. News Section */
.section-news {
    padding: var(--section-gap) 0;
    background: var(--c-bg-light);
}

.section-split {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.col-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--c-primary);
    padding-bottom: 15px;
}

.col-head h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.clean-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    /* Lighten the border for cleaner look */
    transition: background 0.2s;
    display: flex;
    /* Flex layout for aligning items */
    align-items: center;
    /* Vertical center alignment */
}

.clean-list li:hover {
    background: rgba(0, 0, 0, 0.01);
}

.clean-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Full width for link */
}

.clean-list .tit {
    font-size: 1.05rem;
    font-weight: 500;
    /* display: block; Removed to allow flex alignment */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    /* Take up remaining space */
    min-width: 0;
    /* Enable truncation in flex item */
    margin-right: 10px;
    /* Minimal spacing */
    text-align: left;
}

.clean-list .date {
    color: #888;
    font-size: 0.9rem;
    flex-shrink: 0;
    /* Do not shrink */
    margin-left: auto;
    /* Push to right explicitly */
    text-align: right;
}

.clean-list .badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 10px;
    color: #fff;
    flex-shrink: 0;
    /* Prevent badge from shrinking */
}

.badge.review {
    background: #E91E63;
}

.badge.qna {
    background: #2196F3;
}

.badge.chat {
    background: #9E9E9E;
}


/* 7. CTA Section */
.section-cta {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-primary-dark);
    z-index: -1;
    border-top-left-radius: 100px;
    /* Big Curve */
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.btn-cta {
    padding: 20px 60px;
    background: var(--c-accent);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.4);
    transition: transform 0.3s;
}

.btn-cta:hover {
    transform: translateY(-5px);
}

/* Shopping Link Button */
.btn-shop {
    display: inline-block;
    padding: 18px 50px;
    background: #03C75A;
    /* Naver Green */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(3, 199, 90, 0.3);
    transition: all 0.3s;
}

.btn-shop:hover {
    background: #02b351;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(3, 199, 90, 0.4);
}

/* Monthly Best Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    /* Slightly reduced gap */
    max-width: 1200px;
    /* Increased width */
    margin: 0 auto;
}

.product-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.p-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.p-info {
    padding: 15px;
    text-align: left;
}

.p-name {
    display: block;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 40px;
    /* Limit lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.p-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3. Values Section within Efficacy */
.value-card.dark-mode {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.value-card.dark-mode p {
    color: #666;
}

.value-card.dark-mode:hover {
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.foo-logo {
    font-size: 1.3rem;
    color: #fff;
}

.foo-links {
    display: flex;
    gap: 30px;
}

.foo-links a:hover {
    color: #fff;
}

.foo-body {
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }

    .feature-container {
        flex-direction: column;
        padding: 40px;
    }

    .feature-image-group {
        width: 100%;
        height: 300px;
    }

    .section-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gnb {
        display: none;
    }

    /* Hide menu for now, would need JS toggle */
    .btn-menu {
        display: flex;
    }

    .hero-content .main-title {
        font-size: 2.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .intro-image-wrap {
        height: 300px;
        border-top-left-radius: 40px;
    }

    .section-header-left {
        text-align: center;
    }

    .feature-container {
        border-radius: 20px;
    }
}

/* Shining Text Effect */
.shining-text {
    background: linear-gradient(to right, #222 20%, #4facfe 50%, #222 80%);
    background-size: 200% auto;
    color: #222;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    font-weight: 800;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Bounce Motion for Title */
.bounce-motion {
    animation: shine 3s linear infinite, bounce-text 2s ease-in-out infinite;
}

@keyframes bounce-text {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Highlight Motion for Text */
.highlight-motion {
    position: relative;
    display: inline-block;
    color: #fff;
    /* Text becomes white */
    padding: 0 4px;
    z-index: 1;
}

.highlight-motion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--c-accent);
    /* Green highlight */
    z-index: -1;
    animation: highlight-swipe 2s ease-out forwards;
    animation-delay: 0.5s;
    /* Wait a bit */
    border-radius: 4px;
}

@keyframes highlight-swipe {
    to {
        width: 100%;
    }
}

/* Floating Motion for Section Headers */
.floating-motion {
    animation: float-text 3s ease-in-out infinite;
}

@keyframes float-text {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Strong Shine Motion for 3 Effects */
.strong-shine-motion {
    background: linear-gradient(to right, #000 0%, #2f965b 30%, #4facfe 50%, #2f965b 70%, #000 100%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 2s linear infinite, pulse-strong 2s ease-in-out infinite;
    font-weight: 800;
    display: inline-block;
    padding: 0 5px;
    /* Prevent chop */
}

@keyframes pulse-strong {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 5px 15px rgba(47, 150, 91, 0.3));
    }
}