/* =========================================
   CARPIN EVENTS
   HORIZONTAL EVENT CARD
========================================= */

.carpin-events-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;

    width: 100%;
    max-width: 1110px;

    margin: 0 auto;
    padding: 0;
}


/* =========================================
   EVENT CARD
========================================= */

.carpin-event-card {
    display: flex;
    align-items: stretch;

    width: 100%;
    min-height: 155px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 10px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/* =========================================
   CARD HOVER
========================================= */

.carpin-event-card:hover {
    transform: translateY(-3px);

    border-color: #EE8143;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.11);
}


/* =========================================
   EVENT IMAGE
========================================= */

.carpin-event-image {
    flex: 0 0 255px;

    width: 255px;
    height: auto;
    min-height: 155px;
     border-right: 1px solid #eeeeee;
    align-self: stretch;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

}


.carpin-event-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
}


.carpin-event-card:hover .carpin-event-image img {
    transform: scale(1.03);
}


/* =========================================
   EVENT CONTENT
========================================= */

.carpin-event-content {
    display: grid;

    grid-template-columns:
        150px
        minmax(200px, 1fr)
        280px;

    column-gap: 40px;

    flex: 1;

    min-width: 0;

    padding: 22px 28px;
}


/* =========================================
   EVENT TITLE
========================================= */

.carpin-event-title {
    grid-column: 1 / -1;
    grid-row: 1;

    margin: 0 0 20px 0 !important;

    color: #111111;

    font-size: 25px;
    line-height: 1.25;

    font-weight: 700;
}


/* =========================================
   EVENT INFO
========================================= */

.carpin-event-info {
    position: relative;

    margin: 0;

    color: #000000;

    font-size: 16px;

    line-height: 1.5;

    font-weight: 600;
}


/* =========================================
   DATE
========================================= */

.carpin-event-date {
    grid-column: 1;
    grid-row: 2;

    position: relative;

    padding-left: 28px;
    padding-right: 0;

    margin: 0;

    white-space: nowrap;

    color: #000000;

    font-size: 16px;

    line-height: 1.5;

    font-weight: 600;
}


.carpin-event-date .carpin-event-icon {
    position: absolute;

    left: 0;
    top: -1px;

    width: 20px;

    font-size: 17px;
}


.carpin-event-date > span:last-child {
    white-space: nowrap;
}


/* =========================================
   LOCATION
========================================= */

.carpin-event-location {
    grid-column: 2;
    grid-row: 2;

    color: #000000;

    position: relative;

    margin: 0;

    padding-left: 28px;
    padding-right: 10px;

    margin-bottom: 32px;

    font-size: 16px;

    line-height: 1.5;

    font-weight: 600;
}


.carpin-event-location > span:last-child {
    display: block;

    line-height: 1.5;
}


/* =========================================
   BOOTH
========================================= */

.carpin-event-booth {
    grid-column: 2;
    grid-row: 2;

    color: #000000;

    align-self: end;

    position: relative;

    margin: 0;

    padding-left: 0;

    font-size: 16px;

    line-height: 1.4;

    font-weight: 600;
}


/* =========================================
   LOCATION ICON
========================================= */

.carpin-event-location .carpin-event-icon {
    position: absolute;

    left: 0;
    top: 3px;

    width: 20px;

    font-size: 17px;
}


/* =========================================
   BOOTH ICON
========================================= */

.carpin-event-booth .carpin-event-icon {
    position: absolute;

    left: 0;
    top: 2px;

    width: 20px;

    font-size: 17px;
}


/* =========================================
   BUTTON
========================================= */

.carpin-event-button-wrapper {
    grid-column: 3;
    grid-row: 2;

    align-self: center;

    width: 225px;

    margin: 0;

    padding: 0;
}


.carpin-event-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 225px;

    min-height: 55px;

    padding: 14px 22px;

    box-sizing: border-box;

    background: #EE8143;

    border: 1px solid #EE8143;

    border-radius: 6px;

    color: #ffffff !important;

    font-size: 17px;

    font-weight: 700;

    line-height: 1.25;

    text-align: center;

    text-decoration: none !important;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================
   BUTTON HOVER
========================================= */

.carpin-event-button:hover {
    background: #D96F32;

    border-color: #D96F32;

    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow:
        0 6px 16px rgba(238, 129, 67, 0.30);
}


/* =========================================
   BUTTON ARROW
========================================= */

.carpin-event-button span {
    margin-left: 8px;

    font-size: 20px;

    transition: transform 0.25s ease;
}


.carpin-event-button:hover span {
    transform: translateX(4px);
}


/* =========================================
   HIDE DESCRIPTION
========================================= */

.carpin-event-description {
    display: none !important;
}


