/* --- Global Custom Properties (CSS variables) --- */
:root {
    --primary-orange: #F26522;
    --primary-purple: #6C2A8C;
    --primary-blue: #00297A;
    --accent-orange-hover: #ff7838;
    --text-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Noto Sans KR', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

/* --- Basic Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section {
    margin-bottom: 80px;
}

/* --- Section Titles --- */
.section-title-wrap {
    text-align: center;
    margin-bottom: 45px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(242, 101, 34, 0.1), rgba(108, 42, 140, 0.1));
    color: var(--primary-purple);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 12px;
    border: 1px solid rgba(108, 42, 140, 0.15);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Header / Banner (Ratio and Position Adjustments) --- */
.main-header {
    position: relative;
    background-color: #060b24;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: var(--text-white);
    overflow: hidden;
    width: 100%;
    min-height: 680px; /* 불필요한 하단 공백을 줄이고 컴팩트하게 밀착시키는 680px 세로 높이 지정 */
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Add custom overlay for header backdrop gradient fusion */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 11, 36, 0) 50%, rgba(6, 11, 36, 0.95) 100%);
    z-index: 1;
}

.header-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Decoupled Branding Styles */
.header-top-row {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 60px 0 60px; /* 브라우저 좌측 끝과 우측 끝에 바짝 밀착 */
    box-sizing: border-box;
    z-index: 10;
}

.header-left-brand {
    text-align: left;
    font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif; /* 캡처된 Aeonik 산세리프에 최적화된 기하학적 고딕 매핑 */
    line-height: 0.85; /* 세 단어가 세로로 콤팩트하게 밀착되도록 조율 */
}

.okta-brand-line {
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.okta-brand-line.line-okta {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.okta-brand-line.line-secures {
    font-size: 1.15rem;
    font-weight: 400;
    font-style: normal; /* Aeonik/sans-serif 산세리프 본체에 맞추어 현대적인 정체로 처리 */
    color: rgba(255, 255, 255, 0.85);
    margin-left: 1px;
    text-transform: lowercase;
}

.okta-brand-line.line-ai {
    font-size: 3.4rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.header-right-logo {
    display: flex;
    align-items: center;
}

.okta-top-logo-img {
    height: 56px; /* 크기를 기존 28px 대비 2배 키움 */
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

/* Title placement lowered and narrowed */
.headline {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-top: 110px; /* 로고가 배경 이미지에 녹아들었으므로 110px로 상단 간격 조율 */
    margin-bottom: 25px;
    line-height: 1.35;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.headline .highlight {
    color: #ffffff;
    font-weight: 900;
}

.subheadline {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.webinar-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0131FF;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.meta-item .icon {
    font-size: 1.1rem;
}

.meta-item .text {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
}

.cta-button {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple));
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.4);
    transition: var(--transition-smooth);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(242, 101, 34, 0.6);
}

/* --- Section 1: Video Cards --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: var(--transition-smooth);
    z-index: 2;
}

.video-card:hover .play-overlay {
    background: rgba(15, 23, 42, 0.6);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
    transition: var(--transition-smooth);
    color: var(--primary-orange);
}

.video-card:hover .play-btn {
    transform: scale(1.1);
    background: var(--primary-orange);
    color: var(--text-white);
}

.play-icon {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.overlay-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* YouTube Iframe Embedded Container */
.youtube-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.youtube-player-container.active {
    opacity: 1;
    pointer-events: auto;
}

.youtube-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 24px;
}

.session-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(242, 101, 34, 0.1);
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-bottom: 12px;
}

.session-badge.font-orange {
    background-color: rgba(108, 42, 140, 0.1);
    color: var(--primary-purple);
}

.session-badge.font-blue {
    background-color: rgba(0, 41, 122, 0.1);
    color: var(--primary-blue);
}

.video-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.video-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Section 2: Event Intro (Image Banner Customization) --- */
.event-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #03153d 100%);
    border-radius: var(--radius-lg);
    color: var(--text-white);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.event-card-container {
    display: flex;
    align-items: center;
    padding: 40px;
    gap: 40px;
    justify-content: space-between;
}

.event-coupon-right {
    flex-shrink: 0;
    width: 500px;
    height: auto;
    aspect-ratio: 500 / 249;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    align-self: flex-start;
    margin-top: 48px; /* Aligns the top edge of the image with the main heading text */
}

.event-coupon-right .event-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: none;
    max-height: none;
    border-radius: 0;
}

