/* Blog listing & detail pages — European Academy of Excellence */

.blog-listing-section,
.blog-detail-section {
    background: #f8fafc;
}

.blog-listing-filter {
    margin-bottom: 28px;
    color: #475569;
}

.blog-listing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.blog-listing-heading {
    min-width: 0;
}

.blog-listing-title {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
    color: #0f172a;
    font-weight: 700;
}

.blog-listing-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.blog-category-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    flex-shrink: 0;
}

.blog-category-filter__label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.blog-category-filter__select {
    min-width: 220px;
    max-width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
    font-size: 0.95rem;
    color: #0f172a;
    cursor: pointer;
}

.blog-category-filter__select:focus {
    outline: none;
    border-color: #1d4f8c;
    box-shadow: 0 0 0 3px rgba(29, 79, 140, 0.15);
}

.blog-list-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.blog-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
}

.blog-list-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.blog-list-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-list-card:hover .blog-list-card__image img {
    transform: scale(1.04);
}

.blog-list-card__body {
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-list-card__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4f8c;
    background: #e8f1fb;
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
    width: fit-content;
}

.blog-list-card__title {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-list-card__title a {
    color: #0f172a;
    text-decoration: none;
}

.blog-list-card__title a:hover {
    color: #1d4f8c;
}

.blog-list-card__excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-list-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #64748b;
}

.blog-list-card__footer i {
    margin-right: 6px;
    color: #1d4f8c;
}

.blog-pagination {
    margin-top: 40px;
}

.blog-pagination .page-link {
    color: #1d4f8c;
}

.blog-pagination .page-item.active .page-link {
    background: #1d4f8c;
    border-color: #1d4f8c;
}

/* Detail layout 70 / 30 */
.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 70%) minmax(0, 30%);
    gap: 32px;
    align-items: start;
}

.blog-detail-main {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.blog-detail-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1d4f8c;
    background: #e8f1fb;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.blog-detail-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 16px;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.blog-detail-meta i {
    color: #1d4f8c;
    margin-right: 6px;
}

.blog-detail-hero {
    margin: 0 0 28px;
    border-radius: 14px;
    overflow: hidden;
}

.blog-detail-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-detail-content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.75;
}

.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4 {
    color: #0f172a;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.blog-detail-content p {
    margin-bottom: 1em;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.2em 0;
}

.blog-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 0.95rem;
}

.blog-detail-content table th,
.blog-detail-content table td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
}

.blog-detail-content table th {
    background: #f1f5f9;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin-bottom: 1em;
    padding-left: 1.4em;
}

.blog-detail-content blockquote {
    border-left: 4px solid #1d4f8c;
    margin: 1.2em 0;
    padding: 0.5em 0 0.5em 1em;
    color: #475569;
    background: #f8fafc;
}

.blog-share-bar {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 2px solid #0b2c48;
    background: #0b2c48;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-share-btn:hover,
.blog-share-btn:focus-visible {
    background: #2a5077;
    border-color: #2a5077;
    color: #fff;
    outline: none;
}

.blog-share-btn.is-copied {
    background: #fff;
    color: #0b2c48;
}

.blog-share-btn i {
    font-size: 1rem;
}

.blog-sidebar-sticky {
    position: sticky;
    top: 110px;
}

.blog-sidebar-box {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 20px;
}

.blog-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.blog-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-related-item + .blog-related-item {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.blog-related-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.blog-related-link img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.blog-related-link strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 4px;
}

.blog-related-link small {
    color: #64748b;
    font-size: 0.8rem;
}

.blog-related-link:hover strong {
    color: #1d4f8c;
}

.blog-sidebar-cta p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.blog-sidebar-cta .th-btn.style2 {
    background: transparent;
    border: 2px solid #1d4f8c;
    color: #1d4f8c;
}

.blog-empty-state h3 {
    color: #0f172a;
}

@media (max-width: 1199px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar-sticky {
        position: static;
    }
}

@media (max-width: 767px) {
    .blog-listing-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-category-filter {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .blog-category-filter__select {
        width: 100%;
        min-width: 0;
    }

    .blog-detail-main {
        padding: 22px 18px;
    }

    .blog-list-card__body {
        padding: 18px 16px 14px;
    }
}
