/* Temporary public UI polish — safe to remove on rewrite */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.5;
}

/* Page headers (Payment, Register) */
.page-header-summits {
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.page-header-summits h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.page-header-summits .text-muted {
    margin-bottom: 0;
}

/* Home — carousel */
#carousel-example-generic {
    margin-bottom: 24px;
}

.imgCar {
    max-height: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Home — event grid cards */
.event-grid {
    display: flex;
    flex-wrap: wrap;
}

.event-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 24px;
    float: none;
    flex: 0 0 auto;
    min-width: 0;
}

.event-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.event-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.event-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-card-image img {
    position: absolute;
    top: 6px;
    right: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: contain;
}

.event-card-title {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.6em;
}

.event-card h6 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 13px;
    flex-shrink: 0;
}

.event-card .btn {
    margin-top: auto;
}

@media (max-width: 767px) {
    .event-card {
        padding: 8px;
    }

    .event-card-title {
        font-size: 13px;
        min-height: 2.6em;
    }

    .event-card h6 {
        font-size: 12px;
    }

    .event-card .btn {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* Events — detail page */
.event-hero {
    margin-bottom: 20px;
}

.event-hero .img-responsive {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.event-hero h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.event-hero .btn-lg {
    margin-bottom: 8px;
}

.event-sidebar .panel {
    margin-bottom: 12px;
}

.event-sidebar .panel-heading {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
}

.event-sidebar .list-group-item {
    font-size: 13px;
    padding: 6px 12px;
}

.event-gallery {
    border: none;
    box-shadow: none;
    background: transparent;
}

.event-gallery .list-group-item {
    border: none;
    padding: 0 0 20px;
    margin-bottom: 0;
    background: transparent;
}

.event-gallery .list-group-item:last-child {
    padding-bottom: 0;
}

.event-gallery .list-group-item img {
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Forms (Payment, Register) */
.form-panel {
    border-color: #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.form-panel > .panel-body {
    padding: 24px;
}

.form-control[readonly] {
    background-color: #f9f9f9;
    cursor: default;
}

.form-panel .form-horizontal hr:first-of-type {
    margin-top: 0;
}

.form-panel h4 {
    margin-top: 0;
}
