/* Custom scrollbar & African motif border styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F3EFE9;
}

::-webkit-scrollbar-thumb {
    background: #D4A853;
    border-radius: 4px;
}

/* Explicit fallback styles to guarantee vibrant colors even before/if tailwind runs */
.bg-brand-navy {
    background-color: #131B26 !important;
}

.text-brand-navy {
    color: #131B26 !important;
}

.text-brand-gold {
    color: #E8A338 !important;
}

.bg-brand-gold {
    background-color: #E8A338 !important;
}

.text-brand-sage {
    color: #89C2A4 !important;
}

.bg-brand-sage {
    background-color: #89C2A4 !important;
}

.text-brand-terracotta {
    color: #BF5C43 !important;
}

.bg-brand-terracotta {
    background-color: #BF5C43 !important;
}

.text-brand-blue {
    color: #1C6EA4 !important;
}

.bg-brand-blue {
    background-color: #1C6EA4 !important;
}

.bg-brand-warmGray {
    background-color: #F3EFE9 !important;
}

.bg-brand-goldLight {
    background-color: #FBE9CD !important;
}

.african-pattern-banner {
    background-color: #131B26 !important;
    background-image: radial-gradient(#E8A338 0.75px, transparent 0.75px), radial-gradient(#89C2A4 0.75px, #131B26 0.75px) !important;
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

.geometric-accent-border {
    background: repeating-linear-gradient(45deg,
            #E8A338,
            #E8A338 12px,
            #BF5C43 12px,
            #BF5C43 24px,
            #1C6EA4 24px,
            #1C6EA4 36px,
            #89C2A4 36px,
            #89C2A4 48px);
    height: 4px;
}

.hero-mesh {
    background: radial-gradient(circle at 10% 20%, rgba(232, 163, 56, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(28, 110, 164, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(137, 194, 164, 0.1) 0%, transparent 60%);
}

/* Ensure smooth dropdown transition and proper z-index */
.group:hover .group-hover\:block {
    display: block !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.2s ease-out forwards;
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scaleUp {
    animation: scaleUp 0.2s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobileMenu:not(.hidden) {
    animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* OJS Native Dynamic Sidebar Styling */
.ojs-dynamic-sidebar .pkp_block {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 0.8125rem;
}

.ojs-dynamic-sidebar .pkp_block .title {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #131B26;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f3efe9;
}

.ojs-dynamic-sidebar .pkp_block a {
    color: #1C6EA4;
    transition: color 0.2s;
}

.ojs-dynamic-sidebar .pkp_block a:hover {
    color: #E8A338;
}

.ojs-dynamic-sidebar .pkp_block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ojs-dynamic-sidebar .pkp_block ul li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f9fafb;
}

.ojs-dynamic-sidebar .pkp_block ul li:last-child {
    border-bottom: none;
}

/* Traditional PKP Inner Pages Layout & Typography (About, Issue, Archives, Editorial Team, Submissions, Contact) */
.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem 2rem;
    min-height: 55vh;
}

@media (min-width: 1024px) {
    .page {
        padding: 3.5rem 3rem 6rem 3rem;
    }
}

.page>h1:first-of-type,
.page .page_title {
    font-family: 'Cinzel', serif;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: #131B26;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(232, 163, 56, 0.4);
    letter-spacing: -0.01em;
}

/* Contact Page Grid & Traditional Academic Cards */
.page_contact .contact_section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .page_contact .contact_section {
        grid-template-columns: repeat(1, 1fr);
    }
}

.page_contact .contact {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.page_contact .contact h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #131B26;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3efe9;
}

.page_contact .contact .name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.page_contact .contact .affiliation,
.page_contact .contact .address {
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.page_contact .contact .phone,
.page_contact .contact .email {
    font-size: 0.875rem;
    color: #374151;
    margin-top: 0.5rem;
}

.page_contact .contact .email a {
    color: #1C6EA4;
    font-weight: 500;
    text-decoration: none;
}

.page_contact .contact .email a:hover {
    color: #E8A338;
    text-decoration: underline;
}

.cmp_breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
}

.cmp_breadcrumbs ol li a {
    color: #1C6EA4;
    text-decoration: none;
}

.cmp_breadcrumbs ol li a:hover {
    color: #E8A338;
    text-decoration: underline;
}

.cmp_breadcrumbs ol li .separator {
    margin-left: 0.5rem;
    color: #9CA3AF;
}

.cmp_breadcrumbs ol li.current {
    font-weight: 600;
    color: #374151;
}

/* Content paragraphs & lists */
.page p,
.page li {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1rem;
}

.page h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #131B26;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #131B26;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Issue Archive Grid / List styling */
.issues_archive .issues_grid,
.page_issue_archive .issues_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.obj_issue_summary {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.obj_issue_summary:hover {
    border-color: #E8A338;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.obj_issue_summary .title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #131B26;
    margin-top: 0.5rem;
}

.obj_issue_summary .series {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* Hide front-end Edit action buttons / icons */
.cmp_edit_link {
    display: none !important;
}