@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #003d7a;
    --primary-dark: #002a52;
    --accent-color: #e85e26;
    --text-color: #333333;
    --white: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --font-main: 'Noto Sans KR', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Slideshow */
#bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.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;
}

.slide-item.active {
    opacity: 1;
}

#bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: -1;
}

/* Layout */
.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 120px;
    /* Shift visual center up */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /* Force full height */
    overflow: hidden;
    /* Prevent scroll */
}

/* Logo Area */
.logo-area {
    margin-bottom: 25px;
    /* Reduced margin */
    text-align: center;
}

.main-logo {
    max-width: 280px;
    /* Slightly smaller */
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.sub-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Cards */
.card-container {
    display: flex;
    gap: 25px;
    /* Reduced gap */
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.card {
    background: rgba(255, 255, 255, 0.75);
    /* Semi-transparent white */
    backdrop-filter: blur(12px);
    /* Glass effect */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Subtle border */
    border-radius: 12px;
    /* Rounded corners */
    padding: 35px 25px;
    width: 100%;
    max-width: 350px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.9);
    /* Less transparent on hover */
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    background: transparent;
    width: auto;
    height: auto;
}

.card h2 {
    font-size: 1.6rem;
    margin: 0 0 10px 0;
    color: #111;
    font-weight: 700;
}

.card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-go {
    display: inline-block;
    padding: 10px 40px;
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.card:hover .btn-go {
    background: var(--primary-color);
    color: #ffffff;
}

/* Footer */
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: center;
    padding: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    width: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.8);
}

.footer-info p {
    margin: 2px 0;
}

.footer-info .strong {
    color: #fff;
    font-weight: 600;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        height: auto;
        padding-top: 50px;
        padding-bottom: 80px;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .main-logo {
        max-width: 200px;
    }

    .card {
        max-width: 100%;
    }

    footer {
        position: relative;
    }
}