/* Alliance Events Styles - EXACT UI MATCH */
.alliance-events-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.alliance-events-container {
    width: 100%;
}

.alliance-events-header {
    text-align: center;
    width: 100%;
}

.alliance-events-header h2 {
    font-size: 2.8rem;
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
}

.alliance-events-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    padding: 0;
}

.alliance-event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #d0d0d0;
    transition: all 0.3s ease;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    margin-bottom:15px;
}

.alliance-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.event-content {
    padding: 0;
    text-align: left;
}

/* MAIN LAYOUT - Date on left, content and button on right */
.event-main-layout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.bg-blue-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}
.rounded-lg {
    border-radius: .5rem;
}
.p-3 {
    padding: .75rem;
}
.w-16 {
    width: 4rem;
}
.text-center {
    text-align: center;
}
.text-blue-600 {
    --tw-text-opacity: 1;
    color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.uppercase {
    text-transform: uppercase;
}
.font-semibold {
    font-weight: 600;
}
.text-xs {
    font-size: .75rem;
    line-height: 1rem;
}
.text-blue-900 {
    --tw-text-opacity: 1;
    color: rgb(30 58 138 / var(--tw-text-opacity, 1));
}
.font-bold {
    font-weight: 700;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-slate-900 {
    --tw-text-opacity: 1;
    color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.mb-2 {
    margin-bottom: .5rem;
}

.text-slate-600 {
    --tw-text-opacity: 1;
    color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.text-sm {
    font-size: .875rem;
    line-height: 1.25rem;
}
.mb-3 {
    margin-bottom: .75rem;
}

.gap-4 {
    gap: 1rem;
}
.flex-wrap {
    flex-wrap: wrap;
}
.flex {
    display: flex;
}
.gap-2 {
    gap: .5rem;
}
.w-4 {
    width: 1rem;
}
.h-4 {
    height: 1rem;
}
.event-date {
    font-size: 2.5rem;
    font-weight: 700;
    color: #009E72;
    min-width: 120px;
    text-align: left;
    line-height: 1;
}

.event-right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* TOP ROW - Title and Register button */
.event-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.alliance-events-container .event-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    flex: 1;
}

.alliance-events-container .register-button {
    margin-top:30px;
    background: #009E72;
    color: white;
    border: none;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3);
    white-space: nowrap;
    margin-left: 10px;
}

.alliance-events-container .register-button:hover {
    background: #01694c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.4);
    text-decoration: none;
    color: white;
}

/* EVENT DESCRIPTION */
.alliance-events-container .event-description {
    color: #555;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: left;
}

/* EVENT META INFO - Date time and location in one line */
.event-meta-info {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 1.0rem;
}

.meta-icon {
    font-size: 1.1rem;
    color: #2c5aa0;
}

.meta-text {
    color: #666;
    font-size: 1.0rem;
}

/* Make sure links don't have underline */
.alliance-events-container .register-button:visited,
.alliance-events-container .register-button:active {
    color: white;
    text-decoration: none;
}

/* Error and Empty States */
.alliance-events-container .alliance-events-error {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #c53030;
    font-size: 1.3rem;
    max-width: 1108px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.alliance-events-container .alliance-events-empty {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 60px 30px;
    text-align: center;
    color: #718096;
    font-size: 1.3rem;
    max-width: 1108px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.alliance-events-container .alliance-events-empty h3 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1.6rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .alliance-events-container .alliance-events-grid {
        max-width: 95%;
        padding: 0 20px;
    }

    .alliance-events-container .alliance-event-card {
        max-width: 100%;
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .alliance-events-container .alliance-events-grid {
        max-width: 95%;
        gap: 30px;
        padding: 0 15px;
    }

    .alliance-events-container .alliance-event-card {
        padding: 30px;
    }

    .event-main-layout {
        flex-direction: column;
        gap: 20px;
    }

    .event-date {
        min-width: auto;
        font-size: 2.2rem;
    }

    .event-top-row {
        flex-direction: column;
        gap: 15px;
    }

    .alliance-events-container .register-button {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .alliance-events-container .alliance-events-header h2 {
        font-size: 2.3rem;
    }

    .alliance-events-container .event-title {
        font-size: 1.6rem;
    }

    .alliance-events-container .event-description {
        font-size: 1.0rem;
    }

    .event-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .alliance-events-container .alliance-events-grid {
        padding: 0 10px;
        max-width: 100%;
    }

    .alliance-events-container .alliance-event-card {
        padding: 25px 20px;
    }

    .event-date {
        font-size: 2.0rem;
    }

    .alliance-events-container .event-title {
        font-size: 1.4rem;
    }
}
/* Registration Fee Badges */
.registration-fee-badge {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.paid-badge {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.free-badge {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}