/*
Theme Name: Tchad24.tv - Ilnet telecoms
Author: Hamza Abdelkerim
Version: 1.0
*/
/* **************************************BODY******************************************* */
body {
    font-family: Helvetica;
    margin: 0;
    padding: 0;
}

.topNav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 5px 20px;
}

/* **************************************HEADER******************************************* */

/* TOPNAV------------------------ */
.topNav .logo img {
    width: 50px;
    border-radius: 10px;
    margin-right: 10px;
}

.topNav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color:  #11375e;
    font-size: 20px;
}

.topNav .social-icons a {
    color:  #11375e;
    text-decoration: none;
    font-size: 20px;
}

@media (min-width: 768px) {
    .topNav .social-icons a {
        margin-left: 15px;
    }
}

/* MAIN NAV----------------------------- */
.mainNav {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    overflow: hidden;
    /* hide scroll bar */
    padding: 10px 40px !important;
    /* space for arrows */
    box-sizing: border-box;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin-top: 5px;
}

/* Arrows */
.left-arrow,
.right-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    color: #333;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 5px;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Nav links container */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* hide scrollbar */
    flex: 1;
    scroll-behavior: smooth;
}

/* Individual items */
.nav-links li {
    flex: 0 0 auto;
    margin: 0 15px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-links li a span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color:  #ff9900;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mainNav {
        padding: 0 20px;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .left-arrow,
    .right-arrow {
        font-size: 20px;
    }
}

/* *******************************************ARTICLES FOR CATEGORIES************************************** */
.page-title {
    text-align: left;
    font-size: 1.5rem;
    color: #333;
    text-decoration: underline;
}

.posts-wrapper {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    padding-top: 0;
}

/* FEATURED POST */

.featured-post {
    margin-bottom: 40px;
}

.featured-post img {
    width: 100%;
    height: auto;
}

.featured-post h2 {
    font-size: 30px;
    margin: 15px 0;
}

.featured-post h2 a{
    color: #333;
}

.read-more{
    color: #ff9900;
    padding: 0 5px;
}

.featured-post a {
    text-decoration: none;
}

/* GRID */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-post img {
    width: 100%;
    height: auto;
}

.grid-post h3 {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 0;
}

.grid-post h3 a {
    color: #333;
}

.posts-grid .grid-post a {
    text-decoration: none;
}

/* TAGS */

.post-tags a {
    background-color: #11375e;
    color: white;
    padding: 4px 8px;
    margin-right: 6px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 0.2px;
}

/* PAGINATION */

.pagination {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a{
    color: #333;
}

.page-numbers {
    padding: 8px 12px;
    text-decoration: none;
}

.page-numbers.current {
    background: #11375e;
    color: white;
}

/* responsive adjustments */
@media (min-width: 1023px) {
    .featured-post {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .featured-post img {
        width: 500px;
    }

    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

}

/* *******************************************SINGLE PAGE TEMPLATE************************************** */
.single-wrapper {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.single-article {
    background: #fff;
}

.article-header {
    margin-bottom: 25px;
}

.article-category a {
    color: #c00;
    font-weight: 600;
    text-decoration: none;
    font-size: 20px;
}

.article-title {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 10px 0 15px 0;
}

.article-meta {
    font-size: 14px;
    color: #777;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 6px;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

.article-tags {
    margin-top: 40px;
    font-size: 14px;
    color: #11375e;
    font-size: 18px;
}

/* Tablet */

@media (max-width:900px) {

    .article-title {
        font-size: 2rem;
    }

    .article-content {
        font-size: 17px;
    }

}

/* Mobile */

@media (max-width:600px) {

    .single-wrapper {
        padding: 15px;
    }

    .article-title {
        font-size: 1.7rem;
    }

    .article-content {
        font-size: 16px;
    }

}


/* *******************************************FOOTER************************************** */
footer {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: black;
    font-size: 0.8rem;
    margin-right: 15px;
}

footer p {
    font-size: 16px;
}
/* *******************************************RECENTLY PUBLISHED************************************** */

.recent-posts{
    margin-top:60px;
}

.recent-title{
    font-size:28px;
    margin-bottom:25px;
}

/* GRID */

.recent-posts-grid{
    display:grid;
    grid-template-columns: repeat(2,1fr);
    gap:20px;
}

/* Desktop */

@media (min-width: 992px){
    .recent-posts-grid{
        grid-template-columns: repeat(3,1fr);
    }
}

/* Post Card */
.recent-post{
    background:#fff;
    border-radius:6px;
    overflow:hidden;
    transition:0.2s;
}

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

.recent-thumbnail img{
    width:100%;
    height:auto;
    display:block;
}

.recent-post-title{
    font-size:16px;
    padding:0;
    line-height:1.4;
    color: #333;
    text-decoration: none;
}

a{
    text-decoration: none;
}