/* =========================================
   LARGE TABLET
   1024px - 901px
========================================= */

@media (max-width: 1024px) and (min-width: 901px) {

    .carpin-event-image {
        flex: 0 0 210px;

        width: 210px;
    }


    .carpin-event-content {
        grid-template-columns:
            125px
            minmax(180px, 1fr)
            180px;

        column-gap: 15px;

        padding: 20px 20px;
    }


    .carpin-event-title {
        font-size: 22px;

        margin-bottom: 18px !important;
    }


    .carpin-event-info,
    .carpin-event-date,
    .carpin-event-location,
    .carpin-event-booth {
        font-size: 15px;
    }


    .carpin-event-button-wrapper {
        width: 180px;
    }


    .carpin-event-button {
        width: 180px;

        min-height: 58px;

        padding: 12px 15px;

        font-size: 15px;
    }
}


/* =========================================
   TABLET
   900px - 768px
========================================= */

@media (max-width: 900px) and (min-width: 768px) {

    .carpin-events-grid {
        gap: 16px;
    }


    .carpin-event-card {
        min-height: 165px;
    }


    /* IMAGE */

    .carpin-event-image {
        flex: 0 0 175px;

        width: 175px;

        min-height: 165px;
    }


    /* CONTENT */

    .carpin-event-content {
        grid-template-columns:
            120px
            minmax(170px, 1fr)
            150px;

        column-gap: 12px;

        padding: 18px 16px;
    }


    /* TITLE */

    .carpin-event-title {
        font-size: 20px;

        line-height: 1.25;

        margin-bottom: 17px !important;
    }


    /* INFO */

    .carpin-event-info,
    .carpin-event-date,
    .carpin-event-location,
    .carpin-event-booth {
        font-size: 14px;

        line-height: 1.45;
    }


    /* DATE */

    .carpin-event-date {
        padding-left: 24px;

        white-space: nowrap;
    }


    .carpin-event-date .carpin-event-icon {
        width: 18px;

        font-size: 15px;
    }


    /* LOCATION */

    .carpin-event-location {
        padding-left: 24px;

        padding-right: 5px;

        margin-bottom: 30px;
    }


    .carpin-event-location .carpin-event-icon {
        width: 18px;

        font-size: 15px;
    }


    /* BOOTH */

    .carpin-event-booth {
        padding-left: 0;

        font-size: 14px;
    }


    /* BUTTON */

    .carpin-event-button-wrapper {
        width: 150px;
    }


    .carpin-event-button {
        width: 150px;

        min-height: 58px;

        padding: 10px 12px;

        font-size: 14px;
    }


    .carpin-event-button span {
        font-size: 17px;

        margin-left: 5px;
    }
}


/* =========================================
   MOBILE
   Below 767px
========================================= */

