/* PARJ Ultimate Design - Exact Match - V2 */

/* RESET & BASE */
:root {
    --parj-blue: #0A1E3C;
    --parj-gold: #D4A045;
    --parj-gold-hover: #b88a38;
    --parj-light-bg: #F8F9FA;
    --parj-border: #E0E0E0;
    --parj-text: #333333;
    --parj-blue-dark: #051024;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--parj-text);
    background-color: white;
    margin: 0;
    padding: 0;
}

/* =========================================
   HOMEPAGE SPECIFIC OVERRIDES
   ========================================= */
/* Target the homepage specifically if possible, otherwise these are aggressive */

/* Remove default padding/margins from OJS containers on homepage */
.pkp_page_index .pkp_structure_content,
.pkp_page_index .pkp_structure_main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* If body class isn't available, we rely on the custom wrapper to force issues */
.parj-custom-page-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Creative breakout */
    margin-right: calc(-50vw + 50%);
    overflow-x: hidden;
}

/* =========================================
   HEADER TRANSPARENCY OVERRIDE
   ========================================= */
.pkp_structure_head {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.pkp_navigation_primary ul li a {
    color: white !important;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.pkp_site_name .is_text {
    color: white !important;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.pkp_navigation_user a {
    color: white !important;
}

/* =========================================
   HERO SECTION
   ========================================= */
.parj-hero-section {
    position: relative;
    height: 700px;
    background-image: url('../images/hero-bg.png');
    /* Fallback */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    margin-top: -120px;
    /* Pull up to cover header space */
    padding-top: 120px;
}

.parj-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 16, 36, 0.9) 0%, rgba(5, 16, 36, 0.5) 100%);
    z-index: 1;
}

.parj-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.parj-hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-family: 'Playfair Display', serif;
    /* Or similar elegant font */
}

