/* 이미지 캐시 방지 */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* 이미지 로딩 최적화 */
.image-box img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.image-box img[loading] {
    opacity: 0.7;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* 헤더 높이만큼 상단 여백 추가 */
}

.header {
    background-color: #f4f4f4;
    padding: 1em 0;
    border-bottom: 1px solid #ccc;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.logo img {
    max-height: 40.5px;
    width: auto;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.3em;
    cursor: pointer;
    color: #333;
    padding: 8px;
    background-color: transparent;
    border-radius: 4px;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    border: none;
    position: relative;
}

.mobile-menu-toggle i {
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle:hover {
    color: #666;
}

.mobile-menu-toggle:hover i {
    transform: rotate(90deg);
}

.mobile-menu-toggle.active i {
    transform: rotate(180deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.mobile-nav.active {
    opacity: 1;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li:last-child {
    border-bottom: none;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1.2em;
    display: block;
    padding: 20px;
    transition: background-color 0.2s ease;
}

.mobile-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-content {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    min-height: 60vh;
    padding: 0 15px;
    box-sizing: border-box;
}

.main-content h1 {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    font-size: 2em;
    color: #333;
    text-align: center;
}

.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3em 0;
    margin-top: 50px;
}

.footer-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    padding: 0 1rem;
}

.footer-column h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

.footer-column p {
    margin: 0.8rem 0;
    font-size: 0.9rem;
    color: #ecf0f1;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin: 0.8rem 0;
}

.footer-column ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #3498db;
}

.footer-link {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-button {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}

.floating-button:hover {
    background-color: #0056b3;
}

.floating-button .text {
    font-size: 0.7em;
    margin-top: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header {
        padding: 0.5em 0;
    }

    .header-inner {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .logo {
        font-size: 1.2em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-content {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .main-content h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .content-section {
        width: 100%;
        margin: 0 auto;
    }

    .image-box {
        width: 100%;
        overflow: hidden;
    }

    .image-box img {
        width: 100%;
        height: auto;
        max-width: 100%;
        display: block;
    }

    .floating-buttons {
        bottom: 10px;
        right: 10px;
        gap: 5px;
    }

    .floating-button {
        width: 40px;
        height: 40px;
    }

    .floating-button .text {
        font-size: 0.6em;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-menu-toggle {
        padding: 5px;
        margin-left: 10px;
    }

    body {
        padding-top: 60px;
    }

    .logo img {
        max-height: 40.5px;  /* 45px에서 10% 감소 */
        width: auto;
    }
}

.content-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.content-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: bold;
    width: 100%;
    padding: 0;
}

.image-box {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* 국민내일배움카드 페이지 스타일 */
.card-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.card-title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.card-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #007bff;
    margin: 1rem auto;
}

.card-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    color: #007bff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-content {
    color: #555;
    line-height: 1.6;
}

.card-steps {
    list-style-type: none;
    padding: 0;
    counter-reset: step-counter;
}

.step-item {
    position: relative;
    padding: 1rem 0 1rem 3rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.important-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 0 5px 5px 0;
}

.note-title {
    color: #856404;
    margin-bottom: 1rem;
}

.note-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.note-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.note-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #856404;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    margin-right: 1rem;
    color: #007bff;
    width: 20px;
}

/* 위치 이미지 스타일 */
.location-image {
    margin: 20px 0;
    text-align: center;
}

.location-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.location-img:hover {
    transform: scale(1.02);
}

.edu-title-box {
    text-align: center;
    margin: 40px 0 30px 0;
    padding: 30px 10px 20px 10px;
    background: linear-gradient(90deg, #f8fafc 60%, #e0e7ff 100%);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(60, 80, 180, 0.08);
    position: relative;
}

.edu-title-box h1 {
    font-size: 2.4rem;
    color: #2d3a6e;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
    display: inline-block;
    background: linear-gradient(90deg, #4f8cff 30%, #2d3a6e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.edu-title-box h1 i {
    margin-right: 12px;
    color: #4f8cff;
    vertical-align: middle;
}

.edu-subtitle {
    font-size: 1.5rem;
    color: #4f4f4f;
    margin-top: 8px;
    line-height: 1.6;
    font-weight: 400;
}

@media (max-width: 600px) {
    .edu-title-box {
        padding: 18px 4px 12px 4px;
        margin: 24px 0 18px 0;
    }
    .edu-title-box h1 {
        font-size: 1.3rem;
    }
    .edu-subtitle {
        font-size: 1.2rem;
    }
    
    /* 오시는길 페이지 모바일 스타일 */
    .content-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .content-section h2 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    .location-image {
        margin: 15px 0;
    }
    
    .location-img {
        width: 100%;
        height: auto;
        border-radius: 6px;
    }
    
    .content-section p {
        font-size: 0.9em;
        line-height: 1.5;
        margin: 8px 0;
    }
    
    .content-section p i {
        margin-right: 8px;
        width: 16px;
    }
} 

.fancy-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #b71c1c;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 40px 0 30px 0;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #ff5252 0%, #b71c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s;
}
.fancy-title i {
    margin-right: 12px;
    color: #b71c1c;
}
.fancy-title::after {
    display: none;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px);}
    to { opacity: 1; transform: translateY(0);}
} 