@charset "utf-8";
/* =========================================================
   미래디지털AI협회 홈페이지 스타일 (밝고 신뢰감 있는 테마)
   색상은 아래 :root 값만 바꾸면 사이트 전체에 반영됩니다.
   ========================================================= */
:root {
    --blue: #3442c6;        /* 협회 로고 파랑 (주 색상) */
    --blue-dark: #26309a;
    --navy: #16204f;        /* 제목·하단 영역 */
    --tint: #eef1ff;        /* 연한 파랑 배경 */
    --tint-2: #f6f8ff;
    --gold: #e9a92b;        /* 포인트 */
    --text: #1f2937;
    --muted: #5b6475;
    --line: #e3e7f2;
    --bg: #ffffff;
    --purple: #6a4bff;
    --grad: linear-gradient(110deg, #2832c8 0%, #5a3ce6 55%, #1fa8ff 100%);
    --grad-text: linear-gradient(90deg, #3442c6, #8a4bff);
    --radius: 18px;
    --shadow: 0 10px 30px rgba(22, 32, 79, 0.08);
    --shadow-hover: 0 16px 40px rgba(52, 66, 198, 0.16);
}

/* [1. 기본] */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    word-break: keep-all;
}
#main-content { min-height: 80vh; padding-bottom: 80px; }
img { max-width: 100%; }

/* [2. 상단 메뉴] */
nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 2000;
    border-bottom: 1px solid var(--line);
    height: 72px;
    display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 0 24px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    margin-right: auto; text-decoration: none;
    color: var(--navy); font-weight: 800; font-size: 1.15rem; white-space: nowrap;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item, .tree-toggle {
    color: var(--navy) !important;
    font-weight: 700; font-size: 1.05rem;
    text-decoration: none; padding: 10px 16px; border-radius: 10px;
    cursor: pointer; transition: 0.2s; white-space: nowrap; display: inline-block;
}
.nav-item:hover, .tree-toggle:hover { color: var(--blue) !important; background: var(--tint); }
.nav-cta {
    background: var(--grad); color: #fff !important; margin-left: 8px;
}
.nav-cta:hover { background: var(--blue-dark) !important; color: #fff !important; }

/* [3. 드롭다운] */
.tree-menu { position: relative; }
.tree-content {
    display: none; position: absolute; top: calc(100% + 6px); left: 50%;
    transform: translateX(-50%);
    background: #fff; min-width: 180px; border-radius: 14px;
    border: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px; z-index: 2100;
}
.tree-content::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.tree-content.show { display: block !important; }
@media (min-width: 769px) { .tree-menu:hover .tree-content { display: block !important; } }
.tree-content a {
    color: var(--text) !important; padding: 10px 14px; display: block;
    text-decoration: none; font-size: 0.98rem; border-radius: 10px;
}
.tree-content a:hover { background: var(--tint); color: var(--blue) !important; }

/* [4. 공통 버튼·제목] */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 32px; border-radius: 999px; font-weight: 800; font-size: 1.1rem;
    text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: 0.2s;
    font-family: inherit;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(52,66,198,0.28); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--tint); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--tint); transform: translateY(-2px); }

