/* Base styles from Template 1 */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #34495E;
    --accent-color: #3498DB;
    --accent-hover: #2980B9;
    --bg-light: #F9FAFB;
    --text-main: #333333;
    --text-light: #666666;
    --border-color: #E5E7EB;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

nav a:hover {
    color: var(--accent-color);
}

.btn-submit {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FDFBFB 0%, #EBEDEE 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* =========================================
   NEW SECTIONS (Cover + Banner + Buttons)
   ========================================= */

/* Top Section: Cover & Banner */
.top-section {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.cover-card {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
}

.cover-img {
    color: #fff;
}

.cover-img-box {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.cover-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cover-info {
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cover-info p {
    margin-bottom: 5px;
}

.banner-area {
    flex: 1;
    min-height: 200px;
    background: var(--primary-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-area:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.banner-area h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.banner-area p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Action Bar: 4 Buttons */
.action-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 20px 15px;
    text-align: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.action-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.action-btn h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.action-btn p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Main Grid (Existing) */
.main-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

/* Sidebar Styles */
.sidebar-widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.cover-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.journal-cover {
    width: 100%;
    max-width: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    transition: transform 0.3s;
}

.journal-cover:hover {
    transform: translateY(-5px);
}

.info-list {
    list-style: none;
    font-size: 0.95rem;
}

.info-list li {
    margin-bottom: 0.8rem;
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 700;
    color: var(--primary-color);
    width: 80px;
    flex-shrink: 0;
}

.info-value {
    color: var(--text-light);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    color: var(--primary-color);
}

/* Articles */
.section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 1rem;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-authors {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.article-abstract {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-actions {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.btn-text {
    color: var(--accent-color);
    font-weight: 600;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #ecf0f1;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Forms (Login/Register) */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--accent-color);
}

/* Tables (Editorial/Archives) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--primary-color);
}

/* Article Detail */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-full-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.article-full-text p {
    margin-bottom: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--secondary-color);
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}