/*
Theme Name: Astra Child - Young Talent
Theme URI: https://wpastra.com/
Author: onewp.agency
Author URI: https://onewp.agency/
Template: astra
Description: Child theme for Astra, customized for Young Talent site.
Version: 1.0.0
Text Domain: young-talent-astra
*/

@import url("../astra/style.css");
.gid_btn .elementor-button{
    background: linear-gradient(94.27deg, #FFE818 7.95%, #FF1E45 105.92%);
    border: 3px solid;
    border-image-source: linear-gradient(94.54deg, #FF1E45 7.95%, #FF9A2A 99.15%);
}

.ytml-event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: var( --e-global-typography-text-font-family ), Sans-serif;
    font-weight: var( --e-global-typography-text-font-weight );
}

.ytml-event-box {
    display: flex;
    align-items: center;
    background: #fcdcac;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    gap: 20px;
    flex-wrap: wrap;
}


.ytml-date {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    min-width: 60px;
}
.ytml-date .day {
    font-size: 48px;
    color: #000;
    font-weight: bold;
}
.ytml-date .month {
    font-size: 18px;
    color: #000;
}


.ytml-thumb {
    flex-shrink: 0;
}
.ytml-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}


.ytml-info {
    flex: 1;
    min-width: 200px;
}
.ytml-info h3 {
    margin: 0 0 5px;
}
.ytml-info p {
    margin: 0 0 8px;
}


.ytml-arrow {
    font-size: 28px;
    font-weight: bold;
    margin-left: auto;
}
.ytml-arrow a {
    text-decoration: none;
    color: #000;
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 768px) {
    .ytml-event-box {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ytml-thumb img {
        width: 80px;
        height: 80px;
    }

    .ytml-arrow {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .ytml-event-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .ytml-date {
        flex-direction: row;
        font-size: 20px;
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
    }

    .ytml-thumb img {
        width: 100%;
        height: auto;
    }

    .ytml-arrow {
        position: static;
        align-self: flex-end;
        margin-top: 10px;
    }
}


.grid-events-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 20px 0;
    font-family: "Montserrat", Sans-serif;
}

.grid-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.grid-event-card:hover {
    transform: translateY(-4px);
}

.grid-event-thumb {
    background-size: cover;
    background-position: center;
    height: 180px;
}

.grid-event-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.grid-event-meta {
    font-size: 0.9em;
    color: #777;
    text-transform: uppercase;
}

.grid-event-content h3 {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.4;
    color: #222;
}

.grid-event-content p {
    margin: 0;
    font-size: 0.95em;
    color: #444;
}

.grid-event-btn {
    margin-top: auto;
    text-decoration: none;
    font-weight: 600;
    color: #d9235f;
    font-size: 0.95em;
    transition: color 0.3s ease;
    border-top: 1px solid #000;
    padding-top: 15px;
}

.grid-event-btn:hover {
    color: #000;
}