/* ============================================================
   INAUS ACADEMY — Home Page Styles
   페이지 고유 스타일: 히어로·통계·서비스·교육과정·멤버십·
                      Why·강사진·정보·뉴스레터
   공통(헤더·푸터·메가메뉴·드로어) → shared.css
   ============================================================ */

/* ===== 섹션 공통 ===== */
.section { padding: 140px 0; }
.section-label { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.section-title { font-size: 40px; font-weight: 800; color: var(--black); line-height: 1.35; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-title .dot { color: var(--accent); }
.section-desc { font-size: 17px; color: var(--gray-500); font-weight: 330; line-height: 1.8; max-width: 520px; }
.section-header { margin-bottom: 80px; }

/* ===== 히어로 슬라이더 ===== */
.hero { height: 100vh; min-height: 700px; position: relative; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; display: flex; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; opacity: 0; transform: scale(1.04); transition: opacity 1s ease, transform 1.2s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
/* 슬라이드 자체 bg_color(인라인 style)가 있으면 그게 우선이고, 없을 때만 아래
   var(--hero-bg, ...) 폴백(페이지 테마) → 기본 블랙 순으로 적용된다. */
.hero-slide-bg { position: absolute; inset: 0; background: var(--hero-bg, var(--black)); }
.hero-slide-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(232,97,60,0.05) 0%, transparent 70%); }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 58px; font-weight: 800; color: var(--hero-text, var(--white)); line-height: 1.35; letter-spacing: -1px; margin-bottom: 28px; }
.hero h1 .dot { color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--hero-text, rgba(255,255,255,0.72)); font-weight: 340; letter-spacing: 0.5px; line-height: 1.8; max-width: 480px; margin: 0 auto 50px; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; padding: 16px 44px; border: 1px solid rgba(255,255,255,0.2); color: var(--white); text-decoration: none; font-size: 16px; font-weight: 500; letter-spacing: 1px; transition: var(--transition); cursor: pointer; background: transparent; font-family: 'Noto Sans KR', sans-serif; }
.hero-cta:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.hero-prev, .hero-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: none; border: 1px solid rgba(255,255,255,0.2); color: var(--white); width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; transition: var(--transition); }
.hero-prev { left: 40px; }
.hero-next { right: 40px; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

.hero-dots { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; z-index: 10; }
.hero-dot { width: 6px; height: 6px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; transition: var(--transition); border: none; padding: 0; }
.hero-dot.active { background: var(--white); width: 24px; border-radius: 3px; }

.hero-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--accent); width: 0%; z-index: 10; transition: width linear; }

.hero-scroll { position: absolute; bottom: 56px; right: 48px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 10; }
.hero-scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%, 100% { opacity: 1; transform: scaleY(1); } 50% { opacity: 0.3; transform: scaleY(0.5); } }

/* ===== 수치 통계 바 ===== */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 48px 0; text-align: center; border-right: 1px solid var(--gray-200); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 44px; font-weight: 700; color: var(--black); line-height: 1; margin-bottom: 8px; }
.stat-num span { color: var(--accent); }
.stat-label { font-size: 15px; color: var(--gray-500); font-weight: 400; }

