/*
Theme Name: New Prof. Amir Theme
Theme URI: http://www.prof-alhadad.com
Author: Ahmad Alfailakawi
Author URI: http://www.Alfailakawi.com/
Description: Redesigned Islamic-inspired theme for Professor Amir Alhadad. Responsive across mobile, tablet and desktop. Built on Bootstrap 5 RTL.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Reem+Kufi:wght@400;500;600;700&family=Cairo:wght@400;600;700&display=swap');

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
    /* Islamic-inspired palette */
    --np-emerald-900: #063d33;
    --np-emerald-800: #0a5d4e;
    --np-emerald-700: #117863;
    --np-emerald-600: #1d9379;
    --np-emerald-50:  #e9f4f1;

    --np-gold-700: #a8852f;
    --np-gold-600: #c9a55a;
    --np-gold-500: #d9b97a;
    --np-gold-100: #f6ecd4;

    --np-cream:    #fbf8f1;
    --np-cream-2:  #f3ecdc;
    --np-paper:    #ffffff;

    --np-ink:      #2d2418;
    --np-ink-soft: #574a36;
    --np-muted:    #8a7e66;
    --np-line:     #e6dec9;

    --np-shadow-sm: 0 2px 6px rgba(10, 60, 50, 0.06);
    --np-shadow-md: 0 8px 24px rgba(10, 60, 50, 0.08);
    --np-shadow-lg: 0 18px 40px rgba(10, 60, 50, 0.12);

    --np-radius:    14px;
    --np-radius-lg: 22px;

    --np-font-body:    'Amiri', 'Cairo', 'Reem Kufi', Georgia, serif;
    --np-font-display: 'Reem Kufi', 'Cairo', 'Amiri', sans-serif;

    --np-nav-h: 96px;
}

/* ==========================================================================
   BASE
   ========================================================================== */
html { scroll-behavior: smooth; }

body {
    font-family: var(--np-font-body);
    background-color: var(--np-cream) !important;
    color: var(--np-ink);
    padding-top: var(--np-nav-h);
    line-height: 1.85;
    font-size: 17px;
    /* Subtle geometric paper texture */
    background-image:
        radial-gradient(circle at 1px 1px, rgba(10, 93, 78, 0.05) 1px, transparent 0),
        radial-gradient(circle at 12px 12px, rgba(201, 165, 90, 0.04) 1px, transparent 0);
    background-size: 24px 24px, 24px 24px;
}

@media (max-width: 991.98px) {
    body { padding-top: 78px; font-size: 16px; }
    :root { --np-nav-h: 78px; }
}

a { color: var(--np-emerald-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--np-gold-700); }

p { margin-bottom: 1rem; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--np-font-display);
    color: var(--np-emerald-900);
    font-weight: 600;
    line-height: 1.4;
}

.font-reem { font-family: var(--np-font-display) !important; }

.text-just { text-align: justify; text-justify: inter-word; }

.fw-600 { font-weight: 600; }

::selection { background: var(--np-gold-600); color: var(--np-emerald-900); }

/* ==========================================================================
   DECORATIVE ORNAMENTS (CSS-only)
   ========================================================================== */
.np-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 8px auto 22px;
    color: var(--np-gold-600);
    font-size: 18px;
}
.np-ornament::before,
.np-ornament::after {
    content: "";
    flex: 0 1 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--np-gold-500), transparent);
}
.np-ornament svg { width: 22px; height: 22px; }

.np-section-title {
    text-align: center;
    margin-bottom: 0;
    font-family: var(--np-font-display);
    font-size: 1.9rem;
    color: var(--np-emerald-900);
    letter-spacing: .5px;
}
.np-section-title small {
    display: block;
    font-size: .85rem;
    color: var(--np-muted);
    font-family: var(--np-font-body);
    font-weight: 400;
    margin-top: 4px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.custom-nav {
    background: linear-gradient(180deg, var(--np-paper) 0%, var(--np-cream) 100%) !important;
    border-bottom: 1px solid var(--np-line) !important;
    box-shadow: var(--np-shadow-sm);
    padding-top: 12px;
    padding-bottom: 12px;
    position: relative;
}
.custom-nav::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--np-emerald-800) 0%,
        var(--np-gold-600) 50%,
        var(--np-emerald-800) 100%);
    background-size: 200% 100%;
    animation: np-shimmer 8s linear infinite;
}
@keyframes np-shimmer {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.navbar-brand img {
    width: 220px;
    max-width: 60vw;
    height: auto;
    transition: transform .25s ease;
}
.navbar-brand:hover img { transform: scale(1.03); }

.custom-nav .navbar-nav .nav-link {
    color: var(--np-emerald-900);
    font-family: var(--np-font-display);
    font-weight: 500;
    font-size: .98rem;
    padding: .55rem 1rem !important;
    margin: 0 2px;
    position: relative;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}
.custom-nav .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--np-gold-600);
    transition: width .25s ease, left .25s ease;
}
.custom-nav .navbar-nav .nav-link:hover,
.custom-nav .navbar-nav .nav-link.active {
    color: var(--np-emerald-700);
    background: var(--np-emerald-50);
}
.custom-nav .navbar-nav .nav-link:hover::after,
.custom-nav .navbar-nav .nav-link.active::after {
    width: 60%;
    left: 20%;
}

.custom-nav .dropdown-menu {
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow-md);
    background: var(--np-paper);
    padding: 8px;
    margin-top: 8px !important;
    font-size: .92rem !important;
}
.custom-nav .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--np-ink);
    font-family: var(--np-font-display);
}
.custom-nav .dropdown-menu .dropdown-item:hover,
.custom-nav .dropdown-menu .dropdown-item:focus {
    background: var(--np-emerald-50);
    color: var(--np-emerald-800);
}

.custom-nav form.d-flex { min-width: 220px; margin-right: 6px; }
.custom-nav .input-group .form-control {
    border-radius: 999px 0 0 999px;
    border: 1px solid var(--np-line);
    background: var(--np-cream);
    padding-right: 14px;
}
.custom-nav .input-group .form-control:focus {
    border-color: var(--np-emerald-600);
    box-shadow: 0 0 0 .2rem rgba(29, 147, 121, 0.15);
    background: #fff;
}
.custom-nav .input-group .btn {
    border-radius: 0 999px 999px 0;
    background: var(--np-emerald-800);
    border: 1px solid var(--np-emerald-800);
    color: #fff;
    padding-left: 14px;
    padding-right: 14px;
}
.custom-nav .input-group .btn:hover {
    background: var(--np-gold-600);
    border-color: var(--np-gold-600);
    color: var(--np-emerald-900);
}

