﻿

: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: #f8faff;
    line-height: 1.9;
}

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: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
}

    .btn-primary-custom:hover {
        background: var(--primary-dark);
        color: #fff;
    }

.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: #fff;
    }


/* =========================
           Article Header
        ========================= */

.article-header {
    background: #fff;
    padding: 55px 0 35px;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #8992a3;
    font-size: 13px;
    margin-bottom: 25px;
}

    .breadcrumb-custom a {
        color: var(--primary);
        font-weight: 700;
    }

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eaf2ff;
    color: var(--primary);
    border-radius: 30px;
    padding: 7px 15px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 18px;
}

.article-title {
    font-size: 42px;
    line-height: 1.5;
    font-weight: 800;
    max-width: 950px;
    margin-bottom: 18px;
}

.article-intro {
    color: var(--text);
    font-size: 17px;
    line-height: 2;
    max-width: 850px;
    margin-bottom: 25px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #7c8595;
    font-size: 13px;
}

    .article-meta span {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .article-meta i {
        color: var(--primary);
    }


/* =========================
           Main Article
        ========================= */

.article-section {
    padding: 45px 0 80px;
}

.article-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}

.article-cover {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 35px;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 800;
    margin-top: 38px;
    margin-bottom: 18px;
    padding-right: 15px;
    border-right: 4px solid var(--primary);
}

.article-content h3 {
    font-size: 21px;
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 12px;
}

.article-content p {
    color: #555f70;
    font-size: 15px;
    line-height: 2.1;
    margin-bottom: 18px;
}

.article-content ul {
    color: #555f70;
    padding-right: 25px;
    margin-bottom: 25px;
}

.article-content li {
    margin-bottom: 10px;
}

    .article-content li::marker {
        color: var(--primary);
    }


/* =========================
           Info Box
        ========================= */

.info-box {
    background: linear-gradient( 135deg, #edf4ff, #f8fbff );
    border: 1px solid #d6e5ff;
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
}

.info-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 12px;
}

.info-box p {
    margin-bottom: 0;
}


/* =========================
           Important Box
        ========================= */

.important-box {
    background: #fff7f6;
    border: 1px solid #f5d3cf;
    border-right: 5px solid var(--secondary);
    border-radius: 14px;
    padding: 22px;
    margin: 30px 0;
}

    .important-box strong {
        color: var(--secondary);
    }


/* =========================
           Code Box
        ========================= */

.code-box {
    direction: ltr;
    text-align: left;
    background: #111827;
    color: #dbeafe;
    border-radius: 14px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: Consolas, monospace;
    font-size: 14px;
}


/* =========================
           Share
        ========================= */

.share-box {
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.share-title {
    font-weight: 800;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: .2s;
}

    .share-btn:hover {
        transform: translateY(-3px);
    }

.facebook {
    background: #1877f2;
}

.whatsapp {
    background: #25d366;
}

.copy-link {
    background: #687080;
}


/* =========================
           Sidebar
        ========================= */

.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-right: 12px;
    border-right: 4px solid var(--secondary);
}

.article-link {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

    .article-link:last-child {
        border-bottom: none;
    }

.article-thumb {
    width: 75px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 9px;
    overflow: hidden;
}

    .article-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.article-link h4 {
    font-size: 12px;
    line-height: 1.7;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.article-link small {
    color: #929aaa;
    font-size: 9px;
}


/* =========================
           CTA
        ========================= */

.cta-box {
    background: linear-gradient( 135deg, var(--primary), #2868ce );
    border-radius: 18px;
    padding: 28px 22px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

    .cta-box i {
        font-size: 38px;
        margin-bottom: 10px;
    }

    .cta-box h3 {
        font-size: 19px;
        font-weight: 800;
    }

    .cta-box p {
        color: #e5efff;
        font-size: 12px;
    }

    .cta-box .btn {
        background: #fff;
        color: var(--primary);
        border-radius: 9px;
        font-weight: 800;
        padding: 9px 20px;
    }


/* =========================
           Footer
        ========================= */

footer {
    background: #101827;
    color: #fff;
    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: #fff;
        }

.copyright {
    border-top: 1px solid #273247;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    color: #8792a5;
    font-size: 12px;
}


/* =========================
           Responsive
        ========================= */

@media (max-width: 991px) {

    .article-title {
        font-size: 34px;
    }

    .article-cover {
        height: 350px;
    }
}

@media (max-width: 576px) {

    .article-header {
        padding: 40px 0 25px;
    }

    .article-title {
        font-size: 27px;
    }

    .article-intro {
        font-size: 14px;
    }

    .article-content {
        padding: 18px;
    }

    .article-cover {
        height: 230px;
    }

    .article-content h2 {
        font-size: 21px;
    }
}

