/* --- General --- */
:root {
    --primary: #0f172a;
    /* Dark Navy */
    --accent: #bef264;
    /* Tennis/Badminton Neon */
    --accent-glow: rgba(190, 242, 100, 0.4);
    --text-light: #f8fafc;
    --text-dark: #334155;
    --glass: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--primary);
    color: var(--text-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: #fff;
    letter-spacing: -1px;
}

.logo .highlight {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    font-size: 16px;
    opacity: 0.8;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--accent);
}

.btn-primary {
    padding: 10px 20px;
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent) !important;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--primary) !important;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-band {
    background: #03c75a;
    border-radius: 4px;
    padding: 6px 12px !important;
    font-size: 14px !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 1 !important;
}

.btn-band:hover {
    background: #02b350;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 70% 30%, #1e293b 0%, #0f172a 70%);
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    flex-direction: column;
    align-items: flex-start;
    margin-top: -50px;
}

.sub-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-title {
    font-size: 80px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-text {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.hero-desc {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: 0.3s;
}

.btn-lg {
    padding: 18px 45px;
    font-size: 18px;
}

.btn-outline {
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

.btn-fill {
    background: var(--accent);
    color: var(--primary);
}

.btn-fill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-glow {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 0 20px var(--accent-glow);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px var(--accent-glow);
    }

    to {
        box-shadow: 0 0 30px var(--accent-glow);
    }
}

/* Abstract Decorations */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.c1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
}

.c2 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    bottom: 50px;
    left: -50px;
    z-index: 1;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.bg-light {
    background: #f8fafc;
    color: var(--text-dark);
}

.dark-section {
    background: #0f172a;
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.bg-light .section-header h3 {
    color: #3b82f6;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.bar {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

.bg-light .bar {
    background: #3b82f6;
}

/* Intro Cards */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.intro-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.intro-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.intro-card .icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
    background: rgba(190, 242, 100, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.intro-card h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

.intro-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Org Chart */
.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-box {
    background: #fff;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e2e8f0;
    min-width: 150px;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.org-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.org-box .role {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

.org-box .name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.org-box.president {
    background: #1e293b;
    border: none;
}

.org-box.president .role {
    color: #94a3b8;
}

.org-box.president .name {
    color: #fff;
}

.line-ver {
    width: 2px;
    height: 30px;
    background: #cbd5e1;
}

.line-hor {
    width: 50%;
    height: 2px;
    background: #cbd5e1;
    margin-bottom: 30px;
}

.org-row {
    display: flex;
    gap: 40px;
    margin-bottom: 0px;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* Footer */
footer {
    background: #020617;
    padding: 50px 0;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-left p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.admin-login-btn {
    background: #1e293b;
    color: #475569;
    border: 1px solid #334155;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-login-btn:hover {
    color: #fff;
    border-color: #fff;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-card {
    background: #1e293b;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-card.sm {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.modal-header h3 {
    font-size: 20px;
    color: #fff;
}

.close-btn {
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.3s;
}

.close-btn:hover {
    color: #fff;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.modal-body input:focus,
.modal-body textarea:focus {
    border-color: var(--accent);
}

.modal-body textarea {
    height: 100px;
    resize: none;
}

.w-100 {
    width: 100%;
}

.mt-20 {
    margin-top: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-50 {
    margin-bottom: 50px;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: 0.8s ease-out;
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: 0.8s ease-out;
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Hero Animation (Immediate Load) */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease-out forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.delay-4 {
    animation-delay: 0.7s;
}


/* Hero Overlay (Darken Background) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

/* Ensure Text is Above Overlay */
.hero-content {
    z-index: 2;
    position: relative;
}

/* Menu Toggle Icon (Hidden on Desktop) */
.menu-icon {
    display: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* Responsive */
/* Responsive Fixes */
@media (max-width: 768px) {

    /* Navbar Adjustments */
    .navbar .container {
        /* Keep row layout for Logo + Menu Icon */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        flex-wrap: nowrap;
        /* Prevent wrapping */
        width: 100%;
        padding: 0 15px;
    }

    .logo {
        font-size: 18px;
        /* Reduce logo size for mobile */
        white-space: nowrap;
        /* Prevent logo text wrapping */
        display: flex;
        align-items: center;
    }

    .logo svg {
        width: 24px;
        height: 24px;
    }

    /* Show Menu Icon */
    .menu-icon {
        display: flex;
        align-items: center;
        margin-left: auto;
        /* Push to right just in case */
    }

    /* Mobile Menu (Hidden by Default) */
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        /* Below Navbar */
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        padding: 20px;
        flex-direction: column;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    /* Show Mobile Menu when Active */
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 160px;
        /* Increased padding to show 'Passion Never Ages' */
        align-items: flex-start;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center horizontally */
        justify-content: center;
    }

    .main-title,
    .sub-title,
    .hero-desc {
        width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .main-title {
        font-size: 32px;
        /* Slightly smaller to fit in one line */
        line-height: 1.3;
        margin-bottom: 20px;
        /* Brighten text for readability */
        background: none;
        -webkit-text-fill-color: #f8fafc;
        color: #f8fafc;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
        word-break: keep-all;
        /* Prevent awkward breaks */
    }

    .sub-title {
        font-size: 14px;
        margin-bottom: 10px;
        color: var(--accent);
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
        display: block !important;
        /* Force show */
    }

    .hero-desc {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 20px;
        word-break: keep-all;
        /* Prevent awkward word breaks */
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        padding: 15px 0;
    }

    /* Disable decorations on mobile to prevent layout shift */
    .deco-circle {
        display: none;
    }

    .grid-2,
    .org-grid,
    .org-row,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .line-hor,
    .line-ver {
        display: none;
    }

    .section {
        padding: 60px 0;
    }
}

/* --- Advanced Org Chart --- */
.org-section {
    margin-bottom: 50px;
}

.org-label {
    font-size: 18px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.org-label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #cbd5e1;
}

.org-group-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.org-card-sm {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 20px;
    min-width: 120px;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
}

.org-card-sm:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    color: var(--accent-dark);
}

.org-card-sm .name {
    font-weight: 600;
    font-size: 15px;
    color: #334155;
}

.org-card-sm .role {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-bottom: 2px;
}

/* Executive Highlight */
.exec-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    min-width: 180px;
    text-align: center;
    border: 1px solid #334155;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.exec-box .role {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.exec-box .name {
    font-size: 20px;
    font-weight: 700;
}

.president-box {
    background: #fff;
    border: 2px solid var(--accent);
    padding: 30px 60px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 50px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(190, 242, 100, 0.2);
}

.president-box .role {
    font-size: 16px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.president-box .name {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    margin-top: 5px;
}

/* --- New Grid for Intro --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* --- FIX: Layout Reset --- */
.section .container {
    display: block !important;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#join .container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-content {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

/* --- Mobile Responsive Enhancements --- */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-title {
        font-size: 42px;
        text-align: center;
    }

    .sub-title {
        font-size: 14px;
        text-align: center;
    }

    .hero-desc {
        font-size: 16px;
        text-align: center;
        padding: 0 20px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .grid-3,
    .grid-2,
    .org-grid {
        grid-template-columns: 1fr;
    }

    .line-hor,
    .line-ver {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .modal-card {
        width: 90%;
        margin: 0 10px;
    }
}

/* --- Hero Slideshow --- */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
    animation: zoomEffect 20s infinite alternate;
}

.slide-item.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* --- Hero Slide Images (Updated for Presentation) --- */
.slide-1 {
    background-image: url('https://images.unsplash.com/photo-1626224583764-847890e05851?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

/* Action */
.slide-2 {
    background-image: url('https://images.unsplash.com/photo-1599474924187-334a4ae513df?q=80&w=1920&auto=format&fit=crop');
}

/* Racket & Shuttlecock */
.slide-3 {
    background-image: url('https://images.unsplash.com/photo-1627993437517-817684074c94?q=80&w=1920&auto=format&fit=crop');
}

/* Net Close-up */

/* --- Responsive Slide Images (Mobile) --- */
@media (max-width: 768px) {

    /* 모바일에서는 인물이 잘리지 않게 상단 중심으로 배치 */
    .slide-item {
        background-position: center top !important;
    }

    /* 만약 모바일 전용 이미지를 따로 쓰고 싶다면 아래처럼 경로를 변경하세요 */
    /* .slide-1 { background-image: url('images/slide1_mobile.jpg'); } */
}