/* ============================================
   Pedapub - Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #efefef;
    --color-bg-white: #ffffff;
    --color-text: #000000;
    --color-text-secondary: #333333;
    --color-text-light: #555555;
    --color-accent: #085E7D;
    --color-accent-hover: #064d68;
    --color-btn-secondary: #333333;
    --color-btn-secondary-hover: #292929;
    --color-btn-tertiary: #dedfe0;
    --color-btn-tertiary-hover: #b2b2b3;
    --color-border: #b1a6a6c2;
    --color-border-light: #dedfe0;
    --font-main: 'Merriweather Sans', Helvetica, Arial, sans-serif;
    --max-width: 1140px;
    --header-height: 80px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.35rem;
    color: var(--color-text-secondary);
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section--alt {
    background-color: var(--color-bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header p {
    max-width: 640px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}

/* --- Top Bar --- */
.top-bar {
    background: var(--color-accent);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1;
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 32px;
    gap: 0.5rem;
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-right: 0.75rem;
}

.top-bar__link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: var(--font-main);
    transition: color 0.2s;
}

.top-bar__link:hover {
    color: #fff;
}

.top-bar__sep {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
}

.top-bar .lang-switcher {
    margin-left: 0;
    background: rgba(255,255,255,0.15);
    padding: 2px;
}

.top-bar .lang-switcher a {
    color: rgba(255,255,255,0.75);
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
}

.top-bar .lang-switcher a:hover {
    color: #fff;
}

.top-bar .lang-switcher a.active {
    background: #fff;
    color: var(--color-accent);
}

/* --- Header --- */
.site-header {
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
}

.logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a,
.nav-dropdown > span {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active,
.nav-dropdown:hover > span {
    color: var(--color-accent);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > span::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 5px;
    vertical-align: middle;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dropdown:hover > span::after {
    transform: rotate(-135deg) translateY(-1px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) perspective(600px) rotateX(-3deg);
    transform-origin: top center;
    background: #fff;
    border: none;
    border-radius: 14px;
    padding: 6px;
    min-width: 250px;
    box-shadow:
        0 12px 48px -6px rgba(8, 94, 125, 0.13),
        0 2px 6px rgba(0, 0, 0, 0.04);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.3s;
    pointer-events: none;
}

/* Invisible hover bridge — connects trigger to menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -10px;
    right: -10px;
    height: 18px;
}

.nav-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) perspective(600px) rotateX(0deg);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-radius: 10px;
    border-bottom: none;
    position: relative;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(8, 94, 125, 0.07), rgba(8, 94, 125, 0.03));
    color: var(--color-accent);
}

.dropdown-menu a.active {
    color: var(--color-accent);
    background: linear-gradient(135deg, rgba(8, 94, 125, 0.1), rgba(8, 94, 125, 0.04));
    font-weight: 600;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 0.75rem;
    background: var(--color-border-light);
    border-radius: 50px;
    padding: 3px;
}

.lang-switcher a {
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.lang-switcher a:hover {
    color: var(--color-text);
}

.lang-switcher a.active {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Nav auth button */
.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-left: 0.25rem;
    white-space: nowrap;
}
.nav-auth-btn:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 1px;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
    background: var(--color-bg-white);
}

.hero h1 {
    font-size: 2.75rem;
    max-width: 780px;
    margin: 0 auto 1.25rem;
    line-height: 1.35;
    font-weight: 700;
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: #fff;
}

.btn-secondary {
    background: var(--color-btn-secondary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--color-btn-secondary-hover);
    color: #fff;
}

/* --- Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.card-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
}

.card-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: var(--color-bg);
}

.card-body {
    padding: 1.25rem;
}

.card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.card-body p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Content sections --- */
.content-block {
    margin-bottom: 2.5rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h3 {
    font-size: 1.35rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--color-accent);
}

