/* Base reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    background-color: #0c0c0c; /* Deep black */
    color: #e0e0e0; /* Soft white */
    text-align: center;
    scroll-behavior: smooth;
}

/* --- Hero section --- */
#hero {
    height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#polygon-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #000000;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
    animation: fadeIn 3s ease-in-out;
    margin-bottom: 22vh; 
    pointer-events: none;
}

.hero-logo {
    width: 400px; /* Enlarged logo */
    max-width: 90%;
    height: auto;
}

.hero-subtitle {
    font-size: 18px;
    color: #ffffff; /* Pure white */
    margin-top: 15px; /* Tighter spacing beneath the logo */
    letter-spacing: 0.1em;
    font-weight: 300;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Shared content section styles --- */
.content-section {
    padding: 100px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 5;
    background-color: #0c0c0c;
}

/* --- Intro section --- */
#intro h2 {
    font-size: 32px; /* Enlarged */
    font-weight: 600; /* Heavier weight */
    color: #ffffff;   /* Pure white */
    text-align: center;
    letter-spacing: 3px; /* Wider tracking */
    margin-bottom: 10px; /* Spacing above the subtitle */
}

.slogan-subtitle {
    font-size: 18px;
    color: #ffffff; /* Pure white */
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
}

.intro-text p {
    font-size: 18px;
    color: #e0e0e0; /* Brighter white */
    text-align: center;
    max-width: 700px;
    margin: 0 auto 25px auto; /* Paragraph rhythm */
    line-height: 1.8;
}

.admission-summary {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.admission-summary p {
    margin-bottom: 10px;
}

.iq-standard {
    font-weight: 600;
    color: #fff;
}

.cta-button {
    display: inline-block;
    border: 1px solid #777;
    color: #ddd;
    background-color: transparent;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px; /* Subtle rounding */
    margin-top: 30px; /* Gap between copy and button */
}

.cta-button-wrapper {
    text-align: center;
    /* Flexbox keeps the buttons on a single row */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* Space between buttons */
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #ccc;
    color: #fff;
}

/* --- Admission section --- */
#admission {
    padding-top: 50px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between icon and text */
    margin-bottom: 25px;
}

.section-title img {
    width: 44px; /* Enlarged mark */
    height: 44px;
}

.section-title h3 {
    font-size: 28px; /* Enlarged type */
    font-weight: 600;
    color: #fff;
}

.admission-intro-text {
    font-size: 18px;
    color: #ffffff; /* Pure white */
    line-height: 1.8;
    text-indent: 1.5em; /* Indent the opening line */
}

/* Accepted admission tests */
.test-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; /* Adjusted gutter */
    margin-top: 40px;
    text-align: left;
}

.test-list-container > div {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a2a;
    padding: 25px 30px; /* Reduced vertical padding */
    border-radius: 8px;
}

.test-group-title {
    color: #d0d0d0;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px; /* Reduced spacing */
    padding-bottom: 15px;
    border-bottom: 1px solid #3a3a3a;
}

.test-list-container ul {
    list-style: none;
}

.test-list-container li {
    font-size: 16px;
    color: #bbb;
    margin-bottom: 15px;
    padding-left: 1.5em;
    text-indent: -1.5em;
    line-height: 1.5;
}

.test-list-container li::before {
    content: '›';
    color: #666;
    margin-right: 0.7em;
    font-weight: bold;
}

/* Footer */
footer {
    padding: 50px 20px;
    margin-top: 80px;
    background-color: #050505;
    border-top: 1px solid #222;
}

footer p {
    font-size: 14px;
    color: #777;
    text-align: center;
}

/* Responsive — mobile */
@media (max-width: 768px) {
    .hero-logo {
        width: 280px; /* Smaller logo on mobile */
    }
    .hero-subtitle {
        font-size: 16px; /* Smaller subtitle on mobile */
    }
}

/* --- Language switch --- */
.lang-switch {
    position: fixed;
    top: 22px;
    right: 26px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.lang-switch a {
    color: #6a6a6a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-switch a:hover { color: #ccc; }

.lang-switch a[aria-current="true"] { color: #e0e0e0; }

.lang-switch span {
    color: #333;
    user-select: none;
}

@media (max-width: 768px) {
    .lang-switch { top: 15px; right: 16px; font-size: 12px; }
}
