/* Main container */
.event-details .event-main-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    width: 100%;
    margin-top: 50px;
}

/* first card */
.event-details .event-left-section,
.event-details .event-right-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.event-details .event-detail-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-bottom: 0px;
}

.event-details .event-card-header {
    position: relative;
}

.event-details .event-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.event-details .event-image img {
    width: 100% !important;
    height: 350px !important;
    object-fit: cover;
    display: block;
}

.event-details .event-image p {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.event-details .event-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.event-details .event-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    font-size: 0.95rem;
    color: #333;
}

.event-details .grid-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.event-details .grid-title-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: #222;
}

.event-details .grid-title {
    font-weight: 600;
    font-size: 1rem;
    color: #222;
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-details .grid-title i {
    font-size: 1.2rem;
    color: #444;
    margin-right: 2px;
}

.event-details .grid-value {
    font-size: 0.90rem;
    color: #444;
    margin-left: 28px;
}

/* ======================================================================================== */
/* second card */
.event-details .event-card-flex {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* space between title and description */
    padding: 20px;
}

.event-details .event-card-flex .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
}

.event-details .event-card-flex .card-description {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.event-details .event-card-flex .card-description p {
    margin-bottom: 0;
}

/* ======================================================================================== */
/* third card */


/* ======================================================================================== */
/* forth card */
.event-join {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 20px;
}

.event-price {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.event-price-detail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}

.event-price-flex {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
}

.btn-success {
    background: #28a745;
    /* green */
    color: #fff;
    border: 0;
}

.btn-success:hover {
    background: #218838;
    /* darker green on hover */
}

/* ======================================================================================== */
/* fifth card */
.event-details .card-more-event {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-details .more-event-section {
    display: flex;
    gap: 15px;
    align-items: stretch;
    overflow: hidden;
}

.event-details .more-event-left {
    flex: 0 0 120px;
    /* fixed column width */
    height: 80px;
    /* fixed height */
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    /* ensures img fills container properly */
}

.event-details .more-event-left img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fill entire area */
    object-position: center;
    /* center image */
    display: block;
}

.event-details .more-event-image p {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.event-details .more-event-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-details .more-event-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 3px;
}

.more-event-link {
    text-decoration: none;
    color: #203186;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.more-event-link:hover {
    color: #ff9900;
    /* hover color */
    text-decoration: underline;
}

.event-details .more-event-date-location {
    font-size: 0.875rem;
    color: #6b7280;
}

.event-details .no-events-message {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    padding: 20px 0;
}

.registrant-member {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-self: stretch;
}

.event-share {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: start;
}

.share-btn {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.share-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.share-btn i {
    font-size: 18px;
    color: #2d3748;
}

.event-share-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: stretch;
    align-items: start;
}

/* Medium screens and up */
@media (min-width: 1200px) {

    /* Main section side by side */
    .event-details .event-main-section {
        flex-direction: row;
        gap: 1.25rem;
        align-items: flex-start;
        /* align top of both sections */
    }

    /* Section-specific width using flex */
    .event-details .event-left-section {
        flex: 2;
        /* left section larger */
        gap: 1.25rem;
    }

    .event-details .event-right-section {
        flex: 1;
        /* right section smaller */
        gap: 1.25rem;
    }

    .event-details .grid-content {
        grid-template-columns: repeat(2, 1fr);
        /* same as grid-cols-2 */
    }

    .event-details .grid-title-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 991px) {
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive table {
        min-width: 800px;
    }
}

/* ============================================================================================================== */
/* ticket css */

.ticket-main {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    justify-self: center;
    width: 70%;
}

.ticket-header {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 2rem;
}

.ticket-container {
    display: flex;
    flex-direction: column;
    gap: 24px;

}

.ticket-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    padding: 25px;
    position: relative;
}

.container-header {
    background-color: #192861;
    color: #fff;
    padding: 15px 25px;
    margin: -25px -25px 15px -25px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ticket-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.confirm-tag {
    background-color: #00b126;
    border-radius: 15px;
    padding: 4px 12px;
    align-self: center;
    font-size: 11px;
    font-weight: bold;
}

.ticket-date {
    display: flex;
    flex-direction: row;
    gap: 20px;
    color: #e5e7eb;
    font-size: medium;
}

.ticket-location {
    font-size: 14px;
    color: #e5e7eb;
}

.ticket-location i {
    margin-right: 6px;
    color: #e5e7eb;

}

.ticket-detail-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 40px;
}

.ticket-detail {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}

.ticket-attendee-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
}

.attendee-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    width: 100%;
}

.ticket-attendee-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.ticket-attendee-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

.attendee-flex {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    font-size: 0.95rem;
    color: #555;
}

.attendee-separator {
    grid-column: 1 / -1;
    /* span full width of grid */
    border: none;
    border-top: 3px solid #000000;
    margin: 0px;
}

.qr-code {
    grid-column: span 1;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qr-image img {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.qr-note {
    text-align: center;
    font-size: 12px;
}

.qr-btn {
    margin-top: 5px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 15px;
    font-size: small;
    font-weight: 500;
    color: #333;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
}


@media(max-width: 764px) {
    .attendee-content {
        grid-template-columns: 1fr;
    }
}