/* ========================================
   MelasmaHK - 黑斑資訊站 Styles
   Modern, Clean, Responsive Design
   ======================================== */

/* CSS Variables */
:root {
    --primary: #8B7355;
    --primary-light: #A69076;
    --primary-dark: #6B5744;
    --secondary: #D4C4B0;
    --accent: #E8DED3;
    --text: #2D2A26;
    --text-light: #5C5650;
    --text-muted: #8A847D;
    --bg: #FDFCFB;
    --bg-alt: #F7F4F1;
    --white: #FFFFFF;
    --border: #E8E4E0;
    --shadow: rgba(45, 42, 38, 0.08);
    --shadow-lg: rgba(45, 42, 38, 0.12);
    --gradient: linear-gradient(135deg, #8B7355 0%, #A69076 100%);
    --transition: 0.3s ease;
    --radius: 12px;
    --radius-lg: 20px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 251, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 20px var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--accent);
}

.nav-cta {
    background: var(--gradient);
    color: var(--white) !important;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F7F4F1 0%, #E8DED3 50%, #D4C4B0 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.1) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 24px;
    color: var(--text);
}

.hero-title .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .subtitle {
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 4px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(5px, 5px); }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* What is Melasma Section */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.info-cards {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow-lg);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Face Diagram */
.face-diagram {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.face-outline {
    position: relative;
    width: 280px;
    height: 360px;
    background: linear-gradient(180deg, #FAF6F3 0%, #F0EBE6 100%);
    border-radius: 50% 50% 45% 45%;
    border: 3px solid var(--secondary);
    box-shadow: 0 10px 40px var(--shadow);
}

.melasma-spot {
    position: absolute;
    background: rgba(139, 115, 85, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 3s ease-in-out infinite;
}

.melasma-spot:hover {
    background: rgba(139, 115, 85, 0.7);
    transform: scale(1.1);
}

.spot-forehead {
    width: 120px;
    height: 40px;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 40%;
}

.spot-cheek-left {
    width: 60px;
    height: 50px;
    top: 150px;
    left: 30px;
}

.spot-cheek-right {
    width: 60px;
    height: 50px;
    top: 150px;
    right: 30px;
}

.spot-nose {
    width: 30px;
    height: 25px;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
}

.spot-lip {
    width: 50px;
    height: 20px;
    top: 240px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 30%;
}

.spot-chin {
    width: 40px;
    height: 30px;
    top: 290px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.diagram-hint {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.spot-info {
    margin-top: 16px;
    padding: 16px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow);
    font-size: 0.95rem;
    color: var(--text-light);
    min-height: 60px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.spot-info.active {
    opacity: 1;
    transform: translateY(0);
}

/* Causes Section */
.causes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cause-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
}

.cause-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.cause-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cause-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.cause-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cause-meter {
    margin-top: auto;
}

.meter-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.meter-bar {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Types Section */
.types-tabs {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px var(--shadow);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: var(--primary);
    background: var(--bg-alt);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.tabs-content {
    padding: 40px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.type-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: center;
}

.skin-layer-diagram {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

.layer {
    padding: 30px 20px;
    text-align: center;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.layer span {
    position: relative;
    z-index: 1;
}

.epidermis {
    background: #F5E6D3;
    color: var(--primary-dark);
}

.dermis {
    background: #E8D4C4;
    color: var(--primary-dark);
}

.subcutis {
    background: #DBC8B8;
    color: var(--primary-dark);
}

.layer.highlighted {
    background: var(--primary);
    color: var(--white);
}

.pigment-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(107, 87, 68, 0.4) 3px, transparent 3px);
    background-size: 15px 15px;
    opacity: 0.8;
}

.type-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.type-features {
    margin-bottom: 24px;
}

.type-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-light);
}

.type-features li:last-child {
    border-bottom: none;
}

.treatment-outlook {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.outlook-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.outlook-bar {
    flex: 1;
    height: 10px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
}

.outlook-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease;
}

.outlook-fill.good {
    width: 85%;
    background: linear-gradient(90deg, #7CB342, #558B2F);
}

.outlook-fill.moderate {
    width: 50%;
    background: linear-gradient(90deg, #FFB300, #FF8F00);
}

.outlook-fill.mixed {
    width: 65%;
    background: linear-gradient(90deg, #7CB342 40%, #FFB300 100%);
}

.outlook-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* Prevention Section */
.prevention-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.timeline-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.timeline-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 16px;
}

.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50%;
}

.step-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.step-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.prevention-tips {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 4px 20px var(--shadow);
}

.prevention-tips h3 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--primary);
}

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

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.tip-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    border-radius: 50%;
}

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

/* Treatment Section */
.treatment-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.treatment-category {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

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

.category-header h3 {
    font-size: 1.3rem;
}

.category-tag {
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    border-radius: 20px;
}

.treatment-list {
    padding: 24px 32px;
}

.treatment-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.treatment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.treatment-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.treatment-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.treatment-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 12px;
    border-left: 2px solid var(--accent);
}

.treatment-warning {
    display: flex;
    gap: 20px;
    padding: 24px 32px;
    background: #FFF8E1;
    border-radius: var(--radius-lg);
    border: 1px solid #FFE082;
}

.warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.warning-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #F57F17;
}

.warning-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Quiz Section */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: 0 4px 30px var(--shadow);
}

