/* ═══════════════════════════════════════════════
   SSR PROJECT — Global Stylesheet
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;600;700;800&family=Bebas+Neue&display=swap');

/* ── Variables ──────────────────────────────── */
:root {
    --pink-bg: #f9a8b8;
    --pink-light: #fdd5dc;
    --pink-mid: #f4869a;
    --pink-deep: #e03060;
    --pink-btn: #f4869a;
    --white: #ffffff;
    --text-pink: #e03060;
    --shadow: rgba(220, 80, 110, 0.22);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', sans-serif;
    background: var(--pink-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.navbar {
    background: var(--pink-mid);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 14px var(--shadow);
}

/* Nav buttons */
.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-btn {
    background: var(--white);
    color: var(--text-pink);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 30px;
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.nav-btn:hover {
    background: var(--pink-deep);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.nav-btn.active {
    background: var(--pink-deep);
    color: var(--white);
}

/* ── Mobile Menu Button ─────────────────────── */
.menu-toggle {
    display: none;
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    cursor: pointer;
}

/* ── Responsive Mobile Navbar ───────────────── */
@media screen and (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-buttons {
        position: absolute;
        top: 72px;
        right: 16px;
        background: var(--white);
        border-radius: var(--radius-md);
        box-shadow: 0 8px 20px var(--shadow);
        display: none;
        flex-direction: column;
        gap: 10px;
        padding: 14px;
        min-width: 200px;
        z-index: 999;
    }

    .nav-buttons.active {
        display: flex;
        animation: navDrop 0.2s ease;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 10px 18px;
    }

    @keyframes navDrop {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ══════════════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════════════ */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px 40px;
    gap: 24px;
}

/* ══════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 999;
    align-items: center;
    justify-content: center;
    animation: lbIn 0.2s ease;
}

.lightbox.open {
    display: flex;
}

@keyframes lbIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 32px;
    color: var(--white);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--pink-light);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .section-body {
        padding: 20px 16px;
    }

    .slide {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .panel {
        width: 120px !important;
        height: 160px !important;
    }

    .title-card {
        padding: 12px 30px;
    }

    .title-card h1 {
        font-size: 30px;
    }
}