﻿/*==========================
        News Page
==========================*/

body {
    font-family: "Vazirmatn", sans-serif;
    background: #f5f7fa;
}

/* Header */

.news-header {
    background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)), url("../images/news-banner.jpg") center/cover;
    padding: 120px 0;
    text-align: center;
    color: #fff;
}

    .news-header h1 {
        font-size: 46px;
        font-weight: 800;
        margin-bottom: 20px;
    }

    .news-header p {
        font-size: 18px;
        color: rgba(255,255,255,.9);
    }

/* Search */

.news-search {
    margin-top: -35px;
    margin-bottom: 50px;
}

.search-box {
    background: #fff;
    border-radius: 60px;
    padding: 12px;
    display: flex;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

    .search-box input {
        border: none;
        box-shadow: none;
        font-size: 16px;
        border-radius: 50px;
    }

    .search-box button {
        width: 60px;
        border-radius: 50px;
        background: #74C63D;
        border: none;
    }

        .search-box button:hover {
            background: #5AAA2F;
        }

/* News */

.news-list {
    padding-bottom: 80px;
}

.news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: .35s;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    height: 100%;
}

    .news-card:hover {
        transform: translateY(-8px);
    }

.news-image {
    position: relative;
}

    .news-image img {
        width: 100%;
        height: 240px;
        object-fit: cover;
    }

.news-date {
    position: absolute;
    right: 15px;
    bottom: 15px;
    background: #74C63D;
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
}

.news-body {
    padding: 25px;
}

.news-category {
    color: #74C63D;
    font-weight: 700;
    font-size: 14px;
}

.news-body h4 {
    margin: 15px 0;
    font-size: 22px;
    line-height: 1.8;
    font-weight: 800;
}

.news-body p {
    color: #666;
    line-height: 2;
    margin-bottom: 25px;
}

.news-btn {
    text-decoration: none;
    color: #74C63D;
    font-weight: 700;
}

    .news-btn i {
        transition: .3s;
        margin-right: 5px;
    }

    .news-btn:hover i {
        transform: translateX(-5px);
    }

/* Pagination */

.pagination .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0 5px;
    border-radius: 50%;
    color: #555;
}

.pagination .active .page-link {
    background: #74C63D;
}

/* Responsive */

@media(max-width:992px) {

    .news-header {
        padding: 90px 0;
    }

        .news-header h1 {
            font-size: 36px;
        }
}

@media(max-width:768px) {

    .news-header h1 {
        font-size: 28px;
    }

    .news-body h4 {
        font-size: 18px;
    }

    .search-box {
        border-radius: 20px;
    }
}
