#container.container {
    max-width: 1300px;
}

.blog-page-title {
    text-align: center;
    font-size: 48px;
    font-style: normal;
    font-weight: 550;
    line-height: 62.4px;
    letter-spacing: -2.88px;
}

#blog-card-container {
    display: flex;
    flex-wrap: wrap;
}

.blog-card-wrap {
    display: flex;
    padding: 8px;
    margin-bottom: 8px;
    cursor: default;
}

.blog-card-wrap .card {
    border: none !important;
    border-radius: 14px;
    background-color: #f8f8f8;
    box-shadow: 0px 8px 30px rgba(38, 45, 118, 0.14);
    width: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card-wrap .card:hover {
    box-shadow: 0px 16px 48px rgba(38, 45, 118, 0.22);
    transform: translateY(-3px);
}

.blog-card-wrap .card-img-top {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
}

.blog-card-wrap .card-img-placeholder {
    width: 100%;
    height: 420px;
    background-color: #e0e0e0;
    border-radius: 14px 14px 0 0;
}

.blog-card-wrap .card-body {
    flex: 1;
    padding: 16px;
}

.blog-card-wrap .card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.blog-card-wrap .blog-date {
    color: #666;
    margin-bottom: 6px;
}

.blog-card-wrap .blog-tags {
    color: #888;
    font-style: italic;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


#scroll-sentinel {
    height: 1px;
    width: 100%;
}

#blog-spinner {
    display: none;
    text-align: center;
    padding: 24px 0;
}

#blog-spinner .tap-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(30, 43, 65, 0.2);
    border-top-color: #1E2B41;
    border-radius: 50%;
    animation: tap-spin 0.7s linear infinite;
}

@keyframes tap-spin {
    to { transform: rotate(360deg); }
}

#blog-end-message {
    display: none;
    text-align: center;
    padding: 24px 0;
    color: #888;
    font-size: 14px;
}

/* Modal */
#blog-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 40px 16px;
}

#blog-modal-overlay.active {
    display: flex;
}

#blog-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 760px;
    margin: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#blog-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #444;
    z-index: 10;
}

#blog-modal-close:hover {
    color: #000;
}

#blog-modal-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

#blog-modal-body {
    padding: 24px 28px 32px;
}

#blog-modal-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

#blog-modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}

#blog-modal-tags {
    font-size: 13px;
    color: #aaa;
    font-style: italic;
    margin-bottom: 20px;
}

#blog-modal-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

#blog-modal-content img {
    max-width: 100%;
    height: auto;
}