.navbar-toggler {
    border: 1px solid var(--np-line);
    padding: .35rem .55rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 .15rem rgba(201, 165, 90, .35); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%230a5d4e' stroke-width='2.2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media (max-width: 991.98px) {
    .navbar-brand img { width: 170px; }
    .custom-nav .navbar-nav { padding-top: 10px; }
    .custom-nav form.d-flex { margin-top: 10px; width: 100%; }
}

/* ==========================================================================
   HERO CAROUSEL — original layout, restyled background to match new design
   ========================================================================== */
.main-header { padding-top: 24px !important; padding-bottom: 24px !important; }

#featuredCarousel {
    border-radius: var(--np-radius-lg);
    overflow: hidden;
    box-shadow: var(--np-shadow-lg);
    border: 1px solid var(--np-line);
    position: relative;
    background: var(--np-emerald-900);
}
/* Gold inset border that frames the whole carousel */
#featuredCarousel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    border-radius: var(--np-radius-lg);
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .35),
                inset 0 0 0 7px var(--np-gold-600);
}

#featuredCarousel .carousel-item {
    position: relative;
}
#featuredCarousel .carousel-item img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    /* Tone the photo down so the emerald wash on top reads as the dominant color */
    filter: brightness(.45) saturate(.85) contrast(1.05);
}
/* Emerald → gold gradient wash that ties the carousel into the new palette */
#featuredCarousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(115deg,
            rgba(6, 61, 51, 0.85) 0%,
            rgba(10, 93, 78, 0.65) 45%,
            rgba(17, 120, 99, 0.35) 100%),
        linear-gradient(0deg,
            rgba(6, 61, 51, 0.6) 0%,
            transparent 55%);
    pointer-events: none;
}
/* Decorative Islamic star lattice overlay (PNG pattern image) */
#featuredCarousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: url("img/hero-pattern.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    #featuredCarousel .carousel-item img { height: 340px; }
}
@media (max-width: 767.98px) {
    #featuredCarousel .carousel-caption { padding: 20px 8%; }
    #featuredCarousel .carousel-caption h2 {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-top: 6px;
    }
    #featuredCarousel .carousel-caption p { font-size: 0.72rem; }
}
@media (max-width: 575.98px) {
    #featuredCarousel .carousel-item img { height: 260px; }
    #featuredCarousel .carousel-caption { padding: 14px 6%; }
    #featuredCarousel .carousel-caption h2 {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-top: 4px;
    }
    #featuredCarousel .carousel-caption p { font-size: 0.65rem; }
}

#featuredCarousel .carousel-caption {
    inset: 0;
    z-index: 3;
    padding: 30px 8%;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
#featuredCarousel .carousel-caption a { display: block; }
#featuredCarousel .carousel-caption h2 {
    font-family: var(--np-font-display);
    font-weight: 700;
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 2.4rem);
    line-height: 1.5;
    max-width: 900px;
    margin: 12px auto 0;
}
#featuredCarousel .carousel-caption p {
    color: var(--np-gold-500);
    font-family: var(--np-font-display);
    letter-spacing: 1px;
    text-transform: none;
    margin: 0;
}
#featuredCarousel .carousel-indicators {
    margin-bottom: 18px;
    z-index: 5;
}
#featuredCarousel .carousel-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--np-gold-500);
    opacity: 1;
    margin: 0 5px;
}
#featuredCarousel .carousel-indicators .active {
    background: var(--np-gold-600);
    border-color: var(--np-gold-600);
    transform: scale(1.25);
}
#featuredCarousel .carousel-control-prev,
#featuredCarousel .carousel-control-next {
    width: 6%;
    opacity: .9;
    z-index: 5;
}
#featuredCarousel .carousel-control-prev-icon,
#featuredCarousel .carousel-control-next-icon {
    background-color: rgba(10, 93, 78, .85);
    border: 1px solid rgba(201, 165, 90, .7);
    border-radius: 50%;
    padding: 22px;
    background-size: 50% 50%;
}

/* ==========================================================================
   HERO TEXT (between sections)
   ========================================================================== */
.hero_text {
    background:
        linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.7)),
        var(--np-cream-2);
    border-top: 1px solid var(--np-line) !important;
    border-bottom: 1px solid var(--np-line) !important;
    position: relative;
}
.hero_text::before,
.hero_text::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 6px;
    background: repeating-linear-gradient(135deg,
        var(--np-gold-600) 0 10px,
        transparent 10px 20px);
    opacity: .35;
}
.hero_text::before { top: 0; }
.hero_text::after  { bottom: 0; }
.hero_text .course_cat_text {
    text-align: center;
    padding: 14px 0;
    font-family: var(--np-font-body);
    font-size: 1.1rem;
    color: var(--np-ink-soft);
}
.hero_text h2 {
    font-family: var(--np-font-display) !important;
    color: var(--np-emerald-900);
    font-size: 1.6rem !important;
    margin: 0;
}

/* ==========================================================================
   SECTION WRAPPERS (categories on the front page)
   ========================================================================== */
.category_one,
.category_two,
.category_three {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
    position: relative;
}
.category_two {
    background:
        linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.6)),
        var(--np-emerald-50);
    border-top: 1px solid var(--np-line);
    border-bottom: 1px solid var(--np-line);
}

/* ==========================================================================
   CATEGORY CARDS (feature-cat_cards.php)
   ========================================================================== */
.card {
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    background: var(--np-paper);
    box-shadow: var(--np-shadow-sm);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--np-emerald-800),
        var(--np-gold-600),
        var(--np-emerald-800));
    opacity: .9;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--np-shadow-md);
    border-color: var(--np-gold-500);
}

