.hero-video {
    position: relative;
    min-height: 75vh;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 6rem;
    padding-bottom: 6rem;
    color: white;
}
/* Users */
.role-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 1rem;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #ccc;
    font-size: 0.8rem;
    white-space: nowrap;
}



/* EVENT LIST */

.event-list {
    display: grid;
    gap: 2.5rem;
    padding-top: 5rem;
}

.event-card {
    display: grid;
    grid-template-columns: 70px 1fr 450px;
    gap: 1.5rem;
    align-items: start;
    border: 0;
    border-bottom: 1px solid #ddd;
    padding: 0 0 2rem 0;
}

.event-title a {
    color: #e10600 !important;   /* röd */
    text-decoration: none !important;
}

.event-title a:hover {
    text-decoration: underline !important;
}

.event-card-date {
    text-align: center;
    text-transform: uppercase;
}

.event-card-date span {
    display: block;
    font-size: 0.75rem;
}

.event-card-date strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
}

.event-card-content {
    padding: 0;
}

.event-card-time {
    margin: 0 0 0.4rem 0;
}

.event-card h2 {
    margin: 0 0 0.4rem 0;
}

.event-card-image {
    width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card-image img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    display: block;
}

.event-subinfo {
    display: block;
    margin-bottom: 0.3rem;
}

.event-organizer {
    margin-bottom: 0.2rem;
}

.event-attendance {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-card-excerpt {
    font-size: 0.9rem;
    color: #444;
}



/* EVENT TYPE LIST */
.event-type-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.event-type-card {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #ddd;
}

.event-type-card h2 {
    margin: 0 0 0.35rem 0;
}

.event-type-card p {
    margin: 0;
}

.event-type-button {
    display: block;
    padding: 0.6rem 1rem;
    border: 1px solid #333;
    border-radius: 6px;
    text-align: center;
    color: #111 !important;
    text-decoration: none !important;
}

.event-type-button:hover {
    background: #111;
    color: #fff !important;
}

.event-type-disabled {
    display: block;
    color: #555;
}

/* EVENT DETAIL */

.event-detail {
    max-width: 900px;
    margin: 0 auto;
}

.event-header-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-header-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.event-roles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-role-card {
    padding: 0.5rem;
}

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

.event-briefing h5 {
    font-weight: 700 !important;
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    
}

.event-briefing img {
    max-width: 640px;
    max-height: 480px;
    margin: 1rem 0;
}

.event-briefing figure.image img,
.event-briefing img {
    max-width: 640px !important;
    max-height: 480px !important;
    width: auto !important;
    height: auto !important;
    cursor: pointer;
}

.event-registrations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem 1rem;
}

.event-registration-card {
    padding: 0.25rem 0;
}

.event-registration-name {
    font-weight: 700;
    margin: 0;
}

.event-registration-details {
    font-size: 0.9rem;
    line-height: 1.2;
    margin-top: 2px;
}

.event-registration-card.is-unassigned .event-registration-name {
    color: #dc3545;
}

@media (max-width: 768px) {
    .event-registrations-grid {
        grid-template-columns: 1fr;
    }
}
/* EVENT META */

.event-meta {
    display: grid;
    gap: 0.25rem;
}

.event-meta p {
    margin: 0;
}

.event-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.briefing-content {
    line-height: 1.6;
}

figure {
    margin: 1rem 0;
}

figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 0.1rem;
    font-style: italic;
}

/* LINEUP - later use */

.flight-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.flight-color-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background-color: var(--flight-color, #cccccc);
    z-index: 2;
}

.flight-card .card-body {
    padding-left: 1.75rem;
}

.lineup-section {
    margin-top: 1.5rem;
}

.lineup-section h3 {
    margin-bottom: 0.1rem;
}

.lineup-rows {
    display: grid;
    gap: 0.25rem;
}

.lineup-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
}

.lineup-slot {
    font-weight: 700;
}

/* forms */
.form-select:focus,
.form-control:focus {
    border-color: #555 !important;
    box-shadow: 0 0 0 0.2rem rgba(80, 80, 80, 0.25) !important;
}

.site-footer {
    margin-top: 60px;
    background: #111;
    border-top: 1px solid #333;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
}

