/* ============================================================
   THE EDUCATIONAL PSYCHOLOGIST — Main Stylesheet
   Brand: Deep Red #C0152A | Navy #1A237E | Silver #B0BEC5
   Fonts: Playfair Display (headings) | Source Serif 4 (body)
   Mobile-first: 97% smartphone visitors
   ============================================================ */

/* -----------------------------------------------
   CSS VARIABLES
----------------------------------------------- */
:root {
    --tep-red:        #C0152A;
    --tep-red-dark:   #8B0E1E;
    --tep-red-light:  #F8E9EB;
    --tep-navy:       #1A237E;
    --tep-navy-dark:  #0D1457;
    --tep-navy-light: #E8EAF6;
    --tep-silver:     #B0BEC5;
    --tep-silver-lt:  #ECEFF1;
    --tep-white:      #FFFFFF;
    --tep-bg:         #F7F7F8;
    --tep-text:       #1C1C1E;
    --tep-text-muted: #5A5A6E;
    --tep-border:     #DDE1E7;
    --tep-shadow:     0 2px 16px rgba(26,35,126,.09);
    --tep-shadow-lg:  0 8px 40px rgba(26,35,126,.13);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Source Serif 4', Georgia, serif;
    --font-mono:    'JetBrains Mono', monospace;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;

    --transition: all 0.22s cubic-bezier(.4,0,.2,1);
}

/* -----------------------------------------------
   BASE
----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--tep-text);
    background: var(--tep-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--tep-navy);
}

a {
    color: var(--tep-red);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--tep-red-dark); text-decoration: underline; }

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

/* -----------------------------------------------
   TOP INFO BAR
----------------------------------------------- */
.tep-topbar {
    background: var(--tep-navy);
    color: #CBD5FF;
    font-size: .78rem;
    font-family: var(--font-mono);
    letter-spacing: .02em;
    padding: 5px 0;
}
.tep-topbar a { color: #CBD5FF; }

/* -----------------------------------------------
   NAVBAR
----------------------------------------------- */
.tep-navbar {
    background: var(--tep-white);
    border-bottom: 3px solid var(--tep-red);
    box-shadow: 0 2px 12px rgba(192,21,42,.10);
    padding: .5rem 0;
    transition: var(--transition);
}

.tep-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.tep-brand { gap: .65rem; }

.tep-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.tep-brand-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tep-navy);
    white-space: nowrap;
}

.tep-brand-sub {
    font-size: .68rem;
    color: var(--tep-text-muted);
    font-family: var(--font-body);
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav links */
.tep-navbar .nav-link {
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    color: var(--tep-navy) !important;
    padding: .45rem .8rem;
    border-radius: var(--radius-sm);
    position: relative;
}
.tep-navbar .nav-link::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--tep-red);
    border-radius: 2px;
    width: 0;
    transition: width .22s ease;
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
}
.tep-navbar .nav-link:hover::after,
.tep-navbar .nav-link.active::after { width: 70%; }
.tep-navbar .nav-link.active { color: var(--tep-red) !important; }

/* Submit button */
.tep-submit-btn {
    background: var(--tep-red) !important;
    color: var(--tep-white) !important;
    border-radius: var(--radius-sm) !important;
    padding: .4rem 1rem !important;
    font-weight: 600 !important;
}
.tep-submit-btn:hover {
    background: var(--tep-red-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192,21,42,.3);
}
.tep-submit-btn::after { display: none !important; }