.card-header {
    background: linear-gradient(180deg, var(--np-cream) 0%, #fff 100%);
    border-bottom: 1px solid var(--np-line);
    color: var(--np-emerald-800);
    font-family: var(--np-font-display);
    font-weight: 600;
    padding: 14px 18px;
}
.card-header .font-reem {
    color: var(--np-emerald-900);
    font-size: 1rem;
}
.card-header svg {
    color: var(--np-gold-700);
    vertical-align: -2px;
}
.card-header .text-muted {
    color: var(--np-muted) !important;
    font-family: var(--np-font-body);
}

.card-body {
    padding: 18px;
}
.card-title {
    font-family: var(--np-font-display);
    color: var(--np-emerald-900);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}
.card-text {
    color: var(--np-ink-soft);
    font-size: .98rem;
    line-height: 1.85;
}

.card-footer {
    background: transparent !important;
    border-top: 1px dashed var(--np-line);
    padding: 14px 18px;
}
.card-footer .btn-secondary {
    background: var(--np-emerald-800);
    border-color: var(--np-emerald-800);
    border-radius: 999px;
    font-family: var(--np-font-display);
    padding: 8px 18px;
}
.card-footer .btn-secondary:hover {
    background: var(--np-gold-600);
    border-color: var(--np-gold-600);
    color: var(--np-emerald-900);
}

.card .card-img-top {
    border-radius: 8px;
    transition: transform .35s ease;
}
.card:hover .card-img-top { transform: scale(1.04); }

/* Books category — pure thumbnail grid */
.category_three .card { background: linear-gradient(180deg, #fff 0%, var(--np-cream) 100%); }
.category_three .card-header .col-6.font-reem { color: var(--np-emerald-800); }

/* ==========================================================================
   PAGE / POST HEADERS
   ========================================================================== */
.custom-page-header,
.cat-header {
    background:
        linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.85)),
        var(--np-emerald-50);
    border-bottom: 1px solid var(--np-line);
    padding-top: 38px !important;
    padding-bottom: 38px !important;
    position: relative;
    overflow: hidden;
}
.custom-page-header::before,
.cat-header::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        var(--np-gold-600),
        var(--np-emerald-700),
        var(--np-gold-600),
        transparent);
}
.custom-page-header .page-title-heading h1,
.cat-header .cat-header-text h1 {
    font-family: var(--np-font-display);
    color: var(--np-emerald-900);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 10px;
}
.custom-page-header img {
    border-radius: var(--np-radius) !important;
    border: 4px solid #fff;
    box-shadow: var(--np-shadow-md);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 8px;
    font-family: var(--np-font-display);
    font-size: .85rem;
}
.breadcrumb a { color: var(--np-emerald-700); text-decoration: none; }
.breadcrumb a:hover { color: var(--np-gold-700); }
.breadcrumb-item.active { color: var(--np-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--np-gold-600); }

.badge.bg-secondary {
    background: var(--np-gold-600) !important;
    color: var(--np-emerald-900) !important;
    font-family: var(--np-font-display);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
}

/* ==========================================================================
   MAIN ARTICLE CONTENT
   ========================================================================== */
.page-content {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
    border-top: none !important;
}

.main-content {
    background: var(--np-paper);
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    padding: 30px 32px;
    box-shadow: var(--np-shadow-sm);
    position: relative;
    line-height: 2;
    color: var(--np-ink);
}
.main-content::before {
    content: "";
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    border-radius: var(--np-radius) var(--np-radius) 0 0;
    background: linear-gradient(90deg,
        var(--np-emerald-800),
        var(--np-gold-600),
        var(--np-emerald-800));
}

.main-content h1, .main-content h2, .main-content h3,
.main-content h4, .main-content h5, .main-content h6 {
    color: var(--np-emerald-900);
    font-family: var(--np-font-display);
    margin-top: 1.6em;
    margin-bottom: .6em;
}
.main-content h2 {
    font-size: 1.55em;
    font-weight: 700;
    padding-right: 14px;
    border-right: 4px solid var(--np-gold-600);
}
.main-content h3 { font-size: 1.3em; font-weight: 600; }

.main-content p { margin-bottom: 1.1em; }

.main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--np-shadow-sm);
    margin: 14px 0;
}

.main-content a {
    color: var(--np-emerald-700);
    border-bottom: 1px dashed var(--np-gold-500);
}
.main-content a:hover {
    color: var(--np-gold-700);
    border-bottom-color: var(--np-gold-700);
}

.main-content ul, .main-content ol {
    padding-right: 22px;
    margin-bottom: 1.1em;
}
.main-content ul li::marker { color: var(--np-gold-600); }
.main-content ol li::marker { color: var(--np-emerald-700); font-weight: 700; }

blockquote {
    padding: 18px 22px;
    background: linear-gradient(180deg, var(--np-cream) 0%, #fff 100%);
    border-right: 4px solid var(--np-gold-600);
    border-left: none;
    border-radius: 10px;
    margin: 18px 0;
    font-family: var(--np-font-body);
    font-style: italic;
    color: var(--np-ink-soft);
    position: relative;
}
blockquote::before {
    content: "\201D";
    position: absolute;
    top: -10px;
    right: 14px;
    font-size: 3.2rem;
    color: var(--np-gold-500);
    line-height: 1;
    font-family: serif;
}

pre {
    padding: 18px;
    background: #0f2622;
    color: #e9f4f1;
    border: 1px solid var(--np-emerald-900);
    border-radius: 10px;
    overflow-x: auto;
}

/* YouTube embeds */
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow-md);
    border: 4px solid #fff;
    background: #000;
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ==========================================================================
   CUSTOM AUDIO PLAYER (.np-audio)
   Replaces the mp3-jplayer plugin output. Wired up by /js/np-audio.js
   ========================================================================== */
.np-audio {
    display: flex;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, var(--np-emerald-900) 0%, var(--np-emerald-800) 60%, var(--np-emerald-700) 100%);
    color: #fff;
    border-radius: var(--np-radius-lg);
    padding: 24px 28px;
    margin: 16px 0 28px;
    box-shadow: var(--np-shadow-lg);
    position: relative;
    overflow: hidden;
}
.np-audio::before {
    /* gold inset frame */
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201, 165, 90, 0.55);
    border-radius: calc(var(--np-radius-lg) - 6px);
    pointer-events: none;
}
.np-audio::after {
    /* star pattern overlay */
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/pattern-stars.svg");
    background-repeat: repeat;
    background-size: 110px 110px;
    opacity: 0.13;
    mix-blend-mode: screen;
    pointer-events: none;
}
.np-audio > * { position: relative; z-index: 1; }

/* ----- Cover (image OR svg ornament) ----- */
.np-audio-cover {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--np-gold-600);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .15),
                0 8px 24px rgba(0, 0, 0, .35);
    position: relative;
    background: var(--np-emerald-900);
}
.np-audio-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.np-audio-cover--svg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--np-emerald-800) 0%, var(--np-emerald-900) 100%);
}
.np-audio-cover--svg svg { width: 70%; height: 70%; }
.np-audio.is-playing .np-audio-cover {
    animation: np-audio-spin 14s linear infinite;
}
@keyframes np-audio-spin { to { transform: rotate(360deg); } }

