/* ============================= */
/* FRONT CONTAINER */
/* ============================= */

.wcip-v8-front-container {
    width: min(94%, 1280px);
    margin: 0 auto;
}

/* ============================= */
/* HERO */
/* ============================= */

.wcip-v8-front-hero {
    background: linear-gradient(135deg, #071528, #10233f);
    color: #fff;
    padding: 70px 0;
    border-bottom: 3px solid #c5a253;
}

.wcip-v8-front-hero span {
    color: #f3dfaa;
    font-weight: 900;
}

.wcip-v8-front-hero h1 {
    font-size: 46px;
    margin: 14px 0;
    color: #fff;
}

.wcip-v8-front-hero p {
    color: #d7dfeb;
}

/* ============================= */
/* SECTIONS */
/* ============================= */

.wcip-v8-front-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0 26px;
}

.wcip-v8-front-sections a {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 14px 36px rgba(7, 21, 40, .08);
    border-top: 4px solid transparent;
}

.wcip-v8-front-sections a.is-active,
.wcip-v8-front-sections a:hover {
    border-top-color: #c5a253;
    box-shadow: 0 16px 42px rgba(197, 162, 83, .18);
}

/* ============================= */
/* GRID */
/* ============================= */

.wcip-v8-front-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 34px;
}

/* ============================= */
/* ARTICLE */
/* ============================= */

.wcip-v8-single {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: Tahoma, Arial, sans-serif;
}

.wcip-v8-simple-header {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: 0 14px 36px rgba(7, 21, 40, .08);
}

/* ============================= */
/* LOGO */
/* ============================= */

.wcip-v8-logo {
    text-align: center;
    margin-bottom: 20px;
}

.wcip-v8-logo img {
    max-height: 100px;
}

/* ============================= */
/* HEADER TEXT */
/* ============================= */

.wcip-v8-simple-header h1 {
    font-size: 38px;
    margin: 12px 0;
}

.wcip-v8-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #c5a253;
    font-weight: 800;
}

/* ============================= */
/* CONTENT */
/* ============================= */

.wcip-v8-content {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 22px;
    padding: 32px;
    line-height: 1.9;
}

/* ============================= */
/* PRINT FIX (🔥 كامل ومصحح) */
/* ============================= */

@media print {

    @page {
        size: A4;
        margin: 14mm;
    }

    html, body {
        background: #fff !important;
        color: #000 !important;
    }

    /* إخفاء كل الصفحة */
    body * {
        visibility: hidden !important;
    }

    /* إظهار المقال فقط */
    #wcip-print-area,
    #wcip-print-area * {
        visibility: visible !important;
    }

    #wcip-print-area {
        position: absolute !important;
        left: 0;
        top: 0;
        width: 100%;
    }

    /* HEADER */
    .wcip-v8-simple-header {
        display: block !important;
        border: 1px solid #999 !important;
        box-shadow: none !important;
    }

    /* LOGO */
    .wcip-v8-logo {
        display: block !important;
        text-align: center !important;
    }

    .wcip-v8-logo img {
        max-height: 100px !important;
        margin: auto !important;
    }

    /* TITLE */
    .wcip-v8-simple-header h1 {
        display: block !important;
        font-size: 22pt !important;
        color: #000 !important;
    }

    /* META */
    .wcip-v8-meta,
    .wcip-v8-meta span {
        display: block !important;
        color: #000 !important;
    }

    /* CONTENT */
    .wcip-v8-content,
    .wcip-v8-content * {
        visibility: visible !important;
        color: #000 !important;
    }

    /* HIDE UI */
    .wcip-v8-print-btn,
    header.site-header,
    footer.site-footer,
    nav,
    #wpadminbar {
        display: none !important;
    }
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1050px) {
    .wcip-v8-front-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .wcip-v8-front-grid {
        grid-template-columns: 1fr;
    }
}