@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    /* Color Palette - Light Theme */
    --bg-dark: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-card: #ffffff;
    --border-color: rgba(99, 102, 241, 0.08);
    --border-glow: rgba(99, 102, 241, 0.25);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --accent-blue: #0284c7;
    --accent-indigo: #4f46e5;
    --accent-purple: #9333ea;
    --accent-green: #059669;
    --accent-gold: #d97706;
    --danger: #ef4444;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(99, 102, 241, 0.08);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.05);
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(192, 132, 252, 0.03) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Fluid Base Font Size - adjusts dynamically with screen width */
    font-size: clamp(0.875rem, 0.35vw + 0.8rem, 1rem);
}

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

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

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.05);
}

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

.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-decoration: none;
    line-height: 1.1;
}

.logo-main {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem); /* Fluid Logo */
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-main span {
    font-weight: 300;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
}

.logo-sub {
    font-size: 0.6rem;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: 0.4px;
    margin-top: 1px;
    text-transform: uppercase;
    -webkit-text-fill-color: #6366f1;
    background: none;
    line-height: 1;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
    padding: 1.5rem 0;
}

.nav-link {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2vw, 1rem);
    cursor: pointer;
}

.nav-item:hover .nav-link {
    color: var(--accent-indigo);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 18px;
    padding: 0.6rem 0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1000;
}
.nav-dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}
.dropdown-item {
    padding: 0.75rem 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--accent-indigo);
}

/* 4열 2행 핵심 서비스 그리드 (PC) */
.services-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
}
@media (max-width: 991px) {
    .services-grid-8 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 599px) {
    .services-grid-8 {
        grid-template-columns: 1fr;
    }
}

/* 8대 핵심 서비스 통일 카드 디자인 System */
.service-card-item {
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 24px;
    padding: 1.8rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.service-icon-circle {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.service-card-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
    letter-spacing: -0.3px;
}

.service-card-desc {
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.55;
    margin: 0 0 1.4rem;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-btn {
    width: 100%;
    padding: 0.7rem 0;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: block;
}
.service-card-btn:hover {
    opacity: 0.92;
    transform: scale(1.02);
}

/* 4열 1행 프리미엄 서비스 쇼케이스 그리드 (PC) */
.showcase-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
@media (max-width: 1199px) {
    .showcase-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 599px) {
    .showcase-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* User Status Area */
.user-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

.user-name {
    color: var(--text-primary);
}

.admin-badge {
    font-size: 0.75rem;
    background: var(--danger);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
    color: white;
}

.mobile-separator {
    display: none;
    color: var(--text-muted);
    padding: 0 0.1rem;
}

/* Default Desktop Styles for Auth Buttons */
.btn-auth {
    padding: 0.4rem 1rem;
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-login-link {
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--text-secondary);
}

.btn-login-link:hover {
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.04);
}

.btn-register-link {
    background: var(--primary-gradient);
    color: white;
}

.btn-register-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-logout-link {
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--text-secondary);
}

.btn-logout-link:hover {
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.04);
}

/* Right Header Area (Search, User, Hamburger) */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    padding: 0.4rem 1rem 0.4rem 2.2rem;
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
    width: 180px;
}

.search-input:focus {
    width: 240px;
    background: #ffffff;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.9rem;
}