/* ----- Body ----- */
.np-audio-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.np-audio-eyebrow {
    display: inline-block;
    width: fit-content;
    font-family: var(--np-font-display);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--np-gold-500);
    background: rgba(201, 165, 90, 0.15);
    border: 1px solid rgba(201, 165, 90, 0.4);
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}
.np-audio-title {
    font-family: var(--np-font-display);
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-audio-el { display: none; }

/* ----- Controls row ----- */
.np-audio-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.np-audio-play {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--np-gold-500) 0%, var(--np-gold-700) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--np-emerald-900);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35),
                inset 0 0 0 1px rgba(255, 255, 255, .35);
    transition: transform .2s ease, box-shadow .2s ease;
    padding: 0;
}
.np-audio-play:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45),
                inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.np-audio-play:active { transform: scale(0.97); }
.np-audio-play svg { display: block; }
.np-audio-play .np-audio-icon-pause { display: none; }
.np-audio.is-playing .np-audio-play .np-audio-icon-play  { display: none; }
.np-audio.is-playing .np-audio-play .np-audio-icon-pause { display: block; }
/* ----- Progress bar + times ----- */
.np-audio-bar-wrap {
    flex: 1;
    min-width: 0;
}
.np-audio-times {
    display: flex;
    justify-content: space-between;
    font-family: var(--np-font-display);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
    direction: ltr; /* current time on the left, total on the right */
}
.np-audio-bar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    cursor: pointer;
    outline: none;
    direction: ltr; /* fill grows L→R regardless of page direction */
}
.np-audio-bar:focus-visible {
    box-shadow: 0 0 0 3px rgba(201, 165, 90, 0.45);
}
.np-audio-bar-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;        /* fills from the left (LTR) */
    width: 0%;
    background: linear-gradient(90deg, var(--np-gold-700), var(--np-gold-500));
    border-radius: 999px;
    transition: width .08s linear;
    box-shadow: 0 0 8px rgba(201, 165, 90, 0.5);
}
.np-audio-bar-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--np-gold-600);
    transform: translate(-50%, -50%);
    transition: left .08s linear, transform .15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.np-audio-bar:hover .np-audio-bar-handle { transform: translate(-50%, -50%) scale(1.15); }

/* ----- Extra (mute / download) ----- */
.np-audio-extra {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.np-audio-mute {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, border-color .2s ease;
    padding: 0;
}
.np-audio-mute:hover {
    background: rgba(201, 165, 90, 0.25);
    border-color: var(--np-gold-500);
}
.np-audio-mute .np-audio-icon-mute { display: none; }
.np-audio.is-muted .np-audio-mute .np-audio-icon-vol  { display: none; }
.np-audio.is-muted .np-audio-mute .np-audio-icon-mute { display: block; }

.np-audio-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--np-gold-600);
    color: var(--np-emerald-900) !important;
    border: 1px solid var(--np-gold-600);
    font-family: var(--np-font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.np-audio-download:hover {
    background: var(--np-gold-500);
    border-color: var(--np-gold-500);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 165, 90, .45);
    color: var(--np-emerald-900) !important;
}
.np-audio-download svg { display: block; }

/* ----- Responsive ----- */
@media (max-width: 767.98px) {
    .np-audio {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
        gap: 18px;
    }
    .np-audio-cover {
        flex: 0 0 90px;
        width: 90px;
        height: 90px;
    }
    .np-audio-body { width: 100%; }
    .np-audio-eyebrow { margin: 0 auto; }
    .np-audio-title { font-size: 1.1rem; }

    .np-audio-controls {
        flex-wrap: wrap;
        gap: 14px;
        justify-content: center;
        align-items: center;
    }

    /* Flatten the .np-audio-extra wrapper on mobile so its children
       (download, mute) become direct flex items of .np-audio-controls.
       This lets us order each button individually. */
    .np-audio-extra { display: contents; }

    /* Row 1: full-width progress bar */
    .np-audio-bar-wrap { flex: 1 1 100%; order: 1; }

    /* Row 2: buttons. In RTL flex flow, the *highest* order number ends
       up on the LEFT. We want left → right: play, mute, download. */
    .np-audio-play     { order: 4; }
    .np-audio-mute     { order: 3; }
    .np-audio-download { order: 2; }

    /* All three buttons rendered as identically-sized circles */
    .np-audio-play,
    .np-audio-mute,
    .np-audio-download {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
        padding: 0;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
    .np-audio-download span { display: none; }
}

@media (max-width: 575.98px) {
    .np-audio-play,
    .np-audio-mute,
    .np-audio-download {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
    }
}

/* ==========================================================================
   QURAN TEMPLATE (page-quran.php)
   ========================================================================== */

/* ----------- HERO ----------- */
.np-quran-hero {
    background:
        linear-gradient(180deg, var(--np-emerald-900) 0%, var(--np-emerald-800) 100%);
    padding: 38px 0 50px;
    border-bottom: 4px solid var(--np-gold-600);
    position: relative;
    overflow: hidden;
    color: #fff;
}
.np-quran-hero::before {
    /* Star pattern overlay */
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/pattern-stars.svg");
    background-repeat: repeat;
    background-size: 110px 110px;
    opacity: 0.18;
    mix-blend-mode: screen;
    pointer-events: none;
}
.np-quran-hero::after {
    /* Soft gold glow accent */
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(201, 165, 90, 0.25) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.np-quran-hero .container { position: relative; z-index: 1; }

.np-quran-hero-crumb { margin-bottom: 22px; }
.np-quran-hero-crumb .breadcrumb { margin-bottom: 0; }
.np-quran-hero-crumb .breadcrumb a { color: var(--np-gold-500); }
.np-quran-hero-crumb .breadcrumb a:hover { color: #fff; }
.np-quran-hero-crumb .breadcrumb-item.active { color: rgba(255, 255, 255, .75); }
.np-quran-hero-crumb .breadcrumb-item + .breadcrumb-item::before { color: var(--np-gold-500); }

.np-quran-hero-card {
    display: flex;
    align-items: center;
    gap: 36px;
}

.np-quran-hero-art {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.np-quran-hero-art svg {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}

.np-quran-hero-info { flex: 1; min-width: 0; }

.np-quran-hero-eyebrow {
    display: inline-block;
    font-family: var(--np-font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--np-gold-500);
    background: rgba(201, 165, 90, 0.15);
    border: 1px solid rgba(201, 165, 90, 0.5);
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.np-quran-hero-title {
    font-family: var(--np-font-display);
    color: #fff !important;
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.np-quran-hero-subtitle {
    font-family: var(--np-font-body);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    margin: 0 0 20px;
    line-height: 1.7;
}

.np-quran-hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px dashed rgba(201, 165, 90, 0.35);
}
.np-quran-stat { display: flex; flex-direction: column; }
.np-quran-stat-num {
    font-family: var(--np-font-display);
    font-weight: 700;
    font-size: 1.85rem;
    color: var(--np-gold-500);
    line-height: 1;
    margin-bottom: 4px;
}
.np-quran-stat-label {
    font-family: var(--np-font-display);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 767.98px) {
    .np-quran-hero { padding: 26px 0 36px; }
    .np-quran-hero-card {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    .np-quran-hero-art { flex: 0 0 auto; }
    .np-quran-hero-art svg { width: 170px; }
    .np-quran-hero-stats { justify-content: center; gap: 22px; }
    .np-quran-hero-title { font-size: 1.5rem; }
    .np-quran-hero-subtitle { font-size: 0.92rem; }
    .np-quran-stat-num { font-size: 1.5rem; }
}

/* ----------- SECTION + INTRO ----------- */
.np-quran-section {
    padding: 36px 0 24px;
}
.np-quran-intro {
    background: var(--np-paper);
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow-sm);
    padding: 22px 26px;
    margin-bottom: 24px;
    position: relative;
}
.np-quran-intro::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--np-radius) var(--np-radius) 0 0;
    background: linear-gradient(90deg, var(--np-emerald-800), var(--np-gold-600), var(--np-emerald-800));
}
.np-quran-intro h2 {
    font-family: var(--np-font-display);
    color: var(--np-emerald-900);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px;
    padding-right: 14px;
    border-right: 4px solid var(--np-gold-600);
}
.np-quran-intro p {
    margin: 0;
    color: var(--np-ink-soft);
    font-family: var(--np-font-body);
    line-height: 1.85;
}
.np-quran-intro strong { color: var(--np-emerald-800); }

/* ----------- JUZ GRID ----------- */
.np-juz-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 991.98px) {
    .np-juz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .np-juz-grid { grid-template-columns: 1fr; gap: 12px; }
}

.np-juz-card {
    display: flex;
    align-items: stretch;
    background: var(--np-paper);
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow-sm);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
}
.np-juz-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--np-emerald-800), var(--np-gold-600), var(--np-emerald-800));
    z-index: 2;
}
.np-juz-card:hover {
    transform: translateY(-3px);
    border-color: var(--np-gold-500);
    box-shadow: var(--np-shadow-md);
}

