.main-content {
    margin-top: 80px; /* Space for fixed navbar */
    padding-bottom: 80px; /* Space for footer */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
}

.post h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.post-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.post-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 60px;
    overflow: hidden;
    position: relative;
}

.post-content::after {
    content: "...";
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(to right, transparent, white);
    width: 100%;
    height: 20px;
}

.read-more-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

.modal-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.modal-header h2 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.modal-header .post-date {
    color: #666;
    font-size: 0.9em;
}

.modal-body {
    line-height: 1.6;
    color: #666;
}

.modal-body p {
    margin-bottom: 20px;
}

.modal-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 10px;
}