.points-badge {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.15);
    color: var(--accent-gold);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.points-badge i {
    font-style: normal;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Drawer Menu */
.mobile-drawer {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    overflow-y: auto;
}

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

.mobile-nav-item {
    margin-bottom: 1.5rem;
}

.mobile-nav-title {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    display: block;
}

/* Hero Section System */
.hero {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.hero-tag {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-indigo);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(1.8rem, 5.5vw + 0.5rem, 3.2rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* ==========================================================================
   WYES 12-Slide Hero Banner Slider System
   ========================================================================== */
.hero-slider-section {
    position: relative;
    margin-top: 1.5rem;
    margin-bottom: 3.5rem;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.12);
}

.hero-slider-container {
    position: relative;
    width: 100%;
    min-height: 440px;
    background: #0f172a;
    border-radius: 28px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 4rem;
    box-sizing: border-box;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.hero-slide-content {
    max-width: 860px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    z-index: 5;
}

.hero-slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 0.45rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: -0.2px;
}

.hero-slide-title {
    font-size: clamp(1.7rem, 4.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -1px;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero-slide-desc {
    font-size: clamp(0.88rem, 1.8vw, 1.05rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    max-width: 760px;
}

.hero-slide-status-box {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.85rem 1.8rem;
    border-radius: 20px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.92rem;
    color: #ffffff;
    margin-top: 0.4rem;
}

.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #0f172a;
    padding: 0.85rem 2.2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.25s ease;
    margin-top: 0.4rem;
}
.hero-slide-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    background: #f8fafc;
}

/* Slider Controls */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}
.hero-slider-nav:hover {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-50%) scale(1.1);
}
.hero-slider-prev { left: 1.5rem; }
.hero-slider-next { right: 1.5rem; }

/* Slider Dots Indicator */
.hero-slider-dots {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 10;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-slider-dot.active {
    width: 32px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-slider-container { min-height: 420px; }
    .hero-slide { padding: 2.2rem 1.4rem 3rem; }
    .hero-slide-title { font-size: clamp(1.35rem, 4.5vw, 2rem); }
    .hero-slide-desc { font-size: clamp(0.82rem, 1.8vw, 0.95rem); }
    .hero-slider-prev { left: 0.5rem; }
    .hero-slider-next { right: 0.5rem; }
    .services-grid-8 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .service-card-item { padding: 1.3rem 1rem; }
    .service-card-title { font-size: 1rem; }
    .service-card-desc { font-size: 0.82rem; }
}

/* Category Grid Header */
.category-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-title-area {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
}

.category-main-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem); /* Fluid Category Title */
    font-weight: 700;
    letter-spacing: -0.5px;
}

.category-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

/* Category filter container */
.filter-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
}
.filter-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.filter-label {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    font-weight: 700;
    color: var(--accent-indigo);
    min-width: 80px;
}
.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.filter-pill {
    padding: 0.4rem 1rem;
    font-size: clamp(0.75rem, 1.8vw, 0.85rem); /* Fluid Filter Pills */
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.08);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
}
.filter-pill:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-indigo);
}
.filter-pill.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Unified Article Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-premium);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.1), var(--shadow-glow);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f1f5f9;
    overflow: hidden;
}

/* Light-themed synthetic gradient image placeholders */
.card-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
}

.placeholder-trend {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: rgba(99, 102, 241, 0.4);
}

.placeholder-health {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: rgba(5, 150, 105, 0.4);
}

.placeholder-safety {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: rgba(217, 119, 6, 0.4);
}

.placeholder-shopping {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: rgba(147, 51, 234, 0.4);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.badge-cat1 {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-indigo);
}

.badge-cat2 {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-secondary);
}

.card-title {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem); /* Fluid Card Title */
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: clamp(0.85rem, 1.8vw, 0.9rem); /* Fluid Card Desc */
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(99, 102, 241, 0.05);
    padding-top: 1rem;
    margin-top: auto;
}

.card-points {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: clamp(0.85rem, 1.8vw, 0.9rem);
    font-weight: 700;
    color: var(--accent-gold);
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Detail View Container */
.detail-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin: 2rem auto 4rem;
    max-width: 800px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-premium);
}

