/**
 * Journal & Publications Styles
 */

/* === Journal Landing Page Hero === */
.journal-hero-main {
    background: transparent;
    margin-top: 80px;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.journal-hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1440px;
    height: 100%;
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 50%, #3399FF 100%);
    border-radius: 0 0 60px 60px;
    z-index: 0;
    opacity: 1;
}

/* Journal Hero Image - override homepage hero styles */
.journal-hero-image {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
}

.journal-hero-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: none !important;
    object-fit: contain;
}

/* Remove hero-image-circle styles for journal */
.journal-hero-image .hero-image-circle {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .journal-hero-main {
        padding: 50px 0 70px;
    }

    .journal-hero-main::before {
        width: 100%;
        max-width: 100%;
        border-radius: 0 0 40px 40px;
    }

    .journal-hero-image img {
        border-radius: 12px;
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Base Styles */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 119, 255, 0.3);
    opacity: 1;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-white {
    background: white;
    color: #0077FF;
}

.btn-white:hover {
    background: #f8fafc;
}

/* === Journal Hero Subtitle === */
.journal-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-top: 16px;
    max-width: 520px;
    font-weight: 400;
}

/* === Journal CTA Button (white on blue background) === */
.btn-journal-cta {
    display: inline-block;
    background: #ffffff;
    color: #0066EE;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-journal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    background: #f0f6ff;
}

/* === Journal Hero Image — remove shadow for transparent-background images === */
.journal-hero-image img {
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .journal-hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .btn-journal-cta {
        font-size: 14px;
        padding: 14px 28px;
    }

    .journal-hero-image img {
        border-radius: 0;
    }
}

/* === Journal Benefits Section === */
.journal-benefits {
    padding: 80px 0;
    background: white;
}

.journal-benefits .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1f2937;
}

.journal-benefits .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.journal-benefits .benefit-card {
    text-align: center;
    padding: 30px 24px;
    background: #f8fafc;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.journal-benefits .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.journal-benefits .benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    border-radius: 50%;
    color: white;
}

.journal-benefits .benefit-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.journal-benefits .benefit-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Journal Steps Section === */
.journal-steps {
    padding: 80px 0;
    background: #f8fafc;
}

.journal-steps .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1f2937;
}

.journal-steps .steps-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.journal-steps .step-item {
    flex: 1;
    min-width: 180px;
    max-width: 200px;
    text-align: center;
    padding: 20px 16px;
}

.journal-steps .step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.journal-steps .step-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1f2937;
}

.journal-steps .step-item p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

.journal-steps .step-connector {
    width: 40px;
    height: 2px;
    background: #d1d5db;
    margin-top: 28px;
    flex-shrink: 0;
}

.steps-cta {
    text-align: center;
    margin-top: 40px;
}

/* === Journal Certificate Section === */
.journal-certificate {
    padding: 80px 0;
    background: white;
}

.certificate-preview-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.certificate-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.certificate-desc {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 30px;
}

.certificate-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.certificate-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 1rem;
    color: #4b5563;
}

.certificate-features svg {
    color: #10b981;
    flex-shrink: 0;
}

.certificate-price {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 12px;
    margin-bottom: 24px;
}

.certificate-price .price-label {
    font-size: 1rem;
    color: #4b5563;
}

.certificate-price .price-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981;
}

.certificate-image {
    position: relative;
}

/* === Certificate Stack (fan arrangement) === */
.cert-stack {
    position: relative;
    width: 380px;
    height: 500px;
    perspective: 1000px;
}

.cert-stack-item {
    position: absolute;
    width: 260px;
    transition: all 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Certificate card with template background */
.cert-card {
    width: 100%;
    aspect-ratio: 595 / 842;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card-body {
    text-align: center;
    padding: 18% 12% 10%;
    width: 100%;
}

.cert-card-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1em;
    font-weight: 700;
    color: #0077FF;
    letter-spacing: 2px;
    margin-bottom: 1px;
}

.cert-card-subtitle {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.55em;
    color: #0077FF;
    letter-spacing: 1px;
    margin-bottom: 6%;
}

.cert-card-label {
    font-size: 0.42em;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 2%;
}

.cert-card-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.6em;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4%;
    line-height: 1.3;
}

