/* ============================================================
   BLOG PAGE — DEDICATED STYLESHEET
   All NEW selectors use `bp-` prefix to avoid conflicts.
   Reuses .blog-card / .blog-* styles already defined in style.css
   for visual consistency with the homepage blog cards.
============================================================ */

.bp-page { padding-top: 0; }


/* ============================================================
   PAGE HERO / BANNER (matches About + Departments pages)
============================================================ */
.bp-hero {
    position: relative;
    padding: 200px 0 90px;
    background:
        linear-gradient(135deg,
            rgba(20, 68, 42, 0.92) 0%,
            rgba(13, 115, 119, 0.88) 60%,
            rgba(20, 68, 42, 0.94) 100%),
        radial-gradient(ellipse at top left, rgba(200, 147, 58, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(232, 185, 106, 0.18) 0%, transparent 55%),
        var(--green-deep);
    overflow: hidden;
    isolation: isolate;
}

.bp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 38px,
            rgba(200, 147, 58, 0.06) 38px,
            rgba(200, 147, 58, 0.06) 40px);
    pointer-events: none;
    z-index: -1;
}

.bp-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 147, 58, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.bp-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.bp-hero-arabic {
    font-family: 'Scheherazade New', 'Amiri', serif;
    direction: rtl;
    font-size: 1.7rem;
    color: var(--gold-light);
    margin-bottom: 14px;
    display: inline-block;
    animation: fadeUp 0.7s ease both;
}

.bp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 18px;
}

.bp-hero-eyebrow span {
    display: inline-block;
    width: 38px;
    height: 1px;
    background: var(--gold-light);
}

.bp-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--white);
}

.bp-hero-title em {
    font-style: italic;
    color: var(--gold-light);
}

.bp-hero-sub {
    max-width: 720px;
    margin: 0 auto 26px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

.bp-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(232, 185, 106, 0.35);
    border-radius: 50px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.bp-breadcrumb a,
.bp-breadcrumb span {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.bp-breadcrumb a:hover { color: var(--gold-light); }
.bp-breadcrumb .crumb-sep { color: var(--gold-light); font-size: 0.7rem; }
.bp-breadcrumb .crumb-current { color: var(--gold-light); }

.bp-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.bp-hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}


/* ============================================================
   SECTION SHELL
============================================================ */
.bp-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bp-section.alt-bg { background: var(--parchment); }

.bp-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
    position: relative;
    z-index: 2;
}

.bp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.bp-eyebrow span {
    display: inline-block;
    width: 34px;
    height: 1px;
    background: var(--gold);
}

.bp-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: var(--green-deep);
    line-height: 1.2;
    margin-bottom: 12px;
}

.bp-section-title em {
    font-style: italic;
    color: var(--primary-teal);
}

.bp-rule {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin-bottom: 22px;
}

.bp-section-sub {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-mid);
    max-width: 700px;
}

.bp-section-head {
    text-align: center;
    margin-bottom: 40px;
}

.bp-section-head .bp-rule { margin: 0 auto 22px; }
.bp-section-head .bp-section-sub { margin: 0 auto; }


/* ============================================================
   FEATURED POST (Hero spotlight)
============================================================ */
.bp-featured-wrap {
    margin-bottom: 8px;
}

.bp-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 22px 50px -25px rgba(20, 68, 42, 0.4);
    border: 1px solid var(--border);
    position: relative;
    isolation: isolate;
}

.bp-featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary-teal), var(--gold));
    z-index: 2;
}

.bp-feat-ribbon {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 4;
    background: linear-gradient(135deg, var(--gold), #b07f2c);
    color: var(--green-deep);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 8px 18px -8px rgba(200, 147, 58, 0.55);
}

.bp-feat-ribbon i { margin-right: 5px; }

.bp-feat-img {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.bp-feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.bp-featured:hover .bp-feat-img img {
    transform: scale(1.04);
}

.bp-feat-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(20, 68, 42, 0.35) 100%);
    pointer-events: none;
}

.bp-feat-cat {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: var(--primary-teal);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 3;
}

.bp-feat-body {
    padding: 38px 36px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bp-feat-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-mid);
    margin-bottom: 14px;
}

.bp-feat-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.bp-feat-meta i {
    color: var(--gold);
    font-size: 0.78rem;
}

.bp-feat-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    color: var(--green-deep);
    line-height: 1.25;
    margin-bottom: 14px;
}

.bp-feat-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bp-feat-title a:hover { color: var(--primary-teal); }

.bp-feat-excerpt {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-mid);
    margin-bottom: 22px;
}

.bp-feat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.bp-feat-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.bp-feat-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.bp-feat-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bp-feat-author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.bp-feat-author-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--green-deep);
}

.bp-feat-author-role {
    font-size: 0.72rem;
    color: var(--text-soft);
    letter-spacing: 0.06em;
}

.bp-feat-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--primary-teal);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 2px solid var(--primary-teal);
    transition: all 0.3s ease;
}

.bp-feat-cta:hover {
    background: transparent;
    color: var(--primary-teal);
}


/* ============================================================
   FILTER + SEARCH TOOLBAR
============================================================ */
.bp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 28px -22px rgba(20, 68, 42, 0.3);
}

.bp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bp-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-mid);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.04em;
}

.bp-filter-btn:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    background: var(--white);
}

