/* 교육 연구소 웹사이트 전용 스타일 */

:root {
    --primary-color: #1B263B;
    --secondary-color: #E8DAB2;
    --light-color: #EAEDED;
    --text-dark: #1B263B;
    --text-light: #EAEDED;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(27, 38, 59, 0.15);
    --shadow-lg: 0 10px 40px rgba(27, 38, 59, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif KR', serif;
    background-color: var(--light-color);
    color: var(--text-dark);
    line-height: 1.7;
    padding-bottom: 100px;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 배경 라인 */
.bg-lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-lines .line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(27, 38, 59, 0.08) 20%,
        rgba(232, 218, 178, 0.15) 50%,
        rgba(27, 38, 59, 0.08) 80%,
        transparent 100%
    );
    animation: lineMove 8s ease-in-out infinite;
}

.bg-lines .line:nth-child(1) { left: 10%; animation-delay: 0s; }
.bg-lines .line:nth-child(2) { left: 30%; animation-delay: 1.5s; }
.bg-lines .line:nth-child(3) { left: 50%; animation-delay: 3s; }
.bg-lines .line:nth-child(4) { left: 70%; animation-delay: 4.5s; }
.bg-lines .line:nth-child(5) { left: 90%; animation-delay: 6s; }

@keyframes lineMove {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.7;
        transform: scaleY(1.1);
    }
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, rgba(27, 38, 59, 0.92) 0%, rgba(45, 63, 94, 0.88) 50%, rgba(27, 38, 59, 0.92) 100%),
                url('assets/images/hero-img.jpg') center/cover no-repeat;
    padding: 80px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(232, 218, 178, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 218, 178, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 80px,
        rgba(232, 218, 178, 0.03) 80px,
        rgba(232, 218, 178, 0.03) 81px
    );
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.badge {
    background: rgba(232, 218, 178, 0.2);
    color: var(--secondary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(232, 218, 178, 0.3);
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--secondary-color);
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.hero-subtitle strong {
    color: var(--secondary-color);
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-keywords span {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.hero-keywords span:hover {
    background: rgba(232, 218, 178, 0.2);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(232, 218, 178, 0.2);
}

.image-placeholder {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border: 2px dashed rgba(232, 218, 178, 0.3);
    backdrop-filter: blur(10px);
}

.placeholder-icon {
    font-size: 64px;
    color: var(--secondary-color);
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 소개 섹션 */
.about {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 100px,
        rgba(27, 38, 59, 0.02) 100px,
        rgba(27, 38, 59, 0.02) 101px
    );
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--light-color);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 학습 방법 섹션 */
.method {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
    position: relative;
}

.method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 60px,
        rgba(232, 218, 178, 0.05) 60px,
        rgba(232, 218, 178, 0.05) 61px
    );
    pointer-events: none;
}

.method-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.method-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(232, 218, 178, 0.3);
}

.method-image .image-placeholder {
    background: linear-gradient(145deg, var(--primary-color), #2d3f5e);
    border-color: var(--secondary-color);
    max-width: 100%;
}

.method-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.method-text > p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.method-list {
    list-style: none;
}

.method-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 16px;
    color: var(--text-dark);
}

.list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 커뮤니티 섹션 */
.community {
    padding: 100px 0;
    background: var(--primary-color);
    position: relative;
}

.community::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 120px,
        rgba(232, 218, 178, 0.05) 120px,
        rgba(232, 218, 178, 0.05) 121px
    );
    pointer-events: none;
}

.community .section-header {
    position: relative;
    z-index: 1;
}

.community .section-title {
    color: var(--white);
}

.community .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
}

.community-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.community-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.community-icon {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.community-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.community-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* 커리큘럼 섹션 */
.curriculum {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.curriculum::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 100px,
        rgba(27, 38, 59, 0.015) 100px,
        rgba(27, 38, 59, 0.015) 101px
    );
    pointer-events: none;
}

.curriculum .section-header {
    position: relative;
    z-index: 1;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.curriculum-item {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.curriculum-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.curriculum-number {
    font-size: 72px;
    font-weight: 800;
    color: rgba(27, 38, 59, 0.08);
    position: absolute;
    top: -10px;
    right: 20px;
    line-height: 1;
}

.curriculum-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.curriculum-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* 푸터 */
.footer {
    background: var(--primary-color);
    padding: 50px 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.footer-logo i {
    font-size: 24px;
    color: var(--secondary-color);
}

.footer-logo .logo-text {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* 이미지 관련 스타일 */
/* 저화질 이미지 축소 표시 원칙: 선명도 우선, 레이아웃 채움보다 선명도 보장 */
.low-res-image {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ========================================
   고정 CTA 버튼
======================================== */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    z-index: 1001;
    display: flex;
    justify-content: center;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d4c49e 100%);
    color: var(--primary-color);
    border: none;
    padding: 20px 50px;
    font-size: 19px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 25px rgba(232, 218, 178, 0.5);
    font-family: 'Noto Serif KR', serif;
    transform: scale(1.15); /* 让按钮整体放大15% */
}

.cta-button:hover {
    box-shadow: 0 6px 30px rgba(232, 218, 178, 0.5);
}

.cta-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.pulse-animation {
    animation: pulseScale 1.5s ease-in-out infinite;
}

@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.08);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
}

.cta-button:hover {
    animation: none;
    transform: scale(1.20);
    box-shadow: 0 8px 35px rgba(232, 218, 178, 0.6);
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 38, 59, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--light-color);
    background: var(--primary-color);
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

.modal-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 25px 0 12px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 10px;
}

.modal-body ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal-body ul li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 5px;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .features-grid,
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .curriculum-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-keywords {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-img {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .image-placeholder {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .placeholder-icon {
        font-size: 48px;
    }
    
    .method-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .method-image {
        order: -1;
    }
    
    .method-img {
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }
    
    .method-image .image-placeholder {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .method-text h2 {
        font-size: 26px;
    }
    
    .method-list li {
        justify-content: center;
        text-align: left;
    }
    
    .features-grid,
    .community-grid,
    .curriculum-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .community-card,
    .curriculum-item {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .about,
    .method,
    .community,
    .curriculum {
        padding: 60px 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .cta-icon-img {
        width: 24px;
        height: 24px;
    }
    
    .modal-content {
        max-height: 90vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .hero-keywords span {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .badge {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .hero-img,
    .method-img {
        max-width: 260px;
    }
    
    .image-placeholder {
        max-width: 220px;
        aspect-ratio: 1/1;
    }
    
    .placeholder-icon {
        font-size: 40px;
    }
    
    .placeholder-text {
        font-size: 12px;
    }
    
    .feature-icon,
    .community-icon {
        font-size: 36px;
    }
    
    .feature-card h3,
    .community-card h3 {
        font-size: 16px;
    }
    
    .curriculum-number {
        font-size: 56px;
    }
    
    .curriculum-item h3 {
        font-size: 18px;
    }
    
    .cta-button {
        padding: 16px 30px;
        font-size: 16px;
        gap: 10px;
        transform: scale(1.12);
    }
    
    .cta-icon-img {
        width: 22px;
        height: 22px;
    }
    
    .fixed-cta {
        padding: 12px 15px;
    }
    
    .footer {
        padding: 40px 0;
    }
    
    .footer-logo .logo-text {
        font-size: 16px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
}