.detail-header {
    border-bottom: 1px solid rgba(99, 102, 241, 0.05);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.detail-title {
    font-size: clamp(1.4rem, 4.5vw + 0.2rem, 2.2rem); /* Fluid Detail Title */
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.3;
    margin: 1rem 0;
    color: var(--text-primary);
}

.detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-image {
    width: 100%;
    height: 350px;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.detail-content {
    font-size: clamp(0.95rem, 1.5vw + 0.3rem, 1.1rem); /* Fluid Article Body Text */
    line-height: 1.8;
    color: #334155;
    margin-bottom: 3rem;
    white-space: pre-line;
}

.action-box {
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Action Trigger Button Class */
.btn-action-trigger {
    width: auto;
    padding: 0.8rem 3rem;
    font-size: clamp(0.9rem, 2vw, 1.05rem); /* Fluid Action Buttons */
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-block;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0 4rem;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.1);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.page-link:hover {
    background: rgba(99, 102, 241, 0.05);
}

.page-link.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.page-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Interactive Forms (Login / Register) */
.form-card {
    max-width: 500px;
    width: 100%;
    margin: 4rem auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(16px);
}

.form-title {
    font-size: clamp(1.5rem, 4vw, 2rem); /* Fluid Form Title */
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-indigo);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #0f172a;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

/* Agreement Panels */
.agreement-container {
    background: #f1f5f9;
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: 10px;
    padding: 1rem;
    height: 120px;
    overflow-y: scroll;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.checkbox-group input {
    margin-top: 0.2rem;
}

.checkbox-label {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.btn-submit {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.form-link-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Alert Boxes */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.alert-success {
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.15);
    color: #059669;
}

/* Footer styling */
footer {
    margin-top: auto;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(99, 102, 241, 0.02);
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-indigo);
}

/* 2-Line Admin List Styles */
.admin-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
.admin-list-item {
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.02);
}
.admin-list-item:hover {
    background: rgba(99, 102, 241, 0.02);
    border-color: var(--border-glow);
}
.admin-list-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.admin-list-line.line-1 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(99, 102, 241, 0.04);
    padding-bottom: 0.5rem;
}
.admin-list-line.line-2 {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Quiz Full Blind Modal Popup Styles - 100% Solid Overlay */
.quiz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark); /* Solid light background to blind the article completely */
    z-index: 2000;
    display: none; /* JS will toggle this to flex */
    align-items: center;
    justify-content: center;
    overflow-y: auto; /* Allow overlay scroll on mobile when card overflows */
    padding: 1rem;
}
.quiz-modal-overlay.active {
    display: flex;
}
.quiz-modal-card {
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), var(--shadow-premium);
    position: relative;
    margin: auto; /* Centers card nicely when scrollable */
}
.quiz-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}
.quiz-modal-close:hover {
    color: var(--danger);
}