.np-juz-num {
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--np-font-display);
    font-weight: 700;
    font-size: 1.65rem;
    color: var(--np-emerald-900);
    background:
        radial-gradient(circle at 35% 30%, #fff5d6 0%, var(--np-gold-500) 65%, var(--np-gold-700) 100%);
    border-left: 1px solid var(--np-gold-600);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
}
.np-juz-num::after {
    content: "جزء";
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 500;
    color: rgba(6, 61, 51, 0.7);
    text-shadow: none;
}

.np-juz-body {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.np-juz-name {
    font-family: var(--np-font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--np-emerald-900);
    margin: 0 0 4px;
    line-height: 1.3;
}
.np-juz-surahs {
    font-family: var(--np-font-body);
    font-size: 0.78rem;
    color: var(--np-muted);
    margin: 0 0 12px;
    line-height: 1.5;
}

.np-juz-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.np-juz-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--np-font-display);
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
    border: 1px solid;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
    flex: 1;
    justify-content: center;
}
.np-juz-btn-view {
    background: var(--np-emerald-800);
    border-color: var(--np-emerald-800);
    color: #fff;
}
.np-juz-btn-view:hover {
    background: var(--np-emerald-700);
    border-color: var(--np-emerald-700);
    color: #fff;
    transform: translateY(-1px);
}
.np-juz-btn-dl {
    background: var(--np-paper);
    border-color: var(--np-gold-600);
    color: var(--np-gold-700);
}
.np-juz-btn-dl:hover {
    background: var(--np-gold-600);
    border-color: var(--np-gold-600);
    color: var(--np-emerald-900);
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .np-juz-num { flex: 0 0 60px; font-size: 1.4rem; }
    .np-juz-body { padding: 12px 14px; }
    .np-juz-name { font-size: 0.98rem; }
    .np-juz-btn { font-size: 0.72rem; padding: 5px 10px; }
}

/* ==========================================================================
   ARTICLE TABLES (.main-content table) — used by the Quran page and any
   article that includes a data table. Page-specific accents go below.
   ========================================================================== */
.main-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 26px 0;
    background: var(--np-paper);
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    overflow: hidden;
    box-shadow: var(--np-shadow-sm);
    font-family: var(--np-font-body);
    position: relative;
}
.main-content table::after {
    /* gold top stripe like other cards */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--np-emerald-800),
        var(--np-gold-600),
        var(--np-emerald-800));
    z-index: 1;
}

.main-content table th,
.main-content table td {
    padding: 14px 18px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px dashed var(--np-line);
}

