:root {
    --primary-color: #0071dc;
    /* Walmart Blue */
    --secondary-color: #ffc220;
    /* Walmart Yellow */
    --dark-bg: #ffffff;
    /* Light Theme Background */
    --card-bg: #f8f9fa;
    /* Light Card Background */
    --text-main: #333333;
    /* Dark Text */
    --text-muted: #666666;
    /* Muted Text */
    --font-main: 'Noto Sans KR', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --spacing-unit: 1rem;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: keep-all;
    /* Prevent mid-word line breaks */
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.btn-primary {
    background: linear-gradient(135deg, #0071dc, #005bb5);
    /* Walmart Blue Gradient */
    color: #ffffff !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 113, 220, 0.4);
    /* Blue shadow */
    border: 2px solid transparent;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005bb5, #004a94);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 113, 220, 0.6);
    /* Stronger shadow on hover */
}

.btn-secondary {
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    /* Match primary padding */
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    font-size: 1.1rem;
    /* Match primary font size */
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 113, 220, 0.3);
}

/* Specific class for large buttons if needed, but base styles cover it */
.btn-primary.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_main.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Overlay to make text readable on image */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    /* Light overlay */
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 113, 220, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 113, 220, 0.2);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    /* Dark text for contrast */
    background: none;
    -webkit-text-fill-color: initial;
}

.hero p {
    font-size: 1.25rem;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Cards */
.card,
.feature-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Light border */
    transition: var(--transition-speed);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
}

.card:hover,
.feature-box:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 113, 220, 0.2);
    box-shadow: 0 10px 30px rgba(0, 113, 220, 0.15);
}

.card h3,
.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    color: #1a1a1a;
}

.card p,
.feature-box p {
    color: var(--text-muted);
}

.feature-box {
    text-align: center;
}

.feature-box .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Retailers Marquee */
.retailer-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    max-width: 100%;
    padding: 2rem 0;
}

.retailer-track {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.retailer-logo {
    height: 50px;
    /* Slightly smaller for better proportion */
    width: auto;
    margin: 0 3rem;
    vertical-align: middle;
    opacity: 0.6;
    /* Silver/Gray look */
    transition: all 0.3s ease;
    filter: grayscale(100%);
    object-fit: contain;
}

.retailer-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
    /* Subtle pop */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Guide Section */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guide-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.guide-icon {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.guide-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Program List (Replaces Timeline) */
.program-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.program-item {
    background: #f8f9fa;
    /* Light background for visibility */
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align to top */
}

.program-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0, 113, 220, 0.15);
    border-color: rgba(0, 113, 220, 0.3);
    background: #ffffff;
    /* White on hover for pop effect */
}

.program-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: var(--font-display);
    font-weight: 700;
    min-height: 3.5rem;
    /* Ensure consistent height for alignment */
    display: flex;
    align-items: center;
}

.program-item p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: auto;
    /* Push to bottom if needed, or just let it flow */
}

.cta-container {
    text-align: center;
    margin-top: 4rem;
}

.btn-primary.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Contact */
.contact-box {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-info {
    margin: 2rem 0;
    font-size: 1.2rem;
    color: var(--text-main);
}

.contact-message {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: var(--font-display);
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    background-color: #f8f9fa;
}

/* Animations */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        justify-content: flex-start;
    }

    .step-number {
        left: 30px;
        transform: translateX(-50%);
        margin-right: 2rem;
        position: relative;
        flex-shrink: 0;
    }

    .step-content {
        width: calc(100% - 80px);
    }

    .nav-links {
        display: none;
        /* Simple mobile hide for now */
    }
}

/* Program Details Page */
.page-header {
    background-color: var(--card-bg);
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.program-details {
    padding: 4rem 0;
}

.step-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-header {
    margin-bottom: 2rem;
    text-align: center;
}

.step-number {
    display: inline-block;
    background: rgba(0, 113, 220, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.step-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

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

.step-content {
    text-align: center;
}

.step-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-container .btn-secondary {
    margin-left: 1rem;
}

/* Weekly Schedule Grid */
.week-grid {
    display: grid;
    /* Mobile first: 1 column (Vertical stack) */
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

/* Desktop: 4 columns (Horizontal single line) */
@media (min-width: 1024px) {
    .week-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.week-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.week-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 113, 220, 0.2);
}

.week-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 113, 220, 0.1);
    padding-bottom: 0.5rem;
    font-family: var(--font-display);
}

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

.week-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.week-card li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    top: 2px;
}

.week-card .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Program Introduction */
.program-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 900px;
    margin: 1.5rem auto 0;
}

/* Phase Container */
.phase-container {
    margin-bottom: 4rem;
}

.phase-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 113, 220, 0.1);
}

.phase-number {
    display: inline-block;
    background: linear-gradient(135deg, #0071dc, #005bb5);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.phase-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    color: #1a1a1a;
}

.phase-goal {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Week Detail Card */
.week-detail-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.week-detail-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.week-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.week-badge {
    background: rgba(0, 113, 220, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.week-header h3 {
    font-size: 1.4rem;
    color: #1a1a1a;
    font-family: var(--font-display);
    margin: 0;
}

.week-detail-card .description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    border-left: 3px solid rgba(0, 113, 220, 0.2);
}

.detail-row {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.detail-row strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.detail-row p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.detail-row.importance {
    background: linear-gradient(135deg, rgba(0, 113, 220, 0.05), rgba(0, 113, 220, 0.02));
    border-left: 3px solid var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .phase-header h2 {
        font-size: 1.8rem;
    }

    .week-detail-card {
        padding: 1.5rem;
    }

    .week-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .program-intro {
        font-size: 1rem;
    }
}