.footer-column {
    min-width: 0;
}

.footer-column h4 {
    margin-bottom: 15px;
    color: #a8a8a8;
}

.footer-column p,
.footer-column li,
.footer-column a {
    color: #aaa;
    text-decoration: none;
    line-height: 1.8;
}

.footer-column p {
    max-width: 320px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding: 20px;
}

#footer-quote {
    font-style: italic;
    color: #888;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-column p {
        max-width: none;
    }
}


/* THT EVENT DETAIL - BRIEFING LAYOUT */
.briefing-panel {
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.04);
}

.briefing-panel h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.briefing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.briefing-info-card {
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-left: 5px solid #212529;
    border-radius: 0.5rem;
    background: #ffffff;
    padding: 1rem;
}

.briefing-info-label {
    display: block;
    margin-bottom: 0.25rem;
    color: #555;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.briefing-info-value {
    display: block;
    color: #111;
    font-size: 1rem;
    font-weight: 800;
}

.briefing-empty {
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 0.5rem;
    background: #ffffff;
    padding: 0.9rem 1rem;
    color: #555;
}

.briefing-table th {
    width: 220px;
    color: #495057;
    white-space: nowrap;
}

.lineup-filters .lineup-filter.active,
.lineup-filter.active {
    color: #fff;
    background-color: #212529;
    border-color: #212529;
}

.lineup-flights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.lineup-flights-grid .flight-card {
    margin-bottom: 0 !important;
}

.flight-card {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-left: 7px solid var(--flight-color, #cccccc);
    border-radius: 0.75rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.04);
}

.flight-card:hover {
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.10);
}

.flight-color-bar {
    display: none;
}

.flight-card .card-body {
    padding-left: 1rem;
}

.roe-a {
    border-left-color: #198754;
}

.roe-b {
    border-left-color: #ffc107;
}

.roe-c {
    border-left-color: #dc3545;
}

.alr-low {
    border-left-color: #198754;
}

.alr-medium {
    border-left-color: #ffc107;
}

.alr-high {
    border-left-color: #dc3545;
}

.event-auth-navigation .briefing-info-value {
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}
.package-card {
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.04);
}

.package-card:hover {
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.10);
}

.event-packages .collapse.show,
.event-lineup .collapse.show {
    margin-top: 0.5rem;
}

.event-briefing-panel {
    background: #ffffff;
}

.briefing-content-box {
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 0.5rem;
    background: #f8f9fa;
    padding: 1rem;
}

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

    .briefing-table th {
        width: auto;
        white-space: normal;
    }
}
.training-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.training-module-card {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.training-module-card ol {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.training-module-card h4,
.training-module-card li,
.training-module-card strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 900px) {
    .training-module-grid {
        grid-template-columns: 1fr;
    }
}

.mastermeet-map {
    width: 100%;
    height: 360px;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    overflow: hidden;
}


@media (max-width: 768px) {

    .event-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .event-card-date {
        display: none;
    }

    .event-card-image {
        width: 100%;
        order: -1;
    }

    .event-card-image img {
        width: 100%;
        height: auto;
    }
}

/* THT EVENT FORM */

.event-form-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.event-form-card {
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.04);
}

.event-form-section {
    margin-bottom: 1.5rem;
}

.event-form-section:last-child {
    margin-bottom: 0;
}

.event-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.event-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.event-form-field {
    margin-bottom: 1rem;
}

.event-form-field:last-child {
    margin-bottom: 0;
}

.event-form-field label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-form-help {
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.25rem;
}

.event-form-wide {
    grid-column: 1 / -1;
}

.event-image-preview {
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 0.75rem;
}

.event-image-preview img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.event-image-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.event-image-remove {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid #dc3545;
    background: #ffffff;
    color: #dc3545;
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.event-image-remove:hover,
.event-image-remove.is-selected {
    background: #dc3545;
    color: #ffffff;
}

#id_event_summary {
    min-height: 90px;
}

#id_prerequisites {
    min-height: 130px;
}

@media (max-width: 768px) {
    .event-form-grid,
    .event-form-grid-3 {
        grid-template-columns: 1fr;
    }

    .event-form-wide {
        grid-column: auto;
    }
}