* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #9b7fd6;
    --primary-blue-light: #b39ddb;
    --secondary-blue: #7e57c2;
    --accent-pink: #ba68c8;
    --accent-cyan: #ab47bc;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
    --bg-gray: #f5f5f5;
    --white: #fff;
    --border-gray: #eee;
    --footer-bg: #7e57c2;
    --footer-text: #e1bee7;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================================================
   Header
   ========================================================================== */
.page-header {
    background: var(--white);
    border-bottom: 1px solid #e1bee7;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(155, 127, 214, 0.1);
}

.page-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle__bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 1;
}

.site-logo__link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-logo__link:hover {
    opacity: 0.8;
}

.site-logo__image {
    height: 50px;
    width: auto;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
}

.site-logo__subtitle {
    font-size: 11px;
    color: var(--text-medium);
    margin-bottom: 2px;
}

.site-logo__title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-blue);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: auto;
}

.main-navigation__link {
    padding: 10px 18px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: 0.3s;
    letter-spacing: -0.3px;
}

.main-navigation__link:hover {
    color: var(--primary-blue);
}

.login-button {
    padding: 10px 30px;
    background: var(--accent-cyan);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.login-button:hover {
    background: #9575cd;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(171, 71, 188, 0.3);
}

/* ==========================================================================
   Mobile Sidebar
   ========================================================================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    transition: 0.3s;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-sidebar--open {
    left: 0;
}

.mobile-sidebar__header {
    background: var(--secondary-blue);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar__title {
    font-size: 20px;
}

.mobile-sidebar__close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.mobile-sidebar__menu-list {
    list-style: none;
}

.mobile-sidebar__menu-list li {
    border-bottom: 1px solid var(--border-gray);
}

.mobile-sidebar__menu-list a {
    display: block;
    padding: 18px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: 0.3s;
}

.mobile-sidebar__menu-list a:hover {
    background: var(--secondary-blue);
    color: var(--white);
    padding-left: 30px;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.backdrop--visible {
    opacity: 1;
    visibility: visible;
}

.university-showcase {
    display: none;
}

/* ==========================================================================
   Page Content
   ========================================================================== */
.page-content {
    background: var(--white);
    padding: 45px 20px 60px;
}

.page-content__container {
    max-width: 1400px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.info-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.info-card--carousel {
    overflow: visible;
    position: relative;
}

.info-card--carousel .carousel-item__badge {
    position: absolute;
    top: -10px;
    right: 20px;
    left: auto;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #9575cd 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(10deg);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(171, 71, 188, 0.5);
}

.info-card--carousel .carousel-container {
    overflow: hidden;
}

.info-card__header {
    padding: 25px;
    border-bottom: 2px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fafafa;
}

.info-card__title {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: bold;
}

.info-card__title--static {
    padding: 22px 25px;
    border-bottom: 2px solid var(--border-gray);
    margin: 0;
    background: #fafafa;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: bold;
}

.info-card__toggle {
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.info-card__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.info-card__content--expanded {
    max-height: 200px;
}

.info-card__empty-state {
    padding: 40px 25px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* ==========================================================================
   Carousel (대학 바로가기)
   ========================================================================== */
/* 캐러셀 카드의 타이틀을 센터 바로가기처럼 상단에 고정 표시 */
.info-card--carousel .info-card__title {
    padding: 22px 25px;
    border-bottom: 2px solid var(--border-gray);
    margin: 0;
    background: #fafafa;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: bold;
    position: relative;
    z-index: 3;
}

.carousel-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.carousel-item--active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.carousel-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item__overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 100%);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.carousel-item__overlay:hover {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 50%, transparent 100%);
}

.carousel-item__name {
    font-size: 20px;
    font-weight: bold;
    color: var(--white);
}

.carousel-item__link {
    font-size: 13px;
    color: var(--white);
    padding: 7px 20px;
    background: rgba(155, 127, 214, 0.92);
    border-radius: 20px;
    align-self: flex-start;
    transition: all 0.3s ease;
    font-weight: 500;
}

.carousel-item__overlay:hover .carousel-item__link {
    background: var(--primary-blue);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(155, 127, 214, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn--prev { left: 10px; }
.carousel-btn--next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.carousel-dot--active {
    width: 26px;
    border-radius: 4px;
    background: var(--white);
}

/* ==========================================================================
   Service Links (센터 바로가기)
   ========================================================================== */
.service-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 28px 25px;
    height: 280px;
    align-items: center;
}

.service-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(155, 127, 214, 0.3);
}

.service-link__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

/* ==========================================================================
   Contact (문의사항)
   ========================================================================== */
.contact-details {
    padding: 25px 20px;
}

.contact-details__organization {
    font-size: 16px;
    font-weight: bold;
    color: var(--secondary-blue);
    margin-bottom: 15px;
}

.contact-details__item {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.contact-details__item strong {
    color: var(--text-dark);
}

.contact-details__item a {
    color: var(--text-medium);
    text-decoration: none;
    transition: 0.3s;
}

.contact-details__item a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.info-card--contact {
    padding: 0;
    overflow: hidden;
}

.faq__image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.info-card--contact:hover .faq__image {
    transform: scale(1.02);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.page-footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 40px 20px;
}

.page-footer__container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info__text {
    font-size: 12px;
    color: var(--footer-text);
    margin-bottom: 8px;
}

.footer-info__text a {
    color: var(--footer-text);
    text-decoration: none;
    transition: 0.3s;
}

.footer-info__text a:hover {
    color: var(--white);
}

.footer-info__copyright {
    margin-top: 15px;
    font-size: 11px;
    color: var(--footer-text);
}

.footer-brand {
    text-align: right;
}

.footer-brand__subtitle {
    font-size: 13px;
    color: var(--footer-text);
    margin-bottom: 5px;
}

.footer-brand__title {
    font-size: 16px;
    font-weight: bold;
    color: var(--white);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
    }

    .site-logo__image {
        height: 40px;
    }

    .site-logo__subtitle {
        font-size: 10px;
    }

    .site-logo__title {
        font-size: 14px;
    }

    .login-button {
        padding: 8px 20px;
        font-size: 13px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .service-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px 15px;
        height: auto;
    }

    .service-link {
        height: auto;
    }

    .carousel-container {
        height: 260px;
    }

    .faq__image {
        height: auto;
    }

    .page-footer__content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-brand {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .service-links {
        gap: 10px;
        padding: 18px 12px;
    }

    .carousel-container {
        height: 240px;
    }

    .carousel-item__name {
        font-size: 18px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .site-logo {
        gap: 10px;
    }

    .site-logo__image {
        height: 35px;
    }

    .site-logo__subtitle {
        font-size: 9px;
    }

    .site-logo__title {
        font-size: 12px;
    }

    .service-links {
        gap: 8px;
        padding: 15px 10px;
    }

    .carousel-container {
        height: 220px;
    }

    .carousel-item__name {
        font-size: 16px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}