.portal-events-page {
    background: #f8fafc;
    color: #111827;
    padding: 2rem 0 4rem;
}

.portal-events-container {
    margin: 0 auto;
    max-width: 1120px;
    padding: 0 1rem;
}

.portal-events-breadcrumb {
    align-items: center;
    color: #9ca3af;
    display: flex;
    font-size: .85rem;
    font-weight: 700;
    gap: .35rem;
}

.portal-events-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
}

.portal-events-breadcrumb span {
    color: #64748b;
}

.portal-events-title {
    color: #111827;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
}

.portal-events-subtitle {
    color: #6b7280;
    font-size: 1.05rem;
    font-weight: 500;
}

.portal-events-action {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    font-weight: 800;
    min-height: 44px;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
}

.portal-events-filter {
    border-radius: 16px;
}

.portal-events-search .input-group-text,
.portal-events-search .form-control,
.portal-events-filter .form-select,
.portal-events-filter .btn {
    min-height: 52px;
}

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

.portal-event-card {
    border-radius: 16px;
}

.portal-event-cover {
    height: 190px;
}

.portal-event-cover img {
    background: #e5e7eb;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.portal-event-type {
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 900;
    left: 1rem;
    letter-spacing: .04em;
    padding: .5rem .65rem;
    position: absolute;
    top: 1rem;
}

.portal-event-status {
    border-radius: 10px;
    bottom: 1rem;
    font-weight: 900;
    left: 1rem;
    padding: .5rem .75rem;
    position: absolute;
}