.parj-hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.parj-hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.btn-gold {
    background: linear-gradient(to bottom, #D4A045, #b88a38);
    color: #000;
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gold:hover {
    background: linear-gradient(to bottom, #E5B258, #c99849);
    transform: translateY(-2px);
    color: #000;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(212, 160, 69, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline:hover {
    background-color: white;
    color: var(--parj-blue);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* =========================================
   TRUST STRIP
   ========================================= */
.parj-trust-strip {
    background-color: white;
    padding: 25px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.parj-trust-strip span {
    font-weight: 700;
    color: #555;
    font-size: 1.3rem;
    margin: 0 15px;
}

.parj-trust-strip .divider {
    color: #ccc;
    font-weight: 300;
}

/* =========================================
   SEARCH BAR
   ========================================= */
.parj-search-section {
    background-color: var(--parj-blue);
    padding: 50px 0;
    text-align: center;
    background-image: linear-gradient(to bottom, #0A1E3C, #051024);
}

.parj-search-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.parj-search-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 1.1rem;
}

.parj-search-form button {
    background: linear-gradient(to bottom, #D4A045, #b88a38);
    color: black;
    border: none;
    padding: 0 40px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.parj-search-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.parj-search-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.parj-search-links a:hover {
    color: white;
}

/* =========================================
   MAIN CONTENT (Trending & Articles)
   ========================================= */
.parj-main-content {
    padding: 80px 20px;
}

.parj-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--parj-blue);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.parj-section-title:after {
    content: '';
    position: absolute;
    right: -80px;
    top: 50%;
    width: 60px;
    height: 2px;
    background-color: #eee;
}

/* Trending Journals */
.parj-trending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.parj-trending-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.parj-trending-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.parj-trending-card .card-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.badge-open {
    background-color: var(--parj-gold);
    color: black;
    font-size: 0.7rem;
    padding: 5px 10px;
    position: absolute;
    bottom: 12px;
    left: 12px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

.parj-trending-card .card-body {
    padding: 20px;
}

.parj-trending-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--parj-blue);
    line-height: 1.3;
}

.status-check {
    font-size: 0.85rem;
    color: var(--parj-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Popular Topics */
.parj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-pill {
    padding: 10px 25px;
    border-radius: 25px;
    border: 1px solid #e0e0e0;
    color: #555;
    background-color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}

.tag-pill:hover {
    border-color: var(--parj-blue);
    background-color: var(--parj-blue);
    color: white;
    text-decoration: none;
}

/* Recommended Articles */
.parj-recommended-list {
    background: white;
    border-left: 1px solid #eee;
    padding-left: 30px;
}

.article-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.icon-bullet {
    width: 24px;
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin-top: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--parj-blue);
    font-size: 12px;
}

.icon-bullet:after {
    content: '📄';
}

.article-info a {
    display: block;
    color: var(--parj-blue);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    text-decoration: none;
    font-size: 1rem;
}

.article-info a:hover {
    color: var(--parj-gold);
}

.article-info .meta {
    font-size: 0.85rem;
    color: #888;
    display: block;
}

.btn-dark-small {
    background-color: var(--parj-blue);
    color: white;
    padding: 10px 25px;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* =========================================
   EXPLORE JOURNALS (Dark)
   ========================================= */
.parj-explore-section {
    background-image: url('../images/hero-bg.png');
    /* Reuse hero */
    background-attachment: fixed;
    background-size: cover;
    padding: 80px 0;
    position: relative;
    color: white;
}

.parj-explore-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 30, 60, 0.96);
}

.parj-explore-section .container {
    position: relative;
    z-index: 2;
}

.center-title {
    text-align: center;
    color: white;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    font-weight: 700;
}

.center-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: white;
    margin: 20px auto 0;
    opacity: 0.2;
}

.parj-explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.explore-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
}

.explore-card:hover {
    transform: translateY(-5px);
}

.explore-img {
    height: 160px;
    overflow: hidden;
}

.explore-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.explore-card:hover .explore-img img {
    transform: scale(1.05);
}

.explore-body {
    padding: 20px 15px;
    text-align: center;
}

.explore-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--parj-blue);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.explore-body .meta {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-xs {
    background: white;
    border: 1px solid var(--parj-blue);
    color: var(--parj-blue);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
}

.btn-xs:hover {
    background: #f0f0f0;
}

.btn-xs-primary {
    background: var(--parj-blue);
    border: 1px solid var(--parj-blue);
    color: white;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
}

.btn-xs-primary:hover {
    background: #051024;
}

/* =========================================
   WHY PUBLISH ICONS
   ========================================= */
.parj-icons-section {
    padding: 90px 0;
    text-align: center;
    background: white;
}

.center-title-dark {
    font-size: 2.2rem;
    color: var(--parj-blue);
    margin-bottom: 60px;
    font-weight: 800;
}

.icons-grid {
    display: flex;
    justify-content: space-around;
    max-width: 1100px;
    margin: 0 auto;
}

.icon-box {
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.icon-circle {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin: 0 auto 25px;
    color: var(--parj-blue);
    transition: transform 0.3s;
}

.icon-box:hover .icon-circle {
    transform: scale(1.1);
    color: var(--parj-gold);
}

.icon-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--parj-blue);
    max-width: 200px;
    margin: 0 auto;
}

/* =========================================
   PRE-FOOTER CTA
   ========================================= */
.parj-pre-footer {
    background: linear-gradient(135deg, #0A1E3C 0%, #1a3a6b 100%);
    padding: 50px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.parj-pre-footer:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(30deg);
}

.parj-pre-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.parj-pre-footer h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.btn-gold-gradient {
    background: linear-gradient(to bottom, #D4A045, #b88a38);
    color: black;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    transition: transform 0.3s;
}

.btn-gold-gradient:hover {
    transform: scale(1.05);
    color: black;
}

/* RESPONSIVE */
@media (max-width: 991px) {

    .parj-trending-grid,
    .parj-explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .icons-grid {
        flex-wrap: wrap;
        gap: 40px;
    }

    .icon-box {
        flex: 0 0 45%;
    }

    .parj-hero-content h1 {
        font-size: 3rem;
    }

    .parj-recommended-list {
        margin-top: 50px;
        padding-left: 0;
        border-left: none;
    }
}

@media (max-width: 767px) {
    .parj-hero-content h1 {
        font-size: 2.2rem;
    }

    .parj-search-form {
        flex-direction: column;
    }

    .parj-search-form button {
        padding: 15px;
    }

    .parj-pre-footer .container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .parj-trending-grid,
    .parj-explore-grid {
        grid-template-columns: 1fr;
    }

    .parj-hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 40px;
    }

    .parj-search-links {
        flex-wrap: wrap;
        gap: 15px;
    }

    .parj-trust-strip span {
        display: block;
        margin: 10px 0;
    }

    .parj-trust-strip .divider {
        display: none;
    }
}