/* ===== Journal Index Page - Modern Layout ===== */

/* Hero Section */
.journal-hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: white;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.journal-hero-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    opacity: 0.08;
    background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="white"/></svg>');
    background-size: 30px 30px;
}
.journal-hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
}
.journal-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.journal-hero-desc {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 700px;
    line-height: 1.6;
}
.journal-hero-image {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 180px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 4px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}
.journal-hero-image:hover {
    transform: scale(1.05) rotate(2deg);
}
.journal-hero-actions .btn-hero {
    background-color: white;
    color: #1e3a8a;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    display: inline-block;
}
.journal-hero-actions .btn-hero:hover {
    background-color: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* ISSN Badges */
.journal-hero-issn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}
.issn-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    letter-spacing: 0.3px;
}

/* Article Cards */
.page_index_journal .card {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
    background-color: #ffffff;
}
.page_index_journal .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}
.page_index_journal .card-img-top {
    transition: transform 0.5s ease;
}
.page_index_journal .card:hover .card-img-top {
    transform: scale(1.04);
}
.page_index_journal .recent-article-title {
    color: #0f172a !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.4;
    transition: color 0.2s;
    text-decoration: none;
}
.page_index_journal .recent-article-title:hover {
    color: #2563eb !important;
    text-decoration: none;
}
.page_index_journal .card-body {
    padding: 1.5rem;
}
.page_index_journal .card-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #64748b !important;
}
.page_index_journal .section-title-bar h3 {
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Sidebar */
.pkp_structure_sidebar {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
}
.carousel-inner {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .journal-hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .journal-hero-title {
        font-size: 1.6rem;
    }
    .journal-hero-image {
        width: 140px;
        margin-bottom: 1rem;
    }
}

/* ===== Custom Pagination Styling ===== */
.custom-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.custom-pagination {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    gap: 8px;
}
.custom-pagination a, .custom-pagination strong {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.custom-pagination a {
    color: #475569;
    background-color: transparent;
}
.custom-pagination a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color, #003595);
}
.custom-pagination strong {
    background-color: var(--primary-color, #003595);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 53, 149, 0.2);
}

/* Adjust card titles and image heights for 3-column layout */
.page_index_journal .col-md-4 .recent-article-title {
    font-size: 0.95rem !important;
    line-height: 1.4;
}
.page_index_journal .col-md-4 .card-img-top {
    height: 160px !important;
}
.page_index_journal .col-md-4 .card-body {
    padding: 1.2rem;
}
.page_index_journal .col-md-4 .card-footer {
    padding: 0 1.2rem 1.2rem 1.2rem;
    font-size: 0.75rem;
}

/* ===== Dynamic Cover Page Mockup ===== */
.jrn-cover-dynamic {
    width: 100%;
    height: 160px;
    background: #003595; /* LPKIA Blue */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 10px;
    box-sizing: border-box;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    position: relative;
    border-bottom: 3px solid #e11d48;
}

/* Journal cover gradients/colors - must match indexJournal.tpl hero gradients */
.jrn-cover-jti {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
}
.jrn-cover-jkb {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%) !important;
}
.jrn-cover-jda {
    background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%) !important;
}
.jrn-cover-jdab {
    background: linear-gradient(135deg, #581c87 0%, #a855f7 100%) !important;
}

/* Top bar with volume / ISSN info */
.jrn-cover-topbar {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    font-weight: 700;
    opacity: 0.9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
}

/* Header section (logo + title) */
.jrn-cover-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

/* Styled LPKIA emblem */
.lpkia-logo-box {
    width: 26px;
    height: 26px;
    background: #003595;
    border: 1px solid #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}
.lpkia-logo-top-red {
    width: 100%;
    height: 6px;
    background: #e11d48;
}
.lpkia-logo-diagonal {
    position: absolute;
    top: 6px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(135deg, transparent 45%, #ffffff 46%, #ffffff 54%, transparent 55%);
}
.lpkia-logo-bottom-text {
    width: 100%;
    height: 8px;
    background: #ffffff;
    color: #003595;
    font-size: 6px;
    font-weight: 900;
    text-align: center;
    line-height: 8px;
    letter-spacing: 0.3px;
}

/* Title text */
.jrn-cover-title-area {
    text-align: left;
    overflow: hidden;
}
.jrn-cover-title-area h1 {
    font-size: 10px;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.jrn-cover-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 2px 0;
}
.jrn-cover-title-area h2 {
    font-size: 6px;
    font-weight: 600;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Center White paper card */
.jrn-cover-paper {
    flex: 1;
    background: #ffffff;
    border-radius: 4px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid #e11d48;
    overflow: hidden;
    margin-bottom: 4px;
}
.jrn-cover-paper-title {
    font-size: 8px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.jrn-cover-paper-author {
    font-size: 7px;
    font-style: italic;
    color: #64748b;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* List items for Issue view */
.jrn-cover-paper-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 2px 0;
    text-align: left;
}
.jrn-cover-paper-item:last-child {
    border-bottom: none;
}
.jrn-cover-paper-item-title {
    font-size: 7px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jrn-cover-paper-item-author {
    font-size: 6px;
    color: #64748b;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer Section */
.jrn-cover-footer {
    display: flex;
    justify-content: space-between;
    font-size: 6px;
    font-weight: 700;
    opacity: 0.95;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2px;
}
.jrn-cover-footer-brand {
    letter-spacing: 0.5px;
}
.jrn-cover-footer-meta {
    display: flex;
    gap: 4px;
}

/* Modifier for larger displays (e.g. Issue Slider & Archive) */
.jrn-cover-large {
    height: 220px !important;
    padding: 12px 14px;
}
.jrn-cover-large .jrn-cover-topbar {
    font-size: 10px;
    padding-bottom: 4px;
}
.jrn-cover-large .lpkia-logo-box {
    width: 36px;
    height: 36px;
    border-width: 1.5px;
}
.jrn-cover-large .lpkia-logo-top-red {
    height: 8px;
}
.jrn-cover-large .lpkia-logo-diagonal {
    top: 8px;
    height: 12px;
}
.jrn-cover-large .lpkia-logo-bottom-text {
    height: 10px;
    font-size: 8px;
    line-height: 10px;
}
.jrn-cover-large .jrn-cover-title-area h1 {
    font-size: 14px;
}
.jrn-cover-large .jrn-cover-title-area h2 {
    font-size: 8px;
}
.jrn-cover-large .jrn-cover-paper {
    padding: 10px 12px;
    margin: 6px 0;
}
.jrn-cover-large .jrn-cover-paper-title {
    font-size: 11px;
}
.jrn-cover-large .jrn-cover-paper-author {
    font-size: 9px;
}
.jrn-cover-large .jrn-cover-paper-item-title {
    font-size: 9px;
}
.jrn-cover-large .jrn-cover-paper-item-author {
    font-size: 8px;
}
.jrn-cover-large .jrn-cover-footer {
    font-size: 8px;
    padding-top: 4px;
}

