/* ══════════════════════════════════════════════════════════════════
   PAGES — Hero, Programs Detail, Reviews, About, Tools, Sponsor, Footer
   ══════════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    .hero::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0; right: 0;
        height: 50px;
        background: var(--cream);
        clip-path: ellipse(55% 100% at 50% 100%);
    }

.hero-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight { color: var(--gold); }

.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Program Detail ──────────────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

    .back-link:hover { color: var(--navy); }

.program-detail-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

.program-thumbnail {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.program-detail-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.program-detail-info p {
    color: var(--text-muted);
    margin: 0.75rem 0;
    line-height: 1.8;
}

.program-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.download-count {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* ── Release Notes ───────────────────────────────────────────────── */
.release-notes { margin-top: 2rem; }

    .release-notes h2 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--navy);
    }

.release-note-card {
    background: white;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.release-note-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.release-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Reviews ─────────────────────────────────────────────────────── */
.review-section { margin-top: 2.5rem; }

    .review-section h2 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--navy);
    }

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.review-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-card);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.review-author  { font-weight: 600; color: var(--navy); }
.review-stars   { color: var(--gold); letter-spacing: 1px; }
.review-date    { color: var(--text-muted); font-size: 0.8rem; margin-left: auto; }
.review-comment { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

.review-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

    .review-form h3 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 1.25rem;
        color: var(--navy);
    }

/* ── About ───────────────────────────────────────────────────────── */
.about-section {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.avatar-img {
    width: 100%;
    border-radius: 50%;
    border: 3px solid var(--gold);
}

.dev-name  { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.dev-title { color: var(--steel); font-weight: 500; margin-bottom: 1rem; font-size: 0.95rem; }
.dev-bio   { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; font-size: 0.95rem; }

.dev-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.skill-tag {
    padding: 0.25rem 0.65rem;
    background: rgba(26,50,99,0.08);
    border: 1px solid rgba(26,50,99,0.15);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--navy);
    font-weight: 500;
}

/* ── Tools Page ──────────────────────────────────────────────────── */
.coming-soon-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(250,185,91,0.15);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

    .coming-soon-banner i { color: var(--gold); font-size: 1.1rem; }

.tool-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

    .tool-card.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
        filter: grayscale(30%);
    }

.tool-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(26,50,99,0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--navy);
    flex-shrink: 0;
}

.tool-card-body  { flex: 1; }
.tool-card-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.tool-card-desc  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.75rem; }

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: rgba(250,185,91,0.15);
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--navy);
    font-weight: 600;
}

/* ── Sponsor Section ─────────────────────────────────────────────── */
.sponsor-section {
    background: var(--navy-light);
    padding: 1.25rem 0;
    overflow: hidden;
    width: 100%;
}

.sponsor-header  { text-align: center; margin-bottom: 1rem; }

.sponsor-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sponsor-track-wrapper {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.sponsor-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: scroll-left 50s linear infinite;
    width: max-content;
    padding: 0 2rem;
}

    .sponsor-track:hover { animation-play-state: paused; }

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sponsor-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--transition);
}

    .sponsor-item:hover .sponsor-img { opacity: 1; }

.sponsor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    color: #ffffff !important;
    font-size: 0.75rem;
    height: 100px;
    width: 120px;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
}

    .sponsor-placeholder i    { font-size: 28px; color: #ffffff !important; }
    .sponsor-placeholder span { color: #ffffff !important; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    padding: 1.5rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.825rem;
}

.footer-links { display: flex; gap: 1.25rem; }

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    transition: var(--transition);
}

    .footer-link:hover         { color: var(--gold); }
    .footer-link .bi-youtube   { color: #FF0000; }
    .footer-link .bi-facebook  { color: #1877F2; }

    .footer-link:hover .bi-youtube,
    .footer-link:hover .bi-facebook { color: var(--gold); }

/* ── Responsive Pages ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .program-detail-header { grid-template-columns: 1fr; }

    .about-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .avatar-img    { width: 130px; }
    .dev-skills    { justify-content: center; }
    .hero-buttons  { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════════════════════════════
   ACCESS TIER — Notice, Lock, Owned badges
   ══════════════════════════════════════════════════════════════════ */

.access-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26,50,99,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    width: 100%;
}

    .access-notice a {
        color: var(--navy);
        font-weight: 700;
        text-decoration: underline;
        margin: 0 0.2rem;
    }

    .access-notice i { color: var(--navy); flex-shrink: 0; }

.access-notice-upgrade {
    background: rgba(250,185,91,0.1);
    border-color: var(--gold);
    color: var(--navy);
}

    .access-notice-upgrade i { color: var(--gold); }

.access-badge-owned {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    color: #16a34a;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Lock badge บน card */
.card-lock-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.55);
    color: white;
    border-radius: 999px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* ══════════════════════════════════════════════════════════════════
   COURSE VIDEO — iframe + EP buttons
   ══════════════════════════════════════════════════════════════════ */

.course-video-section {
    margin-top: 2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

    .course-video-section h2 {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 1rem;
    }

.episode-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.ep-btn {
    padding: 0.45rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

    .ep-btn:hover {
        background: var(--navy);
        color: white;
        border-color: var(--navy);
    }

    .ep-btn.ep-btn-active {
        background: var(--navy);
        color: var(--gold);
        border-color: var(--navy);
    }

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #000;
}

.course-iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.ep-title {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════════
   PRICING PAGE
   ══════════════════════════════════════════════════════════════════ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: var(--transition);
}

    .pricing-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(26,50,99,0.15);
    }

.pricing-card-popular {
    border-color: var(--gold);
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(250,185,91,0.2);
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.pricing-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-saving {
    font-size: 0.8rem;
    color: #16a34a;
    font-weight: 600;
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

    .pricing-features li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        color: var(--text);
    }

        .pricing-features li i.bi-check-circle-fill { color: #16a34a; flex-shrink: 0; }
        .pricing-features li i.bi-x-circle          { color: #d1d5db; flex-shrink: 0; }

    .pricing-features .feature-disabled {
        color: var(--text-muted);
        opacity: 0.6;
    }

.pricing-action { margin-top: auto; }

.btn-outline-current {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    border: 2px solid #16a34a;
    border-radius: var(--radius-sm);
    background: #f0fdf4;
    color: #16a34a;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: default;
    font-family: inherit;
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

    .faq-item h4 {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 0.4rem;
    }

    .faq-item p {
        font-size: 0.875rem;
        color: var(--text-muted);
        line-height: 1.6;
    }

@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
}
