/* ========================================
   BLOG PAGE STYLES
   ======================================== */

.blog-hero {
    background: linear-gradient(135deg, #002b49 0%, #003d6b 100%);
    padding: 50px 0 40px;
    text-align: center;
    color: #fff;
}

.blog-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-hero h1 i {
    margin-right: 10px;
    color: #0078c1;
}

.blog-hero p {
    font-size: 1rem;
    opacity: 0.8;
}

.blog-section {
    padding: 50px 0 70px;
    background: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e8ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-image .blog-placeholder {
    font-size: 3rem;
    color: #bbb;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-date {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 8px;
}

.blog-card-date i {
    margin-right: 5px;
    color: #0078c1;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #002b49;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-summary {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-card-read {
    font-size: 0.82rem;
    color: #0078c1;
    font-weight: 600;
}

.blog-card-read i {
    margin-left: 4px;
    transition: margin-left 0.2s;
}

.blog-card:hover .blog-card-read i {
    margin-left: 8px;
}

/* Blog Empty */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.blog-empty i {
    font-size: 3.5rem;
    color: #ccc;
    margin-bottom: 15px;
}

.blog-empty p {
    font-size: 1.1rem;
}

/* Blog Modal */
.blog-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.blog-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: blogModalIn 0.3s ease;
}

@keyframes blogModalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.blog-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.1);
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.blog-modal-close:hover {
    background: rgba(0,0,0,0.2);
}

.blog-modal-body {
    padding: 0;
}

.blog-modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.blog-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-modal-content {
    padding: 30px;
}

.blog-modal-date {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 10px;
}

.blog-modal-date i {
    margin-right: 5px;
    color: #0078c1;
}

.blog-modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #002b49;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-modal-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-hero h1 {
        font-size: 1.5rem;
    }
    .blog-modal-image {
        height: 200px;
    }
    .blog-modal-content {
        padding: 20px;
    }
    .blog-modal-title {
        font-size: 1.2rem;
    }
}
