/* ============================================
   POSTRISET JOURNALS - Professional Stylesheet
   ============================================ */

/* --- Font --- */
/* Times New Roman (system font, no import needed) */

/* --- Remove OJS Default Lines/Borders/Separators --- */
.pkp_structure_main hr,
.pkp_structure_content hr {
    display: none !important;
}

.pkp_structure_main::before,
.pkp_structure_main::after,
.pkp_structure_content::before,
.pkp_structure_content::after {
    display: none !important;
}

.pkp_navigation_primary_row,
.pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_site_nav_menu {
    border-bottom: none !important;
}

.journals ul li {
    border-top: none !important;
    border-bottom: none !important;
}

.page_index_site,
.page_index_site .journals,
.page_index_site .journals ul {
    border: none !important;
}

.pkp_footer_content .row.footer .col-4 {
    border: none !important;
}

.copright-container,
.copyright-wrapper {
    border-top: none !important;
}

/* --- CSS Custom Properties --- */
:root {
    --primary: #1a2744;
    --primary-light: #2a3f6a;
    --accent: #c8a23c;
    --accent-hover: #dbb84e;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Body --- */
body {
    text-align: justify;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.pkp_structure_head {
    background-color: #1a2744;
    border-bottom: 1px solid #ddd;
}

.page_index_site .pkp_structure_head::before {
    z-index: unset;
    background: url(https://journal.postinsti.com/public/site/images/postjournals/journal-postinsti.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    box-shadow: unset;
    border: unset;
}

.pkp_head_wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Site Name / Logo --- */
.pkp_site_name {
    text-align: left;
    padding: 50px 0px 40px;
    margin-top: -37px;
}

.pkp_site_name a.is_img img {
    max-height: 80px;
    width: auto;
    -webkit-filter: brightness(1.1);
    filter: brightness(1.1);
    transition: var(--transition);
}

.pkp_site_name a.is_img:hover img {
    -webkit-filter: brightness(1.2);
    filter: brightness(1.2);
    transform: scale(1.02);
}

/* --- Navigation --- */
.pkp_site_nav_menu {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pkp_navigation_user_wrapper {
    padding: 8px 0;
}

.pkp_navigation_user a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.pkp_navigation_user a:hover {
    color: var(--accent) !important;
}

.pkp_navigation_user .task_count {
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

/* User dropdown */
.pkp_navigation_user>li>ul {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.pkp_navigation_user>li>ul a {
    color: var(--text-dark) !important;
    padding: 10px 20px;
}

.pkp_navigation_user>li>ul a:hover {
    background: var(--bg-light);
    color: var(--primary) !important;
}

/* --- Main Content Area --- */
.pkp_structure_content {
    min-height: 60vh;
    padding: 0;
}

.pkp_structure_main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px 70px;
}

/* --- Page Index / Journals Section --- */
.page_index_site {
    padding: 0;
}

.journals h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    letter-spacing: -0.02em;
}

.journals h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    margin: 16px auto 0;
    border-radius: 2px;
}

/* --- Journal List (2-column grid) --- */
.journals ul {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.journals ul li {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.journals ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: var(--transition);
}

.journals ul li:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.journals ul li:hover::before {
    opacity: 1;
}

/* --- Journal with Thumbnail --- */
.journals ul li.has_thumb {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-direction: row;
}

/* --- Thumbnail --- */
.journals .thumb {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.journals .thumb a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--border);
}

.journals .thumb a:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.journals .thumb img {
    display: block;
    width: 170px;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
}

/* --- Journal Body --- */
.journals .body {
    flex: 1;
    min-width: 0;
}

.journals .body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
    text-align: center;
}

.journals .body h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.journals .body h3 a:hover {
    color: var(--accent);
}

/* --- Description --- */
.journals .description {
    margin: 0 0 20px;
}

.journals .description p {
    color: var(--text-medium);
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journals .description strong {
    color: var(--primary);
    font-weight: 700;
}

.journals .description em {
    color: var(--text-light);
    font-style: italic;
}

/* --- Journal Action Links --- */
.journals .links {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    padding-top: 18px;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    justify-content: center;
}

.journals .links li {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.journals .links li:hover {
    transform: none;
    box-shadow: none;
}

.journals .links li::before {
    display: none;
}

.journals .links li a {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: var(--transition);
}

.journals .links li.view a {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 39, 68, 0.25);
}

.journals .links li.view a:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 16px rgba(26, 39, 68, 0.35);
    transform: translateY(-2px);
}

.journals .links li.current a {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.journals .links li.current a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 39, 68, 0.25);
}

/* --- Footer --- */
.pkp_structure_footer_wrapper {
    background: #1a2744;
}

.pkp_structure_footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.pkp_footer_content {
    padding: 50px 0 0;
}

.pkp_footer_content .row.footer {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pkp_footer_content .row.footer .col-4 {
    flex: 1;
    min-width: 240px;
}

.pkp_footer_content .row.footer h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: 0.04em;
}

.pkp_footer_content .row.footer h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Inter', sans-serif;
}

.pkp_footer_content .row.footer p,
.pkp_footer_content .row.footer div {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.pkp_footer_content .row.footer a {
    color: var(--accent) !important;
    text-decoration: none;
    transition: var(--transition);
}

.pkp_footer_content .row.footer a:hover {
    color: var(--accent-hover) !important;
    text-decoration: underline;
}

/* --- Copyright --- */
.copright-container {
    padding: 24px 0;
}

.copyright-wrapper {
    text-align: center;
}

.copy-right {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.copy-right a {
    color: var(--accent) !important;
    text-decoration: none;
}

.copy-right a:hover {
    text-decoration: underline;
}

/* --- PKP Brand Footer --- */
.pkp_brand_footer {
    text-align: center;
    padding: 20px 0 30px;
    opacity: 0.5;
    transition: var(--transition);
}

.pkp_brand_footer:hover {
    opacity: 0.8;
}

.pkp_brand_footer img {
    height: 24px;
    width: auto;
}

/* --- Responsive --- */
@media (min-width: 1200px) {
    .pkp_structure_main {
        width: 1240px;
    }
}

@media (min-width: 992px) {
    .pkp_page_index .journals>ul>li {
        margin: 0px -1.143rem;
        padding: 3.143rem;
    }
}

@media (max-width: 768px) {
    .journals h2 {
        font-size: 1.7rem;
    }

    .journals ul {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .journals .thumb img {
        width: 120px;
    }

    .journals ul li {
        padding: 24px 20px;
    }

    .journals .links {
        flex-wrap: wrap;
    }

    .pkp_footer_content .row.footer {
        flex-direction: column;
        gap: 24px;
    }

    .pkp_structure_main {
        padding: 30px 16px 50px;
    }
}

@media (max-width: 480px) {
    .journals .body h3 {
        font-size: 1.1rem;
    }

    .journals .links li a {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .journals .thumb img {
        width: 100px;
    }
}