.section { padding: 0 20px; }
.section-title {
    text-align: center; font-size: 2.6rem; margin: 70px 0 16px;
    font-weight: 800; letter-spacing: -1px; color: var(--navy);
}
.section-title span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { text-align: center; color: var(--muted); font-size: 1.1rem; margin: 0 0 40px; }
.eyebrow {
    display: inline-block; background: var(--tint); color: var(--blue);
    font-weight: 800; font-size: 0.95rem; padding: 6px 14px; border-radius: 999px;
    letter-spacing: 0.5px;
}
.home-block { max-width: 1200px; margin: 0 auto; padding: 90px 20px 0; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.block-head h2 { font-size: 2.2rem; margin: 10px 0 0; color: var(--navy); letter-spacing: -1px; line-height: 1.3; }
.block-head p { margin: 6px 0 0; color: var(--muted); font-size: 1.05rem; }
.more-link { color: var(--blue); font-weight: 800; text-decoration: none; white-space: nowrap; font-size: 1.05rem; }
.more-link:hover { text-decoration: underline; }

/* [5. 홈 - 히어로 (B안: 사진 + 파랑·보라 그라데이션)] */
.hero {
    position: relative; min-height: 640px; padding: 110px 20px 170px;
    background: url('img/class2.jpg') center 35% / cover no-repeat; color: #fff; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(110deg, rgba(36,46,196,0.94) 0%, rgba(96,62,232,0.80) 48%, rgba(0,170,255,0.40) 100%);
}
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; }
.hero-pill {
    display: inline-block; border: 1px solid rgba(255,255,255,0.55); padding: 8px 18px;
    border-radius: 999px; font-weight: 700; font-size: 1rem; background: rgba(255,255,255,0.08);
}
.hero h1 { font-size: 4rem; line-height: 1.2; margin: 24px 0 22px; font-weight: 800; letter-spacing: -2px; color: #fff; }
.hero h1 strong {
    background: linear-gradient(90deg, #ffffff, #9fe7ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.3rem; line-height: 1.7; margin: 0 0 36px; color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

/* [6. 홈 - 숫자 소개 (히어로 위에 겹치는 카드)] */
.stats {
    max-width: 1200px; margin: -110px auto 0; padding: 0 20px; position: relative; z-index: 5;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat { background: #fff; border-radius: 22px; padding: 30px 28px; box-shadow: 0 20px 44px rgba(30,40,120,0.16); }
.stat-num {
    font-size: 2.8rem; font-weight: 800; line-height: 1.1;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-num small { font-size: 1.3rem; margin-left: 2px; }
.stat-label { margin-top: 8px; color: var(--muted); font-weight: 700; font-size: 1.02rem; }

/* [7. 홈 - 교육과정 카드] */
.course-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.course-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 22px; cursor: pointer; transition: 0.25s;
    display: flex; flex-direction: column; gap: 10px;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.course-card .cc-num {
    width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
}
.course-card h3 { margin: 6px 0 0; font-size: 1.2rem; color: var(--navy); line-height: 1.4; }
.course-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* [8. 홈 - 최근 소식] */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-item {
    display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text);
    background: var(--tint-2); border-radius: var(--radius); padding: 26px; transition: 0.25s;
    border: 1px solid var(--line);
}
.news-item:hover { background: #fff; box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.news-date { color: var(--blue); font-weight: 800; font-size: 0.95rem; }
.news-title { font-weight: 700; font-size: 1.08rem; line-height: 1.55; }

/* [9. 홈 - 문의 배너] */
.cta-band {
    max-width: 1200px; margin: 100px auto 0; padding: 0 20px;
}
.cta-inner {
    background: var(--grad);
    border-radius: 28px; padding: 56px 48px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-inner h2 { margin: 0 0 8px; font-size: 2rem; line-height: 1.35; letter-spacing: -0.5px; }
.cta-inner p { margin: 0; opacity: 0.85; font-size: 1.1rem; }
.cta-inner .btn { font-size: 1.2rem; padding: 18px 40px; }

/* [10. 협회 소개 카드] */
.about-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px; margin: 30px auto 0; max-width: 1200px;
}
.about-item {
    background: #fff; padding: 34px 18px; border-radius: var(--radius);
    border: 1px solid var(--line); text-align: center; cursor: pointer; transition: 0.25s;
    min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.about-item .about-icon {
    font-size: 2rem !important; width: 68px; height: 68px; border-radius: 20px; background: var(--tint);
    display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.about-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.about-item h3 { font-size: 1.3rem; color: var(--navy) !important; margin: 10px 0 6px; }
.about-item p { font-size: 0.98rem; color: var(--muted); margin: 0; }

/* [11. 강사 슬라이더] */
.carousel-wrapper { position: relative; overflow: hidden; padding: 20px 64px 30px; margin: 0 auto; max-width: 1260px; }
.card-container { display: flex; transition: transform 0.5s ease-in-out; }
.card {
    flex: 0 0 calc(25% - 30px); margin: 0 15px; background: #fff;
    border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
    text-align: center; padding-bottom: 22px; transition: 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card img { width: 100%; height: 280px; object-fit: cover; object-position: top; background: var(--tint); display: block; }
.card h3 { font-size: 1.25rem; color: var(--navy); margin: 18px 0 4px; }
.highlight-role {
    color: var(--blue) !important; font-size: 0.9rem; font-weight: 700; margin-left: 6px;
    background: var(--tint); padding: 2px 10px; border-radius: 999px; vertical-align: middle;
}
.tag-container { margin-top: 12px; padding: 0 16px; min-height: 4.5em; display: flex; justify-content: center; }
.tag { color: var(--muted); font-size: 0.9rem; font-weight: 600; line-height: 1.6; }
.arrow-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: #fff; color: var(--blue); border: 1px solid var(--line);
    font-size: 1.4em; width: 50px; height: 50px; cursor: pointer; z-index: 100;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: 0.2s; box-shadow: var(--shadow);
}
.prev-btn { left: 6px; }
.next-btn { right: 6px; }
.arrow-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* [12. 교육과정 페이지] */
.curriculum-list { display: flex; flex-direction: column; gap: 16px; max-width: 960px; margin: 30px auto; }
.course-item {
    display: flex; align-items: center; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px 30px; transition: 0.25s;
}
.course-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: transparent; }
.course-num {
    font-size: 1.6rem; font-weight: 800; color: #fff; background: var(--grad);
    width: 72px; height: 72px; border-radius: 20px; margin-right: 28px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.course-text h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.3rem; font-weight: 800; }
.course-text p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.curriculum-footer { text-align: center; margin-top: 40px; }
.curriculum-footer p { color: var(--muted) !important; font-weight: 600; font-size: 1rem; margin-bottom: 22px; }
.blue-round-btn {
    background: var(--grad) !important; color: #fff !important; font-weight: 800;
    padding: 16px 40px !important; border-radius: 999px; cursor: pointer; border: none;
    font-size: 1.15rem; box-shadow: 0 8px 20px rgba(52,66,198,0.28); transition: 0.2s; font-family: inherit;
}
.blue-round-btn:hover { background: var(--blue-dark) !important; }

/* [13. 보도자료] */
.press-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px; margin: 30px auto 0; max-width: 1200px;
}
.press-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; text-decoration: none; color: var(--text); transition: 0.25s;
    min-height: 180px; display: flex; flex-direction: column; justify-content: space-between;
}
.press-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.press-date { color: var(--blue); font-weight: 800; font-size: 0.92rem; margin-bottom: 10px; }
.press-content { font-weight: 700; font-size: 1.02rem; line-height: 1.55; }
.press-tag {
    align-self: flex-start; color: var(--blue) !important; background: var(--tint);
    font-size: 0.82rem; font-weight: 800; margin-top: 14px; padding: 3px 10px; border-radius: 999px;
}
.press-nav-container { max-width: 1200px; margin: 30px auto 0; }
.back-home-btn {
    background: var(--tint) !important; color: var(--blue) !important; font-weight: 800;
    padding: 10px 22px; border-radius: 999px; border: none; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 50px 0 0; flex-wrap: wrap; }
.pagination span { cursor: pointer; color: var(--muted); padding: 6px 10px; }
.page-num {
    padding: 8px 15px !important; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--text) !important; font-weight: 700;
}
.page-num:hover, .page-num.active { background: var(--blue); color: #fff !important; border-color: var(--blue); }

/* [14. 팝업(모달)] */
.modal {
    display: none; position: fixed; z-index: 9999; inset: 0;
    background: rgba(16, 22, 56, 0.6); align-items: center; justify-content: center;
}
.modal-content {
    background: #fff; color: var(--text); border-radius: 24px; width: 90%; max-width: 850px;
    position: relative; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.modal-bg-container {
    width: 100%; height: 520px; background-size: cover; background-position: center;
    position: relative; display: flex; align-items: center; justify-content: center;
}
.modal-bg-container::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(22,32,79,0.35), rgba(22,32,79,0.8));
}
.modal-text-content { position: relative; z-index: 10; text-align: center; color: #fff; padding: 0 50px; }
#modalTitle { font-size: 3rem; color: #fff; font-weight: 800; margin-bottom: 18px; }
#modalDescription { font-size: 1.3rem; line-height: 1.7; font-weight: 500; }
.close-btn {
    position: absolute; top: 16px; right: 20px; font-size: 30px; line-height: 1;
    cursor: pointer; z-index: 100; color: #999;
}
.image-popup-style .close-btn { color: #fff; }
.close-btn:hover { color: var(--blue) !important; }
.course-image-popup { position: relative; display: flex; align-items: center; justify-content: center; padding: 10px; }
.course-image-popup .close-btn { color: #fff; z-index: 10001; }

/* [15. 교육문의 폼] */
#contactModal .modal-content { padding: 40px; max-width: 560px; }
#contactModal h2 { margin-top: 0; color: var(--navy); text-align: center; margin-bottom: 26px; font-size: 1.7rem; }
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--navy); }
.form-group input, .form-group textarea {
    width: 100%; border: 1px solid var(--line); background: var(--tint-2); padding: 14px;
    border-radius: 12px; font-size: 1.05rem; font-family: inherit; transition: 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(52,66,198,0.12); }
.small-btn {
    background: var(--grad); color: #fff; font-weight: 800; border: none;
    padding: 16px 50px !important; border-radius: 999px; cursor: pointer;
    display: block; margin: 26px auto 0; font-size: 1.15rem; transition: 0.2s; font-family: inherit;
}
.small-btn:hover { background: var(--blue-dark); }
#message { min-height: 150px; resize: none; }

/* [16. 하단] */
footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 44px 20px; text-align: center; font-size: 0.95rem; }
footer .footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
footer .footer-brand img { width: 40px; height: 40px; background: #fff; border-radius: 50%; }
footer p { margin: 4px 0; line-height: 1.6; }
footer a { color: #fff; }
#backToTop {
    position: fixed; bottom: 30px; right: 30px; width: 56px; height: 56px;
    background: var(--blue); color: #fff; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 800; z-index: 1000;
    text-decoration: none; box-shadow: 0 8px 20px rgba(52,66,198,0.35); font-size: 0.9rem;
}

/* [17. 협회장 인사말] */
.greetings-section { background: #fff; padding: 70px 20px; min-height: 80vh; color: var(--text); }
.greetings-container { max-width: 1100px; margin: 0 auto; display: flex; gap: 56px; align-items: center; }
.greetings-image-area { flex: 1; position: relative; text-align: center; }
.image-blur-bg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 110%; height: 110%; background-size: cover; filter: blur(40px); opacity: 0.18; z-index: 1;
}
.main-photo {
    position: relative; z-index: 2; max-width: 100%; border-radius: 24px;
    background: linear-gradient(180deg, var(--tint), #fff);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}
.greetings-text-area { flex: 1.5; }
.greetings-titleed { font-size: 2.5rem; margin: 0 0 28px; color: var(--navy); letter-spacing: -1px; }
.greetings-titleed span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.greetings-content { font-size: 1.12rem; line-height: 1.85; color: #3b4252; white-space: pre-wrap; }
.greetings-signature { margin-top: 40px; text-align: right; font-size: 1.2rem; color: var(--navy); }
.greetings-signature p { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.signature-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 50%; }

/* [18. 애니메이션] */
.fade-in { animation: fadeIn 0.6s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* [19. 태블릿] */
@media screen and (max-width: 1024px) {
    .hero h1 { font-size: 3.1rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .news-list { grid-template-columns: 1fr; }
    .card { flex: 0 0 calc(50% - 30px); }
}

/* [20. 휴대폰] */
@media screen and (max-width: 768px) {
    nav { height: auto; padding: 10px 12px; flex-wrap: wrap; gap: 4px; }
    .brand { margin: 0 auto 4px; width: 100%; justify-content: center; font-size: 1.05rem; }
    .brand img { width: 36px; height: 36px; }
    .nav-menu { width: 100%; justify-content: center; flex-wrap: wrap; gap: 2px; }
    .nav-item, .tree-toggle { font-size: 0.95rem !important; padding: 8px 10px !important; }
    .nav-cta { margin-left: 2px; }
    .tree-content { position: absolute !important; top: 44px !important; min-width: 170px; }

    .hero { min-height: auto; padding: 56px 18px 130px; }
    .hero h1 { font-size: 2.3rem; letter-spacing: -1px; }
    .hero-lead { font-size: 1.08rem; }
    .hero-actions .btn { flex: 1; padding: 15px 16px; font-size: 1.05rem; }
    .stats { gap: 12px; padding: 0 16px; margin-top: -90px; }
    .stat { padding: 20px 10px; }
    .stat-num { font-size: 2rem; }
    .home-block { padding: 64px 16px 0; }
    .block-head h2 { font-size: 1.7rem; }
    .cta-band { padding: 0 16px; margin-top: 70px; }
    .cta-inner { padding: 36px 26px; }
    .cta-inner h2 { font-size: 1.5rem; }
    .cta-inner .btn { width: 100%; }

    .section-title { font-size: 2rem; margin-top: 50px; }
    .about-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .about-item { min-height: 180px; padding: 22px 10px; }
    .carousel-wrapper { padding: 20px 50px 30px; }
    .card { flex: 0 0 calc(100% - 30px) !important; }
    .course-item { padding: 20px; }
    .course-num { width: 56px; height: 56px; font-size: 1.3rem; margin-right: 16px; }
    .course-text h3 { font-size: 1.12rem; }
    .press-grid { grid-template-columns: 1fr; }
    .modal-bg-container { height: 60vh; }
    #modalTitle { font-size: 2.1rem !important; }
    #modalDescription { font-size: 1.05rem !important; }
    #contactModal .modal-content { width: 95%; max-height: 90vh; overflow-y: auto; padding: 28px 20px; }
    #message { height: 200px !important; }
    .small-btn { width: 100% !important; }
    .greetings-section { padding: 40px 16px; }
    .greetings-container { flex-direction: column; gap: 26px; }
    .greetings-titleed { font-size: 2rem; }
    .greetings-content { font-size: 1.05rem; line-height: 1.8; }
    .signature-logo { width: 60px; height: 60px; }
    #backToTop { width: 48px; height: 48px; right: 16px; bottom: 16px; }
}
