﻿ 
:root {
    --primary: #4285f4;
    --primary-dark: #2563c7;
    --secondary: #db4437;
    --dark: #172033;
    --text: #687080;
    --light: #f6f9ff;
    --border: #e5eaf2;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark);
    background: #fff;
}

a {
    text-decoration: none;
}

/* Navbar */

.navbar {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 25px;
    font-weight: 800;
}

.logo-icon {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4285f4, #76aaff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.brand-blue {
    color: var(--primary);
}

.brand-red {
    color: var(--secondary);
}

.nav-link {
    color: #303746 !important;
    font-weight: 600;
    margin: 0 6px;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary) !important;
    }

.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
}

    .btn-primary-custom:hover {
        background: var(--primary-dark);
        color: white;
    }

.btn-outline-custom {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 700;
}

    .btn-outline-custom:hover {
        background: var(--secondary);
        color: white;
    }

/* Hero */

.page-hero {
    padding: 75px 0;
    background: radial-gradient(circle at 10% 20%, rgba(66,133,244,.12), transparent 30%), radial-gradient(circle at 90% 80%, rgba(219,68,55,.08), transparent 30%), #f7faff;
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 18px;
}

    .breadcrumb-custom a {
        color: var(--primary);
        font-weight: 700;
    }

.page-hero h1 {
    font-size: 45px;
    font-weight: 800;
    margin-bottom: 15px;
}

    .page-hero h1 span {
        color: var(--primary);
    }

.page-hero p {
    color: var(--text);
    max-width: 650px;
    line-height: 2;
    margin: 0;
}

.hero-icon {
    width: 150px;
    height: 150px;
    margin: auto;
    border-radius: 35px;
    background: linear-gradient(135deg, var(--primary), #2366cc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 70px;
    transform: rotate(-5deg);
    box-shadow: 0 25px 50px rgba(66,133,244,.2);
}

/* Main */

.articles-section {
    padding: 70px 0;
}

/* Filters */

.filter-box {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
}

    .search-box i {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #8992a3;
    }

    .search-box input {
        height: 48px;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding-right: 45px;
        font-family: inherit;
    }

        .search-box input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(66,133,244,.1);
        }

.category-btn {
    border: 1px solid var(--border);
    background: white;
    color: #555e6d;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    transition: .2s;
}

    .category-btn:hover,
    .category-btn.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

/* Featured */

.featured-card {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: white;
    box-shadow: 0 12px 35px rgba(0,0,0,.05);
    margin-bottom: 45px;
}

.featured-image {
    min-height: 330px;
    background: linear-gradient( rgba(66,133,244,.8), rgba(35,102,204,.9) ), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1000&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 75px;
}

.featured-content {
    padding: 35px;
}

.article-category {
    display: inline-block;
    background: #eaf2ff;
    color: var(--primary);
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 13px;
}

.featured-content h2 {
    font-size: 29px;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 15px;
}

.featured-content p {
    color: var(--text);
    line-height: 2;
    font-size: 14px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #8992a3;
    font-size: 12px;
    margin-top: 20px;
}

    .article-meta i {
        color: var(--primary);
        margin-left: 5px;
    }

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    margin-top: 20px;
}

    .read-more:hover {
        color: var(--primary-dark);
    }

/* Article Cards */

.article-card {
    height: 100%;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: .3s;
}

    .article-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 18px 40px rgba(0,0,0,.08);
    }

.article-image {
    height: 210px;
    position: relative;
    overflow: hidden;
}

    .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .4s;
    }

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: white;
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.article-body {
    padding: 23px;
}

    .article-body h3 {
        font-size: 19px;
        font-weight: 800;
        line-height: 1.6;
        margin-bottom: 12px;
    }

        .article-body h3 a {
            color: var(--dark);
        }

            .article-body h3 a:hover {
                color: var(--primary);
            }

    .article-body p {
        color: var(--text);
        font-size: 13px;
        line-height: 1.9;
        margin-bottom: 15px;
    }

    .article-body .article-meta {
        margin-top: 10px;
    }

/* Sidebar */

.sidebar-box {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-right: 12px;
    border-right: 4px solid var(--primary);
}

.popular-item {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

    .popular-item:last-child {
        border-bottom: none;
    }

.popular-number {
    min-width: 35px;
    height: 35px;
    border-radius: 9px;
    background: #eaf2ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.popular-item h6 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

.popular-item small {
    color: #929aaa;
}

/* Newsletter */

.newsletter {
    background: linear-gradient( 135deg, var(--secondary), #bc352a );
    color: white;
    border-radius: 18px;
    padding: 28px;
}

    .newsletter i {
        font-size: 35px;
        margin-bottom: 12px;
    }

    .newsletter h4 {
        font-weight: 800;
    }

    .newsletter p {
        font-size: 13px;
        line-height: 1.8;
        opacity: .9;
    }

    .newsletter input {
        height: 45px;
        border: none;
        border-radius: 9px;
        width: 100%;
        padding: 0 13px;
        font-family: inherit;
        margin-bottom: 10px;
    }

    .newsletter button {
        width: 100%;
        border: none;
        background: white;
        color: var(--secondary);
        height: 45px;
        border-radius: 9px;
        font-weight: 800;
    }

/* Pagination */

.pagination {
    margin-top: 50px;
}

.page-link {
    border: none;
    color: var(--text);
    margin: 0 3px;
    border-radius: 8px !important;
}

.page-item.active .page-link {
    background: var(--primary);
    color: white;
}

/* Footer */

footer {
    background: #101827;
    color: white;
    padding-top: 55px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
}

footer p {
    color: #aeb7c7;
    line-height: 2;
}

footer h5 {
    font-weight: 800;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 11px;
        color: #aeb7c7;
    }

    .footer-links a {
        color: #aeb7c7;
    }

        .footer-links a:hover {
            color: white;
        }

.social-links {
    display: flex;
    gap: 8px;
}

    .social-links a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #202b3e;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .social-links a:hover {
            background: var(--primary);
        }

.copyright {
    border-top: 1px solid #273247;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    color: #8792a5;
    font-size: 12px;
}

@media (max-width: 991px) {
    .page-hero {
        padding: 55px 0;
    }

    .hero-icon {
        margin-top: 35px;
    }
}

@media (max-width: 576px) {
    .page-hero h1 {
        font-size: 34px;
    }

    .featured-content {
        padding: 25px;
    }

        .featured-content h2 {
            font-size: 23px;
        }
}
 