.cert-card-text {
    font-size: 0.38em;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 4%;
}

.cert-card-work {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.42em;
    color: #1f2937;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 5%;
}

.cert-card-details {
    font-size: 0.34em;
    color: #6b7280;
    line-height: 1.6;
    text-align: left;
    padding-left: 8%;
}

/* 4 certificates fanned out */
.cert-stack-1 { left: 0; top: 60px; transform: rotate(-12deg); z-index: 1; }
.cert-stack-2 { left: 25px; top: 35px; transform: rotate(-4deg); z-index: 2; }
.cert-stack-3 { left: 55px; top: 15px; transform: rotate(4deg); z-index: 3; }
.cert-stack-4 { left: 85px; top: 0; transform: rotate(12deg); z-index: 4; }

/* Hover effect - fan out more */
.cert-stack:hover .cert-stack-1 { transform: rotate(-18deg) translateX(-15px); }
.cert-stack:hover .cert-stack-2 { transform: rotate(-6deg) translateX(-8px); }
.cert-stack:hover .cert-stack-3 { transform: rotate(6deg) translateX(8px); }
.cert-stack:hover .cert-stack-4 { transform: rotate(18deg) translateX(15px); }

/* === Journal FAQ Section === */
.journal-faq {
    padding: 80px 0;
    background: #f8fafc;
}


/* === Journal CTA Section === */
.journal-cta {
    padding: 80px 0;
    background: white;
}

.journal-cta .cta-card {
    background: linear-gradient(135deg, #0057D9 0%, #0077FF 50%, #3399FF 100%);
    color: white;
    padding: 64px 48px;
    border-radius: 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 100, 255, 0.2);
}

