
/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-tertiary: #1a1a24;
    --bg-card: rgba(26, 26, 36, 0.8);
    --gold-primary: #d4a853;
    --gold-light: #e8c175;
    --gold-dark: #b8923e;
    --gold-glow: rgba(212, 168, 83, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: rgba(212, 168, 83, 0.2);
    --shadow-gold: 0 4px 20px rgba(212, 168, 83, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    font-family: 'Noto Serif KR', serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Page Container - Full Viewport */
.page-container {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(212, 168, 83, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
    padding-bottom: 70px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5vh 3vw;
    overflow: visible;
    transform-origin: top center;
    transition: transform 0.2s ease;
}

/* Header Section */
.header-section {
    text-align: center;
    padding: 1vh 0;
    flex-shrink: 0;
}

.main-title {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    margin-bottom: 0.5vh;
}

.subtitle {
    font-size: clamp(0.85rem, 2vw, 1.3rem);
    color: var(--gold-light);
    font-weight: 400;
    margin-bottom: 0.5vh;
}

.description {
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2vw;
    overflow: hidden;
    margin-top: 1vh;
}

/* Visual Section */
.visual-section {
    background: 
        linear-gradient(135deg, rgba(212, 168, 83, 0.1) 0%, transparent 50%),
        url('../images/hero-bg.png') center/cover no-repeat,
        var(--bg-tertiary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.visual-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(212, 168, 83, 0.03) 40px, rgba(212, 168, 83, 0.03) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(212, 168, 83, 0.03) 40px, rgba(212, 168, 83, 0.03) 41px);
    pointer-events: none;
}

.visual-overlay {
    position: relative;
    z-index: 1;
}

.stat-badge {
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 12px 24px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Content Section */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    overflow: hidden;
}

/* Section Block */
.section-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2vh 1.5vw;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 1vh;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--gold-primary);
    font-size: 0.9em;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1vh 1.5vw;
}

.course-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.8vh 0;
}

.course-item > i {
    color: var(--gold-primary);
    font-size: 1.1rem;
    width: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.course-text h3 {
    font-size: clamp(0.75rem, 1.1vw, 0.9rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.course-text p {
    font-size: clamp(0.65rem, 0.9vw, 0.75rem);
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1vw;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6vh 0;
}

.value-item i {
    color: var(--gold-primary);
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

.value-item span {
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    color: var(--text-primary);
}

/* Community Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1vw;
}

.community-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6vh 0;
}

.community-item i {
    color: var(--gold-primary);
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

.community-item span {
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    color: var(--text-primary);
}

/* Philosophy Block */
.philosophy-block {
    text-align: center;
    padding: 1.2vh 1.5vw;
}

.philosophy-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.philosophy-title {
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: 600;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.philosophy-title i {
    color: var(--gold-primary);
}

.philosophy-quote {
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
    max-width: 500px;
}

/* Intro Block - Text & Image */
.intro-block {
    display: block;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    color: var(--text-secondary);
    line-height: 1.6;
}

.intro-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1vh 0;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5vh;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: clamp(0.65rem, 0.9vw, 0.75rem);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-links .divider {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.copyright {
    font-size: clamp(0.6rem, 0.8vw, 0.7rem);
    color: var(--text-muted);
}

/* Fixed CTA Button */
.fixed-cta {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-gold), 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.fixed-cta:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 168, 83, 0.4), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fixed-cta:active {
    transform: translateX(-50%) translateY(0);
}

.cta-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-light);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--gold-light);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body strong {
    color: var(--text-primary);
}

/* ========================================
   Responsive Design - Mobile
   ======================================== */

@media screen and (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .visual-section {
        display: none;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .page-container {
        padding-bottom: 65px;
    }

    .main-content {
        padding: 1vh 4vw;
    }

    .header-section {
        padding: 0.5vh 0;
    }

    .description {
        display: none;
    }

    .content-section {
        gap: 1vh;
    }

    .section-block {
        padding: 1vh 3vw;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8vh 3vw;
    }

    .course-item {
        padding: 0.5vh 0;
    }

    .course-item > i {
        font-size: 0.95rem;
        width: 20px;
    }

    .course-text p {
        display: none;
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2vw;
    }

    .value-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .value-item span {
        font-size: 0.7rem;
    }

    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .community-item span {
        font-size: 0.7rem;
    }

    /* Intro block - vertical layout on mobile */
    .intro-content {
        flex-direction: column;
        gap: 10px;
    }

    .intro-image {
        width: 100%;
        height: 100px;
        order: -1; /* Image on top */
    }

    .intro-text {
        text-align: center;
    }

    .intro-text p {
        font-size: 0.7rem;
    }

    .fixed-cta {
        bottom: 10px;
        padding: 10px 22px;
        font-size: 0.85rem;
    }

    .cta-icon {
        width: 20px;
        height: 20px;
    }

    .footer {
        padding: 0.5vh 0;
    }
}

@media screen and (max-width: 480px) {
    .main-content {
        padding: 0.5vh 3vw;
    }

    .main-title {
        font-size: 1.4rem;
        margin-bottom: 0.3vh;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 0.8rem;
        margin-bottom: 0.6vh;
    }

    .course-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5vh 2vw;
    }

    .course-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3px;
    }

    .course-item > i {
        margin-top: 0;
    }

    .course-text h3 {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .values-grid,
    .community-grid {
        gap: 1vw;
    }

    .value-item i,
    .community-item i {
        font-size: 0.9rem;
    }

    .value-item span,
    .community-item span {
        font-size: 0.6rem;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-links a {
        font-size: 0.6rem;
    }

    .fixed-cta {
        padding: 8px 18px;
        font-size: 0.8rem;
        gap: 8px;
    }

    .cta-icon {
        width: 18px;
        height: 18px;
    }
}

/* Very small screens */
@media screen and (max-height: 600px) {
    .header-section {
        padding: 0;
    }

    .subtitle {
        display: none;
    }

    .section-block {
        padding: 0.8vh 2vw;
    }

    .section-title {
        margin-bottom: 0.4vh;
    }
}

/* Landscape mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .content-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .visual-section {
        display: none;
    }

    .section-block:first-child {
        grid-column: 1;
    }

    .section-block:nth-child(2),
    .section-block:nth-child(3) {
        grid-column: 2;
    }

    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-block {
    animation: fadeInUp 0.6s ease forwards;
}

.section-block:nth-child(1) { animation-delay: 0.1s; }
.section-block:nth-child(2) { animation-delay: 0.2s; }
.section-block:nth-child(3) { animation-delay: 0.3s; }
.section-block:nth-child(4) { animation-delay: 0.4s; }
.section-block:nth-child(5) { animation-delay: 0.5s; }

/* Gold accent glow effect */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: var(--shadow-gold), 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(212, 168, 83, 0.3), 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

.fixed-cta {
    animation: pulseGlow 3s ease-in-out infinite;
}
