/* General body styles */

/* Main container holding both sections */
.article-portion{
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Section titles */
.teacher-articles h1, .student-articles h1 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Article cards styling */
.article-card {
    background-color: white;
    border-radius: 10px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: scale(1.02);
}

/* Article header (title and author section) */
.article-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-card h2 {
    font-size: 24px;
    color: #2c3e50;
}

.articles h1{
    font-size: 30px;
    text-align: center;
}
.author {
    font-style: italic;
    color: #555;
    font-size: 15px;
}

.author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-left: 10px;
}

/* Article content including images */
.article-content {
    margin-top: 20px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.6;
}

/* Read more section, hidden by default */
.more-text {
    display: none;
}

.article-img {
    width: 50%;
    height: 300px;
   
    border-radius: 10px;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}
.art-img{
    display: flex;
    justify-content: space-around;
}

.article-img:hover {
    opacity: 0.8;
}

/* Read More button styling */
.read-more {
    background-color: #344ddb;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #ffffff;
    color: blue;
    border: solid 2px #344ddb;
}

/* Section specific background colors for differentiation */
.teacher-articles {
    background-color: #e8f1f9;
    padding: 30px;
    border-radius: 10px;
}

.student-articles {
    background-color: #d2f2f3;
    padding: 30px;
    border-radius: 10px;
}
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination button {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.pagination button:hover {
    background-color: #ddd;
}

.pagination button.active {
    background-color: #2c6ddd;
    color: white;
}


/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .article-card header {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-img {
        margin-top: 10px;
        
    }
    .article-img{
        width: 100%;
        height: 180px;
    }
    .art-img{
        display: flex;
        flex-direction: column;
    }


    .article-card h2{
        font-size: 20px;
    }
    .author{
        font-size: 15px;
    }
    .article-content p{
        font-size: 14px;
    }
    .teacher-articles h1{
        font-size: 20px;
    }
    .student-articles h1{
        font-size: 20px;
    }
}
