* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2430;
}

h1,
.login-card h1,
.paths-hero h1,
.home-overlay h1 {
    font-family: "Segoe UI", "Arial Black", Arial, sans-serif;
    font-weight: 800;
}

.topbar {
    background: #1e2638;
    color: #fff;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

.brand {
    font-size: 20px;
    font-weight: bold;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 28px;
    width: auto;
    display: block;
}

.topbar nav {
    display: flex;
    gap: 10px;
}

.topbar a {
    color: #d6e4ff;
    text-decoration: none;
    font-size: 14px;
}

.container {
    width: 100%;
    max-width: none;
    margin: 24px auto;
    padding: 0 clamp(12px, 2.5vw, 34px);
}

.footer {
    padding: 24px;
    text-align: center;
    color: #64748b;
}

.login-hero {
    min-height: 72vh;
    background: linear-gradient(120deg, #1f3f88 0%, #0ea5a6 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.login-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(10, 20, 40, 0.2);
    padding: 24px;
}

.login-card h1 {
    margin-top: 0;
    color: #00a887;
    text-align: center;
}

.subtitle {
    text-align: center;
    margin-bottom: 20px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label span {
    font-size: 13px;
    color: #374151;
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

.btn {
    border: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: auto;
    border-radius: 999px;
    padding: 10px 18px;
}

.btn-primary {
    background: #00a887;
    color: #fff;
}

.btn-secondary {
    background: #edf2fa;
    color: #1f2f48;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.card {
    background: #fff;
    border: 1px solid #e5e9f1;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    padding: 10px;
    font-size: 14px;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.grid-four {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
}

.slot-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 6px;
}

.slot-edit-row {
    flex-direction: column;
    align-items: stretch;
}

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.alert.is-dismissing {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.alert-message {
    flex: 1;
}

.alert-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.75;
}

.alert-close:hover {
    opacity: 1;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.login-hints p {
    margin: 6px 0;
    font-size: 13px;
    color: #334155;
}

.login-overlay-page {
    position: relative;
    min-height: calc(100vh - 180px);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.login-backdrop-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px);
    transform: scale(1.06);
}

.login-backdrop-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(1px);
}

.login-backdrop-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7%;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    padding: 0 24px;
}

.login-backdrop-content h2 {
    margin: 0 0 8px;
    font-size: 56px;
}

.login-backdrop-content p {
    margin: 0 auto 14px;
    max-width: 1100px;
    font-size: 22px;
}

.login-backdrop-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 1320px;
    margin: 0 auto;
    opacity: 0.55;
}

.mini-card {
    height: 130px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(148, 163, 184, 0.18));
}

.login-card-overlay {
    position: relative;
    z-index: 2;
    max-width: 620px;
    width: min(92vw, 620px);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.38);
}

.home-video {
    width: 100%;
    aspect-ratio: 2560 / 800;
    object-fit: cover;
    display: block;
    border-radius: 0;
    border: 0;
    background: #0f172a;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.2);
}

.hero-full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.home-hero-banner {
    position: relative;
    margin-top: -24px;
}

.home-overlay {
    position: absolute;
    left: 3%;
    top: 33%;
    color: #fff;
    max-width: 420px;
}

.home-overlay h1 {
    margin: 0 0 8px;
    font-size: 56px;
    line-height: 0.95;
}

.home-overlay p {
    margin: 0;
    font-size: 40px;
}

.home-copy {
    text-align: center;
    max-width: 960px;
    margin: 26px auto 8px;
}

.home-copy h2 {
    margin: 0 0 10px;
    font-size: 60px;
}

.home-copy p {
    margin: 5px auto;
    color: #4b5563;
    font-size: 25px;
    line-height: 1.35;
}