/* Toggler */
.tep-toggler {
    border: 2px solid var(--tep-red);
    padding: .3rem .5rem;
}
.tep-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C0152A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Search input in nav (mobile) */
.tep-search-input {
    border: 1.5px solid var(--tep-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .88rem;
}
.tep-search-input:focus {
    border-color: var(--tep-red);
    box-shadow: 0 0 0 3px rgba(192,21,42,.12);
}
.tep-btn-search {
    background: var(--tep-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: .35rem .7rem;
}
.tep-btn-search:hover { background: var(--tep-red-dark); color: #fff; }

/* -----------------------------------------------
   HERO SECTION (Home)
----------------------------------------------- */
.tep-hero {
    background: linear-gradient(135deg, var(--tep-navy-dark) 0%, var(--tep-navy) 60%, #2D3A8C 100%);
    color: var(--tep-white);
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}
.tep-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tep-hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 40px;
    background: var(--tep-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.tep-hero-label {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tep-silver);
    margin-bottom: .5rem;
}

.tep-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    color: var(--tep-white);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .6rem;
}

.tep-hero-sub {
    font-size: clamp(.85rem, 2.5vw, 1.05rem);
    color: #B8C4F8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.tep-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.8rem;
}

.tep-hero-badge {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #D0D8FF;
    font-size: .75rem;
    font-family: var(--font-mono);
    padding: .25rem .65rem;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

/* Search bar on hero */
.tep-hero-search {
    max-width: 560px;
}
.tep-hero-search .input-group {
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.tep-hero-search input {
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: .85rem 1.2rem;
    border-radius: 0;
}
.tep-hero-search input:focus {
    box-shadow: none;
    outline: none;
}
.tep-hero-search button {
    background: var(--tep-red);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: .85rem 1.4rem;
    font-size: .92rem;
    transition: var(--transition);
}
.tep-hero-search button:hover { background: var(--tep-red-dark); }

/* -----------------------------------------------
   SECTION HEADINGS
----------------------------------------------- */
.tep-section-heading {
    position: relative;
    padding-bottom: .6rem;
    margin-bottom: 1.5rem;
}
.tep-section-heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--tep-red), var(--tep-navy));
    border-radius: 2px;
    margin-top: .5rem;
}
.tep-section-heading.centered { text-align: center; }
.tep-section-heading.centered::after { margin-left: auto; margin-right: auto; }

/* -----------------------------------------------
   ARTICLE CARDS
----------------------------------------------- */
.tep-article-card {
    background: var(--tep-white);
    border: 1px solid var(--tep-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.25rem 1rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.tep-article-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--tep-red);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .22s ease;
}
.tep-article-card:hover {
    box-shadow: var(--tep-shadow-lg);
    transform: translateY(-2px);
    border-color: var(--tep-red);
}
.tep-article-card:hover::before { transform: scaleY(1); }

.tep-article-section-tag {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tep-red);
    margin-bottom: .4rem;
}

.tep-article-card h5,
.tep-article-card h6 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--tep-navy);
    margin-bottom: .4rem;
    line-height: 1.35;
}
.tep-article-card h5 a,
.tep-article-card h6 a {
    color: inherit;
    text-decoration: none;
}
.tep-article-card h5 a:hover,
.tep-article-card h6 a:hover { color: var(--tep-red); }

.tep-article-authors {
    font-size: .82rem;
    color: var(--tep-text-muted);
    font-style: italic;
    margin-bottom: .5rem;
}
.tep-article-abstract {
    font-size: .88rem;
    color: var(--tep-text-muted);
    line-height: 1.6;
    margin-bottom: .75rem;
}

.tep-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .8rem;
    font-size: .78rem;
    color: var(--tep-text-muted);
    font-family: var(--font-mono);
    border-top: 1px solid var(--tep-border);
    padding-top: .6rem;
    margin-top: auto;
}

.tep-keyword-tag {
    display: inline-block;
    background: var(--tep-navy-light);
    color: var(--tep-navy);
    font-size: .72rem;
    font-family: var(--font-mono);
    padding: .18rem .55rem;
    border-radius: 100px;
    transition: var(--transition);
    text-decoration: none;
}
.tep-keyword-tag:hover {
    background: var(--tep-navy);
    color: var(--tep-white);
    text-decoration: none;
}

/* -----------------------------------------------
   FEATURED ARTICLE CARD (larger, for homepage)
----------------------------------------------- */
.tep-featured-card {
    background: linear-gradient(135deg, var(--tep-white) 0%, var(--tep-navy-light) 100%);
    border: 1.5px solid var(--tep-navy);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}
.tep-featured-card::after {
    content: 'FEATURED';
    position: absolute;
    top: 1rem; right: -1.8rem;
    background: var(--tep-red);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .12em;
    padding: .2rem 2.4rem;
    transform: rotate(45deg);
}
.tep-featured-card:hover {
    box-shadow: var(--tep-shadow-lg);
    transform: translateY(-3px);
}
.tep-featured-card h4 {
    font-size: 1.15rem;
    color: var(--tep-navy);
}

