/* =========================================================
   CjAR â€“ Custom Stylesheet
   Header + Menu + Footer + Hero + Cards + Marquee support
   ========================================================= */

/* ---------- Header background ---------- */
.pkp_structure_head {
    background-color: #17365D !important;
}

/* ---------- Site name / Logo row ---------- */
.pkp_site_name_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
    box-sizing: border-box !important;
}

.pkp_site_name {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 15px 0 !important;
}

.pkp_site_name a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.pkp_site_name img {
    max-height: 100px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    object-fit: contain;
}

.pkp_site_name a::after {
    content: "Nexora: Frontiers of Thought Global Journal of Knowledge Inquiry and Innovation";
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0;
    margin-left: 28px !important;
    color: #D4AF37 !important;
    font-size: clamp(16px, 1.9vw, 26px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.2px;
    white-space: normal !important;
    text-wrap: balance;
    text-align: left;
}

/* ---------- User menu (admin / Register / Login) ---------- */
.pkp_navigation_user_wrapper {
    position: absolute !important;
    top: 12px !important;
    right: 25px !important;
    z-index: 20;
}

.pkp_navigation_user {
    display: flex !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.pkp_navigation_user a {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.pkp_navigation_user a:hover {
    opacity: 1;
    color: #D4AF37 !important;
}

/* ---------- Primary navigation bar (height 32px) ---------- */
.pkp_navigation_primary_row {
    background-color: #c41e3a !important;
    border-top: none !important;
    min-height: 0 !important;
    height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.pkp_navigation_primary_wrapper {
    max-width: 1200px;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 12px !important;
    min-height: 0 !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;   /* menu left, search right */
}

.pkp_navigation_primary {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    margin-right: auto !important;               /* keep menu on left */
    padding: 0 !important;
    list-style: none !important;
    min-height: 0 !important;
    height: 32px !important;
    line-height: 1 !important;
}

.pkp_navigation_primary > li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
}

.pkp_navigation_primary > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    padding: 0 14px !important;
    color: #ffffff !important;
    font-size: 16px !important;                  /* 16px as you set */
    font-weight: 700 !important;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    line-height: 1 !important;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li:hover > a {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
}

/* Dropdown menus */
.pkp_navigation_primary ul,
.pkp_nav_list ul {
    background-color: #9b182e !important;
    border: none !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
    min-width: 180px;
    padding: 3px 0 !important;
    top: 32px !important;
}

.pkp_navigation_primary ul a,
.pkp_nav_list ul a {
    color: #ffffff !important;
    padding: 6px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: block !important;
    text-decoration: none !important;
    background: transparent !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}

.pkp_navigation_primary ul a:hover,
.pkp_nav_list ul a:hover {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
}

/* ---------- Search â†’ far right ---------- */
.pkp_navigation_search_wrapper {
    margin-left: auto !important;
    margin-right: 0 !important;
    padding: 0 8px 0 0 !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    order: 2 !important;
}

.pkp_navigation_search_wrapper a,
.pkp_navigation_search_wrapper .pkp_search {
    color: #ffffff !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    height: 32px !important;
    text-decoration: none !important;
}

/* ---------- Footer â€“ match header color ---------- */
.pkp_structure_footer,
.pkp_structure_footer_wrapper,
.pkp_footer_content,
footer.pkp_structure_footer {
    background-color: #17365D !important;
    color: #ffffff !important;
}

.pkp_structure_footer a,
.pkp_footer_content a {
    color: #D4AF37 !important;
}

.pkp_structure_footer a:hover,
.pkp_footer_content a:hover {
    color: #ffffff !important;
}

.pkp_structure_footer p,
.pkp_structure_footer span,
.pkp_structure_footer li,
.pkp_footer_content p,
.pkp_footer_content span {
    color: #ffffff !important;
}

/* ---------- Marquee / scrolling support for sidebar (right or left column) ---------- */
/* Use these classes inside a Custom Block HTML */

.cj-marquee,
.cj-marquee-container {
    overflow: hidden !important;
    white-space: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #17365D;
    color: #ffffff;
    padding: 10px 0;
    border-radius: 6px;
}

.cj-marquee-content,
.cj-marquee span,
.cj-marquee p {
    display: inline-block !important;
    padding-left: 100%;
    animation: cj-marquee-scroll 18s linear infinite;
    color: #D4AF37 !important;
    font-weight: 600;
    font-size: 15px;
}

/* Pause on hover (optional, nice UX) */
.cj-marquee:hover .cj-marquee-content,
.cj-marquee:hover span,
.cj-marquee:hover p {
    animation-play-state: paused;
}

@keyframes cj-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Alternative slower speed */
.cj-marquee.slow .cj-marquee-content {
    animation-duration: 28s;
}

/* Alternative faster speed */
.cj-marquee.fast .cj-marquee-content {
    animation-duration: 12s;
}

/* Vertical marquee option (if needed) */
.cj-marquee-vertical {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.cj-marquee-vertical .cj-marquee-content {
    position: absolute;
    width: 100%;
    animation: cj-marquee-vertical 12s linear infinite;
    padding-left: 0 !important;
    white-space: normal !important;
}

@keyframes cj-marquee-vertical {
    0%   { top: 100%; }
    100% { top: -100%; }
}

/* ---------- Mobile header ---------- */
@media (max-width: 650px) {
    .pkp_site_name_wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .pkp_site_name img {
        max-height: 60px !important;
    }

    .pkp_site_name a::after {
        font-size: 13px !important;
        line-height: 1.25 !important;
        margin-left: 12px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .pkp_navigation_user_wrapper {
        top: 8px !important;
        right: 12px !important;
    }

    .pkp_navigation_user {
        gap: 12px !important;
    }

    .pkp_navigation_user a {
        font-size: 13px !important;
    }

    .pkp_navigation_primary_row,
    .pkp_navigation_primary_wrapper,
    .pkp_navigation_primary,
    .pkp_navigation_primary > li,
    .pkp_navigation_primary > li > a,
    .pkp_navigation_search_wrapper,
    .pkp_navigation_search_wrapper a {
        height: 30px !important;
    }

    .pkp_navigation_primary > li > a {
        padding: 0 8px !important;
        font-size: 13px !important;
    }
}

/* =========================================================
   Homepage Hero + Cards
   ========================================================= */

.cj-hero {
    background: linear-gradient(135deg, #17365D 0%, #0f2a4a 100%);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px 70px !important;
    margin-bottom: 50px !important;
}

.cj-hero h2 {
    font-size: clamp(26px, 3.8vw, 40px);
    font-weight: 800;
    margin: 0 0 18px 0 !important;
    color: #D4AF37;
    letter-spacing: 0.3px;
    line-height: 1.5;
    max-width: 820px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 20px;
}

.cj-hero p {
    font-size: clamp(16px, 2vw, 20px);
    margin: 0 auto;
    opacity: 0.95;
    max-width: 700px;
    line-height: 1.6;
}

.cj-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px;
    padding: 0 20px 50px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.cj-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(23, 54, 93, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cj-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(23, 54, 93, 0.18);
}

.cj-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.cj-card-body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cj-card-body h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #17365D;
}

.cj-card-body p {
    margin: 0 0 18px 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #444;
    flex-grow: 1;
}

.cj-card-body a {
    display: inline-block;
    color: #17365D;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.cj-card-body a:hover {
    color: #D4AF37;
}

/* Tablet */
@media (max-width: 900px) {
    .cj-cards {
        gap: 20px;
        padding: 0 16px 40px;
    }

    .cj-card img {
        height: 160px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .cj-hero {
        padding: 50px 16px 45px !important;
    }

    .cj-hero h2 {
        font-size: 24px;
        line-height: 1.45;
        padding: 0 10px;
    }

    .cj-cards {
        grid-template-columns: 1fr !important;
        gap: 18px;
        padding: 0 12px 40px;
    }

    .cj-card img {
        height: 160px;
    }
}

/* Force hide PKP/OJS footer branding */
.pkp_structure_footer .pkp_brand_footer,
.pkp_structure_footer a[href*="pkp"],
.pkp_structure_footer img {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}
