/* ========================================
   Seminar Archive / Single Styles
======================================== */

/* ---- Archive: category tabs ---- */
.seminar-category-tabs {
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.seminar-category-tabs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 16px 0;
}
.seminar-category-tabs a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--dark-gray, #343a40);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.seminar-category-tabs a:hover,
.seminar-category-tabs a.active {
    background: var(--primary-color, #275d46);
    color: #fff;
}

/* ---- Archive: grid ---- */
.seminar-archive .page-content {
    padding: 48px 0 80px;
}
.seminar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 992px) {
    .seminar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .seminar-grid { grid-template-columns: 1fr; }
}

.seminar-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
}

.seminar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}
.seminar-card:hover {
    box-shadow: 0 12px 32px rgba(2, 43, 34, 0.12);
    transform: translateY(-4px);
}
.seminar-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.seminar-card__thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f1a17;
    overflow: hidden;
}
.seminar-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.seminar-card__thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f2a22, #275d46);
}
.seminar-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #275d46);
}
.seminar-card__play svg { width: 24px; height: 24px; margin-left: 2px; }
.seminar-card__lock {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
    text-align: center;
}
.seminar-card__content { padding: 20px; }
.seminar-card__category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--primary-color, #275d46);
    background: rgba(39, 93, 70, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.seminar-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--secondary-color, #022b22);
    margin: 0 0 10px;
}
.seminar-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
}
.seminar-card__cta {
    font-weight: 700;
    color: var(--primary-color, #275d46);
    font-size: 14px;
}

/* ---- Single: hero ---- */
main.single-seminar {
    margin-top: calc(var(--header-h, 80px) + 8px);
    background: #fff;
}
body.admin-bar main.single-seminar {
    margin-top: calc(var(--header-h, 80px) + var(--adminbar-h, 32px) + 8px);
}
.seminar-hero {
    padding: 32px 0;
    text-align: center;
}
.seminar-hero__label {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--primary-color, #275d46);
    margin-bottom: 12px;
}
.seminar-hero__title {
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 800;
    color: var(--secondary-color, #022b22);
    line-height: 1.4;
    margin-bottom: 16px;
}
.seminar-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    font-size: 14px;
    color: #4b5563;
}
.seminar-hero__tag {
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px 14px;
    font-weight: 600;
    color: var(--primary-color, #275d46);
}

/* ---- Single: video area ---- */
.seminar-video-section { padding: 0 0 40px; }
.seminar-video-wrap {
    max-width: 860px;
    margin: 0 auto;
}
.seminar-video-embed {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 16px 40px rgba(2, 43, 34, 0.16);
}
.seminar-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.seminar-video-locked {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #0f1a17;
    box-shadow: 0 16px 40px rgba(2, 43, 34, 0.16);
    margin-bottom: 32px;
}
.seminar-video-locked__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) brightness(0.55);
    transform: scale(1.05);
}
.seminar-video-locked__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    text-align: center;
    padding: 24px;
}
.seminar-video-locked__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.seminar-video-locked__icon svg { width: 26px; height: 26px; }
.seminar-video-locked__text {
    font-size: 15px;
    font-weight: 600;
    max-width: 360px;
    line-height: 1.6;
}
.seminar-video-missing {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
}

/* ---- Single: gate form ---- */
.seminar-gate {
    max-width: 560px;
    margin: 0 auto;
    background: #f8faf9;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
}
.seminar-gate__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary-color, #022b22);
    margin: 0 0 8px;
    text-align: center;
}
.seminar-gate__lead {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}
.seminar-gate__form .form-group { margin-bottom: 20px; }
.seminar-gate__form .form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-gray, #343a40);
}
.seminar-gate__form .required-mark {
    color: #e74c3c;
    font-size: 11px;
    margin-left: 6px;
    font-weight: 700;
}
.seminar-gate__form .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}
.seminar-gate__form .form-control:focus {
    outline: none;
    border-color: var(--primary-color, #275d46);
    box-shadow: 0 0 0 3px rgba(39, 93, 70, 0.12);
}
.seminar-gate .privacy-agreement { margin-bottom: 20px; }
.seminar-gate .privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}
.seminar-gate .privacy-checkbox a { color: var(--primary-color, #275d46); }
.seminar-gate__form .btn-submit {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    background: var(--primary-color, #275d46);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    position: relative;
}
.seminar-gate__form .btn-submit:hover { background: var(--secondary-color, #022b22); }
.seminar-gate__form .btn-submit.is-loading { opacity: 0.7; pointer-events: none; }
.seminar-gate__form .btn-submit .spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: yb-seminar-spin 0.7s linear infinite;
}
.seminar-gate__form .btn-submit.is-loading .spinner { display: inline-block; }
@keyframes yb-seminar-spin { to { transform: rotate(360deg); } }
.seminar-gate__error {
    margin-top: 14px;
    color: #dc2626;
    font-size: 13px;
    text-align: center;
}
.seminar-gate--done {
    text-align: center;
    padding: 40px 24px;
}
.seminar-gate__thanks {
    font-weight: 700;
    color: var(--primary-color, #275d46);
    font-size: 16px;
}

/* ---- Single: description ---- */
.seminar-description {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 0 40px;
    color: #374151;
    line-height: 1.9;
}
.seminar-description__lead {
    font-size: 16px;
    margin-bottom: 24px;
}
.seminar-back {
    text-align: center;
    padding-bottom: 80px;
}