.content-block h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* --- Feature boxes (homepage) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.feature-box {
    padding: 2rem;
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    background: var(--color-bg-white);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.feature-box h3 {
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-box p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.feature-box .btn {
    margin-top: auto;
}

/* --- Badge --- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    background: var(--color-btn-tertiary);
    color: var(--color-text-secondary);
    vertical-align: middle;
}

.badge--soon {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    color: #6366f1;
    letter-spacing: 0.04em;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* --- Dropdown disabled item --- */
.dropdown-disabled {
    cursor: default !important;
    opacity: 0.55;
}

.dropdown-disabled:hover {
    background: transparent !important;
    color: var(--color-text-secondary) !important;
}

/* --- Footer disabled --- */
.footer-disabled {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* --- Verify page --- */
.verify-form {
    max-width: 480px;
    margin: 0 auto;
}

.verify-input-row {
    display: flex;
    gap: 0.5rem;
}

.verify-input-row input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-family: var(--font-main);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    color: var(--color-text);
}

.verify-input-row input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.verify-result {
    max-width: 600px;
    margin: 0 auto;
}

.verify-success {
    background: #dcfce7;
    border: 1px solid #16a34a;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.verify-success h2 {
    color: #166534;
    border: none;
    margin-bottom: 0.5rem;
}

.verify-success p {
    color: #166534;
    margin: 0;
}

.verify-error {
    background: #fef2f2;
    border: 1px solid #dc2626;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.verify-error h2 {
    color: #991b1b;
    border: none;
    margin-bottom: 0.5rem;
}

.verify-error p {
    color: #991b1b;
    margin: 0;
}

.verify-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    overflow: hidden;
}

.verify-table td {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
}

.verify-table tr:last-child td {
    border-bottom: none;
}

.verify-table td:first-child {
    font-weight: 600;
    color: var(--color-text);
    width: 35%;
}

/* --- Sidebar layout --- */
.sidebar-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}

.sidebar-nav {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    max-height: calc(100vh - var(--header-height) - 3rem);
    overflow-y: auto;
    padding-right: 1rem;
}

.sidebar-nav nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 2px solid var(--color-border-light);
}

.sidebar-nav nav a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    color: var(--color-text-light);
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1.4;
}

.sidebar-nav nav a:hover {
    color: var(--color-accent);
}

.sidebar-nav nav a.active {
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    font-weight: 600;
}

.sidebar-content {
    min-width: 0;
}

/* Scroll offset for anchors */
.sidebar-content [id] {
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

/* --- Contact blocks --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    background: var(--color-bg-white);
}

.contact-card h3 {
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.contact-card p {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --- Open Access highlight --- */
.highlight-box {
    padding: 2rem 2.5rem;
    background: var(--color-bg-white);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 10px 10px 0;
    margin-bottom: 2rem;
}

.highlight-box h2 {
    color: var(--color-accent);
}

.highlight-box p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* --- Page header --- */
.page-header {
    padding: 3rem 0 2rem;
    text-align: center;
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border-light);
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* --- Policy sections --- */
.policy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: 1rem;
}

.policy-section h3 {
    color: var(--color-accent);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.policy-section h4 {
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.policy-image {
    margin-top: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
    max-width: 50%;
    height: auto;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border-light);
    padding: 3rem 0 0;
    margin-top: 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-light);
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo-link {
    display: inline-block;
}

.footer-pedapub-logo {
    height: 32px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.2s, opacity 0.2s;
}

.footer-logo-link:hover .footer-pedapub-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-right {
    display: flex;
    gap: 3rem;
    text-align: right;
}

.footer-nav-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.footer-nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-col ul li {
    margin-bottom: 0.4rem;
}

.footer-nav-col ul li a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-col ul li a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--color-text);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 1;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    vertical-align: middle;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.peda-logo {
    height: 20px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.2s, filter 0.2s;
}

.peda-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- Journals illustration --- */
.journals-illustration {
    max-width: 320px;
    margin: 0 auto 1.5rem;
}

/* --- Journals section background --- */
.section--journals {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8,94,125,0.10) 0%, rgba(8,94,125,0.03) 40%, var(--color-bg) 75%);
}

.section--journals::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(8,94,125,0.09) 0%, transparent 70%);
    animation: gradientPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(5%, 5%) scale(1.08);
    }
}

.section--journals > .container {
    position: relative;
    z-index: 1;
}

/* --- Journals Split (Illustration + List) --- */
.journals-split {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: center;
}

.journals-split__left {
    text-align: center;
}

.journals-split__illustration {
    width: 100%;
    max-width: 420px;
}

.journals-split__right {
    display: flex;
    flex-direction: column;
}

.journals-split__header {
    margin-bottom: 1.25rem;
}

.journals-split__header h2 {
    margin-bottom: 0.5rem;
}

.journals-split__header p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.journals-split__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.journals-split__footer {
    margin-top: 1.5rem;
}

/* --- Minimal List (journal items) --- */
.minimal-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.minimal-list__item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.2s;
}

.minimal-list__item:first-child {
    border-top: 1px solid var(--color-border-light);
}

.minimal-list__item:hover {
    background: var(--color-bg-white);
}

