:root[data-theme] .main-hero,
:root[data-theme] .main-section {
    color: var(--text-color);
}

.main-hero {
    padding: 3.75rem 0 2.25rem;
    background: var(--bg-color);
}

.main-hero .main-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 183, 77, 0.16);
    color: rgba(149, 78, 0, 0.92);
    font-weight: 600;
    text-align: center;
}

.main-hero .section-heading {
    margin-bottom: 1.75rem;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--theme-white);
    color: var(--text-color);
    box-shadow: 0 24px 60px rgba(15, 18, 34, 0.12);
}

[data-theme="dark"] .hero-slider {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.hero-slider-track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
}

.hero-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-slide {
        flex-direction: row;
        height: clamp(340px, 54vh, 450px);
        max-height: 450px;
    }

    .hero-slide-content {
        padding: 2.25rem 2.5rem;
    }
}

.hero-slide-image {
    position: relative;
    display: flex;
    flex: 1 1 0;
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 220px;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(17, 17, 17, 0.68) 0%, rgba(17, 17, 17, 0.28) 45%, rgba(17, 17, 17, 0.05) 100%);
}

.hero-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.35rem;
    padding: 1.75rem;
    flex: 1 1 0;
    min-height: 100%;
}

@media (min-width: 768px) {
    .hero-slide-content {
        display: grid;
        grid-template-rows: auto 1fr auto;
        align-content: stretch;
        gap: 1.5rem;
    }
}

.hero-slide-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .hero-slide-body {
        min-height: 0;
        overflow: visible;
        padding-right: 0;
    }
}

.hero-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.hero-slide-actions .btn {
    font-size: 0.95rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
}

@media (min-width: 768px) {
    .hero-slide-actions .btn {
        padding: 0.6rem 1.3rem;
    }
}

.hero-slide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(12, 193, 185, 0.12);
    color: var(--theme-black);
    font-size: 0.82rem;
    font-weight: 600;
}

[data-theme="dark"] .hero-slide-eyebrow {
    background: rgba(12, 193, 185, 0.2);
    color: var(--text-color);
}

.hero-slide h2, h3, h4 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--theme-black);
}

html:lang(ko) .hero-slide h2,
html:lang(ko) .hero-slide h3,
html:lang(ko) .hero-slide h4,
html:lang(ko) .main-section-title h3,
html:lang(ko) .feature-card h4,
html:lang(ko) .weekly-recommendation-title,
html:lang(en) .hero-slide h2,
html:lang(en) .hero-slide h3,
html:lang(en) .hero-slide h4,
html:lang(en) .main-section-title h3,
html:lang(en) .feature-card h4,
html:lang(en) .weekly-recommendation-title {
    font-family: var(--font-babyshark, 'BabyShark', sans-serif);
}

[data-theme="dark"] .hero-slide h2 {
    color: #f5f5f5;
}

.hero-slide p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(23, 23, 23, 0.78);
}

[data-theme="dark"] .hero-slide p {
    color: rgba(239, 239, 239, 0.78);
}

.hero-slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.15rem;
}

.hero-language {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(12, 193, 185, 0.15);
    color: var(--theme-black);
}

[data-theme="dark"] .hero-language {
    background: rgba(12, 193, 185, 0.22);
    color: var(--text-color);
}

.hero-language-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-language-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--theme-white);
    color: var(--theme-black);
    font-size: 0.62rem;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(12, 193, 185, 0.35);
}

[data-theme="dark"] .hero-language-tag {
    background: rgba(15, 18, 34, 0.55);
    color: var(--text-color);
    box-shadow: inset 0 0 0 1px rgba(12, 193, 185, 0.45);
}

.hero-language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hero-slider-buttons {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    gap: 0.75rem;
    pointer-events: auto;
    z-index: 2;
}

.hero-slider-button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(12, 193, 185, 0.35);
    background: rgba(255, 255, 255, 0.85);
    color: var(--theme-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hero-slider-button:hover {
    background: rgba(12, 193, 185, 0.15);
    color: var(--theme-black);
}

[data-theme="dark"] .hero-slider-button {
    background: rgba(29, 32, 35, 0.85);
    color: var(--text-color);
    border-color: rgba(12, 193, 185, 0.35);
}

.hero-slider-indicators {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    pointer-events: auto;
    z-index: 2;
}

.hero-slider-indicator {
    width: 32px;
    height: 3px;
    border-radius: 999px;
    background: rgba(12, 193, 185, 0.22);
    overflow: hidden;
}

.hero-slider-indicator span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--theme);
    transition: width 0.6s ease;
}

