.btgrid .row {
    margin-bottom: 35px;
}

.btgrid .col-md-4 {
    margin-bottom: 35px;
}

.panel {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.14);
}

.panel .front {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.tile_image {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel:hover .tile_image {
    transform: scale(1.04);
}

.tile_image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0) 50%, 
        rgba(0, 0, 0, 0.25) 75%, 
        rgba(0, 0, 0, 0.65) 100%
    );
    transition: opacity 0.4s ease;
}

.tile_image .tile_title {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    top: auto;
    margin: 0;
    padding: 20px 24px;
    background: transparent;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tile_image .tile_title::after {
    content: '←';
    font-size: 0.85rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.3s ease, transform 0.3s ease;
}

.panel:hover .tile_title::after {
    background: #e8272a;
    border-color: #e8272a;
    transform: translateX(-3px);
}

.panel .back {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #ffffff;
    padding: 32px 28px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.panel:hover .back {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.panel .tile_excerpt {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tile_page_text_height1 {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.7;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
}

.more {
    margin: 0;
    text-align: right;
}

.tile_excerpt .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8272a;
    color: #ffffff;
    border: none;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(232, 39, 42, 0.25);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tile_excerpt .btn-primary:hover {
    background: #c91f22;
    transform: translateY(-1px);
}