/* style.css */
@font-face {
    font-family: 'Paperlogy-5Medium';
    src: url('./font/Paperlogy-5Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slow-pan {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 100px); }
}

/* ================================================== */
/* CSS 초기화 (Reset) & 기본 스타일 */
/* ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 모든 요소에 Paperlogy 폰트 적용 */
    font-family: 'Paperlogy-5Medium', sans-serif;
}

body {
    /* 모든 요소에 Paperlogy 폰트 적용 (겹치므로 삭제) */
    background-color: #ffffff;
    color: #262224;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    animation: fadeInUp 0.6s ease-in-out;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    /* 모든 요소에 Paperlogy 폰트 적용 */
    font-family: inherit;
}

/* ================================================== */
/* 레이아웃 */
/* ================================================== */
.container {
    width: 100%;
    max-width: 1280px; /* Your specified max-width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    animation: fadeInUp 0.8s ease-in-out;
}

.page-section {
    padding-top: 5rem; /* Your specified padding */
    padding-bottom: 5rem; /* Your specified padding */
}

/* 구름에듀 페이지 전용 섹션 (새로 추가된 페이지) */

/* ================================================== */
/* 헤더 */
/* ================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50; /* Z-index from your existing header */
    background-color: rgba(255, 255, 255, 0.9); /* Your specified background */
    backdrop-filter: blur(8px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-top: 10px; /* Your specified margin */
}
/* 기존 헤더 스타일 */
.header-container {
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-nav-wrapper {
    display: flex;
    align-items: center;
}
.logo-nav-wrapper .logo {
    height: 1.75rem; /* Your specified logo height */
    margin-right: 2rem;
}

.main-nav {
    display: none; /* Mobile hidden */
}

.header-actions {
    display: none; /* Mobile hidden */
}

/* 구름에듀 페이지 헤더 스타일 (새로 추가된 페이지) */

.mobile-menu-button-wrapper {
    display: block;
}

.nav-link {
    color: #4f5054; /* Your specified color */
    font-weight: 700; /* Your specified font-weight */
    transition: color 0.2s;
    margin: 0 0.75rem;
}
.nav-link:hover {
    color: #29e2c6; /* Your specified hover color */
}
/* Added for external links in header */
.nav-link.external-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Your existing nav-link-sub */
.nav-link-sub {
    color: #4f5054;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    margin: 0 0.5rem;
}
.nav-link-sub:hover {
    color: #262224;
}

.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header-scrolled { /* 기존 css에 없어서 추가 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


/* ================================================== */
/* 버튼 스타일 (Your existing button styles) */
/* ================================================== */
.primary-button {
    background-color: #29e2c6;
    color: white;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}
.primary-button:hover {
    opacity: 0.9;
}

.secondary-button {
    width: 100%;
    display: block;
    text-align: center;
    background-color: white;
    border: 1px solid #d1d5db;
    color: #4f5054;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s;
    animation: fadeInUp 0.9s ease-in-out;
}
.secondary-button:hover {
    background-color: #f9fafb;
}

.social-login-button {
    width: 100%;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    transition: opacity 0.2s;
    animation: fadeInUp 0.9s ease-in-out;
}
.social-login-button:hover {
    opacity: 0.9;
}
.google-button {
    background-color: #262224;
}

.main-content {
    padding-top: 4rem;
}

/* ================================================== */
/* 히어로 섹션 (Your existing hero section styles) */
/* ================================================== */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}
.hero-text-content {
    text-align: center;
}
.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 900;
    color: #262224;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1rem;
    color: #4f5054;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================== */
/* 구름에듀 메인 컨텐츠 (새로 추가된 페이지) */
/* ================================================== */

.hero-banner {
    background-color: black;
    color: white;
    padding: 2.5rem; /* 내부 여백 조정 */
    border-radius: 1rem;
    margin-top: 1rem; /* 상단 여백 추가 */
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-banner-content { margin-bottom: 2rem; }
.hero-banner-label { font-size: 0.9rem; font-weight: 700; }
.hero-banner-title { font-size: 2.25rem; font-weight: 900; margin: 0.5rem 0 1.5rem; }
.hero-banner-button {
    background-color: white;
    color: black;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
}
.hero-banner-image { max-width: 300px; }

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.promo-card {
    background-color: #29e2c6;
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.promo-card h3 { font-size: 1.5rem; font-weight: 900; }
.promo-card .icon { font-size: 3rem; margin-bottom: 1rem; }
.promo-card a {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}
.course-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
}
.course-card .heart-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    padding: 0.5rem;
    backdrop-filter: blur(5px);
}
.course-card-content { padding: 1rem; }
.course-card-title { font-weight: 700; margin-bottom: 0.5rem; }
.course-card-instructor { font-size: 0.8rem; color: #777; margin-bottom: 1rem; }
.course-card-price { display: flex; align-items: center; gap: 0.5rem; }
.course-card-price .discount { color: #29e2c6; font-weight: 700; }
.course-card-price .original-price { text-decoration: line-through; color: #999; }

.inflearn-card {
    border: 1px solid #eee;
    border-radius: 1rem;
    padding: 1.5rem;
    min-width: 350px;
}
.inflearn-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.inflearn-card .price-info { border-top: 1px solid #eee; padding-top: 1rem; margin-top: 1rem; }

.vod-card {
    min-width: 250px;
}
.vod-card .thumbnail {
    background-color: #f0f0f0;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.vod-card-title { font-weight: 700; }
.vod-card-rating { font-size: 0.8rem; color: #777; }

.teacher-card {
    min-width: 200px;
}
.teacher-card .thumbnail { border-radius: 1rem; overflow: hidden; }

.final-cta {
    background-color: #111;
    color: white;
    padding: 3rem 1.5rem;
    border-radius: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 구름에듀 공통 스크롤 컴포넌트 */
.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem; /* 카드 사이 간격 조정 */
    padding-bottom: 1rem; /* 스크롤바 공간 */
    scrollbar-width: thin;
}
.horizontal-scroll-wrapper::-webkit-scrollbar { height: 5px; }
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }


/* ================================================== */
/* 로그인 박스 (Your existing login box styles) */
/* ================================================== */
.login-box {
    width: 100%;
    max-width: 24rem;
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.login-box-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}
.login-box-subtitle {
    font-size: 0.875rem;
    text-align: center;
    color: #4f5054;
    margin-bottom: 1.5rem;
}

/* ================================================== */
/* 섹션 헤더 (Your existing section header styles) */
/* ================================================== */
.page-section-header { /* 이름 변경 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
}
.view-all-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4f5054;
    transition: color 0.2s;
}
.view-all-link:hover {
    color: #262224;
}

/* 구름에듀 페이지 전용 섹션 헤더 및 링크 (새로 추가된 페이지) */

/* ================================================== */
/* 뉴스 그리드 (Your existing news grid styles) */
/* ================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
.news-card {
    display: block;
    background-color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.news-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.news-card .image-wrapper {
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.news-card-image {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-card:hover .news-card-image {
    transform: scale(1.05);
}
.news-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.news-card:hover .news-card-title {
    color: #29e2c6;
}
.news-card-date {
    font-size: 0.875rem;
    color: #4f5054;
}

/* ================================================== */
/* 공지사항 리스트 (Your existing notice list styles) */
/* ================================================== */
.notice-list {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.notice-list > a + a {
    border-top: 1px solid #e5e7eb;
}
.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.5rem;
    transition: background-color 0.2s;
}
.notice-item:hover {
    background-color: #f9fafb;
    border-radius: 0.25rem;
}
.notice-date {
    font-size: 0.875rem;
    color: #4f5054;
    flex-shrink: 0;
    margin-left: 1rem;
}

/* ================================================== */
/* CTA 배너 (Your existing CTA banner styles) */
/* ================================================== */
.cta-banner {
    background-color: black;
    color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}
.cta-banner-subtext {
    font-size: 0.75rem;
    font-weight: 700;
}
.cta-banner-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ================================================== */
/* 푸터 */
/* ================================================== */
footer {
    /* 기존 푸터의 다크 배경 색상 유지 */
    background-color: #1c1c1c;
    /* 기존 푸터의 텍스트 색상 유지 */
    color: #a0a0a0;
    font-size: 0.8rem;
    border-top: 1px solid #e5e7eb; /* 기존 푸터의 보더 유지 */
}

/* 구름에듀 푸터 스타일 (기존 푸터 스타일과의 충돌 방지) */


/* 이전 페이지들을 위한 기존 푸터 스타일 */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-logo-area {
    grid-column: span 2 / span 2;
}
.social-icons-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.social-icon {
    color: #a0a0a0;
    transition: color 0.2s;
}
.social-icon:hover {
    color: #ffffff;
}
.footer-column {
    font-size: 0.875rem;
}
.footer-link-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}
.footer-link {
    display: block;
    margin-bottom: 0.5rem;
    color: #a0a0a0;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #ffffff;
}
.footer-info {
    border-top: 1px solid #333333;
    padding-top: 1.5rem;
    font-size: 0.75rem;
    color: #a0a0a0;
}
.footer-info p {
    margin-bottom: 0.25rem;
}
.footer-info a {
    transition: color 0.2s;
}
.footer-info a:hover {
    color: #ffffff;
}

/* ================================================== */
/* 플로팅 버튼 (새로 추가된 페이지) */
/* ================================================== */
.floating-buttons {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 999;
}
.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.floating-btn:hover { transform: scale(1.1); }
#scrollTopBtn { display: none; }


/* ================================================== */
/* 소개 페이지 전용 신규 CSS 코드 (Previous introduction page styles) */
/* ================================================== */

/* 공통 섹션 스타일 */
.dark-section {
    background-color: #000000;
    color: #ffffff;
    position: relative; /* For absolute children */
    overflow: hidden; /* To prevent graphics from spilling out */
}

/* Hero 섹션 */
.intro-hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.intro-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}
.intro-hero-subtitle {
    font-size: 1.125rem;
    color: #cccccc;
    line-height: 1.8;
}

/* 상상 문구 섹션 */
.imagination-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.imagination-title {
    font-size: 2.5rem;
    font-weight: 700;
}

/* 존재 이유 섹션 */
.reason-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}
.reason-text-content {
    text-align: center;
}
.reason-label {
    color: #29e2c6;
    font-weight: 700;
    margin-bottom: 1rem;
}
.reason-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 3rem;
}
.reason-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.reason-item {
    display: inline-block;
    background-color: #111111;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.reason-item:hover {
    background-color: #333333;
}
.reason-image-wrapper {
    max-width: 300px;
}

/* 연혁 섹션 */
.timeline-section {
    text-align: center;
}
.timeline-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}
.timeline-subtitle {
    font-size: 1.125rem;
    color: #4f5054;
    margin-bottom: 5rem;
}
.timeline {
    position: relative;
    border-left: 2px solid #e5e7eb;
    padding: 0 0 2rem 2rem;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #29e2c6;
}
.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #29e2c6;
    margin-bottom: 0.5rem;
}
.timeline-title {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
}
.timeline-list {
    list-style: none;
    padding-left: 1.25rem;
}
.timeline-list li {
    position: relative;
    margin-bottom: 0.5rem;
    color: #4f5054;
}
.timeline-list li::before {
    content: '◦';
    position: absolute;
    left: -1.25rem;
    color: #29e2c6;
}

/* 생태계 섹션 */
.ecosystem-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.ecosystem-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}
.ecosystem-diagram-wrapper {
    max-width: 400px;
}
.ecosystem-text-content {
    text-align: center;
}
.ecosystem-title {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 2rem;
}
.ecosystem-list {
    list-style: none;
    margin-bottom: 2rem;
}
.ecosystem-list li {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}
.ecosystem-list span {
    font-weight: 700;
}
.ecosystem-description {
    margin-bottom: 2rem;
}
/* This button is specifically for the ecosystem section in dark theme */
.primary-button-dark {
    background-color: #ffffff;
    color: #111111;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: inline-block;
}
.primary-button-dark:hover {
    opacity: 0.9;
}

