/* ===== Home Layout Tokens ===== */
:root {
    --home-section-lg: 96px;
    --home-section-md: 72px;
    --home-section-sm: 52px;
    --home-title: 30px;
    --home-subtitle: 16px;
    --home-ink: #0f172a;
    --home-muted: #556070;
    --home-accent: #2f6bff;
    --home-accent-warm: #ff8a3d;
    --home-sand: #f7f2ea;
    --home-cream: #fff9f1;
    --home-card-bg: #ffffff;
    --home-card-border: rgba(15, 23, 42, 0.08);
    --home-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    --home-radius: 18px;
}

/* ===== Home: Hero Slider ===== */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--home-cream);
    aspect-ratio: 16 / 9;
    min-height: 360px;
}

.hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 20% 20%, rgba(255, 248, 236, 0.55) 0%, rgba(255, 248, 236, 0) 55%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0) 45%, rgba(15, 23, 42, 0.22) 100%);
    z-index: 3;
    pointer-events: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2b3a67, #5c7cff);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide.slide-image {
    position: absolute;
    background: var(--home-cream);
}

.slide.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-hotspots {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.hero-hotspot {
    position: absolute;
    border-radius: 999px;
}

.hero-hotspot:focus-visible {
    outline: 2px solid var(--home-accent-warm);
    outline-offset: 3px;
}

.hero-hotspot.consult {
    left: 9%;
    top: 73%;
    width: 13.5%;
    height: 7.5%;
}

.hero-hotspot.brochure {
    left: 23.5%;
    top: 73%;
    width: 21.5%;
    height: 7.5%;
}

.slide-content {
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ===== Home: Solutions ===== */
.solutions-section {
    padding: var(--home-section-lg) 0;
    background: linear-gradient(180deg, #f8fbff, #fff7ef);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.solution-card {
    background: var(--home-card-bg);
    border-radius: var(--home-radius);
    padding: 28px;
    border: 1px solid var(--home-card-border);
    box-shadow: var(--home-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    border-color: rgba(47, 107, 255, 0.18);
}

.solution-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 18px;
}

.solution-card.work .solution-icon {
    background: linear-gradient(135deg, #2b3a67, #6b8cff);
}

.solution-card.learn .solution-icon {
    background: linear-gradient(135deg, #3aa9ff, #84d2ff);
}

.solution-card.consult .solution-icon {
    background: linear-gradient(135deg, #ff8a3d, #ffb07a);
}

.solution-title {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--home-ink);
}

.solution-subtitle {
    font-size: 14px;
    color: var(--home-accent);
    margin-bottom: 14px;
    font-weight: 600;
}

.solution-list {
    list-style: none;
    display: grid;
    gap: 12px;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.6;
}

.solution-list li {
    padding-left: 18px;
    position: relative;
}

.solution-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-accent-warm);
    position: absolute;
    left: 0;
    top: 9px;
}

/* ===== Home: Impact ===== */
.impact-section {
    padding: var(--home-section-lg) 0;
    background: linear-gradient(135deg, #1a2440, #2a3a6a);
    color: #fff;
}

.impact-header {
    text-align: center;
    margin-bottom: 40px;
}

.impact-title {
    font-size: var(--home-title);
    margin-bottom: 10px;
}

.impact-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--home-subtitle);
}

.impact-list {
    display: grid;
    gap: 20px;
}

.impact-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
}

.impact-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 10px;
}

.impact-item-title {
    font-size: 18px;
}

.impact-value {
    font-size: 20px;
    font-weight: 700;
    color: #a4c8ff;
}

.impact-item.work .impact-value {
    color: #a4c8ff;
}

.impact-item.feedback .impact-value {
    color: #ffc08a;
}

.impact-item.diagnostic .impact-value {
    color: #9fd7ff;
}

.impact-item-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.impact-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.impact-bar-fill {
    height: 100%;
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8a3d, #6fa6ff);
}

/* ===== Home: Blog ===== */
.blog-section {
    padding: var(--home-section-md) 0;
    background: linear-gradient(180deg, #fff7ef, #ffffff);
}

.blog-section .section-title {
    margin-bottom: 0;
}

.blog-card {
    margin-top: 18px;
}

.blog-intro {
    text-align: center;
    color: var(--home-muted);
    line-height: 1.5;
    margin: 4px 0 0;
}

.blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: var(--home-radius);
    background: var(--home-card-bg);
    border: 1px solid var(--home-card-border);
    box-shadow: var(--home-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.blog-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    border-color: rgba(255, 138, 61, 0.2);
}

.blog-item-title {
    font-weight: 600;
    line-height: 1.5;
    font-size: 17px;
    color: var(--home-ink);
    min-height: 3em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.blog-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f4ef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.blog-empty {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff7ef;
    border: 1px dashed rgba(15, 23, 42, 0.15);
    color: var(--home-muted);
    text-align: center;
    grid-column: 1 / -1;
}

.blog-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff8a3d, #ffb07a);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 138, 61, 0.28);
}

/* ===== Home: Partners ===== */
.partners {
    padding: var(--home-section-md) 0;
    background: #fffdf9;
}

.partners-title {
    text-align: center;
    font-size: var(--home-title);
    margin-bottom: 40px;
}

.partners-title span {
    color: var(--home-accent-warm);
}

.partners-wrapper {
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    gap: 40px;
    animation: scrollPartners 22.4s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Home: Notice ===== */
.notice-event {
    padding: var(--home-section-sm) 0;
    background: #fff7ef;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.notice-box {
    background: white;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid rgba(255, 138, 61, 0.1);
}

.notice-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border-color: rgba(255, 138, 61, 0.22);
}

.notice-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 138, 61, 0.55);
}

.notice-box h3 {
    font-size: 20px;
    color: var(--home-accent-warm);
    margin: 0;
}

.notice-more {
    font-size: 13px;
    color: var(--home-accent-warm);
    border: 1px solid rgba(255, 138, 61, 0.7);
    border-radius: 999px;
    padding: 4px 10px;
    transition: all 0.2s ease;
}

.notice-more:hover {
    background: var(--home-accent-warm);
    color: #fff;
}

.notice-list {
    list-style: none;
}

.notice-list li {
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
}

.notice-list a {
    color: var(--home-ink);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    display: block;
}

.notice-list a:hover {
    color: var(--home-accent);
}

.notice-date {
    color: #999;
    font-size: 13px;
    margin-left: 15px;
}

@media (max-width: 768px) {
    .hero-slider {
        aspect-ratio: 4 / 5;
    }

    .slide-content h2 {
        font-size: var(--home-title);
    }

    .slide-content p {
        font-size: var(--home-subtitle);
    }

    .notice-grid {
        grid-template-columns: 1fr;
    }

    .blog-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .impact-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-hotspot.consult {
        left: 8%;
        top: 70%;
        width: 26%;
        height: 7.5%;
    }

    .hero-hotspot.brochure {
        left: 36.5%;
        top: 70%;
        width: 36%;
        height: 7.5%;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 22px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .blog-list {
        grid-template-columns: 1fr;
    }

    .blog-image {
        aspect-ratio: 1 / 1;
    }

    .impact-title {
        font-size: 22px;
    }
}