.events-section h2 {
    text-transform: uppercase;
    font-size: 43px;
    margin: 22px 0 14px;
    color: #121826;
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 14px;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e9f1;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.event-cover {
    height: 112px;
    border-bottom: 1px solid #d8dfeb;
    background-size: cover;
    background-position: center;
}

.cover-1 {
    background-image: url('/media/event-bg?i=1');
}

.cover-2 {
    background-image: url('/media/event-bg?i=2');
}

.cover-3 {
    background-image: url('/media/event-bg?i=3');
}

.cover-4 {
    background-image: url('/media/event-bg?i=4');
}

.cover-5 {
    background-image: url('/media/event-bg?i=5');
}

.cover-6 {
    background-image: url('/media/event-bg?i=6');
}

.cover-7 {
    background-image: url('/media/event-bg?i=7');
}

.cover-8 {
    background-image: url('/media/event-bg?i=8');
}

.past-card .event-cover {
    filter: grayscale(1);
}

.event-body {
    padding: 14px;
}

.event-tag {
    font-size: 12px;
    text-transform: uppercase;
    color: #2563eb;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.event-body h3 {
    margin: 6px 0;
    font-size: 18px;
    line-height: 1.2;
}

.event-date {
    margin: 0 0 7px;
    color: #475569;
    font-size: 13px;
}

.event-desc {
    margin: 0 0 10px;
    color: #273449;
    font-size: 13px;
    min-height: 42px;
}

.event-meta {
    margin: 0 0 10px;
    font-size: 13px;
}

.paths-hero {
    text-align: center;
}

.paths-hero h1 {
    margin-top: 2px;
    margin-bottom: 8px;
    font-size: 45px;
}

.paths-subtitle {
    font-size: 25px;
    font-weight: 700;
    margin: 0 0 8px;
}

.agenda h2 {
    text-align: center;
    margin-top: 0;
    font-size: 35px;
}

.paths-select-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 20px;
    background: #fefce8;
    border-color: #fbbf24;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.schedule-head {
    font-weight: 700;
    padding: 12px 8px;
    font-size: 15px;
    border-bottom: 2px solid #0f172a;
    text-align: center;
    color: #00a887;
}

.schedule-head.time-col {
    color: #1e293b;
}

.schedule-head.common-col {
    color: #475569;
}

.schedule-head.path-col,
.schedule-head.common-col {
    text-align: center;
}

.schedule-time {
    font-weight: 700;
    padding: 10px 8px;
    font-size: 14px;
    border-bottom: 1px solid #e5e9f1;
    color: #dc2626;
}

.schedule-cell {
    padding: 10px 8px;
    font-size: 13px;
    border-bottom: 1px solid #e5e9f1;
}

.common-cell {
    background: #f8fafc;
}

.path-cell {
    background: #f0fdf4;
}

.common-full-row {
    font-weight: 600;
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
    gap: 14px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 16px;
}

.contact-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e9f1;
    border-radius: 12px;
    padding: 16px;
}

.contact-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.contact-info h3 {
    margin: 0 0 8px;
    font-size: 30px;
}

.contact-role {
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 16px;
}

.contact-line {
    margin: 6px 0;
    font-size: 18px;
}

.webinar-replay {
    overflow: hidden;
    padding: 0;
}

.replay-cover {
    height: 260px;
    background-image: url('/media/event-bg?i=3');
    background-size: cover;
    background-position: center;
}

.replay-body {
    padding: 18px;
}

.replay-body h2 {
    margin: 8px 0;
    font-size: 30px;
}

.replay-placeholder {
    margin-top: 14px;
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8fafc;
}

.webinar-large {
    padding: 0;
    overflow: hidden;
}

.webinar-large-hero {
    min-height: 360px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.webinar-large-overlay {
    position: absolute;
    left: 24px;
    bottom: 24px;
    background: rgba(255, 255, 255, 0.74);
    border-radius: 8px;
    padding: 14px 16px;
    max-width: 720px;
}

.webinar-large-overlay h2 {
    margin: 0;
    font-size: 54px;
    line-height: 1;
}

.webinar-large-overlay p {
    margin: 6px 0 0;
    font-size: 28px;
}

.webinar-large-content {
    text-align: center;
    padding: 20px 22px 28px;
}

.webinar-large-content h3 {
    margin: 4px 0 8px;
    font-size: 36px;
}

.webinar-large-content p {
    margin: 0 auto 12px;
    max-width: 1200px;
    font-size: 20px;
    color: #334155;
}

.webinar-large-actions {
    justify-content: center;
}

@media (max-width: 1024px) {
    .home-overlay h1 {
        font-size: 42px;
    }

    .home-copy h2 {
        font-size: 42px;
    }
}

@media (max-width: 840px) {
    .events-grid,
    .paths-grid,
    .contacts-grid,
    .grid-two,
    .grid-four {
        grid-template-columns: 1fr;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-photo {
        height: 220px;
    }

    .home-overlay {
        top: 20%;
    }

    .home-overlay h1 {
        font-size: 30px;
    }

    .home-overlay p {
        font-size: 20px;
    }

    .home-copy h2 {
        font-size: 34px;
    }

    .login-backdrop-content h2 {
        font-size: 34px;
    }

    .login-backdrop-content p {
        font-size: 16px;
    }

    .login-backdrop-cards {
        grid-template-columns: 1fr;
    }

    .webinar-large-overlay h2 {
        font-size: 36px;
    }

    .webinar-large-overlay p {
        font-size: 20px;
    }

    .webinar-large-content h3 {
        font-size: 26px;
    }

    .webinar-large-content p {
        font-size: 16px;
    }
}