.hero-slider-indicator.is-active span {
    width: 100%;
}

.main-section {
    padding: 4.5rem 0;
    background: var(--theme-white);
}

[data-theme="dark"] .main-section {
    background: var(--theme-white);
}

.main-section-title {
    margin-bottom: 2.5rem;
    text-align: center;
}

.main-section-title h3 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--theme-black);
}

[data-theme="dark"] .main-section-title h3 {
    color: #f5f5f5;
}

.main-section-title p {
    margin: 0 auto;
    max-width: 620px;
    font-size: 1rem;
    color: rgba(23, 23, 23, 0.7);
}

[data-theme="dark"] .main-section-title p {
    color: rgba(239, 239, 239, 0.72);
}

.stat-card {
    position: relative;
    border-radius: 20px;
    background: rgba(12, 193, 185, 0.08);
    padding: 2rem 1.75rem;
    height: 100%;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(12, 193, 185, 0.18);
}

[data-theme="dark"] .stat-card {
    background: rgba(12, 193, 185, 0.16);
    border-color: rgba(12, 193, 185, 0.28);
}

.stat-card strong {
    display: block;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--theme-black);
}

[data-theme="dark"] .stat-card strong {
    color: #ffffff;
}

.stat-card span {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.95rem;
    color: rgba(17, 17, 17, 0.72);
}

[data-theme="dark"] .stat-card span {
    color: rgba(239, 239, 239, 0.82);
}

.main-ranking .ranking-card {
    padding: 1.75rem 1.5rem;
    border-radius: 22px;
    background: var(--theme-white);
    box-shadow: 0 18px 42px rgba(15, 18, 34, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .main-ranking .ranking-card {
    background: rgba(20, 20, 20, 0.92);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
    border-color: rgba(255, 255, 255, 0.08);
}

.ranking-table {
    margin-bottom: 0;
    color: var(--text-color);
}

.ranking-table thead th {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.62);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .ranking-table thead th {
    color: rgba(239, 239, 239, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.ranking-table tbody td {
    padding: 0.85rem 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
    vertical-align: middle;
}

.ranking-table tbody tr:first-child td {
    border-top: none;
}

.ranking-table tbody tr:hover {
    background: rgba(12, 193, 185, 0.08);
}

[data-theme="dark"] .ranking-table tbody tr:hover {
    background: rgba(12, 193, 185, 0.16);
}

.ranking-nickname {
    font-weight: 600;
    color: var(--theme-black);
}

.ranking-nickname-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background-color: rgba(17, 17, 17, 0.04);
    border: 1px solid rgba(17, 17, 17, 0.08);
}

[data-theme="dark"] .ranking-avatar {
    background-color: rgba(239, 239, 239, 0.08);
    border-color: rgba(239, 239, 239, 0.16);
}

[data-theme="dark"] .ranking-nickname {
    color: #f5f5f5;
}

.ranking-total {
    font-weight: 700;
    color: var(--theme-black);
}

[data-theme="dark"] .ranking-total {
    color: #ffffff;
}

.ranking-empty {
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(17, 17, 17, 0.6);
    font-weight: 500;
}

[data-theme="dark"] .ranking-empty {
    color: rgba(239, 239, 239, 0.68);
}

.feature-card {
    height: 100%;
    border-radius: 20px;
    padding: 2.25rem 2rem;
    background: var(--surface-subtle);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 18, 34, 0.12);
}

[data-theme="dark"] .feature-card {
    background: var(--surface-subtle);
    border-color: rgba(255, 255, 255, 0.06);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--theme-black);
}

[data-theme="dark"] .feature-card h4 {
    color: #fefefe;
}

.feature-card p {
    margin: 0;
    color: rgba(23, 23, 23, 0.72);
    line-height: 1.7;
}

[data-theme="dark"] .feature-card p {
    color: rgba(239, 239, 239, 0.74);
}

.weekly-recommendation-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.weekly-recommendation-author {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.weekly-recommendation-preview {
    margin-bottom: 1.5rem;
    color: rgba(23, 23, 23, 0.74);
    line-height: 1.7;
}

[data-theme="dark"] .weekly-recommendation-preview {
    color: rgba(239, 239, 239, 0.74);
}

.main-community {
    background: linear-gradient(140deg, rgba(12, 193, 185, 0.18) 0%, rgba(236, 89, 90, 0.12) 52%, rgba(12, 193, 185, 0.18) 100%);
}

[data-theme="dark"] .main-community {
    background: linear-gradient(140deg, rgba(12, 193, 185, 0.32) 0%, rgba(236, 89, 90, 0.22) 52%, rgba(12, 193, 185, 0.34) 100%);
}

.community-card {
    background: rgba(255, 255, 255, 0.86);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 24px 48px rgba(15, 18, 34, 0.12);
}

[data-theme="dark"] .community-card {
    background: rgba(20, 24, 28, 0.88);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.community-card h3 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 700;
    color: var(--theme-black);
    margin-bottom: 1rem;
}

[data-theme="dark"] .community-card h3 {
    color: #f8f8f8;
}

.community-card p {
    color: rgba(23, 23, 23, 0.75);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .community-card p {
    color: rgba(239, 239, 239, 0.78);
}

.community-actions {
    display: grid;
    gap: 1rem;
}

.community-actions a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(12, 193, 185, 0.12);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.community-actions a:hover {
    transform: translateX(4px);
    background: rgba(12, 193, 185, 0.2);
}

[data-theme="dark"] .community-actions a {
    background: rgba(12, 193, 185, 0.2);
}

.community-actions a span {
    font-weight: 600;
}

.community-actions a i {
    font-size: 1.1rem;
}

.main-cta {
    background: radial-gradient(circle at top, rgba(12, 193, 185, 0.25), transparent 60%), var(--bg-color);
}

.main-cta .cta-card {
    background: var(--theme-white);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 18, 34, 0.12);
}

[data-theme="dark"] .main-cta .cta-card {
    background: rgba(22, 26, 30, 0.88);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.42);
}

.main-cta h3 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 700;
    color: var(--theme-black);
    margin-bottom: 1rem;
}

