/* KLIC x VECOM landing page — scoped styles, does not touch app.css (used by /backup) */

html:has(.klic-page) {
    scroll-behavior: smooth;
}

/* app.css locks html/body scrolling for the old fixed-viewport vf3 layout;
   restore normal document scrolling for this full-length landing page. */
html:has(.klic-page),
body:has(.klic-page) {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.klic-page * {
    box-sizing: border-box;
}

/* Header is position:fixed — offset anchor-link scroll targets so section tops
   don't land underneath it. */
.klic-page section,
.klic-page footer {
    scroll-margin-top: 84px;
}

@keyframes klicMarqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.klic-page .klic-input:focus,
.klic-page .klic-select:focus {
    outline: none;
    border-color: var(--violet) !important;
}

.klic-page a {
    color: inherit;
}

.klic-page {
    width: 100%;
    overflow-x: hidden;
}

/* Mobile nav breakpoint (matches KLIC reference isMobile threshold) */
.klic-nav-desktop {
    display: flex;
}

.klic-nav-toggle {
    display: none;
}

@media (max-width: 900px) {
    .klic-nav-desktop {
        display: none;
    }

    .klic-nav-toggle {
        display: flex;
    }
}

.klic-image-slot {
    /*display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(90% 0.01 280 / 0.5);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    border: 1px dashed oklch(60% 0.02 280 / 0.4);
    padding: 4px;*/
}

.klic-image-slot img {
/*    width: 100%;*/
    height: 100%;
    object-fit: cover;
}

.klic-nhucau-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    background: none;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.klic-nhucau-chip.is-checked {
    border: 1.5px solid var(--violet);
    background: oklch(58% 0.19 300 / 0.08);
    color: var(--violet);
    font-weight: 700;
}

.klic-nhucau-chip.is-unchecked {
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-weight: 600;
}

.klic-checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.klic-checkbox-box.is-checked {
    background: var(--violet);
    color: #fff;
}

.klic-checkbox-box.is-unchecked {
    border: 1.5px solid var(--line);
}

.klic-social-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: #fff;
}

.klic-social-field:focus-within {
    border-color: var(--violet);
}

.klic-social-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 13px 0;
    font-size: 14px;
    font-family: inherit;
}

/* Event timeline (Lịch trình sự kiện) */
.klic-timeline {
    position: relative;
}

.klic-timeline-line {
    position: absolute;
    left: 27px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--violet), var(--pink), var(--amber), var(--blue));
    opacity: 0.25;
}

.klic-timeline-item {
    position: relative;
    display: flex;
    gap: 24px;
    padding-bottom: 32px;
}

.klic-timeline-item:last-child {
    padding-bottom: 0;
}

.klic-timeline-node {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 14px oklch(20% 0.02 280 / 0.08);
    transition: transform 0.25s ease;
}

.klic-timeline-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.klic-timeline-item:hover .klic-timeline-card {
    transform: translateX(6px);
    box-shadow: 0 14px 30px oklch(20% 0.02 280 / 0.1);
    border-color: oklch(80% 0.01 280 / 0.6);
}

.klic-timeline-item:hover .klic-timeline-node {
    transform: scale(1.08);
}

@media (max-width: 640px) {
    .klic-timeline-line {
        left: 21px;
    }

    .klic-timeline-node {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .klic-timeline-item {
        gap: 16px;
        padding-bottom: 24px;
    }

    .klic-timeline-card {
        padding: 16px 18px;
    }
}

/* Speaker cards (Diễn giả sự kiện) — capped at 4 per row */
.klic-speaker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .klic-speaker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .klic-speaker-grid {
        grid-template-columns: 1fr;
    }
}

.klic-speaker-card {
    box-shadow: 0 2px 10px oklch(20% 0.02 280 / 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.klic-speaker-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px oklch(20% 0.02 280 / 0.14);
}

.klic-speaker-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.klic-speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.klic-speaker-card:hover .klic-speaker-photo img {
    transform: scale(1.08);
}

.klic-speaker-shine {
    position: absolute;
    top: 0;
    left: -75%;
    width: 45%;
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, oklch(100% 0 0 / 0.55) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.klic-speaker-card:hover .klic-speaker-shine {
    left: 125%;
}

/* Event goals (Mục tiêu sự kiện) — bento grid */
.klic-goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
}

@media (max-width: 760px) {
    .klic-goals-grid {
        grid-template-columns: 1fr;
    }
}

.klic-goal-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.klic-goal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px oklch(20% 0.02 280 / 0.16);
}

/* Event highlights (Điểm nhấn sự kiện) */
.klic-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) {
    .klic-highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .klic-highlight-grid {
        grid-template-columns: 1fr;
    }
}

.klic-highlight-card {
    min-height: 340px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.klic-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 56px oklch(60% 0.2 300 / 0.22);
}

/* Venue section (Địa điểm tổ chức) */
.klic-venue-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 900px) {
    .klic-venue-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer (Thông tin liên hệ) */
.klic-footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 56px;
    align-items: start;
}

.klic-footer-divider {
    width: 1px;
    align-self: stretch;
    background: oklch(96% 0.01 280 / 0.12);
}

@media (max-width: 760px) {
    .klic-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .klic-footer-divider {
        display: none;
    }
}

/* Back-to-top button */
.klic-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--violet);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 10px 24px oklch(20% 0.02 280 / 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
    z-index: 60;
}

.klic-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.klic-back-to-top:hover {
    background: var(--pink);
}

@media (max-width: 640px) {
    .klic-back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

/* Section fade-in on scroll */
.klic-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.klic-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .klic-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