/* -----------------------------------------------
   ISSUE / VOLUME CARDS
----------------------------------------------- */
.tep-issue-card {
    background: var(--tep-white);
    border: 1px solid var(--tep-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.tep-issue-card:hover {
    box-shadow: var(--tep-shadow-lg);
    transform: translateY(-2px);
}
.tep-issue-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid var(--tep-red);
    background: var(--tep-navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tep-navy);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}
.tep-issue-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.tep-issue-card-body { padding: 1rem 1.1rem; }
.tep-issue-card-vol {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--tep-red);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .3rem;
}
.tep-issue-card-title {
    font-family: var(--font-display);
    font-size: .95rem;
    color: var(--tep-navy);
    font-weight: 700;
    margin-bottom: .2rem;
}
.tep-issue-card-date {
    font-size: .78rem;
    color: var(--tep-text-muted);
    font-family: var(--font-mono);
}

/* -----------------------------------------------
   TABLE OF CONTENTS (Current Issue)
----------------------------------------------- */
.tep-toc-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid var(--tep-border);
    background: var(--tep-white);
    transition: var(--transition);
}
.tep-toc-item:last-child { border-bottom: none; }
.tep-toc-item:hover { background: var(--tep-red-light); }

.tep-toc-pages {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--tep-text-muted);
    white-space: nowrap;
    min-width: 52px;
    padding-top: .15rem;
}
.tep-toc-title {
    font-family: var(--font-display);
    font-size: .95rem;
    color: var(--tep-navy);
    font-weight: 600;
    text-decoration: none;
}
.tep-toc-title:hover { color: var(--tep-red); text-decoration: underline; }
.tep-toc-authors {
    font-size: .8rem;
    color: var(--tep-text-muted);
    font-style: italic;
    margin-top: .15rem;
}

/* -----------------------------------------------
   STAT CHIPS (homepage counters)
----------------------------------------------- */
.tep-stats-strip {
    background: var(--tep-white);
    border-top: 1px solid var(--tep-border);
    border-bottom: 1px solid var(--tep-border);
    padding: 1.2rem 0;
}
.tep-stat-chip {
    text-align: center;
    padding: .5rem 1rem;
}
.tep-stat-chip .num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tep-red);
    line-height: 1;
    display: block;
}
.tep-stat-chip .lbl {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tep-text-muted);
}

/* -----------------------------------------------
   SIDEBAR (article page, search)
----------------------------------------------- */
.tep-sidebar-box {
    background: var(--tep-white);
    border: 1px solid var(--tep-border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1.25rem;
}
.tep-sidebar-box h6 {
    font-family: var(--font-display);
    font-size: .9rem;
    color: var(--tep-navy);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--tep-red);
    margin-bottom: .8rem;
}

/* -----------------------------------------------
   ARTICLE DETAIL PAGE
----------------------------------------------- */
.tep-article-header {
    background: var(--tep-white);
    border-bottom: 3px solid var(--tep-red);
    padding: 2rem 0 1.5rem;
}
.tep-article-header h1 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    color: var(--tep-navy);
    line-height: 1.3;
}
.tep-author-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--tep-navy-light);
    color: var(--tep-navy);
    font-size: .8rem;
    padding: .3rem .7rem;
    border-radius: 100px;
    font-weight: 600;
}
.tep-author-chip.corresponding {
    background: var(--tep-red-light);
    color: var(--tep-red-dark);
}