/* 파트너사 섹션 */
.partner-title {
    font-size: 2.25rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
}
.partner-subtitle {
    text-align: center;
    color: #4f5054;
    margin-bottom: 4rem;
}
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}
.partner-grid img {
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.2s;
    max-height: 200px;
}
.partner-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* 채용 CTA 섹션 */
.hiring-cta-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: #111;
}
.hiring-cta-container {
    text-align: center;
    position: relative;
    z-index: 1;
}
.hiring-cta-title {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
}
.hiring-cta-subtitle {
    margin-bottom: 2rem;
    color: #cccccc;
}
/* This button is specifically for the hiring CTA section in dark theme */
.primary-button-light {
    background-color: white;
    color: #111111;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}
.primary-button-light:hover {
    opacity: 0.9;
}

/* ================================================== */
/* 배경 그래픽 스타일 */
/* ================================================== */
.background-graphics {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}
.background-graphics svg {
    width: 100%;
    height: 100%;
    opacity: 0.1;
    animation: slow-rotate 120s linear infinite;
}
.dark-section .container {
    position: relative;
    z-index: 1;
}

.hiring-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 25px 25px;
    z-index: 0;
    animation: slow-pan 180s linear infinite;
}


/* ================================================== */
/* 반응형 스타일 */
/* ================================================== */