@media (max-width: 767px) {

    .carpin-events-grid {
        gap: 18px;
    }


    .carpin-event-card {
        display: flex;

        flex-direction: column;

        min-height: 0;
    }


    /* IMAGE */

    .carpin-event-image {
        flex: none;

        width: 100%;

        height: 210px;

        min-height: 210px;
    }


    .carpin-event-image img {
        width: 100%;

        height: 100%;

        object-fit: cover;
    }


    /* CONTENT */

    .carpin-event-content {
        display: flex;

        flex-direction: column;

        padding: 22px;
    }


    /* TITLE */

    .carpin-event-title {
        order: 1;

        margin: 0 0 20px 0 !important;

        font-size: 22px;

        line-height: 1.25;
    }


    /* DATE */

    .carpin-event-date {
        order: 2;

        width: 100%;

        margin-bottom: 12px;

        padding-left: 28px;

        white-space: nowrap;
    }


    /* LOCATION */

    .carpin-event-location {
        order: 3;

        width: 100%;

        margin-bottom: 8px;

        padding-left: 28px;

        padding-right: 0;
    }


    /* BOOTH */

    .carpin-event-booth {
        order: 4;

        width: 100%;

        margin: 0 0 18px 0;

        padding-left: 28px;
    }


    /* BUTTON */

    .carpin-event-button-wrapper {
        order: 5;

        width: 100%;
    }


    .carpin-event-button {
        width: 100%;

        min-height: 50px;

        font-size: 15px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .carpin-event-image {
        height: 190px;

        min-height: 190px;
    }


    .carpin-event-content {
        padding: 18px;
    }


    .carpin-event-title {
        font-size: 20px;
    }


    .carpin-event-info {
        font-size: 14px;
    }


    .carpin-event-button {
        min-height: 50px;

        font-size: 15px;
    }
}


/* =========================================================
   FEATURED EVENT
   ========================================================= */

.carpin-featured-event-info {
    width: 100%;

    max-width: 950px;

    min-height: 440px;

    margin: 45px 0;

    padding: 55px 45px;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background: rgba(0, 0, 0, 0.72);

    border-radius: 20px;

    color: #ffffff;
}


/* =========================================
   FEATURED TITLE
========================================= */

.carpin-featured-event-title {
    margin: 0 0 38px 0 !important;

    padding: 0;

    color: #ffffff !important;

    font-size: 58px !important;

    line-height: 1.12 !important;

    font-weight: 800 !important;

    letter-spacing: -1px;
}


/* =========================================
   FEATURED DETAILS
========================================= */

.carpin-featured-event-details {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 18px;

    width: 100%;
}


/* =========================================
   FEATURED DETAIL BOX
========================================= */

.carpin-featured-event-detail {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    min-height: 54px;

    padding: 14px 20px;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 9px;

    color: #111111;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.4;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================
   FEATURED ICON
========================================= */

.carpin-featured-event-icon {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;

    font-size: 20px;

    line-height: 1;
}


/* =========================================
   FEATURED LOCATION
========================================= */

.carpin-featured-event-detail:nth-child(2) {
    max-width: 100%;
}


/* =========================================
   FEATURED HOVER
========================================= */

.carpin-featured-event-detail:hover {
    transform: translateY(-3px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.18);
}


/* =========================================
   FEATURED TABLET
========================================= */

@media (max-width: 1024px) {

    .carpin-featured-event-info {
        max-width: 760px;

        min-height: 400px;

        padding: 45px 45px;
    }


    .carpin-featured-event-title {
        font-size: 48px !important;

        margin-bottom: 32px !important;
    }


    .carpin-featured-event-detail {
        min-height: 50px;

        padding: 12px 17px;

        font-size: 15px;
    }


    .carpin-featured-event-icon {
        font-size: 18px;
    }
}


/* =========================================
   FEATURED MOBILE
========================================= */

@media (max-width: 767px) {

    .carpin-featured-event-info {
        width: calc(100% - 30px);

        max-width: 100%;

        min-height: auto;

        margin: 0 auto;

        padding: 35px 25px;

        border-radius: 16px;
    }


    .carpin-featured-event-title {
        margin-bottom: 25px !important;

        font-size: 36px !important;

        line-height: 1.15 !important;

        letter-spacing: -0.5px;
    }


    .carpin-featured-event-details {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }


    .carpin-featured-event-detail {
        width: fit-content;

        max-width: 100%;

        min-height: 48px;

        padding: 11px 15px;

        font-size: 14px;
    }


    .carpin-featured-event-icon {
        font-size: 17px;
    }
}


/* =========================================
   FEATURED SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .carpin-featured-event-info {
        width: calc(100% - 20px);

        padding: 28px 20px;

        border-radius: 14px;
    }


    .carpin-featured-event-title {
        font-size: 29px !important;

        margin-bottom: 22px !important;
    }


    .carpin-featured-event-detail {
        width: 100%;

        min-height: 46px;

        padding: 10px 13px;

        font-size: 13px;
    }
}
/* =========================================
   TABLET EVENT CARD LAYOUT
========================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    .carpin-event-content {
        display: grid !important;

        grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1.2fr) !important;

        column-gap: 18px !important;
        row-gap: 16px !important;

        padding: 20px !important;
    }

    /* Event title spans both columns */
    .carpin-event-title {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }

    /* Date: first grid item */
    .carpin-event-date {
        grid-column: 1 !important;
        grid-row: 2 !important;

        white-space: normal !important;
    }

    .carpin-event-date > span:last-child {
        white-space: nowrap !important;
    }

    /* Location: second grid item */
    .carpin-event-location {
        grid-column: 2 !important;
        grid-row: 2 !important;

        margin-bottom: 35px !important;
    }

    /* Booth stays under location */
    .carpin-event-booth {
        grid-column: 2 !important;
        grid-row: 2 !important;

        align-self: end !important;
    }

    /* Button moves directly below the two columns */
    .carpin-event-button-wrapper {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;

        width: 100% !important;

        margin-top: 0 !important;
        padding: 0 !important;

        transform: none !important;
    }

    .carpin-event-button-wrapper .carpin-event-button {
        width: 40% !important;
        max-width: 40% !important;
        min-width: 0 !important;

        min-height: 54px !important;

        font-size: 16px !important;
    }
}

/* Move booth below date */
.carpin-event-booth {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: end !important;
    
    margin-top: 35px !important;
}

/* Keep location in the second column */
.carpin-event-location {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    margin-bottom: 0 !important;
}

/* Keep booth icon aligned */
.carpin-event-icon-booth{
	 margin-left: 20px;
}