.journal-cta .cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.journal-cta .cta-card h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.journal-cta .cta-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* === Publication Landing Page (legacy) === */
.publication-landing {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.publication-hero {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    color: white;
    text-align: center;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-title .highlight-blue {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* === Benefits Section === */
.publication-benefits {
    padding: 60px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1f2937;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    border-radius: 50%;
    color: white;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.benefit-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Form Section === */
.publication-form-section {
    padding: 60px 0;
    background: #f1f5f9;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.form-header p {
    color: #6b7280;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: #1f2937;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #0077FF;
    box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* Tags Selector */
.tags-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-checkbox {
    cursor: pointer;
}

.tag-checkbox input {
    display: none;
}

.tag-label {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.tag-checkbox:hover .tag-label {
    background: #e5e7eb;
}

.tag-checkbox input:checked + .tag-label {
    background: var(--tag-color, #0077FF);
    color: white;
    border-color: var(--tag-color, #0077FF);
}

/* File Upload */
.file-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #0077FF;
    background: rgba(0, 119, 255, 0.05);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    margin-bottom: 16px;
    color: #9ca3af;
}

.upload-text {
    color: #4b5563;
    margin-bottom: 8px;
}

.upload-link {
    color: #0077FF;
    text-decoration: underline;
}

.upload-hint {
    font-size: 0.875rem;
    color: #9ca3af;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.file-icon {
    color: #0077FF;
}

.file-info {
    flex: 1;
    text-align: left;
}

.file-name {
    display: block;
    font-weight: 500;
    color: #1f2937;
}

.file-size {
    font-size: 0.875rem;
    color: #6b7280;
}

.file-remove {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.file-remove:hover {
    color: #ef4444;
}

/* Agreement */
.form-agreement {
    margin-top: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 4px;
}

.agreement-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.agreement-text a {
    color: #0077FF;
}

/* Submit */
.form-actions {
    margin-top: 32px;
    text-align: center;
}

.btn-submit {
    width: 100%;
}

.submit-hint {
    margin-top: 12px;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* === Steps Timeline === */
.publication-steps {
    padding: 60px 0;
    background: white;
}

.steps-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1f2937;
}

.step-item p {
    font-size: 0.9rem;
    color: #6b7280;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: #e5e7eb;
    margin-top: 30px;
}

/* === FAQ === */
.publication-faq {
    padding: 60px 0;
    background: #f8fafc;
}

/* === Journal Catalog === */
.journal-page {
    padding: 40px 0;
    min-height: 70vh;
}

.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.page-description {
    color: #6b7280;
    max-width: 600px;
}

.journal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar */
.journal-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-icon {
    cursor: pointer;
}

.search-form {
    display: flex;
    gap: 8px;
    position: relative;
}

.search-form .search-input {
    flex: 1;
    padding: 10px 14px;
    padding-right: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    width: auto;
}

.search-form .search-input:focus {
    outline: none;
    border-color: #0077FF;
}

.search-form .search-btn {
    position: static;
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: #0077FF;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 4px;
}

.filter-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.filter-link:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.filter-link.active {
    background: #0077FF;
    color: white;
}

.tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tag-color, #0077FF);
}

.filter-link.active .tag-dot {
    background: white;
}

.count {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 2px 8px;
    background: #e5e7eb;
    border-radius: 10px;
    color: #6b7280;
}

.filter-link.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.collapsed {
    display: none;
}

.collapsible.expanded .collapsed {
    display: block;
}

/* Main Content */
.journal-main {
    min-width: 0;
}

.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.results-count {
    color: #6b7280;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 0.875rem;
    color: #9ca3af;
}

.sort-option {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.sort-option:hover {
    background: #f3f4f6;
}

.sort-option.active {
    background: #0077FF;
    color: white;
}

/* Publications Grid */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.publication-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-link {
    display: block;
    padding: 24px;
    text-decoration: none;
    color: inherit;
}

.card-header {
    margin-bottom: 12px;
}

.publication-type {
    display: inline-block;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publication-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.publication-excerpt {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.author-name {
    font-size: 0.875rem;
    color: #4b5563;
}

.publication-meta {
    display: flex;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.publication-date {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 12px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #4b5563;
    margin-bottom: 8px;
}

.empty-state p {
    color: #9ca3af;
    margin-bottom: 24px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.page-link.active {
    background: #0077FF;
    border-color: #0077FF;
    color: white;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-dots {
    padding: 8px;
    color: #9ca3af;
}

/* === Publication Detail Page === */
.publication-page {
    padding: 40px 0;
}

.publication-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.breadcrumbs {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #0077FF;
}

.separator {
    margin: 0 8px;
}

.publication-header {
    margin-bottom: 32px;
}

.publication-type-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.publication-content .publication-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.3;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.author-avatar.large {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info .author-name {
    font-weight: 600;
    color: #1f2937;
}

.author-org {
    font-size: 0.875rem;
    color: #6b7280;
}

.meta-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-stats .meta-item {
    font-size: 0.875rem;
}

.publication-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 119, 255, 0.1);
    color: var(--tag-color, #0077FF);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-badge:hover {
    background: var(--tag-color, #0077FF);
    color: white;
}

.publication-annotation {
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.publication-annotation h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publication-annotation p {
    color: #4b5563;
    line-height: 1.7;
}

/* Download Section */
.download-section {
    margin-bottom: 32px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
}

.file-details {
    flex: 1;
}

.file-details .file-name {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.file-meta {
    font-size: 0.875rem;
    color: #9ca3af;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* CTA Section */
.cta-section {
    margin-top: 48px;
}

.cta-card {
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.cta-card .btn-primary {
    background: #ffffff;
    color: #0077FF;
    font-weight: 600;
}

.cta-card .btn-primary:hover {
    background: #f0f4ff;
    color: #0057D9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Sidebar */
.publication-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.author-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-details {
    margin-top: 12px;
}

.author-details .name {
    display: block;
    font-weight: 600;
    color: #1f2937;
}

.author-details .org {
    font-size: 0.875rem;
    color: #6b7280;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.related-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-list a {
    text-decoration: none;
}

.related-title {
    display: block;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.4;
}

.related-author {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.vk {
    background: #4a76a8;
    color: white;
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.ok {
    background: #ee8208;
    color: white;
}

.share-btn.copy {
    background: #f3f4f6;
    color: #6b7280;
}

/* === Certificate Page === */
.certificate-page {
    padding: 40px 0;
    min-height: 70vh;
}

.certificate-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.certificate-form-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.back-link {
    margin-bottom: 24px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link a:hover {
    color: #0077FF;
}

.certificate-form-section .page-title {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.publication-info-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.publication-info-card h3 {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.publication-info-card .publication-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.publication-info-card .publication-author {
    font-size: 0.9rem;
    color: #6b7280;
}

.certificate-ready-card,
.certificate-pending-card {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.pending-icon {
    margin: 0 auto 20px;
}

.certificate-form .form-section {
    margin-bottom: 32px;
}

.certificate-form .form-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.template-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.template-item {
    cursor: pointer;
    text-align: center;
}

.template-item img {
    width: 100%;
    border-radius: 8px;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.template-item.active img,
.template-item:hover img {
    border-color: #0077FF;
}

.template-name {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 8px;
}

.price-section {
    padding: 20px;
    background: #f0fdf4;
    border-radius: 12px;
}

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

.price-label {
    font-weight: 500;
    color: #1f2937;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
}

.btn-full {
    width: 100%;
}

.payment-note {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 16px;
}

/* Preview Section */
.certificate-preview-section {
    position: sticky;
    top: 20px;
}

.preview-container {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.preview-container h3 {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 16px;
    text-align: center;
}

.preview-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.preview-frame img {
    width: 100%;
    display: block;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.preview-field {
    position: absolute;
    text-align: center;
    font-family: 'DejaVu Sans', sans-serif;
}

.preview-author {
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: bold;
}

.preview-org {
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
}

.preview-title {
    top: 58%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    max-width: 80%;
}

.preview-benefits {
    margin-top: 20px;
}

.preview-benefits .benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.preview-benefits .benefit-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* === Cabinet Tabs === */
.cabinet-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.cabinet-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.cabinet-tab:hover {
    color: #4b5563;
}

.cabinet-tab.active {
    color: white;
    border-bottom-color: #0077FF;
}

.tab-icon {
    font-size: 1.1rem;
}

.tab-count {
    padding: 2px 8px;
    background: #e5e7eb;
    border-radius: 10px;
    font-size: 0.75rem;
}

.cabinet-tab.active .tab-count {
    background: #0077FF;
    color: white;
}

/* === Submit Publication Page (Two-Column Layout) === */
.submit-publication-page {
    background: #f8fafc;
    min-height: 100vh;
}

.submit-hero {
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    padding: 32px 0;
    color: white;
}

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

.submit-hero-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #ffffff;
}

.submit-hero-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-badges .badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.hero-badges .badge strong {
    color: #fbbf24;
}

/* Form Section Layout */
.submit-form-section {
    padding: 40px 0 60px;
}

.submit-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.submit-form-column {
    min-width: 0;
}

.form-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.form-card-header h2 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 4px;
}

.form-card-header p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.section-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0077FF 0%, #0088FF 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #0077FF;
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Hint Text */
.hint-text {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Tags Selector Enhancement */
.tags-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-checkbox .tag-label {
    background: #f3f4f6;
    color: #4b5563;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.tag-checkbox:hover .tag-label {
    background: #e5e7eb;
}

.tag-checkbox input:checked + .tag-label {
    background: #0077FF;
    color: white;
    border-color: #0077FF;
}

.subjects-selector .tag-label.subject-tag {
    background: #f3f4f6;
    color: #6b7280;
}

.subjects-selector .tag-checkbox:hover .tag-label.subject-tag {
    background: #e5e7eb;
}

.subjects-selector .tag-checkbox input:checked + .tag-label.subject-tag {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

/* File Upload Enhancement */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    background: #fafafa;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #0077FF;
    background: rgba(0, 119, 255, 0.03);
}

.upload-icon {
    color: #9ca3af;
    margin-bottom: 16px;
}

.upload-text {
    color: #4b5563;
    margin-bottom: 8px;
}

.upload-text strong {
    color: #1f2937;
}

.upload-link {
    color: #0077FF;
    text-decoration: underline;
    cursor: pointer;
}

/* Form Agreement */
.form-agreement {
    margin-top: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #0077FF;
}

/* Form Submit */
.form-submit {
    margin-top: 16px;
}

.btn-block {
    width: 100%;
}

.submit-hint {
    text-align: center;
    margin-top: 12px;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Right Column - Info */
.submit-info-column {
    position: sticky;
    top: 20px;
}

/* Journal Mockup */
.journal-preview {
    margin-bottom: 16px;
}

.journal-image-wrapper {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.journal-mockup {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.mockup-header {
    background: #0077FF;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.mockup-dots span:first-child {
    background: #ef4444;
}

.mockup-dots span:nth-child(2) {
    background: #fbbf24;
}

.mockup-dots span:last-child {
    background: #22c55e;
}

.mockup-title {
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
}

.mockup-content {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 60px;
    gap: 10px;
}

.mockup-article {
    background: white;
    padding: 10px;
    border-radius: 6px;
}

.article-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 0.55rem;
    padding: 3px 6px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.article-title-line {
    height: 8px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-bottom: 6px;
}

.article-title-line.short {
    width: 60%;
}

.article-meta {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}

.meta-author,
.meta-date {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    width: 45px;
}

.meta-date {
    width: 30px;
}

.article-text-line {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    margin-bottom: 4px;
}

.article-text-line.medium {
    width: 75%;
}

.mockup-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    height: 28px;
    background: white;
    border-radius: 4px;
}

/* Benefits List */
.submit-benefits {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.submit-benefits h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.8rem;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefit-icon {
    color: #10b981;
    flex-shrink: 0;
}

/* FAQ Card */
.faq-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.faq-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.faq-mini-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-mini-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.faq-mini-item summary {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    background: #f9fafb;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-mini-item summary::-webkit-details-marker {
    display: none;
}

.faq-mini-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: #9ca3af;
    transition: transform 0.2s;
}

.faq-mini-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-mini-item p {
    padding: 10px 12px;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
    background: white;
}

/* Error message styling */
.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.form-control.error {
    border-color: #ef4444;
}

.form-control.error + .error-message,
.error-message:not(:empty) {
    display: block;
}

/* === Responsive === */
@media (max-width: 1024px) {
    /* Journal Landing Responsive */
    .journal-hero .hero-title {
        font-size: 2.25rem;
    }

    .journal-hero .hero-stats {
        gap: 40px;
    }

    .journal-hero .stat-number {
        font-size: 2rem;
    }

    .certificate-preview-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .certificate-image {
        order: -1;
        max-width: 350px;
        margin: 0 auto;
    }

    .cert-stack {
        width: 300px;
        height: 400px;
        margin: 0 auto;
    }

    .cert-stack-item {
        width: 210px;
    }

    .certificate-info {
        text-align: center;
    }

    .certificate-features li {
        justify-content: center;
    }

    .certificate-price {
        justify-content: center;
    }

    .journal-steps .steps-timeline {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .journal-steps .step-item {
        max-width: none;
    }

    .journal-steps .step-connector {
        display: none;
    }

    .journal-layout {
        grid-template-columns: 1fr;
    }

    .journal-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .sidebar-section {
        flex: 1;
        min-width: 200px;
    }

    .publication-layout {
        grid-template-columns: 1fr;
    }

    .publication-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .certificate-wrapper {
        grid-template-columns: 1fr;
    }

    .certificate-preview-section {
        position: static;
        order: -1;
    }

    /* Submit page */
    .submit-layout {
        grid-template-columns: 1fr;
    }

    .submit-info-column {
        position: static;
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .journal-preview {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    /* Journal Landing Mobile */
    .journal-hero {
        padding: 50px 0 70px;
    }

    .journal-hero .hero-title {
        font-size: 1.75rem;
    }

    .journal-hero .hero-subtitle {
        font-size: 1rem;
    }

    .journal-hero .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .journal-hero .stat-number {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn-lg {
        width: 100%;
    }

    .journal-benefits,
    .journal-steps,
    .journal-certificate,
    .journal-faq,
    .journal-cta {
        padding: 40px 0;
    }

    .journal-benefits .section-title,
    .journal-steps .section-title,
    .journal-faq .section-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    /* Benefits: 2 columns on mobile */
    .journal-benefits .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .journal-benefits .benefit-card {
        padding: 16px 12px;
    }

    .journal-benefits .benefit-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .journal-benefits .benefit-icon svg {
        width: 22px;
        height: 22px;
    }

    .journal-benefits .benefit-card h3 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .journal-benefits .benefit-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Steps: 2x2 grid on mobile */
    .journal-steps .steps-timeline {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .journal-steps .step-connector {
        display: none;
    }

    .journal-steps .step-item {
        max-width: none;
        min-width: 0;
        padding: 16px 12px;
        background: white;
        border-radius: 12px;
    }

    .journal-steps .step-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .journal-steps .step-item h3 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .journal-steps .step-item p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .steps-cta {
        margin-top: 24px;
    }

    .certificate-info h2 {
        font-size: 1.5rem;
    }

    .certificate-desc {
        font-size: 1rem;
    }

    .journal-cta .cta-card {
        padding: 40px 24px;
    }

    .journal-cta .cta-card h3 {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .steps-timeline {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .step-connector {
        display: none;
    }

    .form-wrapper {
        padding: 24px;
    }

    .publications-grid {
        grid-template-columns: 1fr;
    }

    .publication-content .publication-title {
        font-size: 1.5rem;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .cabinet-tabs {
        flex-direction: column;
    }

    .cabinet-tab {
        justify-content: center;
    }

    /* Submit page mobile */
    .submit-hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-badges {
        flex-direction: column;
        gap: 8px;
    }

    .form-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .submit-info-column {
        grid-template-columns: 1fr;
    }

    .journal-preview {
        display: none;
    }
}

/* === AI File Analysis Indicator === */
.analysis-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    color: #0369a1;
    font-size: 0.875rem;
    margin-top: 12px;
    animation: analysisPulse 2s ease-in-out infinite;
}

@keyframes analysisPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.analysis-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #ecfdf5;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #065f46;
    font-size: 0.875rem;
    margin-top: 12px;
}

.analysis-success svg {
    flex-shrink: 0;
}

/* === Publication Body Content === */
.publication-body {
    line-height: 1.8;
    color: #374151;
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.publication-body h1,
.publication-body h2,
.publication-body h3,
.publication-body h4,
.publication-body h5,
.publication-body h6 {
    color: #1f2937;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.publication-body h1 { font-size: 1.75rem; }
.publication-body h2 { font-size: 1.5rem; }
.publication-body h3 { font-size: 1.25rem; }
.publication-body h4 { font-size: 1.1rem; }

.publication-body p {
    margin-bottom: 16px;
    text-align: justify;
}

.publication-body > *:first-child {
    margin-top: 0;
}

.publication-body ul,
.publication-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.publication-body li {
    margin-bottom: 8px;
}

.publication-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.95rem;
    overflow-x: auto;
    display: block;
}

.publication-body table th,
.publication-body table td {
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    text-align: left;
}

.publication-body table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1f2937;
}

.publication-body table tr:nth-child(even) {
    background: #fafafa;
}

.publication-body strong {
    font-weight: 600;
    color: #1f2937;
}

.publication-body em {
    font-style: italic;
}

.publication-body u {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.publication-body blockquote {
    border-left: 4px solid #0077FF;
    padding: 12px 20px;
    margin: 20px 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
}

.publication-body--empty {
    text-align: center;
    padding: 48px 24px;
    background: #f8fafc;
    border-radius: 16px;
}

.publication-body--empty p {
    color: #9ca3af;
    font-style: italic;
}

@media (max-width: 768px) {
    .publication-body {
        font-size: 1rem;
        line-height: 1.7;
    }

    .publication-body h1 { font-size: 1.5rem; }
    .publication-body h2 { font-size: 1.3rem; }
    .publication-body h3 { font-size: 1.15rem; }

    .publication-body table {
        font-size: 0.85rem;
    }

    .publication-body table th,
    .publication-body table td {
        padding: 8px 10px;
    }
}