/* 태블릿 (sm) */
@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* Your specified grid */
    }
    .cta-banner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .partner-grid {
        grid-template-columns: repeat(4, 1fr); /* Added from previous version */
    }
    .cck-partner-logos { /* 이름 변경 */
        grid-template-columns: repeat(6, 1fr);
    }
}

/* 데스크탑 (md) */
@media (min-width: 768px) {
    .main-nav, .header-actions {
        display: flex;
        align-items: center;
    }
    .mobile-menu-button-wrapper {
        display: none;
    }
    .hero-section {
        flex-direction: row;
    }
    .hero-text-content {
        width: 50%;
        text-align: left;
    }
    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }
    .login-box {
        width: 50%;
    }
    .hero-title {
        font-size: 4.5rem;
    }
    /* 기존 푸터의 반응형 그리드 유지를 위해 클래스 이름은 유지 */
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .footer-logo-area {
        grid-column: span 1 / span 1;
    }
    /* Added from previous version for reason and ecosystem sections */
    .reason-section {
        flex-direction: row;
        text-align: left;
    }
    .reason-text-content {
        text-align: left;
    }
    .ecosystem-container {
        flex-direction: row;
        text-align: left;
    }
    .ecosystem-text-content {
        text-align: left;
    }
    .partner-grid {
        grid-template-columns: repeat(6, 1fr); /* Added from previous version */
    }
    /* 구름에듀 페이지 반응형 */
    .hero-banner { flex-direction: row; text-align: left; justify-content: space-between; padding: 3rem 4rem; }
    .hero-banner-content { margin-bottom: 0; }
}