.tep-abstract-box {
    background: linear-gradient(135deg, var(--tep-navy-light), #fff);
    border-left: 4px solid var(--tep-navy);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.tep-abstract-box h6 {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tep-navy);
    margin-bottom: .6rem;
}
.tep-abstract-box p {
    font-size: .95rem;
    line-height: 1.8;
    color: var(--tep-text);
    margin: 0;
}

.tep-pdf-btn {
    background: var(--tep-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: .8rem 1.6rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
    justify-content: center;
}
.tep-pdf-btn:hover {
    background: var(--tep-red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192,21,42,.35);
    text-decoration: none;
}

/* Citation box */
.tep-citation-box {
    background: var(--tep-bg);
    border: 1px solid var(--tep-border);
    border-radius: var(--radius-sm);
    padding: .85rem 1rem;
    font-family: var(--font-mono);
    font-size: .78rem;
    line-height: 1.7;
    color: var(--tep-text);
    word-break: break-word;
}

/* -----------------------------------------------
   ABOUT / EDITORIAL BOARD
----------------------------------------------- */
.tep-editor-card {
    background: var(--tep-white);
    border: 1px solid var(--tep-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.tep-editor-card:hover {
    box-shadow: var(--tep-shadow);
    border-color: var(--tep-navy);
}
.tep-editor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tep-red);
    margin: 0 auto .75rem;
    display: block;
    background: var(--tep-navy-light);
}
.tep-editor-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tep-navy), var(--tep-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto .75rem;
}
.tep-editor-role {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tep-red);
    margin-bottom: .2rem;
}
.tep-editor-name {
    font-family: var(--font-display);
    font-size: .95rem;
    color: var(--tep-navy);
    font-weight: 700;
    margin-bottom: .15rem;
}
.tep-editor-affiliation {
    font-size: .78rem;
    color: var(--tep-text-muted);
    line-height: 1.4;
}

/* Policy sections (About page) */
.tep-policy-section {
    background: var(--tep-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--tep-navy);
}
.tep-policy-section h4 {
    font-size: 1.05rem;
    margin-bottom: .75rem;
}

/* -----------------------------------------------
   ADMIN DASHBOARD
----------------------------------------------- */
.tep-admin-sidebar {
    background: var(--tep-navy);
    min-height: 100vh;
    padding: 0;
}
.tep-admin-sidebar .nav-link {
    color: #B8C4F8 !important;
    padding: .75rem 1.25rem;
    font-size: .9rem;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: var(--transition);
}
.tep-admin-sidebar .nav-link:hover,
.tep-admin-sidebar .nav-link.active {
    background: rgba(255,255,255,.08);
    color: #fff !important;
    border-left-color: var(--tep-red);
}
.tep-admin-sidebar .nav-link i { margin-right: .5rem; }

.tep-admin-stat-card {
    background: var(--tep-white);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border-left: 4px solid var(--tep-red);
    box-shadow: var(--tep-shadow);
}
.tep-admin-stat-card.navy { border-left-color: var(--tep-navy); }
.tep-admin-stat-card .stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--tep-red);
    line-height: 1;
}
.tep-admin-stat-card.navy .stat-num { color: var(--tep-navy); }