.portal-event-category {
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.portal-event-name {
    color: #111827;
    font-weight: 900;
    line-height: 1.2;
}

.portal-event-meta {
    color: #64748b;
    font-size: .95rem;
    font-weight: 700;
}

.portal-event-meta i {
    color: #9ca3af;
    margin-right: .45rem;
}

.portal-event-avatar {
    align-items: center;
    background: #dbeafe;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #0f172a;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    margin-right: -7px;
    width: 28px;
}

.portal-event-avatar:nth-child(2) {
    background: #dcfce7;
}

.portal-event-avatar-more {
    background: #e5e7eb;
    color: #64748b;
    margin-left: .35rem;
    margin-right: 0;
}

.portal-event-manage {
    align-items: center;
    color: var(--portal-primary, #10b981);
    display: inline-flex;
    font-size: .95rem;
    font-weight: 900;
    gap: .25rem;
    text-decoration: none;
    white-space: nowrap;
}

.portal-event-new-card {
    align-items: center;
    border: 2px dashed #e5e7eb;
    border-radius: 16px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    justify-content: center;
    min-height: 340px;
    padding: 2rem;
    text-align: center;
}

.portal-event-new-card:hover {
    border-color: rgba(16, 185, 129, .45);
    color: var(--portal-primary, #10b981);
}

.portal-event-new-card i {
    font-size: 2rem;
}

.portal-event-new-card strong {
    color: inherit;
    font-size: 1.1rem;
}

.portal-events-sidebar {
    position: sticky;
    top: 96px;
}

.portal-events-calendar,
.portal-events-upcoming {
    border-radius: 16px;
}

.portal-events-calendar-grid {
    display: grid;
    gap: .45rem;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-bottom: .65rem;
    text-align: center;
}

.portal-events-calendar-head {
    color: #9ca3af;
    font-size: .72rem;
    font-weight: 900;
}

.portal-events-calendar-day {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: #475569;
    display: inline-flex;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    position: relative;
}

.portal-events-calendar-day:not(:disabled) {
    cursor: pointer;
}

.portal-events-calendar-day:disabled {
    opacity: 1;
}

.portal-events-calendar-day:focus-visible {
    outline: 2px solid var(--portal-primary, #10b981);
    outline-offset: 2px;
}

.portal-events-calendar-day.is-muted {
    color: #cbd5e1;
}

.portal-events-calendar-day.has-event {
    background: rgba(16, 185, 129, .08);
    color: var(--portal-primary, #10b981);
}

.portal-events-calendar-day.has-event::after {
    background: var(--portal-primary, #10b981);
    border-radius: 999px;
    bottom: 4px;
    content: "";
    height: 4px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 4px;
}

.portal-events-calendar-day.is-selected {
    background: var(--portal-primary, #10b981);
    color: #fff;
}

.portal-events-calendar-day.is-selected::after {
    background: #fff;
}

.portal-events-capacity > div {
    background: linear-gradient(135deg, #10b981, #0ea66f);
    box-shadow: 0 18px 42px rgba(16, 185, 129, .22);
}

.portal-events-capacity > div::after {
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    bottom: -48px;
    content: "";
    height: 120px;
    position: absolute;
    right: -28px;
    width: 120px;
}

.portal-events-capacity-value {
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1;
}

.portal-events-capacity-progress {
    background: rgba(255, 255, 255, .25);
    border-radius: 999px;
    height: 8px;
}

.portal-events-upcoming-date {
    align-items: center;
    background: #eef2ff;
    border-radius: 12px;
    color: #2563eb;
    display: inline-flex;
    flex: 0 0 48px;
    flex-direction: column;
    font-weight: 900;
    height: 48px;
    justify-content: center;
    line-height: 1;
}

.portal-events-upcoming-date small {
    font-size: .62rem;
    margin-top: .25rem;
}

.portal-events-empty-state {
    border-radius: 16px;
}

.portal-event-detail-page {
    margin-top: calc(-1 * var(--portal-nav-height, 72px));
}

.portal-event-detail-hero {
    background-position: center;
    background-size: cover;
    color: #fff;
    min-height: 430px;
    padding-top: var(--portal-nav-height, 72px);
    position: relative;
}

.portal-event-detail-hero::before {
    background: linear-gradient(90deg, rgba(15, 23, 42, .86), rgba(15, 23, 42, .54), rgba(15, 23, 42, .82));
    content: "";
    inset: 0;
    position: absolute;
}

.portal-event-detail-hero-content {
    padding: 8.5rem 0 4.5rem;
    position: relative;
    z-index: 1;
}

.portal-event-detail-title {
    font-size: clamp(2.15rem, 5vw, 4.25rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.02;
    max-width: 760px;
}

.portal-event-detail-meta {
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
}

.portal-event-detail-meta span {
    align-items: center;
    display: inline-flex;
    gap: .4rem;
}

.portal-event-detail-meta i {
    color: var(--portal-primary, #10b981);
}

.portal-event-detail-share {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
    font-weight: 800;
}

.portal-event-detail-register {
    box-shadow: 0 14px 32px rgba(16, 185, 129, .28);
    font-weight: 900;
}

.portal-event-detail-stats {
    margin-top: -38px;
    position: relative;
    z-index: 2;
}

.portal-event-detail-stat {
    border-radius: 16px;
}

.portal-event-detail-stat .card-body {
    min-height: 92px;
}

.portal-event-detail-stat-icon {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    flex: 0 0 54px;
    font-size: 1.45rem;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.portal-event-detail-stat-label {
    color: #94a3b8;
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.portal-event-detail-stat strong {
    color: #111827;
    display: inline-block;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    margin-right: .35rem;
}

.portal-event-detail-content {
    padding-top: 2.5rem;
}

.portal-event-detail-card,
.portal-event-detail-register-card {
    border-radius: 22px;
}

.portal-event-detail-register-card {
    border-top: 5px solid var(--portal-primary, #10b981) !important;
}

.portal-event-detail-sidebar {
    position: sticky;
    top: 96px;
}

.portal-event-detail-price {
    color: #111827;
    font-size: 1.75rem;
    font-weight: 900;
}

.portal-event-detail-description {
    font-size: 1rem;
    line-height: 1.8;
}

.portal-event-detail-info-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
}

.portal-event-detail-info-box span {
    color: #94a3b8;
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    margin-bottom: .45rem;
    text-transform: uppercase;
}

.portal-event-detail-info-box strong {
    color: #111827;
    display: block;
    font-weight: 900;
}

.portal-event-location-map {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border: 1px solid #dde7f0;
    border-radius: 18px;
    background: #edf3f7;
}

.portal-event-location-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.portal-event-location-address {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 15px 17px;
    border: 1px solid #dce8e1;
    border-radius: 14px;
    background: #f3fbf6;
}

.portal-event-location-address__icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 22px;
}

.portal-event-location-address strong,
.portal-event-location-address span {
    display: block;
}

.portal-event-location-address strong {
    color: #172033;
    font-weight: 800;
}

.portal-event-location-address div > span {
    color: #6f8295;
    font-size: .875rem;
}

.portal-event-location-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 190px;
    padding: 24px;
    border: 1px dashed #cbd8e4;
    border-radius: 18px;
    background: #f8fafc;
    color: #8293a3;
    text-align: left;
}

.portal-event-location-empty > i {
    font-size: 32px;
}

.portal-event-location-empty strong,
.portal-event-location-empty span {
    display: block;
}

.portal-event-location-empty strong {
    color: #526277;
}

@media (max-width: 575.98px) {
    .portal-event-location-map {
        min-height: 250px;
    }
}

.portal-event-detail-attendees {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.portal-event-detail-attendee {
    display: inline-flex;
}

.portal-event-detail-chart-label {
    color: #64748b;
    font-weight: 800;
    margin-bottom: 1rem;
}

.portal-event-detail-chart svg {
    display: block;
    height: auto;
    max-width: 100%;
}

.portal-event-detail-chart .grid line {
    stroke: #e7eef5;
    stroke-width: 1;
}

.portal-event-detail-chart .area {
    fill: url("#eventChartFill");
}

.portal-event-detail-chart .line {
    fill: none;
    stroke: var(--portal-primary, #10b981);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.portal-event-detail-chart .dots circle {
    fill: var(--portal-primary, #10b981);
}

.portal-event-detail-chart .axis {
    fill: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.portal-event-detail-metric {
    background: #f8fafc;
    border-radius: 14px;
    padding: 1rem;
}

.portal-event-detail-metric span {
    color: #94a3b8;
    display: block;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .05em;
    margin-bottom: .55rem;
    text-transform: uppercase;
}

.portal-event-detail-metric strong {
    color: #111827;
    font-size: 1.2rem;
    font-weight: 900;
}

.portal-event-detail-metric.is-success {
    background: #ecfdf5;
}

.portal-event-detail-metric.is-success strong,
.portal-event-detail-metric.is-success span {
    color: #059669;
}

.portal-event-detail-metric.is-warning {
    background: #fffbeb;
}

.portal-event-detail-metric.is-warning strong,
.portal-event-detail-metric.is-warning span {
    color: #d97706;
}

.portal-event-detail-post textarea {
    background: #f8fafc;
    border-color: #e5e7eb;
    border-radius: 16px;
    resize: none;
}

.portal-event-detail-wall-post {
    background: #fff;
}

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

.portal-event-detail-gallery img,
.portal-event-detail-gallery-more {
    aspect-ratio: 1 / .82;
    border-radius: 14px;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    width: 100%;
}

.portal-event-detail-gallery-more {
    align-items: center;
    background-blend-mode: multiply;
    background-color: rgba(15, 23, 42, .58);
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    font-size: 1.45rem;
    font-weight: 900;
    justify-content: center;
}

.portal-event-detail-compliance {
    background: #111827;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.portal-event-detail-compliance-progress {
    background: rgba(255, 255, 255, .16);
    border-radius: 999px;
    height: 8px;
}

@media (max-width: 1199.98px) {
    .portal-events-sidebar {
        position: static;
    }

    .portal-event-detail-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .portal-events-page {
        padding-top: 1rem;
    }

    .portal-events-grid {
        grid-template-columns: 1fr;
    }

    .portal-event-cover {
        height: 210px;
    }

    .portal-event-detail-hero-content {
        padding: 4.75rem 0 3.25rem;
    }

    .portal-event-detail-stats {
        margin-top: -22px;
    }
}