/* 데스크탑 (lg) - Your added breakpoint */
@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

#top-banner {
    background-color: #29e2c6;
    color: white;
    text-align: center;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}
#close-banner-btn {
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    line-height: 1;
    color: white;
    opacity: 0.7;
}
#close-banner-btn:hover {
    opacity: 1;
}

/* ================================================== */
/* 배너 닫혔을 때 레이아웃 조정 */
/* ================================================== */
body {
    transition: padding-top 0.4s ease; /* 배너 닫힐 때 부드러운 효과 */
}
#main-header {
    transition: top 0.4s ease, transform 0.4s, box-shadow 0.4s;
}
body.banner-closed #main-header {
    top: 0; /* 배너 닫히면 top 위치 변경 */
}
body.banner-closed main {
    padding-top: 7rem;
}

/* introduction 페이지 전용 */
.services-section-wrapper {
    padding: 5rem 1.5rem; /* 위아래, 좌우 여백 */
    background-color: #ffffff;
}
.services-header {
    text-align: center;
    margin-bottom: 4rem;
}
.services-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.services-subtitle {
    font-size: 1.1rem;
    color: #4f5054;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #e7f5ff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-title-group h3 {
    font-size: 1.25rem;
    font-weight: 700;
}
.card-title-group p {
    font-size: 0.9rem;
    color: #868e96;
}
.card-body p {
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.features-list-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.features-list {
    list-style: none;
    padding-left: 1.25rem;
    color: #495057;
}
.features-list li {
    position: relative;
    margin-bottom: 0.25rem;
}
.features-list li::before {
    content: '•';
    color: #5865f2;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}
.card-footer {
    margin-top: auto; /* 푸터를 카드 하단에 고정 */
    padding-top: 1.5rem;
}
.details-button {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}
.details-button:hover {
    background-color: #f1f3f5;
}

/* ================================================== */
/* 반응형 */
/* ================================================== */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-span-2 {
        grid-column: span 2 / span 2;
    }
}
/* 사용자 정의 스타일 */
.hero-bg {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}
.scroll-container {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}
.tab-active {
    border-bottom-color: #262224;
    color: #262224;
    font-weight: 700;
}
.tab-inactive {
    border-bottom-color: transparent;
    color: #4f5054;
}
.job-tab-active {
    border-bottom-color: #29e2c6;
    color: #29e2c6;
    font-weight: 600;
}
.job-tab-inactive {
     border-bottom-color: transparent;
    color: #4f5054;
}
/* --- 카드 공통 스타일 --- */
.card {
    background-color: #ffffff;
    border: 1px solid #e9ecef; /* 약간 더 부드러운 경계선 */
    border-radius: 12px; /* 이미지와 유사한 둥근 모서리 */
    padding: 1.5rem; /* 24px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    height: 100%; /* 그리드 및 플렉스 레이아웃에서 높이 맞춤 */
}

/* --- 1. 환영 메시지 --- */
.greeting h1 {
    font-size: 2.5rem; /* 32px */
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.greeting .quote {
    font-size: 0.95rem; /* 15.2px */
    color: #495057;
    margin-bottom: 1rem;
}

.greeting .quote-author {
    font-size: 0.9rem;
    color: #868e96;
}

/* --- 2. 상단 2단 레이아웃 (강좌 & 공지) --- */
.top-row-layout {
    display: flex;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.recent-courses {
    flex: 2; /* 2:1 비율 (약 66%) */
}

.notices {
    flex: 1; /* 2:1 비율 (약 33%) */
}

/* 2-1. 최근 수강한 강좌 카드 */
.cck-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.placeholder-box {
    width: 100px;
    height: 100px;
    background-color: #f1f3f5;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #adb5bd;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
}
.profile-pic {
    width: 100px;
    height: 100px;
    background-color: #f1f3f5;
    border-radius: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #adb5bd;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
}

.cck-card .content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cck-card .content p {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* 2-2. 공지사항 카드 */
.notice-list ul {
    list-style: none;
}

.notice-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0; /* 상하 여백 추가 */
    border-bottom: 1px solid #f1f3f5;
}

.notice-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notice-list li:first-child {
    padding-top: 0;
}

.notice-list .notice-link {
    font-size: 0.95rem;
    color: #343a40;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 긴 텍스트는 ... 처리 */
    margin-right: 1rem;
}

.notice-list .notice-link:hover {
    text-decoration: underline;
}

.notice-list .arrow {
    color: #adb5bd;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* --- 3. 그리드 레이아웃 (컨테이너, 문제, 소식) --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4열 그리드 */
    gap: 1.5rem; /* 24px */
}

/* 그리드 내 공용 플레이스홀더 카드 */
.placeholder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    color: #adb5bd;
    font-size: 0.9rem;
    text-align: center;
}

/* 3-1. 최근 실행한 컨테이너 */
.container-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.container-card .description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1.25rem;
    min-height: 2.5em; /* 2줄 높이 확보 */
}

.container-card .actions {
    display: flex;
    gap: 0.5rem;
}

/* --- 버튼 공통 스타일 --- */
.btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #29e2c6; /* Goorm 메인 컬러 */
    color: #fff;
    border-color: #29e2c6;
}
.btn-primary:hover {
    background-color: #29e2c6;
}

