/* === OneSeminar — Modern Design === */

/* ========== Scroll to Top Button ========== */
#scrollTopBtn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #c65d4f;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 9999;
}
#scrollTopBtn.show {
    opacity: 0.85;
    visibility: visible;
}
#scrollTopBtn:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* ========== Base & Typography ========== */
html {
    min-height: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
    background-color: #312d2a;
}
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f4f4ec;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
}
h1:focus, h1:focus-visible,
h2:focus, h2:focus-visible,
h3:focus, h3:focus-visible,
div:focus, div:focus-visible {
    outline: none;
    box-shadow: none;
}

a { color: #c65d4f; text-decoration: none; transition: color 0.2s; }
a:hover { color: #de7c6f; }

/* ========== Theme Buttons ========== */
.btn-primary {
    color: #fff;
    background-color: #c65d4f;
    border-color: #c65d4f;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(198, 93, 79, 0.3);
}
.btn-primary:hover {
    color: #fff;
    background-color: #de7c6f;
    border-color: #de7c6f;
    box-shadow: 0 4px 12px rgba(198, 93, 79, 0.35);
    transform: translateY(-1px);
}
.btn-primary:focus, .btn-primary.focus {
    color: #fff;
    background-color: #b35b4f;
    border-color: #b35b4f;
    box-shadow: 0 0 0 0.2rem rgba(198, 93, 79, 0.4);
}
.btn-primary:disabled, .btn-primary.disabled {
    color: #fff;
    background-color: #d4a099;
    border-color: #d4a099;
    box-shadow: none;
}
.btn-primary:not(:disabled):not(.disabled):active {
    color: #fff;
    background-color: #9c4f44;
    border-color: #9c4f44;
    transform: translateY(0);
}

/* ========== Navbar ========== */
.navbar.bg-dark, .bg-dark {
    background-color: #c65d4f !important;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 0.6rem 0;
    transition: box-shadow 0.3s;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-item.active .nav-link {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.18);
}

/* ========== Cards ========== */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}
.card:hover {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.12);
}
.card-body {
    padding: 2rem;
}

/* ========== Sticky Footer ========== */
.footer {
    width: 100%;
    min-height: 70px;
    background-color: #312d2a;
    margin-top: auto;
}
.footer .container { padding: 0 15px; }
.footer .text-muted { margin: 20px 0; color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; }

/* ========== Main ========== */
.main {
    flex: 1;
    padding-top: 56px;
    overflow-x: hidden;
}

/* ========== Page Title ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.2rem 0;
}
.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.seminar-badge {
    display: inline-block;
    margin: 10px 0 0 15px;
    padding: 4px 14px;
    background: rgba(198, 93, 79, 0.1);
    color: #c65d4f;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ========== Content Area ========== */
.main-content {
    max-width: 100%;
    text-align: center;
    padding-bottom: 3rem;
}
.main-content hr {
    border-color: #c65d4f;
    margin-top: -5px;
    width: 80%;
}

/* ========== Content Box ========== */
.box {
    padding: 1rem 1.2rem 1rem 2.6rem;
    margin: 0 auto 0.7rem;
    color: #333;
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    position: relative;
}
.box::before {
    content: '';
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 9px solid #c65d4f;
    transition: border-left-color 0.2s ease, transform 0.2s ease;
}
.box:hover {
    background: #fdfcfa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}
.box:hover::before {
    border-left-color: #e07a6e;
    transform: translateY(-50%) scale(1.15);
}

/* ========== Subject Link ========== */
.subject {
    color: #4285f3;
    font-weight: 500;
    transition: color 0.2s;
}
.subject:hover {
    color: #c65d4f;
    text-decoration: underline;
}
.body_text {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: left;
    line-height: 1.7;
}

/* ========== Industry Dropdown ========== */
.industry {
    overflow: hidden;
    width: 40%;
    margin: 1em auto;
    text-align: center;
    margin-top: 0;
}
.industry select {
    width: 100%;
    padding-right: 1em;
    cursor: pointer;
    text-indent: 0.01px;
    text-overflow: ellipsis;
    border: none;
    outline: none;
    background: transparent;
    background-image: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.industry select::-ms-expand { display: none; }
.industry.industry2 {
    position: relative;
    border-radius: 10px;
    border: 2px solid #c65d4f;
    background: #fff;
    box-shadow: 0 2px 8px rgba(199, 93, 79, 0.12);
    transition: box-shadow 0.2s;
}
.industry.industry2:hover {
    box-shadow: 0 3px 14px rgba(199, 93, 79, 0.2);
}
.industry.industry2::before {
    position: absolute;
    top: 0.8em;
    right: 0.9em;
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #c65d4f;
    pointer-events: none;
}
.industry.industry2 select {
    padding: 10px 38px 10px 14px;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

/* ========== Popup / Modal ========== */
.popup-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.popup-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
    cursor: pointer;
}
.popup-content {
    position: relative;
    width: 90%;
    max-width: 680px;
    max-height: 90%;
    padding: 2rem 1.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
    background-color: #fff;
    z-index: 2;
    overflow-y: auto;
    text-align: left;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}
.popup-close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: #666;
    transition: all 0.2s ease;
}
.popup-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* ========== Post Image Button ========== */
.post-img-btn {
    transition: transform 0.2s ease, filter 0.2s ease;
}
.post-img-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* ========== Form Controls ========== */
.form-control {
    border-radius: 10px;
    border: 1.5px solid #ddd;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    border-color: #c65d4f;
    box-shadow: 0 0 0 3px rgba(198, 93, 79, 0.15);
}
.form-group span, .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 4px;
    display: inline-block;
}

