/* ==========================================================
   MADIBENG CONNECT
   EVENTS ARCHIVE — COMPLETE DESIGN
   ========================================================== */

:root {
    --mc-green: #22c55e;
    --mc-green-dark: #159447;
    --mc-green-soft: #ecfdf3;
    --mc-navy: #071a38;
    --mc-text: #334155;
    --mc-muted: #64748b;
    --mc-border: #e2e8f0;
    --mc-bg: #f6f8f7;
    --mc-white: #ffffff;
}

/* ==========================================================
   PAGE
   ========================================================== */

.mc-events-archive {
    padding: 50px 0 80px;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(34, 197, 94, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #f8faf9 0%,
            #f5f7f6 100%
        );
}

.mc-events-archive .mc-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ==========================================================
   HEADER
   ========================================================== */

.mc-events-archive-header {
    max-width: 800px;
    margin: 0 auto 38px;
    text-align: center;
}

.mc-events-archive-header .mc-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 11px;
    padding: 6px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: var(--mc-green-soft);
    color: var(--mc-green-dark);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mc-events-archive-header h1 {
    margin: 0 0 11px;
    color: var(--mc-navy);
    font-size: clamp(38px, 4.5vw, 56px);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -2px;
}

.mc-events-archive-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--mc-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================
   EVENTS GRID
   ========================================================== */

.mc-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* ==========================================================
   EVENT CARD
   ========================================================== */

.mc-event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 17px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.mc-event-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .11);
}

/* ==========================================================
   EVENT IMAGE
   ========================================================== */

.mc-event-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f0;
}

.mc-event-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.mc-event-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.mc-event-card:hover .mc-event-card-img {
    transform: scale(1.045);
}

/* ==========================================================
   IMAGE PLACEHOLDER
   ========================================================== */

.mc-event-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(34, 197, 94, .28),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            #0a8f5a 0%,
            #071a38 100%
        );
}

.mc-event-card-placeholder i {
    color: rgba(255,255,255,.9);
    font-size: 48px;
}

/* ==========================================================
   EVENT CONTENT
   ========================================================== */

.mc-event-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 17px 18px 18px;
}

/* ==========================================================
   DATE
   ========================================================== */

.mc-event-date {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    margin-bottom: 10px;
    padding: 6px 9px;
    background: var(--mc-green-soft);
    border: 1px solid #bbf7d0;
    border-radius: 7px;
    color: var(--mc-green-dark);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.mc-event-date i {
    font-size: 10px;
}

/* ==========================================================
   TITLE
   ========================================================== */

.mc-event-card-title {
    margin: 0 0 8px;
    color: var(--mc-navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.4px;
}

.mc-event-card-title a {
    color: inherit;
    text-decoration: none;
}

.mc-event-card-title a:hover {
    color: var(--mc-green-dark);
}

/* ==========================================================
   DESCRIPTION
   ========================================================== */

.mc-event-card-description {
    display: -webkit-box;
    margin: 0 0 15px;
    color: var(--mc-muted);
    font-size: 12px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mc-event-card-description p {
    margin: 0;
}

/* ==========================================================
   EVENT DETAILS
   ========================================================== */

.mc-event-venue,
.mc-event-time {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--mc-muted);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.45;
}

.mc-event-venue i,
.mc-event-time i {
    flex: 0 0 auto;
    width: 13px;
    margin-top: 2px;
    color: var(--mc-green-dark);
    text-align: center;
    font-size: 9px;
}

/* ==========================================================
   CARD FOOTER
   ========================================================== */

.mc-event-card-footer {
    margin-top: auto;
    padding-top: 14px;
}

.mc-event-card .mc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--mc-navy);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition:
        background .2s ease,
        transform .2s ease;
}

.mc-event-card .mc-button:hover {
    background: var(--mc-green-dark);
    transform: translateY(-1px);
}

.mc-event-card .mc-button i {
    font-size: 9px;
}

/* ==========================================================
   PAGINATION
   ========================================================== */

.mc-events-pagination {
    margin-top: 42px;
}

.mc-events-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mc-events-pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

.mc-events-pagination .page-numbers a,
.mc-events-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 8px;
    color: #475569;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease;
}

.mc-events-pagination .page-numbers a:hover {
    border-color: #bbf7d0;
    color: var(--mc-green-dark);
}

.mc-events-pagination .page-numbers .current {
    background: var(--mc-green);
    border-color: var(--mc-green);
    color: #fff;
}

/* ==========================================================
   EMPTY STATE
   ========================================================== */

.mc-events-empty {
    max-width: 650px;
    margin: 20px auto 0;
    padding: 55px 35px;
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .05);
    text-align: center;
}

.mc-events-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    background: var(--mc-green-soft);
    border: 1px solid #bbf7d0;
    border-radius: 50%;
    color: var(--mc-green-dark);
    font-size: 21px;
}

.mc-events-empty h2 {
    margin: 0 0 9px;
    color: var(--mc-navy);
    font-size: 24px;
    font-weight: 800;
}

