/* 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;
}

/* 구름에듀 페이지 전용 컨테이너 (새로 추가된 페이지) */
.goormedu-container {
    width: 100%;
    max-width: 1200px; /* 기존 구름에듀 페이지의 max-width */
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* 구름에듀 페이지 전용 섹션 (새로 추가된 페이지) */
.goormedu-page-section {
    padding: 5rem 0; /* 다른 페이지와 통일감을 위해 여백 조정 */
}

/* ================================================== */
/* 헤더 */
/* ================================================== */
#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 */
}

/* 구름에듀 페이지 헤더 스타일 (새로 추가된 페이지) */
.goormedu-header-top {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.goormedu-header-bottom {
     display: none; /* 모바일에서는 숨김 */
}
.goormedu-header-left { display: flex; align-items: center; }
.goormedu-header-logo { font-size: 1.5rem; font-weight: 900; margin-right: 2rem; }
.goormedu-search-bar {
    display: none; /* 모바일 숨김 */
    align-items: center;
    background-color: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    width: 300px;
}
.goormedu-search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
}
.goormedu-header-nav { display: flex; align-items: center; gap: 1.5rem; }
.goormedu-header-actions { display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; }


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

/* ================================================== */
/* 구름에듀 메인 컨텐츠 (새로 추가된 페이지) */
/* ================================================== */
.goormedu-main { padding-top: 7rem; } /* 헤더 높이만큼 패딩 조정 */

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

.goormedu-partner-logos { /* 이름 변경 */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}
.goormedu-partner-logos img { /* 이름 변경 */
    margin: 0 auto;
    max-height: 25px;
    filter: grayscale(1);
}

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

/* 구름에듀 페이지 전용 섹션 헤더 및 링크 (새로 추가된 페이지) */
.goormedu-section-title { /* 이름 변경 */
    font-size: 1.75rem; /* 제목 크기 살짝 키움 */
    font-weight: 700;
    margin-bottom: 2rem; /* 제목과 콘텐츠 사이 여백 조정 */
}
.goormedu-view-all-link { /* 이름 변경 */
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}


/* ================================================== */
/* 뉴스 그리드 (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; /* 기존 푸터의 보더 유지 */
}

/* 구름에듀 푸터 스타일 (기존 푸터 스타일과의 충돌 방지) */
.goormedu-footer-top {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}
.goormedu-footer-bottom {
    padding: 2rem 0;
}
.goormedu-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.goormedu-footer-info {
    margin-top: 1rem;
    line-height: 1.6;
}

/* 이전 페이지들을 위한 기존 푸터 스타일 */
.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: 30px;
}
.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 */
    }
    .goormedu-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 */
    }
    /* 구름에듀 페이지 반응형 */
    .goormedu-search-bar { display: flex; } /* 이름 변경 */
    .goormedu-header-bottom { /* 이름 변경 */
        height: 3rem;
        display: flex;
        align-items: center;
        border-top: 1px solid #eee;
    }
    .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 위치 변경 */
}
main { 
    padding-top: calc(7rem + 36px); /* 헤더+배너 높이만큼 패딩 조정 */
}
body.banner-closed main {
    padding-top: 7rem;
}