.main-content table thead th {
    background: linear-gradient(180deg, var(--np-emerald-800) 0%, var(--np-emerald-700) 100%);
    color: #fff;
    font-family: var(--np-font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    border-bottom: 3px solid var(--np-gold-600);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

/* Reset Bootstrap's table-striped overrides so our scheme wins */
.main-content table.table > :not(caption) > * > *,
.main-content table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

.main-content table tbody tr {
    background: var(--np-paper);
    transition: background .2s ease;
}
.main-content table tbody tr:nth-child(even) {
    background: var(--np-cream);
}
.main-content table tbody tr:hover {
    background: var(--np-emerald-50);
}
.main-content table tbody tr:last-child td,
.main-content table tbody tr:last-child th {
    border-bottom: none;
}

.main-content table tbody th[scope="row"] {
    color: var(--np-emerald-900);
    font-family: var(--np-font-display);
    font-weight: 700;
}

/* Buttons inside tables — pill-shaped to match the rest of the theme */
.main-content table .btn {
    border-radius: 999px;
    padding: 7px 18px;
    font-family: var(--np-font-display);
    font-size: 0.85rem;
    font-weight: 600;
    border-width: 1px;
    transition: all .25s ease;
}
.main-content table .btn-primary {
    background: var(--np-emerald-800) !important;
    border-color: var(--np-emerald-800) !important;
    color: #fff !important;
}
.main-content table .btn-primary:hover {
    background: var(--np-gold-600) !important;
    border-color: var(--np-gold-600) !important;
    color: var(--np-emerald-900) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 133, 47, .25);
}
.main-content table .btn-outline-primary {
    background: transparent !important;
    border-color: var(--np-emerald-700) !important;
    color: var(--np-emerald-800) !important;
}
.main-content table .btn-outline-primary:hover {
    background: var(--np-emerald-800) !important;
    border-color: var(--np-emerald-800) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Mobile — keep the table inside the article card without horizontal overflow */
@media (max-width: 767.98px) {
    .main-content table { font-size: 0.88rem; }
    .main-content table th,
    .main-content table td { padding: 10px 8px; }
    .main-content table .btn { padding: 5px 12px; font-size: 0.75rem; }
    .main-content table thead th { font-size: 0.85rem; }
}

/* ==========================================================================
   QURAN PAGE (#1747) — gold "Juz" number badge in the first column
   ========================================================================== */
.page-id-1747 .main-content table tbody th[scope="row"] {
    position: relative;
    width: 90px;
    height: 64px;
    font-size: 1.1rem;
    color: var(--np-emerald-900);
    isolation: isolate;
}
.page-id-1747 .main-content table tbody th[scope="row"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #ffe9b8 0%, var(--np-gold-500) 70%);
    border: 2px solid var(--np-gold-600);
    transform: translate(-50%, -50%);
    box-shadow: 0 3px 8px rgba(168, 133, 47, .3),
                inset 0 0 0 2px rgba(255, 255, 255, .35);
    z-index: -1;
}

.page-id-1747 .main-content table tbody tr:hover th[scope="row"]::before {
    background: radial-gradient(circle at 30% 30%, #fff5d6 0%, var(--np-gold-600) 70%);
    border-color: var(--np-gold-700);
}

@media (max-width: 575.98px) {
    .page-id-1747 .main-content table tbody th[scope="row"] {
        width: 60px;
        height: 56px;
        font-size: 0.95rem;
    }
    .page-id-1747 .main-content table tbody th[scope="row"]::before {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   CV PAGE (.np-cv-hero, .np-cv)
   ========================================================================== */

/* ----------- CV HERO ----------- */
.np-cv-hero {
    background:
        linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.92) 100%),
        var(--np-emerald-50);
    padding: 36px 0 44px;
    border-bottom: 1px solid var(--np-line);
    position: relative;
    overflow: hidden;
}
.np-cv-hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        var(--np-gold-600),
        var(--np-emerald-700),
        var(--np-gold-600),
        transparent);
}
.np-cv-hero::after {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(201, 165, 90, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.np-cv-hero-crumb {
    margin-bottom: 22px;
}
.np-cv-hero-crumb .breadcrumb { margin-bottom: 0; }

.np-cv-hero-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--np-paper);
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius-lg);
    padding: 32px 36px;
    box-shadow: var(--np-shadow-md);
    position: relative;
}
.np-cv-hero-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: var(--np-radius-lg) var(--np-radius-lg) 0 0;
    background: linear-gradient(90deg,
        var(--np-emerald-800),
        var(--np-gold-600),
        var(--np-emerald-800));
}

.np-cv-hero-photo {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--np-gold-600), var(--np-shadow-md);
    position: relative;
}
.np-cv-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.np-cv-hero-info { flex: 1; min-width: 0; }
.np-cv-hero-eyebrow {
    display: inline-block;
    font-family: var(--np-font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--np-gold-700);
    background: var(--np-gold-100);
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.np-cv-hero-title {
    font-family: var(--np-font-display);
    color: var(--np-emerald-900);
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}
.np-cv-hero-role {
    font-family: var(--np-font-body);
    color: var(--np-ink-soft);
    font-size: 1rem;
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .np-cv-hero { padding: 24px 0 32px; }
    .np-cv-hero-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px 20px;
    }
    .np-cv-hero-photo {
        flex: 0 0 130px;
        width: 130px;
        height: 130px;
    }
    .np-cv-hero-title { font-size: 1.3rem; }
    .np-cv-hero-role { font-size: 0.92rem; }
}

/* ----------- CV QUICK NAV ----------- */
.np-cv-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--np-paper);
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    padding: 14px 16px;
    margin-bottom: 24px;
    box-shadow: var(--np-shadow-sm);
    position: relative;
}
.np-cv-nav::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--np-radius) var(--np-radius) 0 0;
    background: linear-gradient(90deg, var(--np-emerald-800), var(--np-gold-600), var(--np-emerald-800));
}
.np-cv-nav a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--np-cream);
    color: var(--np-emerald-900);
    border: 1px solid var(--np-line);
    border-radius: 999px;
    font-family: var(--np-font-display);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.np-cv-nav a:hover,
.np-cv-nav a:focus-visible {
    background: var(--np-emerald-800);
    color: #fff;
    border-color: var(--np-emerald-800);
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 575.98px) {
    .np-cv-nav { padding: 10px 12px; gap: 6px; }
    .np-cv-nav a { font-size: 0.74rem; padding: 5px 10px; }
}

/* ----------- CV ACCORDION (restyle inside .np-cv) ----------- */
.np-cv #accordionCV { display: flex; flex-direction: column; gap: 14px; }

.np-cv .accordion-item {
    background: var(--np-paper) !important;
    border: 1px solid var(--np-line) !important;
    border-radius: var(--np-radius) !important;
    box-shadow: var(--np-shadow-sm);
    overflow: hidden;
    position: relative;
    /* Anchor scroll lands a bit below the fixed navbar */
    scroll-margin-top: 130px;
}
.np-cv .accordion-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--np-emerald-800),
        var(--np-gold-600),
        var(--np-emerald-800));
    z-index: 2;
}
.np-cv .accordion-item:hover { box-shadow: var(--np-shadow-md); }

.np-cv .accordion-header { margin: 0; }