[data-theme="dark"] .main-cta h3 {
    color: #ffffff;
}

.main-cta p {
    color: rgba(23, 23, 23, 0.72);
    margin-bottom: 2rem;
}

[data-theme="dark"] .main-cta p {
    color: rgba(239, 239, 239, 0.78);
}

.main-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.main-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(12, 193, 185, 0.16);
    color: var(--theme-black);
    font-size: 0.9rem;
    font-weight: 600;
}

[data-theme="dark"] .main-badges span {
    background: rgba(12, 193, 185, 0.28);
    color: var(--text-color);
}

@media (min-width: 768px) {
    .hero-slide-content {
        padding: 3rem 3.25rem;
    }

    .hero-slide-image {
        min-height: 100%;
    }
}

@media (min-width: 992px) {
    .hero-slide-content {
        padding: 3.25rem 3.75rem;
    }

    .hero-slide-image {
        flex: 0 0 46%;
    }
}

@media (max-width: 767.98px) {
    .hero-slide { 
        position: relative;
        display: block;
        min-height: 420px;
        overflow: hidden;
        border-radius: 24px;
    }

    .hero-slide-content {
        position: relative;
        z-index: 1;
        padding: 2.5rem 1.75rem 3rem;
        gap: 1.25rem;
        color: #f9f9f9;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    }

    .hero-slide-actions {
        gap: 0.65rem;
    }

    .hero-slide-image {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .hero-slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-slide-overlay {
        background: linear-gradient(180deg, rgba(12, 15, 18, 0.68) 0%, rgba(12, 15, 18, 0.58) 45%, rgba(12, 15, 18, 0.65) 100%);
    }

    .hero-slide h2, h3, h4 {
        color: #ffffff;
    }

    .hero-slide p {
        color: rgba(252, 252, 252, 0.88);
    }

    .hero-slide-eyebrow {
        background: rgba(12, 193, 185, 0.45);
        color: #ffffff;
    }

    .hero-language {
        background: rgba(12, 193, 185, 0.38);
        color: #ffffff;
    }

    .hero-language-tag {
        background: rgba(0, 0, 0, 0.35);
        color: #ffffff;
        box-shadow: inset 0 0 0 1px rgba(12, 193, 185, 0.45);
    }
}

@media (max-width: 991.98px) {
    .hero-slider-controls {
        position: static;
        margin: 1.5rem auto 0;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-slider-button {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 575.98px) {
    .main-hero {
        padding-top: 4rem;
    }

    .hero-slide-content {
        padding: 2rem 1.75rem 2.5rem;
        gap: 1.25rem;
    }

    .hero-slide-eyebrow {
        font-size: 0.8rem;
    }

    .main-section {
        padding: 3.5rem 0;
    }

    .community-card {
        padding: 2rem 1.5rem;
    }

    .feature-card {
        padding: 1.75rem 1.5rem;
    }

    .main-cta .cta-card {
        padding: 2.5rem 1.75rem;
    }
}

/* =============================== */
/* Google AdSense placeholder 영역 */
/* =============================== */
