/* Media Page Styles */
.media-block {
    padding: 20px 0;
}

.media-block .col-md-4 {
    margin-bottom: 30px;
}

.media-block a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.media-block img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: subtleFloat 6s ease-in-out infinite;
}

/* Subtle floating animation */
@keyframes subtleFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Hover glow effect */
.media-block a:hover img {
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.6),
        0 0 50px rgba(247, 147, 30, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
    animation-play-state: paused;
}

/* Stagger the animation for each image */
.media-block .col-md-4:nth-child(1) img {
    animation-delay: 0s;
}

.media-block .col-md-4:nth-child(2) img {
    animation-delay: 0.5s;
}

.media-block .col-md-4:nth-child(3) img {
    animation-delay: 1s;
}

.media-block .col-md-4:nth-child(4) img {
    animation-delay: 1.5s;
}

.media-block .col-md-4:nth-child(5) img {
    animation-delay: 2s;
}

.media-block .col-md-4:nth-child(6) img {
    animation-delay: 2.5s;
}

/* Press Release Grid Styles */
.press_release_grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.press-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    overflow: visible;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.press-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(237, 58, 64, 0.15);
    border-color: rgba(237, 58, 64, 0.1);
}

.press-card-img {
    position: relative;
    overflow: hidden;
    width: 44%;
    min-height: 230px;
    background-color: #f6f6f6;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12px;
}

.press-card-img img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: top center;
    transition: transform 0.5s ease;
    align-self: flex-start;
}

.press-float-image {
    width: 320px;
    margin: 0 20px 0 0;
    background-color: #f6f6f6;
    padding: 10px;
    flex-shrink: 0;
}

.press-float-image img {
    width: 100%;
    height: auto;
    display: block;
}

.press-card:hover .press-card-img img {
    transform: scale(1.05);
}

.press-card-body {
    padding: 25px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.press-text-col {
    flex: 1;
    min-width: 0;
}

.press-date {
    font-size: 13px;
    font-weight: 600;
    color: #ed3a40;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.press-title {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2f2f2f;
    line-height: 1.4;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.press-title-text {
    display: block;
    overflow: visible;
}

.press-card:hover .press-title {
    color: #d83a3f;
}

.press-content {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.press-card.is-expanded .press-content {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.press-content-wrap {
    margin-top: 0;
}

.press-inline-toggle {
    background: #fff0f2;
    border: 1px solid #f3a5ad;
    color: #ed3a40;
    font-weight: 600;
    font-size: 14px;
    padding: 7px 14px;
    margin-top: 0;
    border-radius: 999px;
    letter-spacing: 0.2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.press-inline-toggle--hidden {
    display: none !important;
}

.press-inline-toggle:hover,
.press-inline-toggle:focus,
.press-inline-toggle:active {
    background: #fff0f2;
    color: #cc2845;
    border-color: #e64563;
}

.press-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 8px;
    flex-wrap: wrap;
}

.press-actions .press-external-link {
    margin: 0;
}

.press-external-link--compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #ed3a40;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(90deg, #ff4a3d 0%, #e42e7a 100%);
    line-height: 1;
    min-height: 36px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.press-external-link--compact:visited {
    color: #fff;
}

.press-external-link--compact:hover,
.press-external-link--compact:focus,
.press-external-link--compact:active {
    background: linear-gradient(90deg, #f13f34 0%, #cf246d 100%);
    border-color: #d9364a;
    color: #fff;
}

.press-external-link__arrow {
    font-size: 12px;
    line-height: 1;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .media-block .col-md-4 {
        margin-bottom: 20px;
    }

    .press-card {
        display: block;
    }

    .press-float-image {
        width: 100%;
        margin: 0 0 14px 0;
    }

    .press-card-body {
        display: block;
    }

    .press-actions {
        justify-content: flex-start;
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .press-external-link--compact,
    .press-inline-toggle {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 13px;
    }

    @keyframes subtleFloat {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-5px);
        }
    }
}