.event-visual-image {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.event-banner-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.event-banner-img:hover {
    transform: scale(1.05);
}

.event-details {
    flex-grow: 1;
}

.event-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--primary-orange);
    color: var(--text-white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.event-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.event-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    line-height: 1.6;
}

.highlight-text {
    color: #ffaa5a;
    font-weight: 700;
}

.event-info-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-orange);
    padding: 12px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    width: fit-content;
    max-width: 100%;
}

.event-info-box p {
    margin-bottom: 4px;
}

.event-info-box p:last-child {
    margin-bottom: 0;
}

/* --- Section 3: Survey Form --- */
.survey-form {
    max-width: 800px;
    margin: 0 auto;
}

.survey-question-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.survey-question-card:hover {
    border-color: rgba(108, 42, 140, 0.3);
    box-shadow: var(--shadow-md);
}

.question-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.5;
}

.required {
    color: #ef4444;
    margin-left: 2px;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.radio-label:hover {
    background-color: rgba(108, 42, 140, 0.03);
    border-color: rgba(108, 42, 140, 0.15);
}

.radio-label input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition-smooth);
    background-color: var(--bg-card);
}

.radio-label input[type="radio"]:checked+.custom-radio {
    border-color: var(--primary-purple);
}

.radio-label input[type="radio"]:checked+.custom-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple));
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-label input[type="radio"]:checked {
    background-color: rgba(108, 42, 140, 0.05);
}

.radio-label:has(input[type="radio"]:checked) {
    background-color: rgba(108, 42, 140, 0.06);
    border-color: rgba(108, 42, 140, 0.3);
    color: var(--primary-purple);
    font-weight: 500;
}

.submit-btn-wrap {
    text-align: center;
    margin-top: 40px;
}

.survey-submit-btn {
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-purple) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 42, 140, 0.3);
    transition: var(--transition-smooth);
}

.survey-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 42, 140, 0.5);
}

/* --- Modal Overlays & Cards (Glassmorphism) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 10px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 780px; /* 650px에서 780px로 늘려 가로 스크롤 및 레이블 잘림 전면 방지 */
    padding: 36px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close-btn:hover {
    background-color: var(--border-color);
    color: var(--text-dark);
}

.modal-header-section {
    margin-bottom: 24px;
    padding-right: 20px;
}

.modal-header-section h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-header-section p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modal Form Grid */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-purple);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(108, 42, 140, 0.1);
}

/* Privacy Checkbox Box */
.privacy-agreement-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-light);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #475569;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    background-color: var(--bg-card);
}

.checkbox-label input[type="checkbox"]:checked+.custom-checkbox {
    border-color: var(--primary-purple);
    background-color: var(--primary-purple);
}

.checkbox-label input[type="checkbox"]:checked+.custom-checkbox::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid var(--text-white);
    border-width: 0 2px 2px 0;
    position: absolute;
    top: 2px;
    left: 5px;
    transform: rotate(45deg);
}

.view-details-btn {
    background: none;
    border: none;
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.view-details-btn:hover {
    color: var(--primary-orange);
}

.modal-submit-btn {
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-purple) 100%);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-submit-btn:hover {
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
    opacity: 0.95;
}

/* Popup 2: Terms Details Modal Overlay - higher z-index to overlay Popup 1 */
.terms-overlay {
    z-index: 110;
}

.terms-card {
    max-width: 550px;
}

.terms-content {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-sm);
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.85rem;
    color: #475569;
    margin: 15px 0 20px 0;
}

.terms-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 14px 0 6px 0;
}

.terms-content h4:first-child {
    margin-top: 0;
}

.terms-content p {
    margin-bottom: 8px;
}

.terms-content ul {
    padding-left: 18px;
    margin-bottom: 8px;
}

.terms-footer {
    display: flex;
    justify-content: flex-end;
}