/* ===== 교육 서비스 카드 그리드 ===== */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.service-card { padding: 44px 36px; border: 1px solid var(--gray-200); margin-right: -1px; margin-bottom: -1px; cursor: pointer; position: relative; display: flex; flex-direction: column; min-height: 280px; overflow: hidden; text-decoration: none; color: inherit; }
.service-card::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.55s ease; background-size: cover; background-position: center; z-index: 0; }
.service-card::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.52); opacity: 0; transition: opacity 0.55s ease; z-index: 1; }
.service-card:hover::before, .service-card:hover::after { opacity: 1; }
.service-card:nth-child(1)::before { background: linear-gradient(135deg,#0d1b2a,#1a3a5c); }
.service-card:nth-child(2)::before { background: linear-gradient(135deg,#1a0a00,#3d1a00); }
.service-card:nth-child(3)::before { background: linear-gradient(135deg,#0a1a0a,#1a3a1a); }
.service-card:nth-child(4)::before { background: linear-gradient(135deg,#1a001a,#3a0a3a); }
.service-card:nth-child(5)::before { background: linear-gradient(135deg,#1a1400,#3a2e00); }
.service-card:nth-child(6)::before { background: linear-gradient(135deg,#001a1a,#003a3a); }
.service-card:nth-child(7)::before { background: linear-gradient(135deg,#0a0a1a,#1a1a4a); }
.service-card:nth-child(8)::before { background: linear-gradient(135deg,#1a0a0a,#3a1010); }
.service-card h3, .service-card p, .service-arrow { position: relative; z-index: 2; transition: color 0.45s ease; }
.service-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.service-card h3 .dot { color: var(--accent); transition: color 0.45s ease; }
.service-card p { font-size: 16px; color: var(--gray-600); line-height: 1.8; font-weight: 330; }
.service-card:hover h3 { color: var(--white); }
.service-card:hover h3 .dot { color: var(--accent); }
.service-card:hover p { color: rgba(255,255,255,0.7); }
.service-arrow { margin-top: auto; padding-top: 28px; font-size: 22px; color: var(--gray-400); }
.service-card:hover .service-arrow { color: var(--white); transform: translateX(6px); }

/* ===== 교육과정 캐러셀 ===== */
.courses { background: var(--white); }
.courses-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.courses-tabs { display: flex; gap: 32px; }
.courses-tab { background: none; border: none; font-size: 16px; font-weight: 400; color: var(--gray-400); cursor: pointer; transition: var(--transition-fast); padding: 0; padding-bottom: 8px; border-bottom: 2px solid transparent; font-family: 'Noto Sans KR', sans-serif; letter-spacing: 0.5px; }
.courses-tab.active, .courses-tab:hover { color: var(--black); border-bottom-color: var(--black); font-weight: 600; }
.courses-more-link { display: inline-flex; align-items: center; font-size: 16px; font-weight: 500; color: var(--gray-600); text-decoration: none; border-bottom: 1px solid var(--gray-400); padding-bottom: 2px; transition: var(--transition-fast); letter-spacing: 0.5px; align-self: flex-end; }
.courses-more-link:hover { color: var(--black); border-bottom-color: var(--black); }

.courses-carousel { position: relative; }
.courses-track-wrap { overflow: hidden; margin: 0 72px; }
.courses-track { display: flex; gap: 32px; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; }
.course-card { flex: 0 0 calc(25% - 24px); cursor: pointer; transition: transform 0.4s ease; }
.course-card a { display: block; color: inherit; text-decoration: none; }
@media (max-width: 1599px) { .course-card { flex: 0 0 calc(33.333% - 22px); } }
@media (max-width: 1279px) { .course-card { flex: 0 0 calc(50% - 16px); } }
@media (max-width: 959px) { .course-card { flex: 0 0 100%; } }
.course-card:hover { transform: translateY(-6px); }

.courses-prev, .courses-next { position: absolute; top: 38%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--gray-800); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 19px; cursor: pointer; transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.courses-prev { left: 0; }
.courses-next { right: 0; }
.courses-prev:hover, .courses-next:hover { background: var(--black); box-shadow: 0 6px 24px rgba(0,0,0,0.28); transform: translateY(-50%) scale(1.08); }
.courses-prev:disabled, .courses-next:disabled { opacity: 0.25; cursor: default; pointer-events: none; }

.course-thumb { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 24px; background: var(--gray-100); }
.course-thumb-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 18px; text-align: center; padding: 24px; line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; transition: var(--transition); }
.course-card:hover .course-thumb-inner { transform: scale(1.04); }
.course-badge-wrap { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; }
.course-badge-item { font-size: 13px; font-weight: 600; padding: 4px 10px; background: var(--accent); color: var(--white); letter-spacing: 0.5px; }
.course-badge-item.hrd { background: #6b5cff; }
.course-badge-item.online { background: var(--blue); }
.course-badge-item.open { background: #8B5E3C; }
.course-category { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 8px; line-height: 1.4; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card h3 { font-size: 19px; font-weight: 600; line-height: 1.5; margin-bottom: 12px; color: var(--black); min-height: 57px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { font-size: 15px; color: var(--gray-500); margin-bottom: 14px; font-weight: 330; }
.course-meta span + span::before { content: '|'; margin: 0 10px; color: var(--gray-300); }
.course-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--gray-200); }
.course-instructor-name { font-size: 15px; color: var(--gray-600); }
.course-price { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 700; color: var(--black); }
.course-price small { font-size: 15px; font-weight: 400; color: var(--gray-500); }

/* ===== 연간멤버십 홍보 섹션 ===== */
.membership { background: var(--black); padding: 120px 0; position: relative; overflow: hidden; }
.membership::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" x="10" font-size="80" fill="rgba(255,255,255,0.02)" font-family="Poppins" font-weight="900">M</text></svg>') no-repeat center; background-size: cover; opacity: 0.5; }
.membership .container { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.membership-content { max-width: 600px; }
.membership .section-label { color: var(--accent); }
.membership .section-title { color: var(--white); font-size: 44px; }
.membership .section-desc { color: var(--gray-500); margin-bottom: 36px; }
.membership-features { display: flex; flex-wrap: wrap; gap: 16px 36px; }
.membership-feat { display: flex; align-items: center; gap: 10px; font-size: 16px; color: rgba(255,255,255,0.6); font-weight: 330; }
.membership-feat i { color: var(--accent); font-size: 10px; }
.membership-cta { display: inline-flex; align-items: center; gap: 10px; padding: 18px 48px; background: var(--accent); color: var(--white); text-decoration: none; font-size: 17px; font-weight: 600; letter-spacing: 0.5px; transition: var(--transition); font-family: 'Noto Sans KR', sans-serif; }
.membership-cta:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ===== 이나우스를 선택하는 이유 ===== */
.why { background: var(--gray-100); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.why-card { padding: 60px 48px; background: var(--white); border: 1px solid var(--gray-200); margin-right: -1px; transition: var(--transition); }
.why-card:hover { background: var(--gray-100); }
.why-num { font-family: 'Poppins', sans-serif; font-size: 66px; font-weight: 800; color: var(--gray-200); line-height: 1; margin-bottom: 28px; }
.why-card:hover .why-num { color: var(--accent); }
.why-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; line-height: 1.4; }
.why-card p { font-size: 16px; color: var(--gray-600); line-height: 1.9; font-weight: 330; }

/* ===== 강사진 소개 ===== */
.instructors { background: var(--dark); padding: 140px 0; }
.instructors .section-label { color: var(--accent); }
.instructors .section-title { color: var(--white); }
.instructors .section-desc { color: var(--gray-500); }
.instructors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.instructor-card { background: var(--dark-gray); padding: 48px 32px; text-align: center; transition: var(--transition); }
.instructor-card:hover { background: var(--gray-900); }
.instructor-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--gray-800); margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--gray-600); position: relative; transition: var(--transition); }
.instructor-card:hover .instructor-avatar { border: 2px solid var(--accent); }
.instructor-card h4 { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.instructor-role { font-size: 14px; color: var(--accent); font-weight: 500; letter-spacing: 1px; margin-bottom: 10px; }
.instructor-desc { font-size: 15px; color: var(--gray-500); font-weight: 330; }

.instructor-carousel { position: relative; }
.instructor-track { position: relative; }
.instructor-slide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; opacity: 0; position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; transition: opacity 0.6s ease; }
.instructor-slide.active { opacity: 1; position: relative; pointer-events: auto; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-700); border: none; cursor: pointer; padding: 0; transition: background 0.3s; }
.carousel-dot.active { background: var(--accent); }
@media (max-width: 1100px) { .instructor-slide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .instructor-slide { grid-template-columns: repeat(2, 1fr); } }

/* ===== 정보 3단 (공지사항 + Hot Issue + 고객지원) ===== */
.info { background: var(--white); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr 380px; gap: 0; }
.info-grid-2col { grid-template-columns: 1fr 1fr; }
.info-card { padding: 48px; border: 1px solid var(--gray-200); margin-right: -1px; }
.info-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.info-card-header h3 { font-size: 22px; font-weight: 700; }
.info-card-header h3 .dot { color: var(--accent); }
.info-more { font-size: 14px; color: var(--gray-400); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: var(--transition-fast); letter-spacing: 0.5px; }
.info-more:hover { color: var(--black); }
.notice-list { list-style: none; }
.notice-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--gray-100); transition: var(--transition-fast); cursor: pointer; }
.notice-item:last-child { border-bottom: none; }
.notice-item:hover .notice-title { color: var(--accent); }
.notice-title { font-size: 16px; font-weight: 400; color: var(--gray-700); transition: var(--transition-fast); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.notice-date { font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--gray-400); font-weight: 330; flex-shrink: 0; margin-left: 16px; }

.support-card { background: var(--black); color: var(--white); border: none; }
.support-card .info-card-header { border-bottom-color: var(--gray-800); }
.support-card .info-card-header h3 { color: var(--white); }
.support-phone { font-family: 'Poppins', sans-serif; font-size: 34px; font-weight: 700; color: var(--white); margin-bottom: 10px; letter-spacing: 1px; }
.support-time { font-size: 15px; color: var(--gray-500); font-weight: 330; margin-bottom: 36px; line-height: 1.8; }
.support-btns { display: flex; flex-direction: column; gap: 10px; }
.support-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; font-size: 16px; font-weight: 500; text-decoration: none; transition: var(--transition); font-family: 'Noto Sans KR', sans-serif; letter-spacing: 0.5px; }
.support-btn.primary { background: var(--accent); color: var(--white); }
.support-btn.primary:hover { background: var(--accent-hover); }
.support-btn.outline { border: 1px solid var(--gray-700); color: var(--gray-400); }
.support-btn.outline:hover { border-color: var(--gray-500); color: var(--white); }

/* ===== 뉴스레터 구독 배너 ===== */
.mobile-br { display: none; }
.newsletter { background: var(--dark); padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(232,97,60,0.06) 0%, transparent 60%); }
.newsletter .container { position: relative; z-index: 2; }
.newsletter h2 { font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 700; color: var(--white); letter-spacing: 2px; margin-bottom: 14px; }
.newsletter p { font-size: 16px; color: var(--gray-500); font-weight: 330; margin-bottom: 40px; }
.newsletter-cta { display: inline-flex; align-items: center; gap: 10px; padding: 16px 44px; border: 1px solid rgba(255,255,255,0.2); color: var(--white); text-decoration: none; font-size: 16px; font-weight: 500; letter-spacing: 0.5px; transition: var(--transition); font-family: 'Noto Sans KR', sans-serif; }
.newsletter-cta:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ===== 플로팅 카카오 상담 버튼 ===== */
.contact-float { position: fixed; bottom: 32px; right: 96px; z-index: 998; opacity: 0; transform: translateY(20px); transition: var(--transition); }
.contact-float.visible { opacity: 1; transform: translateY(0); }
.contact-float a { display: flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--accent); color: var(--white); text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: 0.5px; transition: var(--transition); box-shadow: 0 4px 24px rgba(232,97,60,0.35); }
.contact-float a:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(232,97,60,0.45); }

/* ===== 반응형 ===== */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .info-card { padding: 24px 20px; margin-right: 0; min-width: 0; }
    .notice-title { max-width: calc(100% - 80px); }
    .hero h1 { font-size: 44px; }
    .membership .container { flex-direction: column; gap: 40px; text-align: center; }
    .membership-features { justify-content: center; }
}
@media (max-width: 768px) {
    .hero { height: 50vh; min-height: 350px; padding-top: 60px; }
    .hero h1 { font-size: 34px; }
    .hero-scroll { display: none; }
    .hero-prev, .hero-next { display: none; }
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 28px 0; }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(3) { border-top: 1px solid var(--gray-200); }
    .stat-item:nth-child(4) { border-top: 1px solid var(--gray-200); border-right: none; }
    .stat-num { font-size: 30px; }
    .courses-header { flex-direction: column; gap: 24px; align-items: flex-start; }
    .courses-track-wrap { margin: 0 52px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card { padding: 20px 16px; min-height: 190px; }
    .service-card h3 { font-size: 16px; margin-bottom: 10px; }
    .service-card p { font-size: 14px; }
    .section { padding: 80px 0; }
    .section-title { font-size: 30px; }
    .container { padding: 0 20px; }
    .mobile-br { display: inline; }
}

/* ===== 히어로 카드형 강좌 목록 (admin/etc/hero-banner 표시 방식 = 카드형일 때) =====
   .hero(단일 슬라이드)를 대체하는 섹션. 카드 1장 = 슬라이드 1개(=강좌 1개), 강사가
   2명 이상이면 사진/이름/소속만 자동 순환(우상단 점 표시). 가로 스크롤+snap이라
   PC는 다 안 들어가면 화살표로, 모바일은 스와이프로 넘어간다(=요청하신 "롤링"). */
.hero-cards-section {
    background: var(--black);
    padding: 190px 0 60px; /* 데스크톱 고정 헤더(150px) 회피 + 상하 밸런스를 위한 여백 40px */
    position: relative;
    overflow: hidden;
}
.hero-cards-viewport { position: relative; }
.hero-cards-row {
    display: flex; gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
    padding-bottom: 4px;
}
.hero-cards-row::-webkit-scrollbar { display: none; }
.hero-card {
    position: relative;
    flex: 0 0 300px;
    height: 460px;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #0e0e0e 100%);
    display: flex; flex-direction: column;
    padding: 24px 22px 22px;
}
.hero-card-pager {
    position: absolute; top: 16px; right: 16px; z-index: 3;
    display: flex; gap: 4px;
    background: rgba(0,0,0,0.45); border-radius: 20px; padding: 4px;
}
.hero-card-dot {
    font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.55);
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-fast);
}
.hero-card-dot.active { background: rgba(255,255,255,0.9); color: #111; }
.hero-card-top { position: relative; z-index: 2; }
.hero-card-tag {
    font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
}
.hero-card-title {
    font-size: 21px; font-weight: 800; color: #fff; line-height: 1.35;
    letter-spacing: -.3px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card-photos {
    position: absolute; right: 0; bottom: 0;
    width: 68%; height: 60%; z-index: 1;
    pointer-events: none;
}
.hero-card-photo { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-card-photo.active { opacity: 1; }
.hero-card-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
    mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}
.hero-card-bottom { position: relative; z-index: 2; margin-top: auto; }
.hero-card-instructor-info { display: none; }
.hero-card-instructor-info.active { display: block; }
.hero-card-name {
    font-size: 15px; font-weight: 700; color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.hero-card-affil {
    font-size: 12px; color: rgba(255,255,255,0.82); margin-top: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.hero-card-date {
    font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 12px;
}
.hero-cards-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    transition: var(--transition-fast);
}
.hero-cards-nav:hover { background: rgba(255,255,255,0.15); }
.hero-cards-nav.prev { left: -22px; }
.hero-cards-nav.next { right: -22px; }
@media (max-width: 1200px) {
    .hero-cards-nav { display: none; }
}
@media (max-width: 768px) {
    /* 60px로 줄어드는 모바일 헤더에 맞춰 상단 여백도 줄임(+상하 밸런스용 여백 유지) */
    .hero-cards-section { padding: 100px 0 40px; }
    .hero-card { flex-basis: 240px; height: 400px; padding: 20px 18px 18px; }
    .hero-card-title { font-size: 18px; }
}
