.page-box {
    background-color: var(--content-bg-color, #ffffff);
    border: 1px solid var(--border-color, #eef2f6);
    border-radius: 12px;
    padding: 10px;
    /* Added padding to separate content and fix 'overflow' look */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    position: relative;
    width: 100% !important;
}

.page-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color, #1d4ed8);
}

.page-box-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f1f5f9;
    border-radius: 8px;
    /* Added radius to image container since box has padding */
}

.page-box-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.page-box:hover .page-box-image img {
    transform: scale(1.1);
}

.page-box-content {
    padding: 16px 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-box-title {
    margin-bottom: 15px;
}

.page-box-title h2 {
    font-size: 1.15rem;
    color: var(--heading-color, #1a1a1a);
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-box-title h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-box-title h2 a:hover {
    color: var(--primary-color, #1d4ed8);
}

.page-box-link {
    padding: 0 8px 10px 8px;
    margin-top: auto;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-color, #1d4ed8);
    border: 1.5px solid var(--primary-color, #1d4ed8);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-read-more:hover {
    background-color: var(--primary-color, #1d4ed8);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .page-box {
        padding: 8px;
    }

    .page-box-content {
        padding: 12px 4px;
    }

    .page-box-title h2 {
        font-size: 1.05rem;
    }

    .page-box-link {
        padding: 0 4px 8px 4px;
    }
}