/* -----------------------------------------------
   FORMS
----------------------------------------------- */
.form-control:focus, .form-select:focus {
    border-color: var(--tep-red);
    box-shadow: 0 0 0 3px rgba(192,21,42,.12);
}
.btn-tep-primary {
    background: var(--tep-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}
.btn-tep-primary:hover {
    background: var(--tep-red-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-tep-navy {
    background: var(--tep-navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}
.btn-tep-navy:hover {
    background: var(--tep-navy-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* -----------------------------------------------
   PAGINATION
----------------------------------------------- */
.tep-pagination .page-link {
    color: var(--tep-navy);
    border-color: var(--tep-border);
    font-family: var(--font-mono);
    font-size: .82rem;
}
.tep-pagination .page-link:hover {
    background: var(--tep-red-light);
    border-color: var(--tep-red);
    color: var(--tep-red);
}
.tep-pagination .page-item.active .page-link {
    background: var(--tep-red);
    border-color: var(--tep-red);
    color: #fff;
}

/* -----------------------------------------------
   BREADCRUMB
----------------------------------------------- */
.tep-breadcrumb {
    background: var(--tep-white);
    border-bottom: 1px solid var(--tep-border);
    padding: .55rem 0;
    font-size: .8rem;
    font-family: var(--font-mono);
}
.tep-breadcrumb .breadcrumb { margin: 0; }
.tep-breadcrumb .breadcrumb-item a { color: var(--tep-red); }
.tep-breadcrumb .breadcrumb-item.active { color: var(--tep-text-muted); }

/* -----------------------------------------------
   FOOTER
----------------------------------------------- */
.tep-footer {
    margin-top: auto;
}
.tep-footer-main {
    background: var(--tep-navy-dark);
    color: #B8C4F8;
    padding: 2.5rem 0 2rem;
}
.tep-footer-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}
.tep-footer-journal-name {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.tep-footer-journal-sub {
    font-size: .68rem;
    color: var(--tep-silver);
    line-height: 1.3;
    max-width: 180px;
}
.tep-footer-mission {
    font-size: .82rem;
    color: #8FA0D0;
    line-height: 1.65;
    margin: 0;
}
.tep-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.tep-badge-oa, .tep-badge-pr {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .06em;
    padding: .22rem .65rem;
    border-radius: 100px;
}
.tep-badge-oa {
    background: rgba(46,200,100,.15);
    color: #5CE89A;
    border: 1px solid rgba(46,200,100,.25);
}
.tep-badge-pr {
    background: rgba(192,21,42,.2);
    color: #FF8A9A;
    border: 1px solid rgba(192,21,42,.3);
}

.tep-footer-heading {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tep-silver);
    margin-bottom: .85rem;
}
.tep-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tep-footer-links li { margin-bottom: .4rem; }
.tep-footer-links a {
    color: #8FA0D0;
    font-size: .83rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .3rem;
    transition: var(--transition);
}
.tep-footer-links a:hover { color: #fff; }
.tep-footer-links i { font-size: .65rem; color: var(--tep-red); }

.tep-footer-info-table {
    width: 100%;
    font-size: .78rem;
    border-collapse: collapse;
}
.tep-footer-info-table td {
    padding: .2rem 0;
    color: #8FA0D0;
    vertical-align: top;
}
.tep-footer-info-table td:first-child {
    color: var(--tep-silver);
    padding-right: .75rem;
    white-space: nowrap;
}

.tep-footer-contact {
    font-size: .82rem;
    color: #8FA0D0;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.tep-footer-contact:hover { color: #fff; }

.tep-footer-bottom {
    background: #060B2E;
    padding: .75rem 0;
    color: #5A6A90;
    font-size: .78rem;
}
.tep-footer-bottom-link {
    color: #5A6A90;
    text-decoration: none;
}
.tep-footer-bottom-link:hover { color: var(--tep-silver); }
.tep-cc-link { color: #8FA0D0; }
.tep-cc-link:hover { color: #fff; }

/* -----------------------------------------------
   UTILITIES
----------------------------------------------- */
.text-red   { color: var(--tep-red)   !important; }
.text-navy  { color: var(--tep-navy)  !important; }
.bg-red     { background: var(--tep-red)   !important; }
.bg-navy    { background: var(--tep-navy)  !important; }
.font-mono  { font-family: var(--font-mono) !important; }
.font-serif { font-family: var(--font-display) !important; }
.divider-red {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--tep-red), transparent);
    margin: 1.5rem 0;
}

/* Section wrapper */
.tep-section { padding: 2.5rem 0; }
.tep-section-alt { background: var(--tep-white); }

/* -----------------------------------------------
   RESPONSIVE TWEAKS
----------------------------------------------- */

/* Larger phones */
@media (max-width: 575px) {
    .tep-hero { padding: 2rem 0 2rem; }
    .tep-hero h1 { font-size: 1.55rem; }
    .tep-section { padding: 1.8rem 0; }
    .tep-article-card { padding: 1rem; }
    .tep-featured-card { padding: 1.1rem; }
    .tep-toc-pages { min-width: 38px; font-size: .68rem; }
    .tep-footer-main { padding: 1.8rem 0 1.5rem; }
    .tep-stat-chip .num { font-size: 1.4rem; }
    .tep-pdf-btn { font-size: .9rem; padding: .7rem 1.2rem; }
}

/* Tablets */
@media (min-width: 768px) {
    .tep-hero { padding: 4rem 0 3.5rem; }
}

/* -----------------------------------------------
   PRINT
----------------------------------------------- */
@media print {
    .tep-navbar, .tep-topbar, .tep-footer,
    .tep-breadcrumb, .tep-pdf-btn { display: none !important; }
    body { background: #fff; color: #000; }
    .tep-abstract-box { border-left: 3px solid #000; background: #f5f5f5; }
}