.np-cv .accordion-button {
    background: linear-gradient(180deg, var(--np-cream) 0%, #fff 100%) !important;
    color: var(--np-emerald-900) !important;
    font-family: var(--np-font-display);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 18px 22px;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative;
    transition: background .25s ease, color .25s ease;
}
.np-cv .accordion-button:hover {
    background: var(--np-emerald-50) !important;
    color: var(--np-emerald-700) !important;
}
.np-cv .accordion-button:not(.collapsed) {
    background: linear-gradient(180deg, var(--np-emerald-800) 0%, var(--np-emerald-700) 100%) !important;
    color: #fff !important;
}
.np-cv .accordion-button:focus {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(201, 165, 90, .25) !important;
}

/* Replace the default chevron with a gold plus / minus */
.np-cv .accordion-button::after {
    background-image: none !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--np-gold-100);
    color: var(--np-gold-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: serif;
    font-size: 22px;
    line-height: 1;
    content: "+";
    transform: none !important;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.np-cv .accordion-button:not(.collapsed)::after {
    content: "−";
    background-color: var(--np-gold-600);
    color: var(--np-emerald-900);
}

.np-cv .accordion-body {
    padding: 22px 26px 26px;
    background: var(--np-paper);
    color: var(--np-ink);
    font-family: var(--np-font-body);
    line-height: 1.95;
    border-top: 1px dashed var(--np-line);
}
.np-cv .accordion-body h2,
.np-cv .accordion-body h3 {
    font-family: var(--np-font-display);
    color: var(--np-emerald-900);
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 10px;
    padding-right: 12px;
    border-right: 3px solid var(--np-gold-600);
}
.np-cv .accordion-body h2:first-child,
.np-cv .accordion-body h3:first-child { margin-top: 0; }

.np-cv .accordion-body ul,
.np-cv .accordion-body ol {
    padding-right: 22px;
    margin-bottom: 1em;
}
.np-cv .accordion-body ul li::marker { color: var(--np-gold-600); }
.np-cv .accordion-body ol li::marker { color: var(--np-emerald-700); font-weight: 700; }
.np-cv .accordion-body li { margin-bottom: 6px; }

.np-cv .accordion-body p { margin-bottom: 8px; }
.np-cv .accordion-body strong { color: var(--np-emerald-800); }

/* English (LTR) sub-content inside the publications accordion stays on the left */
.np-cv .accordion-body [dir="ltr"] {
    text-align: left !important;
    direction: ltr;
}

/* The personal info row inside accordion item 1 — give the photo a nice frame */
.np-cv #collapseOne img {
    border-radius: var(--np-radius);
    border: 3px solid #fff;
    box-shadow: var(--np-shadow-sm);
}

@media (max-width: 575.98px) {
    .np-cv .accordion-button { font-size: 0.95rem; padding: 14px 16px; }
    .np-cv .accordion-body { padding: 16px 18px 20px; font-size: 0.95rem; }
    .np-cv .accordion-body h2,
    .np-cv .accordion-body h3 { font-size: 1rem; }
}

/* ==========================================================================
   SHARE BUTTONS (.np-share)
   ========================================================================== */
.np-share {
    margin: 24px 0 8px;
    padding: 18px 22px;
    background: linear-gradient(180deg, var(--np-cream) 0%, #fff 100%);
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow-sm);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    overflow: hidden;
}
.np-share::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--np-emerald-800),
        var(--np-gold-600),
        var(--np-emerald-800));
}

.np-share-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--np-emerald-900);
    font-family: var(--np-font-display);
    font-weight: 600;
    font-size: 1rem;
    padding-left: 8px;
    border-left: 1px dashed var(--np-line);
}
.np-share-head svg { color: var(--np-gold-700); }

.np-share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.np-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--np-paper);
    border: 1px solid var(--np-line);
    color: var(--np-emerald-800);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .25s ease;
    padding: 0;
    position: relative;
    box-shadow: 0 2px 6px rgba(10, 60, 50, .05);
}
.np-share-btn:hover,
.np-share-btn:focus-visible {
    transform: translateY(-2px);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(10, 60, 50, .18);
    outline: none;
}
.np-share-btn svg { display: block; }

/* Brand colors on hover */
.np-share-whatsapp:hover,
.np-share-whatsapp:focus-visible { background: #25D366; }
.np-share-twitter:hover,
.np-share-twitter:focus-visible  { background: #000; }
.np-share-facebook:hover,
.np-share-facebook:focus-visible { background: #1877F2; }
.np-share-telegram:hover,
.np-share-telegram:focus-visible { background: #229ED9; }
.np-share-email:hover,
.np-share-email:focus-visible    { background: var(--np-emerald-700); }
.np-share-copy:hover,
.np-share-copy:focus-visible     { background: var(--np-gold-600); color: var(--np-emerald-900); }

/* Copy button — link/check icon swap + toast */
.np-share-copy .np-share-icon-check { display: none; }
.np-share-copy.is-copied {
    background: var(--np-emerald-700);
    color: #fff;
    border-color: transparent;
}
.np-share-copy.is-copied .np-share-icon-link { display: none; }
.np-share-copy.is-copied .np-share-icon-check { display: block; }

.np-share-toast {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--np-emerald-900);
    color: #fff;
    font-family: var(--np-font-display);
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.np-share-toast::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--np-emerald-900);
}
.np-share-copy.is-copied .np-share-toast {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 575.98px) {
    .np-share {
        padding: 14px 16px;
        gap: 10px;
    }
    .np-share-head {
        border-left: none;
        padding-left: 0;
        font-size: 0.9rem;
        width: 100%;
    }
    .np-share-buttons { gap: 8px; }
    .np-share-btn { width: 38px; height: 38px; }
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.default_sidebar {
    border: 1px solid var(--np-line) !important;
    border-radius: var(--np-radius) !important;
    box-shadow: var(--np-shadow-sm);
    background: var(--np-paper) !important;
    overflow: hidden;
    margin-bottom: 24px !important;
}
.default_sidebar .card-header {
    background: linear-gradient(180deg, var(--np-emerald-800), var(--np-emerald-700));
    color: #fff !important;
    font-family: var(--np-font-display);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 3px solid var(--np-gold-600);
}
.default_sidebar .card-header.fs-6 { color: #fff !important; }
.default_sidebar .list-group-item {
    border: none;
    border-bottom: 1px dashed var(--np-line);
    background: transparent;
    padding: 10px 16px;
    font-family: var(--np-font-body);
}
.default_sidebar .list-group-item:last-child { border-bottom: none; }
.default_sidebar .list-group-item a {
    color: var(--np-ink) !important;
    transition: color .2s ease;
}
.default_sidebar .list-group-item:hover a { color: var(--np-emerald-700) !important; }
.default_sidebar .list-group-item::before {
    content: "\2756";
    color: var(--np-gold-600);
    margin-left: 8px;
    font-size: .75em;
}

/* ==========================================================================
   ARCHIVE / CATEGORY / SEARCH LIST GROUP
   ========================================================================== */
.default-holder { padding-bottom: 24px; }

.default-holder .list-group {
    border-radius: var(--np-radius);
    overflow: hidden;
    border: none;
    background: transparent;
}
.default-holder .list-group-item {
    background: var(--np-paper);
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius) !important;
    margin-bottom: 14px;
    padding: 18px 22px;
    box-shadow: var(--np-shadow-sm);
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    font-family: var(--np-font-body);
}
.default-holder .list-group-item::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    right: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--np-gold-600), var(--np-emerald-700));
    opacity: 0;
    transition: opacity .25s ease;
}
.default-holder .list-group-item:hover {
    transform: translateY(-2px);
    border-color: var(--np-gold-500);
    box-shadow: var(--np-shadow-md);
}
.default-holder .list-group-item:hover::before { opacity: 1; }
.default-holder .list-group-item h3 {
    color: var(--np-emerald-900);
    font-family: var(--np-font-display);
    margin-bottom: 6px;
}
.default-holder .list-group-item p {
    color: var(--np-ink-soft);
    margin: 0;
}
.default-holder .list-group-item img {
    border-radius: 10px;
    border: 3px solid #fff;
    box-shadow: var(--np-shadow-sm);
    max-width: 100%;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.page_pagination { padding-top: 14px; padding-bottom: 32px; }
.wp-pagenavi {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    direction: rtl;
}
.wp-pagenavi a,
.wp-pagenavi span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--np-line);
    background: var(--np-paper);
    color: var(--np-emerald-800);
    font-family: var(--np-font-display);
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
    float: none !important;
}
.wp-pagenavi a:hover {
    background: var(--np-emerald-800);
    color: #fff;
    border-color: var(--np-emerald-800);
}
.wp-pagenavi span.current {
    background: var(--np-gold-600);
    color: var(--np-emerald-900);
    border-color: var(--np-gold-600);
}
.wp-pagenavi span.extend { display: none; }