.terms-confirm-btn {
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-white);
    background-color: var(--primary-purple);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.terms-confirm-btn:hover {
    background-color: #581c73;
}

/* --- Footer (Custom White Logo Image support) --- */
.main-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 20px;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.okta-footer-logo-img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.95;
    display: block;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.footer-right .company-name {
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.9rem;
}

.footer-right .copyright {
    color: #475569;
    margin-bottom: 0;
    margin-top: 8px;
}

/* --- Responsive CSS --- */
@media (min-width: 1025px) {
    .main-header {
        background-size: cover;
        background-position: center center;
        min-height: 620px;
        height: 620px !important;
    }

    .header-overlay {
        display: none;
    }

    .header-container {
        max-width: 1200px;
    }

    .headline {
        margin-top: 170px; /* absolute 로고 행 아래에 조화롭게 위치하도록 마진 확보 */
    }
}

@media (max-width: 1024px) {
    .main-header {
        background-size: cover;
        background-position: center center;
        min-height: 520px;
    }

    .header-top-row {
        padding: 30px 40px 0 40px !important;
    }

    .okta-brand-line.line-okta {
        font-size: 2.2rem;
    }
    
    .okta-brand-line.line-secures {
        font-size: 0.95rem;
    }
    
    .okta-brand-line.line-ai {
        font-size: 2.6rem;
    }

    .okta-top-logo-img {
        height: 44px !important; /* 태블릿 로고 크기 2배 확대 */
    }

    .headline {
        font-size: 2.4rem;
        margin-top: 100px; /* 로고와 안 겹치도록 정밀 조율 */
    }

    .subheadline {
        font-size: 1.05rem;
        padding: 0 20px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-header {
        background-size: cover;
        background-position: center center;
        min-height: 440px; /* 세로 높이를 콤팩트하게 낮추어 아래쪽 본문과의 여백 공백 최소화 */
        height: auto !important;
        padding: 0 0 20px 0;
        display: block;
    }

    .header-overlay {
        display: block !important;
        background: linear-gradient(180deg, rgba(6, 11, 36, 0) 40%, rgba(6, 11, 36, 0.95) 100%) !important;
    }

    /* 모바일에서도 절대 정렬로 브라우저 우측 끝 밀착 고정 */
    .header-top-row {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important; /* 우측 정렬 강제 */
        align-items: flex-start !important;
        padding: 20px 20px 0 20px !important;
        box-sizing: border-box;
        z-index: 10;
    }

    .header-right-logo {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .okta-top-logo-img {
        height: 32px !important; /* 모바일 로고 크기 2배 확대 */
    }

    .header-container {
        max-width: 100%;
        padding: 0;
    }

    .headline {
        font-size: 1.7rem;
        margin-top: 80px; /* 모바일 마진 콤팩트화 */
        margin-bottom: 12px;
        line-height: 1.35;
        max-width: 100%;
        padding: 0 15px;
    }

    .subheadline {
        font-size: 0.88rem;
        line-height: 1.45;
        margin-bottom: 20px;
        max-width: 100%;
        padding: 0 15px;
    }

    .webinar-meta {
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .meta-item {
        padding: 6px 16px;
        border-radius: 20px;
        display: inline-flex;
    }

    .meta-item .text {
        font-size: 0.82rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .event-card-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 30px;
    }

    .event-visual-image {
        width: 100%;
        max-width: 220px;
        height: auto;
    }

    .event-coupon-right {
        order: 1;
        width: 100%;
        max-width: 380px;
        height: auto;
        aspect-ratio: 500 / 249;
        margin: 0 auto;
        align-self: center; /* Reset alignment for stacked mobile view */
    }

    .event-details {
        order: 2;
    }

    .event-info-box {
        border-left: none;
        border-top: 3px solid var(--primary-orange);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        text-align: left;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }
}

/* --- Modal Step Transitions --- */
.step-container {
    transition: opacity 0.3s ease;
}

.step-container.hidden-step {
    display: none !important;
}

.step-btn-group button {
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Tighten space between main header and video section content */
#video-section {
    padding-top: 20px !important;
}