/**********************************/
/********** Top News CSS **********/
/**********************************/

.news {
    background-color: rgb(221, 255, 221);
}

.top-news {
    position: relative;
    width: 100%;
    padding: 30px 0 0 0;
}

.top-news .col-md-6 {
    margin-bottom: 30px;
}

.top-news .tn-img {
    position: relative;
    overflow: hidden;
}

.top-news .tn-img img {
    width: 100%;
}

.top-news .tn-img:hover img {
    filter: blur(5px);
    -webkit-filter: blur(5px);
}

.top-news .tn-content {
    position: absolute;
    top: 0; 
    right: 0;
    bottom: 0; 
    left: 0;
    padding: 15px 10px 15px 20px;
    background-image: linear-gradient(rgba(0, 0, 0, .0), rgba(0, 0, 0, .3), rgba(0, 0, 0, .9));
    display: flex;
    align-items: flex-end;
}

.top-news .tn-content a.tn-date{
    display: block;
    width: 100%;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    transition: .3s;
    letter-spacing: 1px;
}

.top-news .tn-content a.tn-date i {
    margin-right: 5px;
}

.top-news .tn-content a.tn-date:hover {
    text-decoration: none;
}

.top-news .tn-content a.tn-title {
    display: block;
    width: 100%;
    color: #ffffff;
    font-size: 16px;
    font-weight: 300;
    transition: .3s;
    text-decoration: none;
}

.top-news .tn-left .tn-content a.tn-title {
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
}

.top-news .tn-content a.tn-title:hover {
    color: #E47A2E;
}

/******************************/
/****** News Cards Grid  ******/
/******************************/

.news-post {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 800px;
}

.news-post-img {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-post-title a {
    text-decoration: none;
    color: #333;
}

.news-post-title a:hover {
    text-decoration: underline;
}

.news-post-date {
    display: block;
    color: #666;
    margin-top: 4px;
}

/******************************/
/****** eBooks Section ********/
/******************************/

.ebooks .col-auto {
    text-align: center;
    align-items: center;
}

/************************************/
/****** News Article Page      ******/
/************************************/

.news-article-page {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: 60vh;
}

.news-article-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
}

.news-article-date {
    font-size: 0.9rem;
}

.news-article-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.news-article-content p {
    margin-bottom: 1.2rem;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.news-article-content figure {
    margin: 1.5rem 0;
    text-align: center;
}

.news-article-content figcaption {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.4rem;
    font-style: italic;
}

.news-article-content blockquote {
    border-left: 4px solid #1abc9c;
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

.news-article-content ul,
.news-article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

/************************************/
/****** News Index Page        ******/
/************************************/

.news-card {
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.news-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