.mc-events-empty p {
    max-width: 460px;
    margin: 0 auto 22px;
    color: var(--mc-muted);
    font-size: 13px;
    line-height: 1.6;
}

.mc-events-empty .mc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--mc-green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.mc-events-empty .mc-button:hover {
    background: var(--mc-green-dark);
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1050px) {

    .mc-events-grid {
        gap: 17px;
    }

    .mc-event-card-content {
        padding: 15px;
    }

    .mc-event-card-title {
        font-size: 18px;
    }
}

/* ==========================================================
   MOBILE — 2 COLUMN GRID
   ========================================================== */

@media (max-width: 760px) {

    .mc-events-archive {
        padding: 32px 0 52px;
    }

    .mc-events-archive .mc-container {
        width: calc(100% - 20px);
    }

    .mc-events-archive-header {
        margin-bottom: 22px;
    }

    .mc-events-archive-header .mc-eyebrow {
        margin-bottom: 8px;
        padding: 5px 10px;
        font-size: 8px;
    }

    .mc-events-archive-header h1 {
        margin-bottom: 7px;
        font-size: 30px;
        letter-spacing: -1px;
    }

    .mc-events-archive-header p {
        font-size: 12px;
        line-height: 1.55;
    }

    /* Two-column mobile layout */

    .mc-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mc-event-card {
        border-radius: 11px;
    }

    .mc-event-card-image {
        aspect-ratio: 1 / .84;
    }

    .mc-event-card-content {
        padding: 10px;
    }

    /* Date */

    .mc-event-date {
        gap: 5px;
        margin-bottom: 7px;
        padding: 4px 6px;
        border-radius: 6px;
        font-size: 7px;
    }

    .mc-event-date i {
        font-size: 7px;
    }

    /* Title */

    .mc-event-card-title {
        display: -webkit-box;
        margin-bottom: 6px;
        font-size: 13px;
        line-height: 1.22;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Description */

    .mc-event-card-description {
        display: none;
    }

    /* Venue */

    .mc-event-venue {
        margin-bottom: 6px;
        font-size: 8px;
        line-height: 1.35;
    }

    .mc-event-venue i {
        width: 10px;
        font-size: 7px;
    }

    /* Time */

    .mc-event-time {
        margin-bottom: 0;
        font-size: 8px;
        line-height: 1.35;
    }

    .mc-event-time i {
        width: 10px;
        font-size: 7px;
    }

    /* Button */

    .mc-event-card-footer {
        padding-top: 9px;
    }

    .mc-event-card .mc-button {
        min-height: 32px;
        padding: 0 6px;
        border-radius: 6px;
        gap: 4px;
        font-size: 8px;
    }

    .mc-event-card .mc-button i {
        font-size: 7px;
    }

    /* Empty state */

    .mc-events-empty {
        padding: 40px 20px;
    }

    .mc-events-empty h2 {
        font-size: 21px;
    }

    .mc-events-empty p {
        font-size: 12px;
    }
}

/* ==========================================================
   SMALL PHONES
   ========================================================== */

@media (max-width: 480px) {

    .mc-events-archive {
        padding: 27px 0 45px;
    }

    .mc-events-archive .mc-container {
        width: calc(100% - 16px);
    }

    .mc-events-archive-header h1 {
        font-size: 27px;
    }

    .mc-events-archive-header p {
        font-size: 11.5px;
    }

    .mc-events-grid {
        gap: 8px;
    }

    .mc-event-card-content {
        padding: 9px;
    }

    .mc-event-date {
        font-size: 6.5px;
    }

    .mc-event-card-title {
        font-size: 12px;
    }

    .mc-event-venue,
    .mc-event-time {
        font-size: 7.5px;
    }

    .mc-event-card .mc-button {
        min-height: 30px;
        font-size: 7.5px;
    }

    .mc-events-pagination {
        margin-top: 28px;
    }

    .mc-events-pagination .page-numbers a,
    .mc-events-pagination .page-numbers span {
        min-width: 34px;
        height: 34px;
        font-size: 9px;
    }
}

/* ==========================================================
   VERY SMALL PHONES
   ========================================================== */

@media (max-width: 360px) {

    .mc-events-archive .mc-container {
        width: calc(100% - 12px);
    }

    .mc-events-grid {
        gap: 7px;
    }

    .mc-event-card {
        border-radius: 9px;
    }

    .mc-event-card-content {
        padding: 8px;
    }

    .mc-event-date {
        padding: 3px 5px;
        font-size: 6px;
    }

    .mc-event-card-title {
        font-size: 11px;
    }

    .mc-event-venue,
    .mc-event-time {
        font-size: 7px;
    }

    .mc-event-card .mc-button {
        min-height: 29px;
        font-size: 7px;
        border-radius: 5px;
    }
}

/* ==========================================================
   TOUCH DEVICES
   ========================================================== */

@media (hover: none) {

    .mc-event-card:hover {
        transform: none;
    }

    .mc-event-card:hover .mc-event-card-img {
        transform: none;
    }

    .mc-event-card .mc-button:hover {
        transform: none;
    }
}