.minimal-list__thumb {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.minimal-list__info {
    flex: 1;
}

.minimal-list__info h3 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.minimal-list__info p {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin: 0;
}

.minimal-list__arrow {
    font-size: 1.4rem;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.minimal-list__item:hover .minimal-list__arrow {
    transform: translateX(4px);
}

/* --- Journal Detail --- */
.journal-detail {
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    gap: 2.5rem;
    align-items: start;
}

.journal-detail__cover {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.journal-detail__cover img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: block;
    margin-bottom: 1.25rem;
}

.journal-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
}

.journal-meta__row {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.journal-meta__row:first-child {
    border-top: 1px solid var(--color-border-light);
}

.journal-meta__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 0.15rem;
}

.journal-meta__value {
    font-size: 0.88rem;
    color: var(--color-text);
}

.journal-meta__value a {
    color: var(--color-accent);
}

.journal-detail__meta {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.journal-submit-btn {
    display: block;
    width: 100%;
    text-align: center;
}

.journal-detail__content h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--color-accent);
}

.journal-detail__content h2:first-child {
    margin-top: 0;
}

.journal-detail__content h3 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.journal-detail__content p {
    margin-bottom: 0.75rem;
}

.subject-areas {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subject-areas li {
    padding: 0.3rem 0.75rem;
    background: var(--color-bg);
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-light);
}

.indexing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.indexing-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
}

.back-link {
    display: inline-block;
    font-size: 0.88rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--color-accent);
}

/* --- Service cards (Author Services) --- */
.service-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.service-card__header h2 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: 1rem;
}

.service-card__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.service-card__col h3 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.service-card__pricing {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light);
}

.service-card__pricing h3 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.service-card__pricing p {
    margin-bottom: 0;
}

.service-card__action {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Services top cards (Verify + Expert) --- */
.services-top-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.services-top-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-top-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.services-top-card p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin: 0 0 1rem;
    line-height: 1.6;
}

.services-top-card .btn {
    margin-top: auto;
    text-align: center;
}

/* Verify card - green theme */
.services-top-card--verify {
    background: #f0fdf4;
    border-color: #bbf7d0;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.services-top-card--verify:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.10);
}

.services-top-card--verify h3 {
    color: #166534;
}

/* Expert card - neutral gray theme */
.services-top-card--expert {
    background: #f9fafb;
    border-color: var(--color-border-light);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.services-top-card--expert:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.services-top-card--expert h3 {
    color: var(--color-text);
}

.expert-info {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border-light);
    width: 100%;
}

.expert-info__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.expert-info__credential {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.35rem;
}

.expert-info__detail {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* --- Services grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.services-grid__item {
    background: var(--color-bg-white);
    border: 1px dashed var(--color-border-light);
    border-radius: 12px;
    padding: 2rem 2rem 1.75rem;
    text-align: center;
    opacity: 0.65;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-grid__item:hover {
    opacity: 0.85;
}

.services-grid__item--active {
    opacity: 1;
    border: 1px solid var(--color-border-light);
    border-style: solid;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.services-grid__item--active:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(8, 94, 125, 0.10);
}

.services-grid__item .btn {
    margin-top: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    align-self: center;
}


.services-grid__item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.services-grid__item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

/* --- Proofreading expert --- */
.pr-expert {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    text-align: center;
}

.pr-expert h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.pr-expert__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.pr-expert__detail {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.pr-expert__credential {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 0.15rem;
}

/* --- Proofreading form --- */
.pr-form {
    margin-top: 1.5rem;
}

.pr-form__group {
    margin-bottom: 1.25rem;
}

.pr-form__group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.pr-form__group input[type="text"],
.pr-form__group input[type="email"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-family: var(--font-main);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s;
}

.pr-form__group input[type="text"]:focus,
.pr-form__group input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
}

.pr-form__group input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-family: var(--font-main);
    border: 1px dashed var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    cursor: pointer;
}

.pr-form__help {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

/* Order summary */
.pr-summary {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
}

.pr-summary h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.pr-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pr-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.pr-summary__row--total {
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border-light);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
}

.pr-summary__row--total span:last-child {
    color: var(--color-accent);
    font-size: 1.15rem;
}

.pr-summary__row--total small {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.pr-summary__coupon-badge {
    background: var(--color-accent);
    color: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pr-form__action {
    margin-top: 1.5rem;
    text-align: center;
}

/* Pricing display */
.pr-pricing {
    background: var(--color-bg);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.pr-pricing__label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 0.35rem;
}

.pr-pricing__amount {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pr-pricing__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
}

.pr-pricing__sub {
    font-size: 1rem;
    color: var(--color-text-light);
}

.pr-pricing__old {
    font-size: 1.25rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}

/* Coupon input row */
.pr-coupon-row {
    display: flex;
    gap: 0.5rem;
}

.pr-coupon-row input {
    flex: 1;
    max-width: 280px;
}

.btn--sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}

.pr-coupon-msg {
    font-size: 0.85rem;
    margin-top: 0.35rem;
    min-height: 1.2em;
}

.pr-coupon-msg--valid {
    color: #16a34a;
}

.pr-coupon-msg--invalid {
    color: #dc2626;
}

/* Payment info */
.pr-payment-info {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    background: var(--color-bg);
}

.pr-payment-info h3 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.pr-payment-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 1rem;
}

.pr-bank-table {
    width: 100%;
    border-collapse: collapse;
}

.pr-bank-table td {
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
}

.pr-bank-table tr:last-child td {
    border-bottom: none;
}

.pr-bank-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    width: 40%;
    color: var(--color-text);
}