.bp-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-teal), var(--green-mid));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 6px 16px -8px rgba(13, 115, 119, 0.5);
}

.bp-filter-btn .count {
    background: rgba(255, 255, 255, 0.18);
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 0.66rem;
    font-weight: 700;
}

.bp-filter-btn:not(.active) .count {
    background: rgba(13, 115, 119, 0.12);
    color: var(--primary-teal);
}

.bp-search-wrap {
    position: relative;
    flex: 1;
    max-width: 280px;
    min-width: 220px;
}

.bp-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.bp-search-input:focus {
    outline: none;
    border-color: var(--primary-teal);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.bp-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
    font-size: 0.85rem;
    pointer-events: none;
}


/* ============================================================
   BLOG GRID (uses existing .blog-card classes from style.css
   so cards look identical to homepage)
============================================================ */
.bp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* Hidden state when filter doesn't match */
.bp-blog-grid > article.bp-hide {
    display: none;
}

/* Empty state */
.bp-empty {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-mid);
}

.bp-empty.show { display: block; }

.bp-empty i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 14px;
    opacity: 0.6;
}

.bp-empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--green-deep);
    margin-bottom: 6px;
}

.bp-empty p {
    font-size: 0.95rem;
}


/* ============================================================
   PAGINATION
============================================================ */
.bp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.bp-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}

.bp-page-btn:hover:not(:disabled) {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    transform: translateY(-2px);
}

.bp-page-btn.active {
    background: linear-gradient(135deg, var(--primary-teal), var(--green-mid));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 20px -10px rgba(13, 115, 119, 0.55);
}

.bp-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bp-page-dots {
    color: var(--text-soft);
    padding: 0 4px;
}


/* ============================================================
   NEWSLETTER STRIP
============================================================ */
.bp-newsletter {
    padding: 70px 0;
    background:
        linear-gradient(135deg,
            rgba(20, 68, 42, 0.96) 0%,
            rgba(13, 115, 119, 0.92) 100%),
        var(--green-deep);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.bp-newsletter::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 40px,
            rgba(200, 147, 58, 0.05) 40px,
            rgba(200, 147, 58, 0.05) 42px);
}

.bp-newsletter::after {
    content: "﷽";
    position: absolute;
    top: 20px;
    right: 40px;
    font-family: 'Scheherazade New', 'Amiri', serif;
    font-size: 6rem;
    color: rgba(200, 147, 58, 0.08);
    pointer-events: none;
    line-height: 1;
}

.bp-newsletter-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 4%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.bp-newsletter-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold), #b07f2c);
    color: var(--green-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 14px 28px -12px rgba(200, 147, 58, 0.55);
}

.bp-newsletter h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.bp-newsletter h3 em {
    font-style: italic;
    color: var(--gold-light);
}

.bp-newsletter p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 580px;
    margin: 0 auto 26px;
    line-height: 1.7;
}

.bp-newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.bp-newsletter-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(232, 185, 106, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.bp-newsletter-input::placeholder { color: rgba(255, 255, 255, 0.55); }

.bp-newsletter-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.12);
}

.bp-newsletter-btn {
    padding: 14px 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), #b07f2c);
    color: var(--green-deep);
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 24px -10px rgba(200, 147, 58, 0.5);
}

.bp-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(200, 147, 58, 0.65);
}

.bp-newsletter-note {
    margin-top: 14px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.bp-newsletter-note i {
    color: var(--gold-light);
    margin-right: 5px;
}


/* ============================================================
   ANIMATION HELPERS (match elearning page)
============================================================ */
.bp-anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bp-anim.bp-visible {
    opacity: 1;
    transform: translateY(0);
}

.bp-anim-d1 { transition-delay: 0.1s; }
.bp-anim-d2 { transition-delay: 0.2s; }
.bp-anim-d3 { transition-delay: 0.3s; }
.bp-anim-d4 { transition-delay: 0.4s; }


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
    .bp-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .bp-featured {
        grid-template-columns: 1fr;
    }

    .bp-feat-img {
        min-height: 280px;
        aspect-ratio: 16 / 9;
    }

    .bp-feat-body {
        padding: 32px 28px 28px;
    }

    .bp-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .bp-search-wrap {
        max-width: 100%;
    }

    .bp-filters {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .bp-hero {
        padding: 110px 0 70px;
    }

    .bp-hero-arabic {
        font-size: 1.4rem;
    }

    .bp-section {
        padding: 60px 0;
    }

    .bp-blog-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 22px;
    }

    .bp-feat-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .bp-feat-cta { width: 100%; justify-content: center; }

    .bp-newsletter::after { font-size: 4rem; top: 14px; right: 18px; }

    .bp-newsletter-form {
        flex-direction: column;
    }

    .bp-newsletter-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .bp-hero {
        padding: 100px 0 60px;
    }

    .bp-section { padding: 50px 0; }
    .bp-inner { padding: 0 5%; }

    .bp-feat-body { padding: 26px 22px 22px; }

    .bp-feat-ribbon { font-size: 0.6rem; padding: 5px 11px; }
    .bp-feat-cat { font-size: 0.65rem; padding: 5px 11px; }

    .bp-toolbar {
        padding: 14px 16px;
    }

    .bp-filter-btn {
        font-size: 0.74rem;
        padding: 7px 13px;
    }

    .bp-page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}