* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-blue: #0f3460;
    --accent-teal: #0891b2;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --success-color: #00b894;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 400;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Journals Section */
.journals-section {
    padding: 3rem 0;
    border-bottom: 2px solid var(--border-color);
}

.journals-section:last-of-type {
    border-bottom: none;
}

.alt-section {
    background: white;
}

.month-section {
    transition: all 0.3s ease;
}

.month-section.collapsed .journals-table {
    display: none;
}

.month-section.expanded .journals-table {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header.clickable {
    cursor: pointer;
    user-select: none;
}

.section-header.clickable:hover h3 {
    color: var(--accent-teal);
}

.section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.toggle-icon {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.journal-source {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Table */
.journals-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 180px 140px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 180px 140px;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.table-row:hover {
    background: var(--bg-light);
}

.table-row.expanded {
    background: #f0f4ff;
}

.table-row:last-child {
    border-bottom: none;
}

.col-title h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.row-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
}

.table-row.expanded .row-details {
    max-height: 1000px;
    margin-top: 1rem;
}

.row-details .detail-section {
    margin-bottom: 1rem;
}

.row-details .detail-section:last-child {
    margin-bottom: 0;
}

.row-details h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.row-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.abstract-preview {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.col-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    align-self: center;
}

.col-journal {
    align-self: center;
}

.journal-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.badge-inovasi {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.badge-perubahan {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.col-date {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: center;
}

.edition-badge {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.month-badge {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.col-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-view {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.btn-view svg {
    width: 16px;
    height: 16px;
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.main-footer p {
    opacity: 0.85;
    font-size: 0.95rem;
}

/* PDF Viewer Modal */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.pdf-modal-content {
    width: 80%;
    height: 80%;
    max-width: 1200px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pdf-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pdf-control-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pdf-control-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
}

.pdf-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.pdf-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.page-info,
.zoom-level {
    color: white;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

.pdf-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.pdf-close-btn:hover {
    transform: scale(1.2);
}

.pdf-viewer-container {
    flex: 1;
    overflow: auto;
    background: #525659;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1.1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#pdf-canvas {
    display: block;
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Article Detail Page */
.breadcrumb {
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.article-detail {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.article-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.article-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.edition-badge-detail {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.date-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.meta-item svg {
    opacity: 0.7;
}

.article-content {
    line-height: 1.8;
}

.article-section {
    margin-bottom: 2.5rem;
}

.article-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.abstract-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: justify;
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Embedded PDF Viewer */
.pdf-viewer-embedded {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.pdf-viewer-embedded .pdf-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--accent-teal);
}

.pdf-viewer-embedded .pdf-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pdf-viewer-embedded .pdf-viewer-container {
    background: #525659;
    min-height: 800px;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.pdf-viewer-embedded canvas {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: white;
    max-width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .table-header,
    .table-row {
        grid-template-columns: 2fr 1fr 140px;
    }
    
    .col-journal {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        display: none;
    }
    
    .table-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .col-date {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    /* PDF Modal adjustments for mobile */
    .pdf-modal-content {
        width: 95%;
        height: 95%;
        max-width: 100%;
    }
    
    .pdf-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .pdf-header h3 {
        font-size: 1rem;
    }
    
    .pdf-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .pdf-action-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .page-info,
    .zoom-level {
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .pdf-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
        z-index: 10;
        background: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* About Page Styles */
.about-hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.about-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-hero .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.about-section {
    background: var(--bg-white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.about-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-teal);
    font-weight: 500;
    color: var(--text-primary);
}

.highlight-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid var(--accent-teal);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    padding: 3rem;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-hero .lead {
        font-size: 1.1rem;
    }
    
    .about-section {
        padding: 1.5rem;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Copyright Section */
.copyright-section {
    background: #f8fafc;
    border-left: 4px solid var(--accent-teal);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.copyright-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #334155;
}

.copyright-section ol {
    margin-left: 1.5rem;
    color: #334155;
}

.copyright-section li {
    margin-bottom: 1rem;
    line-height: 1.8;
    padding-left: 0.5rem;
}

.copyright-section a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.copyright-section a:hover {
    border-bottom-color: var(--accent-teal);
}

/* Indexed Section */
.indexed-section {
    background: #f8fafc;
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 3rem;
}

.indexed-section h3 {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.indexed-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.indexed-logo {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    filter: grayscale(30%);
}

.indexed-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .indexed-section {
        padding: 1.5rem 0;
    }
    
    .indexed-logo {
        height: 32px;
    }
}