/* Alerts */
.pr-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pr-alert--success {
    background: #dcfce7;
    border: 1px solid #16a34a;
    color: #166534;
}

.pr-alert--error {
    background: #fef2f2;
    border: 1px solid #dc2626;
    color: #991b1b;
}

.service-card--muted {
    text-align: center;
    border-style: dashed;
}

.service-card--muted h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.service-card--muted p {
    margin-bottom: 0;
    color: var(--color-text-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-area {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg-white);
        border-bottom: 1px solid var(--color-border-light);
        padding: 1rem;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }

    .nav-area.open {
        display: block;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav a,
    .nav-dropdown > span {
        padding: 0.75rem 1rem;
        display: block;
    }

    .nav-dropdown > span::after {
        float: right;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0.15rem 0 0.15rem 0.75rem;
        min-width: 0;
        opacity: 1;
        visibility: hidden;
        transform: none;
        pointer-events: none;
        transition: none;
        display: none;
        border-left: 2px solid var(--color-border-light);
        margin-left: 1rem;
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
        visibility: visible;
        pointer-events: auto;
    }

    .dropdown-menu a {
        border-radius: 0;
        padding: 0.55rem 0.75rem;
        font-size: 0.88rem;
    }

    .dropdown-menu a:hover {
        padding-left: 0.75rem;
    }

    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        transform: none;
    }

    .top-bar__inner {
        font-size: 0.72rem;
    }

    .top-bar__link {
        font-size: 0.72rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .hero {
        padding: 3.5rem 0 3rem;
    }

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

    .card-grid--two {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .section {
        padding: 2.5rem 0;
    }

    .feature-grid,
    .feature-grid--three {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-right {
        text-align: left;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

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

    .service-card__columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .services-top-cards {
        grid-template-columns: 1fr;
    }

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

    .pr-coupon-row {
        flex-direction: column;
    }

    .pr-coupon-row input {
        max-width: none;
    }

    .pr-bank-table td:first-child {
        width: auto;
    }

    .pr-pricing__value {
        font-size: 1.4rem;
    }

    /* Journal detail responsive */
    .journal-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .journal-detail__cover {
        position: static;
        max-width: 180px;
        margin: 0 auto;
    }

    .journal-detail__meta {
        position: static;
    }

    /* Journals split responsive */
    .journals-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .journals-split__left {
        text-align: center;
    }

    .journals-split__illustration {
        max-width: 220px;
    }

    .journals-split__header {
        text-align: center;
    }

    /* Sidebar: collapse to top on mobile */
    .sidebar-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sidebar-nav {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid var(--color-border-light);
        padding-bottom: 1rem;
    }

    .sidebar-nav nav {
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        gap: 0.25rem;
    }

    .sidebar-nav nav a {
        border-left: none;
        margin-left: 0;
        padding: 0.3rem 0.6rem;
        font-size: 0.78rem;
        border-radius: 4px;
        background: var(--color-bg);
    }

    .sidebar-nav nav a.active {
        background: var(--color-accent);
        color: #fff;
        border-left: none;
    }
}

/* --- Service Badge (Account) --- */
.account-order-card__service {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(8, 94, 125, 0.08);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.account-cert-card__service {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

/* --- Admin Service Badge --- */
.badge--service {
    background: #e0f2fe;
    color: #0369a1;
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-direction: column;
    }
}
