﻿/*
Theme Name: Saengdonggam
Theme URI: 
Author: Show Design Group SDG
Author URI: https://blog.naver.com/sdgcrew
Description: LED Tron Dance and Traditional Media Performance Group SDG Official Theme.
Version: 74.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saengdonggam
*/

/* =========================================
   1. RESET & BASE
========================================= */
:root {
    --primary-color: #00f3ff;
    --secondary-color: #ff00ff;
    --bg-color: #030305;
    --surface-color: #0d0d12;
    --text-main: #ffffff;
    --text-muted: #888899;
    --font-family-en: 'Bebas Neue', 'Montserrat', sans-serif;
    --font-family-kr: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family-kr);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-en);
    font-weight: normal;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
========================================= */
.text-center {
    text-align: center;
}

.highlight-cyan {
    color: var(--primary-color);
}

.highlight-magenta {
    color: var(--secondary-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-sm {
    max-width: 800px;
}

.section-padding {
    padding: 120px 0;
}

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.lead {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 2rem;
}

/* =========================================
   3. HEADER & NAVIGATION
========================================= */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 999;
    transition: var(--transition);
    background: transparent;
}

.app-header.scrolled {
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container { max-width: 100%; margin: 0; padding: 0 40px 0 0; display: flex; justify-content: space-between; align-items: center; position: relative; } .header-right { display: flex; align-items: center; gap: 32px; margin-right: 180px; } .header-socials { display: flex; align-items: center; gap: 16px; } .header-socials a { color: var(--text-main); display: flex; } .header-socials a:hover { color: var(--primary-color); } @media (max-width: 991px) { .header-right { gap: 16px; } .header-socials { display: none; } }

.brand-logo {
    height: 180px;
    width: auto;
    margin-left: 180px;
    object-fit: contain;
    transition: opacity 0.3s;
}

.brand-logo:hover {
    opacity: 0.8;
}

.nav-desktop {
    display: none;
    /* 嶺뙿??????㉱쀨땻혩 */
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    width: 28px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* Desktop Nav */
@media (min-width: 992px) {
    .nav-desktop {
        display: flex;
        gap: 32px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-desktop a {
        font-size: 24px;
        font-weight: 500;
        letter-spacing: 1px;
        color: #ffffff;
        position: relative;
        padding-bottom: 4px;
    }

    .nav-desktop a:hover {
        color: var(--primary-color);
    }

    .nav-desktop a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
    }

    .nav-desktop a:hover::after {
        width: 100%;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Full Screen Mobile Nav */
.full-screen-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #0d0d12;
    z-index: 1000;
    padding: 100px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.full-screen-nav.active {
    right: 0;
}

.nav-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-link-item {
    font-family: var(--font-family-en);
    font-size: 2.5rem;
    color: #fff;
    opacity: 0.5;
    transition: 0.3s;
    text-transform: uppercase;
}

.nav-link-item:hover,
.nav-link-item.active {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 10px;
}

.nav-footer-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   4. HERO SECTION
========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    padding: 40px 20px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-video-wrap iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-video-mp4 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(0, 20, 30, 0.3), rgba(0, 0, 0, 0.3) 70%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    animation: heroLogoFadeIn 1.2s ease-out;
}

@keyframes heroLogoFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-title-line {
    font-family: var(--font-family-kr);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
}

.hero-title-en {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    color: var(--primary-color);
    letter-spacing: 12px;
}

.hero-slogan {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    padding: 14px 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.hero-scroll-indicator span {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: scrollDrop 2s infinite ease-in-out;
}

@keyframes scrollDrop {
    0% {
        top: -100%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}


/* =========================================
   4-1. MISSION SECTION (Image Only)
========================================= */
.mission-section {
    background: transparent;
    width: 100%;
}

.mission-image-wrap {
    display: flex;
    padding: 0 40px;
}

.mission-img {
    display: block;
    height: auto;
}

@media (max-width: 991px) {
    .mission-image-wrap {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .mission-image-wrap {
        padding: 0 16px;
    }
}
/* =========================================
   5. PROJECTS SECTION (16 Grid)
========================================= */
.projects-section {
    padding: 120px 0;
    background: transparent;
    width: 100%;
}

.projects-header {
    margin-bottom: 60px;
    padding: 0 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 20px;
    padding: 0 40px;
}

@media (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px;
    }
}

@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

.project-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    background: var(--surface-color);
    display: block;
}

.project-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
    transition: 0.3s;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    transform: translateY(20px);
    transition: 0.4s ease;
}

.project-info h3 {
    font-family: var(--font-family-kr);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0;
    transition: 0.4s;
}

.project-item:hover .project-bg {
    transform: scale(1.05);
}

.project-item:hover .project-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.project-item:hover .project-info {
    transform: translateY(0);
}

.project-item:hover .project-info p {
    opacity: 1;
}

/* -- Projects Category (???혚혝?? -- */
.projects-category {
    margin-bottom: 60px;
    padding: 0 40px;
}

.projects-category .projects-grid {
    padding: 0;
}

.category-title {
    font-family: var(--font-family-en);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    position: relative;
    line-height: 1.2;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: currentColor;
}

@media (max-width: 991px) {
    .projects-category {
        padding: 0 30px;
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .projects-category {
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .category-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
}

/* =========================================
   6. CONTACT SECTION
========================================= */
.contact {
    padding: 0 0 120px 0;
    margin-top: -60px;
}
.contact-grid {
    display: block;
}

.contact-left {
    text-align: center;
}

.section-label {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.contact-left .section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    word-break: keep-all;
    white-space: normal;
}

@media (max-width: 991px) {
    .contact-left .section-title {
        white-space: normal;
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 48px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    flex: 1 1 180px;
    text-align: center;
}

.contact-info-item:hover {
    border-color: rgba(0, 243, 255, 0.3);
    background: rgba(0, 243, 255, 0.02);
}

.contact-info-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--primary-color);
}

.contact-info-value {
    font-size: 1rem;
    color: #fff;
    word-break: break-all;
}

.contact-form {
    background: var(--surface-color);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select option {
    background: var(--surface-color);
    color: #fff;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: none;
    padding: 16px;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--primary-color);
}

/* =========================================
   7. FOOTER
========================================= */
.footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-logo .logo-main {
    display: block;
    font-family: var(--font-family-kr);
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
}

.footer-logo .logo-sub {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copy {
    text-align: center;
    color: #555566;
    font-size: 12px;
}


.footer-biz-info {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666677;
    font-size: 13px;
    line-height: 2;
    text-align: center;
}

.footer-biz-info span {
    display: inline-block;
    margin-right: 12px;
}

.footer-biz-info span::after {
    content: '|';
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.1);
}

.footer-biz-info span:last-child::after {
    display: none;
}

/* HTML Cursor Fix */
*,
*::before,
*::after {
    cursor: auto;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

/* --- Tablet & smaller (max-width: 991px) --- */
@media (max-width: 991px) {
    .app-header {
        background: rgba(3, 3, 5, 0.8);
        backdrop-filter: blur(10px);
        padding: 14px 0;
    }

    .header-container {
        padding: 0 20px;
    }

    .brand-logo {
        height: 50px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .section-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .lead {
        font-size: 1.2rem;
    }

    .hero-logo-img {
        max-width: 80% !important;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        align-items: center;
    }

    .hero-actions .btn-outline {
        width: 70%;
        text-align: center;
    }

    .projects-header {
        padding: 0 20px;
    }

    .projects-header .section-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        opacity: 1;
        font-size: 0.8rem;
    }

    .project-info {
        transform: translateY(0);
        padding: 20px;
    }

    .contact-left .section-title {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        text-align: center;
    }

    .footer-copy {
        text-align: center;
    }

    .footer-logo .logo-main {
        font-size: 32px;
    }
}

/* --- Mobile (max-width: 600px) --- */
@media (max-width: 600px) {
    .app-header {
        padding: 10px 0;
    }

    .header-container {
        padding: 0 16px;
    }

    .brand-logo {
        height: 40px;
    }

    .hero-section {
        padding-top: 80px;
    }

    .hero-logo-img {
        max-width: 90% !important;
        margin-bottom: 20px;
    }

    .hero-actions .btn-outline {
        width: 85%;
        padding: 14px 20px;
        font-size: 14px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }

    .lead {
        font-size: 1rem;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.8;
        text-align: left;
    }

    .projects-section {
        padding: 60px 0;
    }

    .projects-header {
        padding: 0 16px;
        margin-bottom: 24px;
    }

    .projects-header .section-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }

    .projects-grid {
        gap: 12px;
        padding: 0 16px;
    }

    .project-item {
        aspect-ratio: 16/10;
    }

    .project-info h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .project-info p {
        font-size: 0.75rem;
    }

    .project-info {
        padding: 16px;
    }

    .contact-section .container {
        padding: 0 16px;
    }

    .contact-left .section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        white-space: normal;
    }

    .contact-desc {
        font-size: 0.9rem;
        margin-bottom: 32px;
    }

    .contact-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px;
    }

    .contact-info-item .info-value {
        word-break: break-all;
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px;
    }

    .footer-logo .logo-main {
        font-size: 28px;
    }

    .footer-logo .logo-sub {
        font-size: 9px;
    }

    .footer-copy {
        font-size: 11px;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* =========================================
   HISTORY PAGE ??Zigzag Timeline
========================================= */

/* Hero */
.ht-hero {
    padding: 150px 40px 70px;
    text-align: center;
    background: var(--bg-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ht-hero-since {
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.ht-hero-title {
    font-family: var(--font-family-en);
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 8px;
    color: #fff;
    line-height: 1;
    margin-bottom: 14px;
}

.ht-hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 3px;
}

/* Timeline outer */
.ht-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px 100px;
}

/* Center vertical line */
.ht-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 243, 255, 0.25) 5%,
            rgba(0, 243, 255, 0.15) 95%,
            transparent 100%);
    transform: translateX(-50%);
}

/* Each row */
.ht-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 0;
    margin-bottom: 60px;
    align-items: flex-start;
}

/* Dot in center column */
.ht-dot-col {
    display: flex;
    justify-content: center;
    padding-top: 8px;
    position: relative;
    z-index: 2;
}

.ht-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--bg-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* Year side */
.ht-year-side {
    display: flex;
}

.ht-year {
    font-family: var(--font-family-en);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 3px;
    line-height: 1.1;
}

/* Content side */
.ht-content-side {
    padding: 0 24px;
}

.ht-label {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.4;
    word-break: keep-all;
}

.ht-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ht-list li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    word-break: keep-all;
    transition: color 0.2s;
}

.ht-list li:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ???? RIGHT variant: even index ??year LEFT, content RIGHT */
.ht-row--right .ht-year-side {
    justify-content: flex-end;
    padding-right: 24px;
    text-align: right;
}

.ht-row--right .ht-content-side {
    text-align: left;
}

/* ???? LEFT variant: odd index ??content LEFT, year RIGHT */
.ht-row--left .ht-year-side {
    order: 3;
    /* move year to end (right) */
    justify-content: flex-start;
    padding-left: 24px;
}

.ht-row--left .ht-dot-col {
    order: 2;
}

.ht-row--left .ht-content-side {
    order: 1;
    text-align: right;
    padding-right: 24px;
    padding-left: 0;
}

.ht-row--left .ht-list {
    align-items: flex-end;
}

/* ???? Responsive: stack to single column on mobile */
@media (max-width: 768px) {
    .ht-timeline {
        padding: 60px 20px 80px;
    }

    .ht-center-line {
        left: 20px;
    }

    .ht-row,
    .ht-row--left,
    .ht-row--right {
        display: grid;
        grid-template-columns: 44px 1fr;
        grid-template-rows: auto auto;
    }

    .ht-dot-col {
        order: 1 !important;
        grid-row: 1 / 3;
        align-items: flex-start;
        padding-top: 6px;
    }

    .ht-year-side {
        order: 2 !important;
        justify-content: flex-start !important;
        padding: 0 0 6px 0 !important;
        text-align: left !important;
    }

    .ht-content-side {
        order: 3 !important;
        text-align: left !important;
        padding: 0 !important;
    }

    .ht-list {
        align-items: flex-start !important;
    }

    .ht-year {
        font-size: 1.6rem;
    }

    .ht-label {
        font-size: 0.9rem;
    }

    .ht-list li {
        font-size: 0.8rem;
    }

    .ht-hero {
        padding: 120px 20px 50px;
    }

    .ht-row {
        margin-bottom: 40px;
    }
}



.hist-hero-title {
    font-family: var(--font-family-en);
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 8px;
    color: #fff;
    line-height: 1;
    margin-bottom: 12px;
}

.hist-hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 3px;
}

/* Main wrapper */
.hist-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px 100px;
}

/* Each year row */
.hist-year-block {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0 40px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hist-year-block:last-child {
    border-bottom: none;
}

/* Year label */
.hist-year-label {
    padding-top: 2px;
}

.hist-year-label span {
    font-family: var(--font-family-en);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* Events */
.hist-events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hist-events li {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    padding: 4px 0 4px 14px;
    position: relative;
    word-break: keep-all;
    transition: color 0.2s;
}

.hist-events li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.6;
}

.hist-events li:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hist-wrap {
        padding: 60px 20px 80px;
    }

    .hist-year-block {
        grid-template-columns: 90px 1fr;
        gap: 0 20px;
        padding: 24px 0;
    }

    .hist-year-label span {
        font-size: 1.1rem;
    }

    .hist-events {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hist-events li {
        font-size: 0.82rem;
    }

    .hist-hero {
        padding: 120px 20px 40px;
    }
}
/* ==== v55 Additions ==== */
.category-title {
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.category-desc {
    font-family: var(--font-family-kr);
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0 !important;
    margin-bottom: 28px !important;
    line-height: 1.6;
    letter-spacing: 0.01em;
}