/* ==========================================================================
   COMMENTS
   ========================================================================== */
#comments.alert {
    background: var(--np-paper) !important;
    border: 1px solid var(--np-line) !important;
    border-radius: var(--np-radius) !important;
    color: var(--np-ink) !important;
    margin-top: 24px;
    padding: 24px;
}
#comments .comments-title,
#comments #reply-title {
    font-family: var(--np-font-display);
    color: var(--np-emerald-900) !important;
    border-bottom: 2px solid var(--np-gold-500);
    padding-bottom: 8px;
    margin-bottom: 16px;
}
#comments .comment-list { padding-right: 0; }
#comments .form-control {
    border-radius: 10px;
    border-color: var(--np-line);
}
#comments .form-control:focus {
    border-color: var(--np-emerald-600);
    box-shadow: 0 0 0 .2rem rgba(29, 147, 121, .15);
}
#comments .btn-success {
    background: var(--np-emerald-800);
    border-color: var(--np-emerald-800);
    border-radius: 999px;
    padding: 8px 22px;
    font-family: var(--np-font-display);
}
#comments .btn-success:hover {
    background: var(--np-gold-600);
    border-color: var(--np-gold-600);
    color: var(--np-emerald-900);
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-main-content { padding-top: 30px; padding-bottom: 30px; }
.contact-main-content .card {
    border-radius: var(--np-radius);
}
.contact-main-content .card-header {
    background: var(--np-emerald-800);
    color: #fff;
    font-family: var(--np-font-display);
    border-bottom: 3px solid var(--np-gold-600);
}
.contact-main-content .form-control {
    border-radius: 10px;
    border-color: var(--np-line);
}
.contact-main-content .btn-success {
    background: var(--np-emerald-800);
    border-color: var(--np-emerald-800);
    border-radius: 999px;
    padding: 8px 22px;
}
.contact-main-content .btn-success:hover {
    background: var(--np-gold-600);
    border-color: var(--np-gold-600);
    color: var(--np-emerald-900);
}

/* ==========================================================================
   404
   ========================================================================== */
section[class="404-page pt-5 pb-5"],
.\34 04-page {
    padding: 60px 0;
}
.\34 04-page .alert {
    background: var(--np-paper);
    border: 1px solid var(--np-line);
    border-right: 4px solid var(--np-gold-600);
    color: var(--np-emerald-900);
    border-radius: var(--np-radius);
    font-family: var(--np-font-display);
    box-shadow: var(--np-shadow-sm);
    padding: 30px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background:
        linear-gradient(180deg, rgba(6, 61, 51, .95), rgba(6, 61, 51, .98)),
        var(--np-emerald-900) !important;
    color: #e8efec !important;
    padding-top: 60px !important;
    padding-bottom: 30px !important;
    position: relative;
    margin-top: 40px;
}
.main-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--np-gold-700),
        var(--np-gold-600),
        var(--np-gold-500),
        var(--np-gold-600),
        var(--np-gold-700));
}
.main-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(201, 165, 90, .06) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(201, 165, 90, .05) 0, transparent 40%);
    pointer-events: none;
}
.main-footer .container { position: relative; z-index: 1; }

.footer_widget {
    color: #d8e3df;
    margin-bottom: 24px;
    font-family: var(--np-font-body);
}
.footer_widget h4 {
    color: var(--np-gold-500) !important;
    font-family: var(--np-font-display);
    font-size: 1.05rem !important;
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 14px;
    position: relative;
}
.footer_widget h4::after {
    content: "";
    position: absolute;
    bottom: 0; right: 0;
    width: 50px; height: 2px;
    background: var(--np-gold-600);
}
.footer_widget ul { padding: 0; margin: 0; }
.footer_widget ul li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(201, 165, 90, .15);
}
.footer_widget ul li:last-child { border-bottom: none; }
.footer_widget ul li a {
    color: #d8e3df !important;
    transition: color .2s ease, padding-right .2s ease;
}
.footer_widget ul li a:hover {
    color: var(--np-gold-500) !important;
    padding-right: 6px;
}

.copy {
    background: #042821 !important;
    border-top: 1px solid rgba(201, 165, 90, .2);
}
.copy p {
    color: #b9c8c2 !important;
    font-family: var(--np-font-display);
    letter-spacing: .3px;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.bg-light { background-color: var(--np-cream) !important; }

img.rounded { border-radius: var(--np-radius) !important; }

.feature_holder {
    background: var(--np-paper);
    border: 1px solid var(--np-line) !important;
    border-radius: var(--np-radius) !important;
    padding: 14px;
    box-shadow: var(--np-shadow-sm);
}
.feature_holder img {
    width: 55px;
    height: auto;
    padding-left: 10px;
}

/* Generic CTA buttons */
.btn-primary {
    background: var(--np-emerald-800) !important;
    border-color: var(--np-emerald-800) !important;
    border-radius: 999px;
    padding: 10px 22px;
    font-family: var(--np-font-display);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--np-gold-600) !important;
    border-color: var(--np-gold-600) !important;
    color: var(--np-emerald-900) !important;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .main-content { padding: 22px; }
    .custom-page-header .col-lg-2.col-md-2,
    .custom-page-header .col-lg-9.col-md-9 { margin-top: 12px; }
    .category_one, .category_two, .category_three {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
}
@media (max-width: 575.98px) {
    .main-content { padding: 18px; border-radius: 12px; }
    .np-section-title { font-size: 1.45rem; }
    .card-header .col-6 { font-size: .85rem; }
}
