/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.demo-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.demo-content h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

/* Footer Main Container */
.journal-footer {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    overflow: hidden;
}

/* Decorative Wave */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-99%);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    fill: #1a1a1a;
}

/* Footer Container */
/* .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
} */

.footer-container {
    /* max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    /* First column takes more space */
    /* gap: 3rem; */
    /* position: relative; */
    /* z-index: 2; */
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* Center the copyright section */
.footer-bottom {
    grid-column: 1 / -1;
    /* Span all three columns */
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Optional: adds a separator line */
}

.footer-bottom-container {
    text-align: center;
    margin-left: 25rem !important;
}

.copyright {
    margin: 0;
    text-align: center;
}

.footer-container>div:last-child {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer About Section */
.footer-about {
    grid-column: span 1;
}

.footer-logo {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.logo-cross {
    width: 100%;
    height: 100%;
    position: relative;
    animation: rotateLogo 20s linear infinite;
}

.logo-cross span {
    position: absolute;
    width: 40%;
    height: 12%;
    background: linear-gradient(135deg, #3B28CC 0%, #5B48EC 100%);
    border-radius: 20px;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.logo-cross span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.logo-cross span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.logo-cross span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(135deg);
}

.logo-cross span:nth-child(4) {
    transform: translate(-50%, -50%) rotate(-135deg);
}

@keyframes rotateLogo {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.footer-logo h3 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 40, 204, 0.1);
    border: 2px solid #3B28CC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3B28CC;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #3B28CC;
    color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(59, 40, 204, 0.3);
}

/* Footer Sections */
.footer-section {
    animation: fadeInUp 0.8s ease-out;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #3B28CC;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3B28CC 0%, transparent 100%);
    animation: expandWidth 1s ease-out;
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 50px;
    }
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: fadeInLeft 0.5s ease-out forwards;
}

.footer-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-links li:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-links li:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-links li:nth-child(4) {
    animation-delay: 0.4s;
}

.footer-links li:nth-child(5) {
    animation-delay: 0.5s;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links a i {
    color: #3B28CC;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #3B28CC;
    padding-left: 0.5rem;
}

.footer-links a:hover i {
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: #b0b0b0;
    font-size: 0.95rem;
    opacity: 0;
    animation: fadeInLeft 0.5s ease-out forwards;
}

.footer-contact li:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-contact li:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-contact li:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-contact li:nth-child(4) {
    animation-delay: 0.4s;
}

.footer-contact i {
    color: #3B28CC;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

/* Newsletter Section */
.newsletter-section {
    background: rgba(59, 40, 204, 0.05);
    border-top: 1px solid rgba(59, 40, 204, 0.2);
    border-bottom: 1px solid rgba(59, 40, 204, 0.2);
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

.newsletter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-content h4 {
    font-size: 1.5rem;
    color: #3B28CC;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(59, 40, 204, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: #808080;
}

.newsletter-form input:focus {
    border-color: #3B28CC;
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3B28CC 0%, #5B48EC 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 40, 204, 0.4);
}

.newsletter-form button i {
    transition: transform 0.3s ease;
}

.newsletter-form button:hover i {
    transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 2;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #808080;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-bottom-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #3B28CC;
}

.separator {
    color: #808080;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #3B28CC;
    top: 10%;
    left: 5%;
    animation: float 15s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #5B48EC;
    top: 50%;
    right: 10%;
    animation: float 20s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #3B28CC;
    bottom: 20%;
    left: 50%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-50px) translateX(30px);
    }

    50% {
        transform: translateY(-100px) translateX(-30px);
    }

    75% {
        transform: translateY(-50px) translateX(30px);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-wave svg {
        height: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem 1.5rem;
        gap: 2rem;
    }

    .footer-about {
        grid-column: span 1;
        text-align: center;
    }

    .logo-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }

    .newsletter-form button {
        padding: 1rem 1.5rem;
    }

    .newsletter-form button span {
        display: none;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .demo-content h1 {
        font-size: 1.8rem;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-logo h3 {
        font-size: 1.1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        justify-content: center;
    }

    .newsletter-form button span {
        display: inline;
    }

    .shape-1,
    .shape-2,
    .shape-3 {
        width: 150px;
        height: 150px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {

    .footer-wave,
    .floating-shapes,
    .newsletter-section {
        display: none;
    }

    .journal-footer {
        background: white;
        color: black;
    }
}

.pkp_brand_footer {
    img {
        display: none;
    }
}

.pkp_brand_footer {
    padding: 0;
}

.pkp_footer_content {
    padding: 0;
}

.pkp_structure_footer_wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}




/* ============================================
   ENHANCED HEADER CSS FOR OJS - FINAL VERSION
   Journal of Progressive Social Inquiry
   User navigation in top bar, no animations, non-sticky
   ============================================ */

/* Import Font Awesome if not already loaded */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ============================================
   TOP BAR STYLES WITH USER NAVIGATION
   ============================================ */

.top-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(59, 40, 204, 0.3);
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.7rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-link {
    color: #b0b0b0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.top-link:hover {
    color: #3B28CC;
    transform: translateY(-1px);
}

.top-link i {
    font-size: 0.9rem;
}

/* ============================================
   USER NAVIGATION IN TOP BAR
   ============================================ */

.top-user-nav {
    display: flex;
    align-items: center;
}

.top-user-nav .pkp_navigation_user {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.pkp_navigation_user.pkp_navigation_user {
    padding: 0 4rem;
}

.top-user-nav .pkp_navigation_user li {
    position: relative;
}

.top-user-nav .pkp_navigation_user a {
    color: #b0b0b0 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    border-radius: 4px;
}

.top-user-nav .pkp_navigation_user a:hover {
    color: #3B28CC !important;
    background: rgba(59, 40, 204, 0.1);
}

/* Profile Dropdown in Top Bar */
.top-user-nav .profile {
    position: relative;
}

.top-user-nav .profile>a {
    background: rgba(59, 40, 204, 0.1);
    border: 1px solid rgba(59, 40, 204, 0.3);
    color: #3B28CC !important;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
}

.top-user-nav .profile>a:hover {
    background: rgba(59, 40, 204, 0.2);
    border-color: #3B28CC;
}

.top-user-nav .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.top-user-nav .profile:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-user-nav .dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem !important;
    color: #333 !important;
    font-size: 0.9rem;
    border-radius: 0 !important;
    background: transparent !important;
}

.top-user-nav .dropdown-menu a:hover {
    background: #f5f5f5 !important;
    color: #3B28CC !important;
}

.top-user-nav .dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.top-user-nav .dropdown-menu li:last-child {
    border-bottom: none;
}

/* Social Icons in Top Bar */
.social-icons-top {
    display: flex;
    gap: 0.8rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 0.5rem;
}

.social-icons-top a {
    color: #b0b0b0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-icons-top a:hover {
    color: #3B28CC;
    background: rgba(59, 40, 204, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   MAIN HEADER STYLES - NON-STICKY
   ============================================ */

.pkp_structure_head.journal-header {
    position: relative;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.main-header {
    background: #ffffff;
    padding: 1.5rem 0 1rem;
}

.main-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ============================================
   LOGO AND TITLE SECTION - NO ANIMATIONS
   ============================================ */

.header-logo {
    flex-shrink: 0;
    flex-grow: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

/* Logo Icon Styling - NO ROTATION */
.logo-icon-wrapper {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-logo-img {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Default Logo Cross (if no logo uploaded) */
.logo-icon {
    width: 70px;
    height: 70px;
    position: relative;
    flex-shrink: 0;
}

.logo-cross {
    width: 100%;
    height: 100%;
    position: relative;
}

.logo-cross span {
    position: absolute;
    width: 40%;
    height: 12%;
    background: linear-gradient(135deg, #3B28CC 0%, #5B48EC 100%);
    border-radius: 20px;
    top: 50%;
    left: 50%;
    transform-origin: center;
    box-shadow: 0 2px 10px rgba(59, 40, 204, 0.3);
}

.logo-cross span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.logo-cross span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.logo-cross span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(135deg);
}

.logo-cross span:nth-child(4) {
    transform: translate(-50%, -50%) rotate(-135deg);
}

/* TITLE TEXT - ALWAYS VISIBLE */
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.journal-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    transition: color 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 400px;
    text-transform: none;
}

.logo-link:hover .journal-title {
    color: #3B28CC !important;
}

.logo-tagline {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-style: italic;
    font-weight: 400;
    transition: color 0.3s ease;
}

.logo-link:hover .logo-tagline {
    color: #3B28CC;
}

/* Override any OJS defaults */
.pkp_site_name h1,
.pkp_site_name .journal-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    clip: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0 12px !important;
}

.pkp_screen_reader {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================
   SEARCH BAR
   ============================================ */

.header-search {
    flex: 1;
    max-width: 500px;
    min-width: 250px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    background: #ffffff;
    border-color: #3B28CC;
    box-shadow: 0 5px 20px rgba(59, 40, 204, 0.2);
}

.search-input {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #3B28CC 0%, #5B48EC 100%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: linear-gradient(135deg, #5B48EC 0%, #3B28CC 100%);
    transform: scale(1.05);
}

/* ============================================
   HEADER ACTIONS
   ============================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.submit-btn {
    background: linear-gradient(135deg, #3B28CC 0%, #5B48EC 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 40, 204, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 40, 204, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.menu-toggle {
    background: transparent;
    color: #333;
    padding: 0.8rem;
    display: none;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle:hover {
    background: #f5f5f5;
    border-color: #3B28CC;
    color: #3B28CC;
}

/* ============================================
   NAVIGATION MENU - NO USER NAV HERE
   ============================================ */

.main-nav {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-top: 3px solid #3B28CC;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.pkp_navigation_primary_wrapper {
    width: 100%;
}

.nav-menu,
.pkp_navigation_primary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li,
.pkp_navigation_primary li {
    position: relative;
}

.nav-menu a,
.pkp_navigation_primary a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1.5rem;
    color: #5B48EC !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 9999;
}

.nav-menu a::before,
.pkp_navigation_primary a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #3B28CC;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.pkp_navigation_primary a:hover,
.nav-menu .current a,
.pkp_navigation_primary .current a {
    color: #3B28CC !important;
}

.nav-menu a:hover::before,
.pkp_navigation_primary a:hover::before,
.nav-menu .current a::before,
.pkp_navigation_primary .current a::before {
    width: 80%;
}

/* Nav Close Button */
.nav-close {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-close:hover {
    color: #3B28CC;
}

/* ============================================
   DECORATIVE WAVE
   ============================================ */

.header-wave {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: #2d2d2d;
}

.header-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
    fill: #ffffff;
    transform: rotate(180deg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .journal-title {
        font-size: 1.3rem !important;
        max-width: 350px;
    }

    .header-search {
        max-width: 400px;
    }
}

@media (max-width: 968px) {

    /* Top bar adjustments */
    .top-bar-left span,
    .top-bar-right>.top-link span {
        display: none;
    }

    .top-bar-container {
        padding: 0.7rem 1rem;
    }

    /* Main header adjustments */
    .main-header-container {
        padding: 0 1.5rem;
        gap: 1rem;
    }

    .journal-title {
        font-size: 1.1rem !important;
        max-width: 250px;
    }

    .logo-icon-wrapper,
    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .journal-logo-img {
        max-width: 50px;
        max-height: 50px;
    }

    .header-search {
        display: none;
    }

    .submit-btn span {
        display: none;
    }

    .submit-btn {
        padding: 0.9rem 1.2rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        transition: right 0.4s ease;
        overflow-y: auto;
        z-index: 2000;
        border-top: none;
        border-left: 3px solid #3B28CC;
    }

    .main-nav.active {
        right: 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    }

    .nav-container {
        padding: 5rem 0 2rem;
    }

    .nav-menu,
    .pkp_navigation_primary {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu a,
    .pkp_navigation_primary a {
        padding: 1.2rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-close {
        display: block;
    }

    .header-wave {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .journal-title {
        font-size: 1rem !important;
        max-width: 200px;
    }

    .logo-tagline {
        font-size: 0.75rem;
    }

    .top-user-nav .pkp_navigation_user a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .journal-title {
        font-size: 0.9rem !important;
        max-width: 150px;
    }

    .logo-tagline {
        display: none;
    }

    .logo-icon-wrapper,
    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .journal-logo-img {
        max-width: 40px;
        max-height: 40px;
    }

    .main-header {
        padding: 2rem 0 1.5rem;
    }

    .main-nav {
        width: 280px;
    }

    .social-icons-top {
        padding-left: 0.5rem;
        margin-left: 0;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.logo-link:focus,
.top-link:focus,
.nav-menu a:focus,
.search-button:focus,
.submit-btn:focus,
.top-user-nav a:focus {
    outline: 2px solid #3B28CC;
    outline-offset: 2px;
}

.additional_content {
    img {
        max-width: 400px;
        max-height: 400px;
    }
}








/* ============================================
   MODERN SIDEBAR DESIGN FOR OJS JOURNAL
   Fixed version with visible text
   ============================================ */

/* Sidebar Container */
.pkp_structure_sidebar {
    background: transparent;
    padding: 10px;
}

/* Sidebar Section Wrapper */
.pkp_block {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 2rem;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(59, 40, 204, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pkp_block:hover {
    box-shadow: 0 8px 30px rgba(59, 40, 204, 0.12);
    transform: translateY(-2px);
}

/* Sidebar Block Titles */
.pkp_block h2,
.pkp_block .pkp_block_title {
    background: linear-gradient(135deg, #3d5a80 0%, #2e4a63 100%);
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 1.2rem 1.5rem !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.pkp_block h2::before,
.pkp_block .pkp_block_title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pkp_block:hover h2::before,
.pkp_block:hover .pkp_block_title::before {
    left: 100%;
}

/* Sidebar Block Content */
.pkp_block_content {
    padding: 1.5rem !important;
    background: #ffffff;
}

/* ============================================
   LATEST PUBLICATIONS SECTION - FIXED
   ============================================ */

.block_web_feed {
    background: #ffffff;
}

.block_web_feed h2 {
    background: linear-gradient(135deg, #3d5a80 0%, #2e4a63 100%);
}

.block_web_feed .pkp_block_content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem !important;
}

/* RSS/Atom Feed Links - Fixed Text Visibility */
.block_web_feed a {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem !important;
    background: #f8f9fa !important;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible !important;
}

.block_web_feed a span,
.block_web_feed a::after {
    color: #2c3e50 !important;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.block_web_feed a img {
    width: 20px !important;
    height: 20px !important;
    opacity: 0.7;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.block_web_feed a:hover {
    background: linear-gradient(135deg, #3B28CC 0%, #5B48EC 100%) !important;
    border-color: #3B28CC;
    transform: translateX(5px);
    color: #ffffff !important;
}

.block_web_feed a:hover span,
.block_web_feed a:hover::after {
    color: #ffffff !important;
}

.block_web_feed a:hover img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* ============================================
   INFORMATION SECTION
   ============================================ */

.block_information {
    background: #ffffff;
}

.block_information h2 {
    background: linear-gradient(135deg, #1b3896 0%, #203bb3 100%);
}

.block_information ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.block_information li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.block_information li:last-child {
    border-bottom: none;
}

.block_information a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem !important;
    color: #2c3e50 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.block_information a::before {
    content: '→';
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #3B28CC;
    font-weight: 700;
}

.block_information a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #3B28CC 0%, #5B48EC 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.block_information a:hover {
    background: linear-gradient(135deg, rgba(59, 40, 204, 0.05) 0%, rgba(91, 72, 236, 0.05) 100%) !important;
    color: #3B28CC !important;
    padding-left: 2rem !important;
}

.block_information a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.block_information a:hover::after {
    transform: scaleY(1);
}

/* ============================================
   STATISTICS SECTION
   ============================================ */

.block_statistics {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.block_statistics h2 {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.block_statistics .pkp_block_content {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    padding: 1.5rem !important;
}

.stat-card {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3B28CC 0%, #5B48EC 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    border-color: #3B28CC;
    box-shadow: 0 8px 25px rgba(59, 40, 204, 0.15);
    transform: translateY(-4px);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #3B28CC;
    display: block;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   SIDEBAR SEARCH BOX
   ============================================ */

.block_search {
    background: linear-gradient(135deg, #3B28CC 0%, #5B48EC 100%);
    box-shadow: 0 8px 30px rgba(59, 40, 204, 0.25);
}

.block_search h2 {
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

.block_search .pkp_block_content {
    padding: 2rem 1.5rem !important;
}

.block_search form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.block_search input[type="text"],
.block_search input[type="search"] {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    color: #333 !important;
    outline: none;
    transition: all 0.3s ease;
}

.block_search input[type="text"]:focus,
.block_search input[type="search"]:focus {
    border-color: #ffffff;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.block_search input[type="text"]::placeholder,
.block_search input[type="search"]::placeholder {
    color: #999;
}

.block_search button,
.block_search input[type="submit"] {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: none;
    border-radius: 50px;
    color: #3B28CC !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.block_search button:hover,
.block_search input[type="submit"]:hover {
    background: #2c1f9e;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   INDEXING & DATABASES SECTION
   ============================================ */

.block_custom {
    background: #ffffff;
}

.block_custom h2 {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.block_custom .pkp_block_content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem !important;
}

.indexing-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.indexing-badge:hover {
    background: linear-gradient(135deg, #3B28CC 0%, #5B48EC 100%);
    color: #ffffff;
    border-color: #3B28CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 40, 204, 0.3);
}

/* ============================================
   MOST DOWNLOADED/VIEWED ARTICLES
   ============================================ */

.block_most_downloaded,
.block_most_viewed {
    background: #ffffff;
}

.block_most_downloaded h2 {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
}

.block_most_viewed h2 {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.article-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background: linear-gradient(135deg, rgba(59, 40, 204, 0.03) 0%, rgba(91, 72, 236, 0.03) 100%);
    padding-left: 1.5rem;
}

.article-item a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    line-height: 1.5;
    display: block;
    transition: color 0.3s ease;
}

.article-item a:hover {
    color: #3B28CC !important;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #999;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ============================================
   SIDEBAR CALL TO ACTION
   ============================================ */

.sidebar-cta {
    background: linear-gradient(135deg, #3B28CC 0%, #5B48EC 100%);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #ffffff;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(59, 40, 204, 0.3);
}

.sidebar-cta h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.sidebar-cta p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.sidebar-cta a,
.sidebar-cta button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: #ffffff;
    color: #3B28CC !important;
    text-decoration: none;
    font-weight: 700 !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem !important;
}

.sidebar-cta a:hover,
.sidebar-cta button:hover {
    background: #2c3e50;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SOCIAL MEDIA SIDEBAR
   ============================================ */

.block_social {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 8px 30px rgba(44, 62, 80, 0.3);
}

.block_social h2 {
    background: rgba(0, 0, 0, 0.2);
}

.block_social .pkp_block_content {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem !important;
}

.social-icon-sidebar {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-sidebar:hover {
    background: #ffffff;
    color: #2c3e50 !important;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   MAKE SURE ALL TEXT IS VISIBLE
   ============================================ */

.pkp_block a,
.pkp_block span,
.pkp_block p,
.pkp_block li {
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit !important;
}

.pkp_block img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .pkp_block {
        margin-bottom: 1.5rem;
    }

    .block_statistics .pkp_block_content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pkp_structure_sidebar {
        margin-top: 2rem;
    }

    .pkp_block h2,
    .pkp_block .pkp_block_title {
        font-size: 0.95rem !important;
        padding: 1rem 1.2rem !important;
    }

    .pkp_block_content {
        padding: 1.2rem !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.pkp_block a:focus,
.pkp_block button:focus,
.pkp_block input:focus {
    outline: 3px solid #3B28CC;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.pkp_block .content p:last-child {
    padding: 2rem 2rem 2rem 2rem;
}

.homepage-intro {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.intro-image img {
    max-width: 220px;
    height: auto;
    display: block;
}

.intro-text {
    flex: 1;
}

.homepage-full-content {
    width: 100%;
}

@media (max-width: 768px) {
    .homepage-intro {
        flex-direction: column;
    }

    .intro-image img {
        max-width: 180px;
        margin-bottom: 15px;
    }
}