.btn-outline {
    background-color: #fff;
    color: #495057;
    border-color: #ced4da;
}
.btn-outline:hover {
    background-color: #f8f9fa;
}

/* 3-2. 알고리즘 문제 */
.problem-card .level-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

/* 레벨 태그 (예시) */
.level-silver {
    background-color: #f1f3f5;
    color: #495057;
}
.level-green {
    background-color: #e6fcf5;
    color: #087f5b;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.problem-card .pass-rate {
    font-size: 0.9rem;
    color: #495057;
}

/* --- 반응형 웹 --- */

/* 1200px 이하 (컨테이너가 좁아지기 시작) */
@media (max-width: 1200px) {
    .grid-layout {
        /* 4열 유지, 갭 감소 */
        gap: 1rem;
    }
    .top-row-layout {
        gap: 1.5rem;
    }
}

/* 992px 이하 (태블릿) */
@media (max-width: 992px) {
    .top-row-layout {
        flex-direction: column; /* 강좌, 공지 상하로 쌓임 */
    }
    .grid-layout {
        grid-template-columns: repeat(2, 1fr); /* 2열 그리드 */
        gap: 1.5rem;
    }
    .greeting h1 {
        font-size: 1.75rem;
    }
    .section-header h2 {
        font-size: 1.35rem;
    }
}

/* 576px 이하 (모바일) */
@media (max-width: 576px) {
    .dashboard-content {
        margin: 1rem auto; /* 모바일 상하 여백 줄임 */
    }
    .grid-layout {
        grid-template-columns: 1fr; /* 1열 그리드 */
    }
    .cck-card {
        flex-direction: column; /* 강좌 카드 상하로 쌓임 */
        align-items: flex-start;
        gap: 1rem;
    }
    .placeholder-box {
        width: 100%;
        height: 120px;
    }
    .banner-card {
        flex-direction: column; /* 배너 상하로 쌓임 */
        text-align: center;
        gap: 1.5rem;
    }
    .banner-card .img-placeholder-large {
        margin-left: 0;
    }
    .greeting h1 {
        font-size: 1.5rem;
    }
    .section-header h2 {
        font-size: 1.25rem;
    }
}