/* ========== Empty State ========== */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: #999;
    font-size: 1rem;
}

/* ========== Loading Spinner ========== */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 3rem;
}
.loading-spinner::after {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid #eee;
    border-top-color: #c65d4f;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Auth Message ========== */
.auth-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
}
.auth-message .auth-icon {
    font-size: 3rem;
    color: #c65d4f;
    margin-bottom: 1rem;
}
.auth-message p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}
.auth-message a.btn {
    text-decoration: none;
}

/* ========== Pass/Fail Badge ========== */
.badge-pass {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-pass.pass { background: #fde8e6; color: #c0392b; }
.badge-pass.fail { background: #e8f0fe; color: #2979ff; }

/* ========== Alert area ========== */
#alertarea { color: #c0392b; font-weight: 500; }

/* ========== Responsive ========== */
@media (max-width: 1080px) {
    .industry { width: 50%; }
}
@media (max-width: 768px) {
    .industry { width: 65%; }
    .popup-content { width: 90%; max-height: 85%; padding: 1.5rem 1rem; }
    .box { margin-left: 2%; margin-right: 2%; }
    .page-header h1 { font-size: 1.5rem; }
    .card-body { padding: 1.5rem; }
}
@media (max-width: 480px) {
    .industry { width: 85%; }
    .page-header h1 { font-size: 1.3rem; }
    .popup-content { width: 92%; max-height: 85%; padding: 1.2rem 0.8rem; }
    .row.justify-content-center > [class*="col-"] { flex: 0 0 100%; max-width: 95%; }
    .card-body { padding: 1.2rem; }
    .navbar-brand { font-size: 1.1rem; }
}
@media (max-width: 320px) {
    .industry { width: 92%; }
    .page-header h1 { font-size: 1.1rem; }
}

/* ========== Blazor Error ========== */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 8px;
}
.blazor-error-boundary::after { content: "An error has occurred."; }

/* ========== AI Consult Button ========== */
.es-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #c65d4f, #e07a6e);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(198, 93, 79, 0.3);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.es-ai-btn:hover {
    background: linear-gradient(135deg, #b35247, #c65d4f);
    box-shadow: 0 5px 18px rgba(198, 93, 79, 0.4);
    transform: translateY(-1px);
}
.es-ai-btn i {
    font-size: 0.95rem;
}

/* ================================================================
   LANDING PAGE (Home.razor)
   ================================================================ */

/* ---------- Scroll Reveal Base ---------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Hero ---------- */
.lp-hero {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: clamp(2rem, 10vh, 6rem);
    text-align: center;
    overflow: hidden;
    margin-top: -0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 3rem;
}
.lp-hero-bg {
    position: absolute;
    inset: 0;
    background: #f4f4ec;
    z-index: 0;
}
.lp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    animation: heroFadeIn 0.6s ease-out;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lp-hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 0.5rem;
    animation: heroFadeIn 0.6s ease-out 0.1s both;
}
.lp-hero-logotext {
    font-size: 2.4rem;
    font-weight: 800;
    color: #c65d4f;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}
.lp-hero-title {
    color: #312d2a;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}
.lp-hero-subtitle {
    color: #555;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Hero CTA Button */
.lp-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    background: #c65d4f;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(198, 93, 79, 0.3);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.lp-btn-hero:hover {
    color: #fff;
    background: #b35247;
    box-shadow: 0 8px 30px rgba(198, 93, 79, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}
.lp-btn-hero i {
    transition: transform 0.3s ease;
}
.lp-btn-hero:hover i {
    transform: translateX(4px);
}

/* Scroll Indicator */
/* Scroll Indicator */
.lp-scroll-indicator {
    position: relative;
    margin: 2rem auto 0;
    width: fit-content;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: heroFadeIn 0.6s ease-out 0.3s both;
}
.lp-scroll-indicator span {
    color: rgba(0, 0, 0, 0.3);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.lp-scroll-arrow {
    width: 1px;
    height: 30px;
    background: rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}
.lp-scroll-arrow::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    animation: scrollArrow 1.5s ease-in-out infinite;
}
@keyframes scrollArrow {
    0%   { top: -100%; }
    50%  { top: 0; }
    100% { top: 100%; }
}

/* ---------- Sections Common ---------- */
.lp-section {
    padding: 5rem 1.5rem;
}
.lp-section-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.lp-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c65d4f;
    background: rgba(198, 93, 79, 0.08);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.lp-section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #312d2a;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}
.lp-section-desc {
    font-size: 1.05rem;
    color: #777;
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* ---------- Pain Points ---------- */
.lp-section-pain {
    background: #fff;
}
.lp-pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.lp-pain-card {
    background: #faf9f6;
    border-radius: 20px;
    padding: 2.5rem 1.8rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}
.lp-pain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.lp-pain-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c65d4f;
    border-radius: 18px;
    font-size: 1.5rem;
    color: #fff;
}
.lp-pain-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.7rem;
}
.lp-pain-card p {
    font-size: 0.92rem;
    color: #888;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Solution ---------- */
.lp-section-solution {
    background: #f4f4ec;
}
.lp-solution-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.lp-solution-step {
    text-align: center;
    flex: 1;
    min-width: 140px;
    max-width: 220px;
}
.lp-solution-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c65d4f;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(198, 93, 79, 0.3);
}
.lp-solution-step p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    margin: 0;
}
.lp-solution-arrow {
    color: #c65d4f;
    font-size: 1.2rem;
    opacity: 0.5;
}

/* ---------- Features ---------- */
.lp-section-features {
    background: #fff;
}
.lp-feature-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    text-align: left;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.lp-feature-row:last-child {
    border-bottom: none;
}
.lp-feature-reverse {
    flex-direction: row-reverse;
    text-align: right;
}
.lp-feature-icon-box {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(198, 93, 79, 0.08), rgba(198, 93, 79, 0.15));
    border-radius: 22px;
    font-size: 1.8rem;
    color: #c65d4f;
    transition: all 0.3s ease;
}
.lp-feature-row:hover .lp-feature-icon-box {
    background: #c65d4f;
    color: #fff;
    transform: scale(1.05);
}
.lp-feature-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.4rem;
}
.lp-feature-text p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.7;
    margin: 0;
}

/* ---------- CTA ---------- */
.lp-section-cta {
    background: #2c3e50;
    text-align: center;
}
.lp-section-cta h2 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
}
.lp-section-cta p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}
.lp-cta-note {
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

/* Remove footer gap on landing page */
.lp-hero ~ .lp-section:last-of-type {
    margin-bottom: 0;
}

/* ---------- LP Responsive ---------- */
@media (max-width: 768px) {
    .lp-hero { min-height: auto; padding: 2rem 1rem 2rem; }
    .lp-section { padding: 3.5rem 1rem; }
    .lp-pain-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .lp-feature-row,
    .lp-feature-reverse {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .lp-feature-icon-box { width: 64px; height: 64px; font-size: 1.4rem; border-radius: 18px; }
    .lp-solution-arrow { display: none; }
    .lp-solution-visual { gap: 2rem; }
}
@media (max-width: 480px) {
    .lp-hero-title { font-size: 1.8rem; }
    .lp-btn-hero { padding: 0.85rem 1.8rem; font-size: 0.95rem; }
    .lp-pain-card { padding: 1.8rem 1.2rem; }
}
