* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e8e8e8;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    
    gap: 30px;
}

/* Main Content Styles */
.main-content {
    background: transparent;
}

.post-card {
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.category {
    color: #3498db;
}

.post-excerpt {
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.6;
}

.read-more {
    background: #001f54;
    color: white;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    align-self: flex-end;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #003380;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.page-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.page-btn.active {
    background: #2980b9;
}

.page-btn:hover {
    background: #2980b9;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: 50px auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 900px;
    border-radius: 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#modalBody {
    padding: 40px;
}

#modalBody h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
}

#modalBody .post-meta {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.article-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.article-images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-full-text {
    line-height: 1.8;
    color: #444;
}

.article-full-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.close {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .post-card {
        grid-template-columns: 1fr;
    }
    
    .post-image {
        height: 200px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .container {
        padding: 10px;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    #modalBody {
        padding: 20px;
    }
    
    #modalBody h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .recent-post-item {
        flex-direction: column;
    }
    
    .recent-post-thumb {
        width: 100%;
        height: 150px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
}