* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    
}


.news-header {
    
    margin-bottom: 30px;
}

.section-title {
    color: #254B72;
    margin-bottom: 30px;
    font-weight: 600;
    margin-top: 60px;
}


/* Featured article styles */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;
}

.main-content {
    background-color: #F7F8F8;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 4px 17.1px 0px #00000014;

   
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-item {
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
   
   
}

.card-item-des{
    padding: 2px 7px;
}

.card-item-des .item-title{
    font-size: 15px;
   
font-weight: 600;
line-height: 25px;
color: #195A94;


}

.card-item-des p{
    font-size: 12px;
font-weight: 400;
line-height: 20px;
color: #747474;

}
.card-image {
    width: 100%;
    object-fit: cover;
}

.card-item-icons{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 5px;
    
}

.card-item-icons .icon{
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 10px;
  
font-weight: 400;
margin-right: 10px;
line-height: 30px;

text-align: center;
color: #747474;


}
.card-item-icons .icon img{
    width: 13px;
}

.card-item-icons .icon:nth-child(3) {
    margin-left: 10px;
  }
  
 

.newsletter-btn{
    background-color: #195A94;
    color: white;
    margin-top: 30px;
    border-radius: 8px;
    padding-top: 10px;
    padding-right: 15px;
    padding-bottom: 10px;
    padding-left: 15px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
 
}

.newsletter-btn  img{
    width: 17px;
}

/* Article content styles */
.article-image {
    width: 100%;
    height: auto;
    display: block;
    
}

.article-meta {
    display: flex;
    gap: 15px;
    padding: 10px;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content {
    padding: 15px;
}

.article-title {
   
    margin: 20px 0px;
    color: #195A94;
    width: 70%;
    line-height: 30px;
}

.article-excerpt {
    color: #747474;
    margin-bottom: 40px;
    font-size: 15px;
    line-height: 25px;
    opacity: 0.7;
    width: 90%;
    
}
.article-content .card-item-icons{
    gap: 20px;
}
.article-content .card-item-icons .icon{
    font-size: 15px;
}

.article-content .card-item-icons .icon img{
    width: 16px;
}






.read-more-btn {
    background-color: #195A94;
    color: white;
    border-radius: 8px;
padding-top: 10px;
padding-right: 15px;
padding-bottom: 10px;
padding-left: 15px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: fit-content;
    margin-bottom: 40px;
}

.read-more-btn  img{
    width: 13px;
}

/* Articles grid section */
.articles-section {
    margin: 40px 0px;
}

.articles-heading {
    color: #1a365d;
    font-size: 22px;
    margin-bottom: 20px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.article-card {
   
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}



.card-content {
    padding: 10px;
}

.card-title {
    font-size: 14px;
    color: #1a365d;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    position: relative;
    z-index: 3;
}

.pagination-btn{
    background-color: #195A94;
    color: white;
    border-radius: 8px;
    padding-top: 10px;
    padding-right: 15px;
    padding-bottom: 10px;
    padding-left: 15px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: fit-content;
     
}

.pagination-btn  img{
    width: 13px;
}


.articles-grid {
    position: relative;
    overflow: hidden;
    max-height: 560px; /* Adjust to show only the first row plus part of second row */
}

.articles-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px; 
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0.95) 100%);
    pointer-events: none; /* Ensures clicks pass through to articles beneath */
    z-index: 2;
}



.newsletter-section {
    width: 100%;
    margin: 60px 0px;
    background-color: #F7F8F8;
}

.newsletter-background {
    background-image: url("../images/newsletter-lightMode.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    padding: 60px 0;
    position: relative;
    z-index: 10;
}


.newsletter-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 10;
}

.newsletter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-label {
    font-size: 14px;
    color: #254B72;
    margin-bottom: 5px;
}

.newsletter-heading {
    font-size: 28px;
    color: #254B72;
    font-weight: 600;
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}



.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 99px;
    font-size: 14px;
}



.newsletter-button {
    background-color: #254B72;
    color: white;
    border: none;
    border-radius: 99px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .newsletter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsletter-form {
        width: 100%;
    }

    .newsletter-form{
        flex-direction: column;
    }
}

/* Responsive styles */
@media (max-width: 900px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    .edit-container{
        width: 70%;
    }
    
   
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-content .card-item-icons .icon{
        font-size: 12px;
    }
    
}

@media (max-width: 425px) {
    .edit-container{
        width: 100%;
    }
    .article-content .card-item-icons .icon{
        font-size: 8px;
    }
}

@media(max-width: 931px){
    .card-item-icons .icon {
        font-size: 8px;
    }

    .card-item-icons .icon p{
        line-height: 18px;

    }
    .card-item-des .item-title {
        line-height: 20px;

    }

    .article-title{

        width: 100%;
    }

    .article-excerpt{
        width: 100%;
    }
}


/* ----darkmode styles */
body.dark-mode {
    background-color: #010A16;  }
    body.dark-mode   .main-content{
        background-color: transparent;
    }

    body.dark-mode .newsletter-background {
        background-image: url("../images/newsletter-DarkMode.svg");
    }

    body.dark-mode .newsletter-section{
        background-color: transparent;
    }

    body.dark-mode .section-title{

        color: white;
        opacity: 80%;
    }
    
    body.dark-mode .articles-grid::after {
        background: linear-gradient(
            to bottom,
            rgba(1, 10, 22, 0) 0%,
            rgba(1, 10, 22, 0.85) 60%,
            rgba(1, 10, 22, 0.95) 100%
        );
    }
    