.quiz-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 12.5%;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.quiz-content {
    min-height: 300px;
}

.quiz-question {
    margin-bottom: 32px;
}

.quiz-question h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-alt);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.quiz-option:hover {
    border-color: var(--secondary);
}

.quiz-option.selected {
    background: var(--accent);
    border-color: var(--primary);
}

.quiz-option input {
    display: none;
}

.option-circle {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quiz-option.selected .option-circle {
    border-color: var(--primary);
    background: var(--primary);
}

.quiz-option.selected .option-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

.option-text {
    font-size: 1rem;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.quiz-result {
    text-align: center;
    padding: 20px 0;
}

.result-score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.result-level {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.result-level.low { color: #558B2F; }
.result-level.medium { color: #FF8F00; }
.result-level.high { color: #D84315; }

.result-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.result-tips {
    text-align: left;
    padding: 24px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.result-tips h4 {
    margin-bottom: 16px;
    color: var(--primary);
}

.result-tips ul {
    list-style: disc;
    padding-left: 20px;
}

.result-tips li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-light);
    line-height: 1.8;
}

/* SEO Section */
.seo-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.seo-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.9;
}

.seo-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.seo-keywords span {
    padding: 8px 16px;
    background: var(--white);
    color: var(--text-muted);
    font-size: 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* Footer */
.footer {
    background: var(--text);
    color: var(--secondary);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .causes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prevention-timeline {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .treatment-categories {
        grid-template-columns: 1fr;
    }

    .type-content {
        grid-template-columns: 1fr;
    }

    .type-visual {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 20px var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .content-visual {
        order: -1;
    }

    .face-outline {
        width: 220px;
        height: 280px;
    }

    .causes-grid {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn.active::after {
        display: none;
    }

    .tabs-content {
        padding: 24px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .quiz-container {
        padding: 32px 24px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .prevention-tips {
        padding: 24px;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .quiz-navigation .btn {
        width: 100%;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.visible {
    animation: slideInUp 0.6s ease forwards;
}

/* Active Nav Link */
.nav-link.active {
    color: var(--primary);
    background: var(--accent);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .separator {
    color: var(--text-muted);
}

.breadcrumbs .current {
    color: var(--text);
    font-weight: 500;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #F7F4F1 0%, #E8DED3 100%);
    padding: 120px 0 60px;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.page-header .lead {
    max-width: 700px;
}

/* Legal Pages (Privacy, Terms, About) */
.legal-content,
.about-content {
    padding: 60px 0;
}

.legal-content .container,
.about-content .container {
    max-width: 900px;
}

.legal-content h2,
.about-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--primary);
}

.legal-content h2:first-of-type,
.about-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p,
.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul,
.about-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content li,
.about-content li {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.7;
    list-style: disc;
}

.legal-content strong,
.about-content strong {
    color: var(--text);
}

/* About Page Specific */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.about-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
}

.about-card .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.disclaimer-box {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 40px;
}

.disclaimer-box h3 {
    color: #F57F17;
    margin-bottom: 12px;
}

.disclaimer-box p {
    margin: 0;
}

/* Contact Page */
.contact-content {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text);
}

.form-group label .required {
    color: #D84315;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.contact-info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.contact-info-card {
    background: var(--bg-alt);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.contact-info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-faq h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

/* Blog Index Page */
.blog-header {
    background: linear-gradient(135deg, #F7F4F1 0%, #E8DED3 100%);
    padding: 120px 0 60px;
}

.blog-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.blog-content {
    padding: 60px 0;
}

.featured-article {
    margin-bottom: 60px;
}

.featured-article > h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* Featured Article Card */
.article-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.article-card.featured .article-image {
    height: auto;
    min-height: 300px;
}

.article-card.featured .article-image.large {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.article-card.featured .article-content {
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card.featured .article-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-card.featured .article-content h2 a {
    color: var(--text);
}

.article-card.featured .article-content h2 a:hover {
    color: var(--primary);
}

.article-card.featured .article-content p {
    display: block;
    -webkit-line-clamp: unset;
    margin-bottom: 20px;
}

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

    .article-card.featured .article-image {
        min-height: 200px;
    }

    .article-card.featured .article-content {
        padding: 28px 32px;
    }
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 30px var(--shadow);
}

.featured-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image .placeholder-icon {
    font-size: 5rem;
    opacity: 0.5;
}

.featured-content {
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content .article-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 16px;
    width: fit-content;
}

.featured-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.featured-content h3 a {
    color: var(--text);
}

.featured-content h3 a:hover {
    color: var(--primary);
}

.featured-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.featured-content .article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Articles Grid */
.articles-section h2,
.blog-grid .section-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
}

.blog-grid .articles-grid .article-card,
.articles-grid .article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(45, 42, 38, 0.12);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.article-card-image,
.article-card .article-image {
    height: 160px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-card-image .placeholder-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
}

.article-card .article-image .article-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 14px;
    background: var(--white);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
}

.article-card-content,
.article-card .article-content,
.articles-grid .article-card .article-content,
.blog-grid .article-card .article-content,
.blog-grid .articles-grid .article-card .article-content {
    padding: 32px 40px !important;
}

.article-card-content .article-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 12px;
}

.article-card-content h3,
.article-card .article-content h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card-content h3 a,
.article-card .article-content h3 a {
    color: var(--text);
}

.article-card-content h3 a:hover,
.article-card .article-content h3 a:hover {
    color: var(--primary);
}

.article-card-content p,
.article-card .article-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-content .article-meta,
.article-card .article-content .article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
}

/* Blog Article Page */
.blog-article .article-header {
    background: linear-gradient(135deg, #F7F4F1 0%, #E8DED3 100%);
    padding: 120px 0 60px;
}

.blog-article .article-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 16px;
}

.blog-article .article-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    max-width: 800px;
}

.blog-article .article-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    gap: 24px;
}

.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    padding: 60px 0;
}

.article-body {
    max-width: 100%;
}

.article-body .lead {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--primary);
}

.article-body p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.9;
}

.article-body strong {
    color: var(--text);
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--primary-dark);
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text);
}

.related-articles li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.related-articles li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-articles a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.related-articles a:hover {
    color: var(--primary);
}

.sidebar-section.cta-box {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
}

.sidebar-section.cta-box h3 {
    color: var(--white);
}

.sidebar-section.cta-box p {
    font-size: 0.9rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.sidebar-section.cta-box .btn {
    background: var(--white);
    color: var(--primary);
}

.sidebar-section.cta-box .btn:hover {
    background: var(--bg-alt);
}

/* Blog CTA Section */
.blog-cta {
    background: var(--bg-alt);
    padding: 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 60px;
}

.blog-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.blog-cta p {
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Latest Articles Section (Homepage) */
.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

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

/* User Guide Section */
.user-guide {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: 0 4px 30px var(--shadow);
    margin-top: 60px;
}

.user-guide h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
    text-align: center;
    color: var(--primary);
}

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

.guide-section h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text);
}

.guide-section p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.guide-section ol {
    padding-left: 20px;
}

.guide-section li {
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Contextual Intro */
.contextual-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.contextual-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.contextual-intro p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Responsive Adjustments for New Components */
@media (max-width: 1024px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 200px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }
}

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

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .blog-cta {
        padding: 40px 24px;
    }

    .user-guide {
        padding: 32px 24px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-bg,
    .scroll-indicator,
    .quiz-container,
    .footer {
        display: none;
    }

    .section {
        padding: 30px 0;
    }

    body {
        font-size: 12pt;
        color: #000;
    }
}