/* Responsive Breakpoints down to 320px */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .search-box {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Mobile Screen Full Blind Modal Card Configuration */
    .quiz-modal-overlay {
        align-items: stretch !important;
        padding: 0 !important;
    }
    .quiz-modal-card {
        width: 100% !important;
        height: 100% !important;
        min-height: 100vh !important;
        max-width: none !important;
        border-radius: 0 !important;
        padding: 4rem 1.5rem 2rem !important; /* Top padding leaves space for close button */
        overflow-y: auto !important; /* Enable scrolling for form options on small screens */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    /* 퀴즈 오픈 및 액션 버튼 글자 크기 모바일 최적화 및 100% 가로 대응 */
    .btn-action-trigger {
        width: 100% !important;
        font-size: clamp(0.85rem, 2vw, 0.95rem) !important;
        padding: 0.8rem 1.5rem !important;
        border-radius: 12px !important;
    }

    /* 1. 중앙 정렬 적용 (Center Alignments on Mobile) */
    .hero,
    .hero-tag,
    .hero-title,
    .hero-desc,
    .category-header,
    .category-title-area,
    .detail-header,
    .detail-title,
    .form-title,
    .form-link-container,
    .action-box,
    .card-badges,
    .card-title,
    .card-desc {
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .category-title-area {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .card-badges {
        justify-content: center !important;
    }
    
    /* 2. 대립 정렬 적용 (Split Spacing / Space Between on Mobile) */
    .header-container,
    .card-footer,
    .detail-meta-left {
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        align-items: center !important;
    }
    
    /* Mobile user status links alignment (spaced correctly inside header) */
    .user-status {
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .user-name, 
    .admin-badge,
    .points-badge {
        display: none !important;
    }
    
    .mobile-separator {
        display: inline !important;
    }
    
    /* Turn buttons into simple text links on mobile */
    .btn-auth {
        padding: 0 !important;
        border: none !important;
        background: none !important;
        border-radius: 0 !important;
        color: var(--text-secondary) !important;
        font-weight: 600 !important;
        box-shadow: none !important;
        transform: none !important;
        font-size: clamp(0.75rem, 1.8vw, 0.85rem) !important;
    }
    
    .btn-auth:hover {
        color: var(--accent-indigo) !important;
        background: none !important;
    }
    
    .btn-register-link {
        color: var(--text-secondary) !important;
    }
    
    .detail-container {
        padding: 2rem 1rem;
    }
    
    .detail-image {
        height: 220px;
    }
}

/* Absolute minimum safe size */
@media (max-width: 320px) {
    .container {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    .btn-header {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    .logo {
        font-size: 1.3rem;
    }
    .detail-title {
        font-size: 1.5rem;
    }
    .card-title {
        font-size: 1.1rem;
    }
}

/* Promo & Ad Banner Zone Responsive Fixes */
.promo-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.8rem;
    width: 100%;
}

.promo-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

.promo-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(1.4rem, 4vw, 2.2rem);
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .promo-banner-grid {
        grid-template-columns: 1fr;
    }
    .promo-card {
        padding: 1.4rem 1.2rem;
        min-height: auto;
    }
}

/* ==========================================================================
   📱 320px~640px 모바일 전용 독립 레이아웃 & UI 최적화 시스템 (Mobile Dedicated CSS)
   ========================================================================== */
@media (max-width: 640px) {
    /* 홈 메인 - 슬라이더 & 8대 서비스 640px 이하 */
    .hero-slider-container { min-height: 380px; }
    .hero-slide { padding: 2rem 1.2rem 3rem; }
    .hero-slide-content { gap: 0.7rem; }
    .hero-slide-tag { font-size: 0.75rem; padding: 0.3rem 0.9rem; }
    .hero-slide-title { font-size: clamp(1.15rem, 5vw, 1.5rem); line-height: 1.3; }
    .hero-slide-desc { font-size: 0.82rem; line-height: 1.45; }
    .hero-slide-btn { font-size: 0.83rem; padding: 0.65rem 1.4rem; }
    .hero-slide-status-box { font-size: 0.78rem; padding: 0.55rem 0.9rem; flex-direction: column; gap: 0.4rem; }
    .services-grid-8 { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .service-card-item { padding: 1.1rem 0.85rem; border-radius: 18px; }
    .service-icon-circle { width: 48px; height: 48px; font-size: 1.5rem; margin-bottom: 0.5rem; }
    .service-card-title { font-size: 0.97rem; }
    .service-card-desc { font-size: 0.78rem; -webkit-line-clamp: 2; }
    .service-card-btn { font-size: 0.8rem; padding: 0.55rem 0; }

    /* 1. 글로벌 리셋 & 박스 세팅 */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }

    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        width: 100% !important;
    }

    /* 2. 헤더 & 로고 & 네비게이션 */
    .header-container {
        height: 60px !important;
        padding: 0 0.5rem !important;
    }

    .logo-main {
        font-size: 1.15rem !important;
    }

    .logo-sub {
        font-size: 0.52rem !important;
    }

    /* 3. 섹션 공통 헤더 & 타이틀 */
    .category-header {
        margin-bottom: 1.5rem !important;
        padding: 1.2rem 1rem !important;
        border-radius: 16px !important;
    }

    .category-main-title {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }

    .category-subtitle {
        font-size: 0.8rem !important;
    }

    /* 4. 마이페이지 320px 모바일 전용 세로 레이아웃 */
    .mypage-main-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important;
        margin-bottom: 3rem !important;
    }

    .mypage-card-padding, .form-card {
        padding: 1.1rem 0.85rem !important;
        border-radius: 18px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* 마이페이지 정보 조회 박스 320px */
    #profileViewMode > div, #profileEditMode .form-group {
        padding: 0.75rem 0.85rem !important;
    }

    /* 마이페이지 쿠폰 적립 입력 폼 320px */
    #userCouponInput {
        width: 100% !important;
        margin-bottom: 0.4rem !important;
    }

    /* 5. 메인 홈 슬라이더 & 추천 가이드 & 8대 서비스 모바일 반응형 */
    .hero-slider-section {
        border-radius: 18px !important;
        margin-bottom: 1.8rem !important;
    }

    .hero-slider-container {
        min-height: 380px !important;
        border-radius: 18px !important;
    }

    .hero-slide {
        padding: 1.8rem 1rem 3.2rem !important;
    }

    .hero-slide-content {
        gap: 0.65rem !important;
    }

    .hero-slide-tag {
        font-size: 0.72rem !important;
        padding: 0.3rem 0.85rem !important;
    }

    .hero-slide-title {
        font-size: clamp(1.15rem, 5vw, 1.4rem) !important;
        line-height: 1.35 !important;
        letter-spacing: -0.5px !important;
    }

    .hero-slide-desc {
        font-size: 0.8rem !important;
        line-height: 1.45 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        max-height: 2.8rem !important;
        margin: 0 !important;
    }

    .hero-slide-btn {
        font-size: 0.82rem !important;
        padding: 0.6rem 1.3rem !important;
        margin-top: 0.2rem !important;
        border-radius: 20px !important;
    }

    .hero-slide-status-box {
        font-size: 0.76rem !important;
        padding: 0.5rem 0.85rem !important;
        border-radius: 14px !important;
        line-height: 1.4 !important;
    }

    .hero-slider-nav {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.9rem !important;
    }
    .hero-slider-prev { left: 0.4rem !important; }
    .hero-slider-next { right: 0.4rem !important; }

    /* WYES 8대 서비스 카드리스트 모바일 가로 컴팩트 뷰 */
    .services-grid-8 {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }

    .service-card-item {
        padding: 1.1rem 1rem !important;
        border-radius: 18px !important;
    }

    .service-icon-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-card-title {
        font-size: 1.05rem !important;
        margin-bottom: 0.2rem !important;
    }

    .service-card-desc {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.8rem !important;
        min-height: auto !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .service-card-btn {
        font-size: 0.82rem !important;
        padding: 0.6rem 0 !important;
        border-radius: 12px !important;
    }

    /* 메인 그리드 및 섹션 패딩 320px 대응 */
    section {
        padding: 1.2rem 0.9rem !important;
        border-radius: 20px !important;
        margin-bottom: 2rem !important;
    }

    .content-grid, .promo-banner-grid, .grid-3 {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important;
    }

    .promo-card {
        padding: 1.2rem 1rem !important;
        border-radius: 20px !important;
    }

    .promo-card h3 {
        font-size: 1.15rem !important;
        line-height: 1.35 !important;
    }

    .promo-card p {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
        margin-bottom: 1rem !important;
    }

    /* 6. 공지사항 & 통합문의 320px 카드리스트 반응형 */
    .notice-mobile-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    .notice-mobile-cards a {
        padding: 1rem 0.85rem !important;
        border-radius: 16px !important;
    }

    .notice-mobile-cards h3 {
        font-size: 0.95rem !important;
    }

    /* 7. 버튼 및 폼 인풋 최적화 */
    .btn, button, input[type="submit"], input[type="text"], input[type="email"], input[type="password"], select, textarea {
        font-size: 0.88rem !important;
    }

    .form-input {
        padding: 0.65rem 0.85rem !important;
    }

    /* 8. 모달 & 팝업 320px 최적화 */
    .modal-content, .popup-box {
        width: 94% !important;
        padding: 1.2rem 1rem !important;
        border-radius: 20px !important;
    }
}

