/* --- SHARED STYLES --- */
.b365-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    box-sizing: border-box;
    font-family: inherit; /* Inherit theme font */
}
.b365-wrapper * {
    box-sizing: border-box;
}
.b365-link, .b365-list-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

/* --- GRID LAYOUT --- */
.b365-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 600px) {
    .b365-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .b365-grid { grid-template-columns: repeat(3, 1fr); }
}

.b365-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.b365-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- BLURRED IMAGE EFFECT --- */
.b365-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    isolation: isolate;
}

.b365-blur-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.85);
    z-index: 1;
    transform: scale(1.1);
}

.b365-main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.5s ease;
}

.b365-card:hover .b365-main-img {
    transform: scale(1.05);
}

/* --- CARD TEXT --- */
.b365-content {
    padding: 1rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.b365-date-top {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.b365-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #1f2937;
}
.b365-card:hover .b365-title {
    color: #000;
}

/* --- SIDEBAR LIST --- */
.b365-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.b365-list-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}
.b365-list-item:last-child {
    border-bottom: none;
}

.b365-list-link {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
}

.b365-list-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    background: #f3f4f6;
    overflow: hidden;
}
.b365-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b365-list-content {
    display: flex;
    flex-direction: column;
}

.b365-list-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #e67e22;
    font-weight: 700;
    margin-bottom: 2px;
}

.b365-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}
.b365-list-link:hover .b365-list-title {
    color: #0056b3;
}

/* --- NEW CUSTOM BUTTON --- */
.b365-footer {
    margin-top: 2rem;
    text-align: center;
}

.b365-btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #fff;
    border: 1px solid #4a5568; /* Dark border */
    border-radius: 6px;
    text-decoration: none !important;
    color: #333;
    transition: all 0.3s ease;
    max-width: 100%;
    flex-wrap: wrap; /* Allows wrapping on tiny screens */
    gap: 12px; /* Space between text, logo, icon */
}

.b365-btn-custom:hover {
    background-color: #f9fafb;
    border-color: #000;
}

.b365-btn-text {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #374151;
    line-height: 1;
}

.b365-btn-logo {
    height: 28px; /* Control logo height */
    width: auto;
    display: block;
    margin: -4px 0; /* Slight visual adjustment */
}

.b365-btn-icon {
    width: 20px;
    height: 20px;
    color: #4b5563;
    opacity: 0.8;
}

.b365-btn-custom:hover .b365-btn-icon {
    color: #000;
    opacity: 1;
}

/* Feed outage fallback. */
.b365-error {
    padding: 1rem;
    border: 1px solid #4a5568;
    border-radius: 6px;
    background: #f9fafb;
    color: #333;
}
.b365-error p {
    margin: 0 0 0.5rem;
}
.b365-error p:last-child {
    margin-bottom: 0;
}
