/* ============================================
   E-JOURNALS — ELEGANT ACADEMIC THEME
   ============================================ */

* { font-family: 'Inter', sans-serif; }
h1, h2, h3, .hero-heading, .section-title, .pricing-plan-name,
.page-banner h2, .newsletter-content h2 {
    font-family: 'Source Serif 4', 'Georgia', serif;
}

body {
    background: #faf9f7;
    color: #374151;
    font-size: 0.93rem;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   PRELOADER / SPLASH SCREEN
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #faf9f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-logo {
    font-family: 'Source Serif 4', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}
.preloader-logo i { font-size: 1.5rem; }
@keyframes preloaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(0.97); }
}
.preloader-bar {
    width: 180px;
    height: 3px;
    background: #e8e5e0;
    border-radius: 4px;
    overflow: hidden;
}
.preloader-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    animation: preloaderSlide 1.2s ease-in-out infinite;
}
@keyframes preloaderSlide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(500%); }
}

/* ============================================
   CUSTOM MOUSE FOLLOWER
   ============================================ */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.1s, opacity 0.3s;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}
.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
    transform: translate(-50%, -50%);
    opacity: 0.4;
}
.cursor-ring.hover {
    width: 55px;
    height: 55px;
    opacity: 0.2;
    border-color: var(--accent);
}
.cursor-dot.hidden, .cursor-ring.hidden { opacity: 0; }

/* ============================================
   DARK MODE
   ============================================ */
.dark-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8e5e0;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.dark-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

body.dark-mode {
    background: #0f1117;
    color: #c8ccd4;
}
body.dark-mode .card,
body.dark-mode .journal-card,
body.dark-mode .feature-card,
body.dark-mode .pricing-card,
body.dark-mode .articles-list {
    background: #1a1c25;
    border-color: #2a2d38;
}
body.dark-mode .card:hover,
body.dark-mode .journal-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
body.dark-mode .hero-section {
    background: #141620;
}
body.dark-mode .hero-heading,
body.dark-mode .hero-stats .stat-number { color: #e8e8ec; }
body.dark-mode .hero-subtitle { color: #8888a0 !important; }
body.dark-mode .section-title,
body.dark-mode .journal-title,
body.dark-mode .feature-card h5,
body.dark-mode .pricing-plan-name,
body.dark-mode .article-title a { color: #e0e2e8; }
body.dark-mode .section-subtitle,
body.dark-mode .journal-description,
body.dark-mode .feature-card p,
body.dark-mode .article-details,
body.dark-mode .badge-issn { color: #7a7d8a; }
body.dark-mode .section-light { background: #13141c; }
body.dark-mode .stats-strip { border-color: #2a2d38; }
body.dark-mode .stats-strip .stat-number { color: #e0e2e8; }
body.dark-mode .navbar {
    background: rgba(15,17,23,0.95) !important;
    border-color: #2a2d38 !important;
}
body.dark-mode .navbar .nav-link { color: #8888a0; }
body.dark-mode .navbar .nav-link:hover,
body.dark-mode .navbar .nav-link.active { color: #e0e2e8; }
body.dark-mode .navbar-brand span { color: #e0e2e8 !important; }
body.dark-mode .page-banner { background: #141620; }
body.dark-mode .page-banner h2 { color: #e0e2e8; }
body.dark-mode .page-banner p { color: #7a7d8a; }
body.dark-mode .category-pill {
    background: #1a1c25;
    border-color: #2a2d38;
    color: #9ca3af;
}
body.dark-mode .marquee-item {
    background: #1a1c25;
    border-color: #2a2d38;
    color: #9ca3af;
}
body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #1a1c25;
    border-color: #2a2d38;
    color: #c8ccd4;
}
body.dark-mode .newsletter-section { background: #0b0d14; }
body.dark-mode .article-item { border-color: #2a2d38; }
body.dark-mode .journal-card .card-footer-link { border-color: #2a2d38; }
body.dark-mode .dark-toggle {
    background: #1a1c25;
    border-color: #2a2d38;
    color: #fbbf24;
}
body.dark-mode .badge-category { background: rgba(26,54,93,0.3) !important; }
body.dark-mode .scroll-progress { background: linear-gradient(90deg, var(--accent), #fbbf24); }
body.dark-mode .preloader { background: #0f1117; }
body.dark-mode .preloader-bar { background: #2a2d38; }

/* ============================================
   ANIMATED GRADIENT TEXT
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent), #d97706, var(--primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   MAGNETIC BUTTONS
   ============================================ */
.btn-magnetic { transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}
.page-transition.active {
    animation: pageTransitionIn 0.4s ease forwards;
}
@keyframes pageTransitionIn {
    0%   { transform: scaleY(0); transform-origin: bottom; }
    50%  { transform: scaleY(1); transform-origin: bottom; }
    51%  { transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: top; }
}

/* ============================================
   HORIZONTAL SCROLL SHOWCASE
   ============================================ */
.hscroll-section {
    overflow: hidden;
    padding: 4rem 0;
}
.hscroll-track {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}
.hscroll-track::-webkit-scrollbar { display: none; }
.hscroll-track:active { cursor: grabbing; }
.hscroll-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e8e5e0;
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.hscroll-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
body.dark-mode .hscroll-card {
    background: #1a1c25;
    border-color: #2a2d38;
}
.hscroll-card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}
.hscroll-card-title {
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.dark-mode .hscroll-card-title { color: #e2e4ea; }
.hscroll-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.hscroll-card-meta i { margin-right: 2px; }
.hscroll-card-indexing {
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.hscroll-nav {
    display: flex;
    gap: 0.5rem;
}
.hscroll-nav button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e8e5e0;
    background: #fff;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.hscroll-nav button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
body.dark-mode .hscroll-nav button {
    background: #1a1c25;
    border-color: #2a2d38;
    color: #c8ccd4;
}

/* ---- Page Load Animation ---- */
body { animation: pageLoad 0.5s ease-out; }
@keyframes pageLoad {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Scroll Progress Bar ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

/* ---- Back to Top Button ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 15px rgba(26,54,93,0.25);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(13,148,136,0.3);
}

/* ---- Links ---- */
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ---- Cards ---- */
.card {
    border: 1px solid #e8e5e0;
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    overflow: hidden;
    background: #fff;
}
.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.card-no-hover:hover { box-shadow: 0 1px 2px rgba(0,0,0,0.03); transform: none; }

/* ---- Buttons ---- */
.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.5rem;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s;
}
.btn-primary-custom:hover {
    background: #152a4d;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,54,93,0.25);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.5rem;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s;
}
.btn-accent:hover {
    background: #0b8377;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,148,136,0.25);
}

.btn-outline-accent {
    border: 1.5px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s;
    background: transparent;
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: #fff;
}

/* ---- Navbar ---- */
.navbar {
    padding: 0.75rem 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.navbar .nav-link {
    font-weight: 500;
    font-size: 0.88rem;
    color: #6b7280;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 60%; }
.navbar .nav-link:hover { color: var(--primary); }
.navbar .nav-link.active { color: var(--primary); font-weight: 600; }
.navbar-brand { font-size: 1.25rem; }

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-title {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}
.section-subtitle {
    color: #9ca3af;
    font-size: 0.95rem;
    max-width: 550px;
    font-family: 'Inter', sans-serif;
}
.section-header { margin-bottom: 2rem; }
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}
.section-header-flex .view-all {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: gap 0.2s;
}
.section-header-flex .view-all:hover { gap: 0.6rem; }

/* ---- Hero Section ---- */
.hero-section {
    color: #3d2b1f;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    background: #f0ebe3;
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.avif') center center / cover no-repeat;
    z-index: 0;
    opacity: 0.12;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-heading {
    animation: heroFadeUp 0.8s ease-out both;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #1f1f1f;
}
.hero-subtitle {
    animation: heroFadeUp 0.8s ease-out 0.15s both;
    font-size: 1.05rem;
    color: #6b6b6b !important;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}
.hero-buttons {
    animation: heroFadeUp 0.8s ease-out 0.3s both;
}
.hero-buttons .btn {
    padding: 0.65rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.hero-buttons .btn-primary-custom {
    background: var(--primary);
    color: #fff;
}
.hero-buttons .btn-outline-dark {
    border: 1.5px solid #374151;
    color: #374151;
    background: transparent;
}
.hero-buttons .btn-outline-dark:hover {
    background: #374151;
    color: #fff;
}

/* ---- Stats Strip ---- */
.stats-strip {
    padding: 3.5rem 0;
    border-bottom: 1px solid #e8e5e0;
}
.stats-strip .stat-block {
    text-align: center;
}
.stats-strip .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.stats-strip .stat-number {
    font-family: 'Source Serif 4', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    display: block;
}
.stats-strip .stat-label {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    display: block;
}

/* ---- Hero Stats (inside hero) ---- */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    animation: heroFadeUp 0.8s ease-out 0.45s both;
}
.stat-item {
    text-align: center;
    min-width: 120px;
}
.hero-stats .stat-number {
    font-family: 'Source Serif 4', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1f1f1f;
    display: block;
    line-height: 1.2;
}
.hero-stats .stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    margin-top: 0.15rem;
}

@media (max-width: 768px) {
    .hero-section { padding: 3.5rem 0 3rem; min-height: auto; }
    .hero-heading { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-stats .stat-number { font-size: 1.5rem; }
}

/* ---- Journal Grid ---- */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 991px) { .journal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .journal-grid { grid-template-columns: 1fr; } }

/* ---- Journal Card (Clean Style) ---- */
.journal-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e5e0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.journal-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}
.journal-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.journal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.journal-title {
    font-family: 'Source Serif 4', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.journal-description {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.65;
    flex: 1;
}
.journal-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}
.journal-card .card-footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f3f0ec;
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.2s;
}
.journal-card .card-footer-link:hover { color: var(--accent); }
.journal-card .card-footer-link i { transition: transform 0.2s; }
.journal-card .card-footer-link:hover i { transform: translateX(3px); }

.badge-category {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-issn {
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

/* ---- Articles List ---- */
.articles-list {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e5e0;
    padding: 0.25rem 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.article-item {
    border-bottom: 1px solid #f3f0ec;
    padding: 1.25rem 0;
    transition: all 0.2s;
}
.article-item:last-child { border-bottom: none; }
.article-item:hover { padding-left: 0.5rem; }
.article-title {
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.45;
}
.article-title a { color: var(--dark); }
.article-title a:hover { color: var(--primary); }
.article-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
}
.article-details i { margin-right: 0.25rem; }

/* ---- Badges ---- */
.badge-access { background: #dcfce7; color: #166534; font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 4px; font-weight: 600; }
.badge-locked { background: #fef2f2; color: #991b1b; font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 4px; font-weight: 600; }
.badge-open-access { background: #f0fdf4; color: #166534; font-size: 0.68rem; padding: 0.2rem 0.5rem; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-status { font-size: 0.75rem; padding: 0.3rem 0.8rem; border-radius: 20px; font-weight: 500; }

/* ---- Section Light ---- */
.section-light { background: #f5f3ef; }

/* ---- Page Banner ---- */
.page-banner {
    background: #f0ebe3;
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}
.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.avif') center center / cover no-repeat;
    opacity: 0.08;
    z-index: 0;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h2 {
    font-weight: 700;
    color: #1f1f1f;
    font-size: 2rem;
    margin-bottom: 0.3rem;
}
.page-banner p {
    color: #6b6b6b;
    margin-bottom: 0;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}
.page-banner .breadcrumb { margin-bottom: 0; margin-top: 0.5rem; }
.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a { color: #9ca3af; font-size: 0.85rem; }
.page-banner .breadcrumb-item.active { color: #374151; }

/* ---- Feature Cards ---- */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8e5e0;
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.feature-card h5 {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---- Pricing Grid & Cards ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 991px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
    background: #fff;
    padding: 2.5rem 2rem;
    position: relative;
    border: 1px solid #e8e5e0;
    border-radius: 16px;
    transition: all 0.3s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}
.pricing-card.featured { border: 2px solid var(--accent); transform: scale(1.02); }
.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff;
    font-size: 0.72rem; font-weight: 700;
    padding: 0.3rem 1rem; border-radius: 20px;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }
.price-amount { font-family: 'Source Serif 4', serif; font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.price-original { text-decoration: line-through; color: #9ca3af; font-size: 1rem; }
.pricing-plan-name { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 0.75rem; }
.pricing-price { margin-bottom: 1.25rem; }
.pricing-price .price-duration { font-size: 0.88rem; color: #9ca3af; }
.pricing-features { list-style: none; padding: 0; margin-bottom: 1.5rem; flex-grow: 1; }
.pricing-features li { padding: 0.4rem 0; font-size: 0.88rem; color: #6b7280; }
.pricing-features li i { color: #16a34a; margin-right: 0.5rem; }
.pricing-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 0.25rem 1rem; border-radius: 20px; margin-bottom: 0.75rem; }
.btn-block { display: block; width: 100%; }

/* ---- Newsletter Section ---- */
.newsletter-section {
    background: var(--primary);
    padding: 4.5rem 0;
    color: #fff;
    position: relative;
}
.newsletter-content {
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
}
.newsletter-content h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #fff;
}
.newsletter-content p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    margin-bottom: 1.75rem;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

/* ---- Category Pills ---- */
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: 1px solid #e8e5e0;
    font-size: 0.82rem;
    color: #6b7280;
    transition: all 0.2s;
    text-decoration: none;
    background: #fff;
    font-weight: 500;
}
.category-pill:hover, .category-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.category-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---- Form Styles ---- */
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid #e8e5e0;
    padding: 0.6rem 0.9rem;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.form-control:hover, .form-select:hover { border-color: #d1cdc6; }
.form-label { font-weight: 500; font-size: 0.88rem; color: #374151; margin-bottom: 0.35rem; }

/* ---- Invoice Print ---- */
@media print {
    .no-print { display: none !important; }
    body { background: #fff; }
    .invoice-container { box-shadow: none; border: none; }
    .navbar, footer { display: none !important; }
}

html { scroll-behavior: smooth; }

/* ---- Admin Sidebar ---- */
.admin-sidebar {
    background: var(--dark);
    min-height: 100vh; width: 260px;
    position: fixed; top: 0; left: 0; z-index: 1000;
    overflow-y: auto; transition: transform 0.3s;
}
.admin-sidebar .sidebar-brand { padding: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar .nav-link {
    color: #94a3b8; padding: 0.65rem 1.2rem; font-size: 0.88rem;
    border-radius: 8px; margin: 2px 10px; transition: all 0.2s;
    display: flex; align-items: center; gap: 0.6rem;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-sidebar .nav-label { padding: 1rem 1.2rem 0.4rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #475569; font-weight: 600; }
.admin-content { margin-left: 260px; padding: 1.5rem; min-height: 100vh; background: #f1f5f9; }
.admin-topbar { background: #fff; padding: 0.8rem 1.5rem; border-bottom: 1px solid #e2e8f0; margin: -1.5rem -1.5rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.admin-stat-card { border-radius: 12px; padding: 1.25rem; border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0; }
}

/* ---- Search ---- */
.search-box { position: relative; }
.search-box .form-control { padding-left: 2.5rem; border-radius: 25px; }
.search-box .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.search-results-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border: 1px solid #e8e5e0; border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1); z-index: 100;
    max-height: 400px; overflow-y: auto; display: none;
}
.search-results-dropdown.show { display: block; }
.search-result-item { padding: 0.8rem 1.2rem; border-bottom: 1px solid #f3f0ec; cursor: pointer; transition: background 0.15s; }
.search-result-item:hover { background: #faf9f7; }
.search-result-item:last-child { border-bottom: none; }

/* ---- Misc ---- */
.text-accent { color: var(--accent) !important; }
.bg-accent { background: var(--accent) !important; }
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.rounded-xl { border-radius: 12px !important; }
.rounded-2xl { border-radius: 16px !important; }
.fw-600 { font-weight: 600 !important; }
.gap-05 { gap: 0.125rem; }

.journal-cover-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.3); font-size: 4rem;
}

.skeleton {
    background: linear-gradient(90deg, #f3f0ec 25%, #e8e5e0 50%, #f3f0ec 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.list-group-item.active { background: var(--primary); border-color: var(--primary); }

/* ============================================
   LOCK / UNLOCK ACCESS STATES
   ============================================ */
.journal-access-card.locked { position: relative; opacity: 0.7; }
.journal-access-card.locked:hover { opacity: 0.8; }
.journal-access-card.unlocked { border-left: 3px solid #16a34a !important; }
.journal-access-card .lock-overlay {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(0,0,0,0.05); display: flex; align-items: center;
    justify-content: center; color: #9ca3af; font-size: 0.85rem;
}
.journal-card.locked { opacity: 0.65; }
.journal-card.locked:hover { opacity: 0.75; }
.article-item.locked { opacity: 0.65; }
.article-item.locked .article-title a,
.article-item.locked .article-title span { color: #9ca3af !important; }

/* ============================================
   TYPING EFFECT
   ============================================ */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--primary);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink 0.8s infinite;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   MARQUEE / TICKER
   ============================================ */
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    border: 1px solid #e8e5e0;
    font-size: 0.82rem;
    color: #6b7280;
    background: #fff;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
    text-decoration: none;
    flex-shrink: 0;
}
.marquee-item:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* ============================================
   3D TILT EFFECT
   ============================================ */
.tilt-card { transition: transform 0.3s ease; transform-style: preserve-3d; }

/* ============================================
   BUTTON RIPPLE EFFECT
   ============================================ */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */
.counter-animated {
    transition: all 0.3s;
}

/* ============================================
   GLOW CARD (Featured)
   ============================================ */
.glow-card {
    position: relative;
}
.glow-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent), #d97706, var(--primary));
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    animation: glowRotate 4s linear infinite;
}
.glow-card:hover::before { opacity: 1; }
@keyframes glowRotate {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   STAGGER ANIMATION (for grids)
   ============================================ */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.stagger-item.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   FLOATING ANIMATION (hero decorations)
   ============================================ */
.floating {
    animation: floatUpDown 3s ease-in-out infinite;
}
.floating-delay { animation-delay: 1.5s; }
@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ============================================
   FOOTER
   ============================================ */
footer { position: relative; }
footer a { transition: all 0.2s; }
footer a:hover { color: var(--accent) !important; }
footer .footer-social a {
    width: 36px; height: 36px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s; color: #94a3b8;
}
footer .footer-social a:hover {
    background: var(--accent); border-color: var(--accent);
    color: #fff !important; transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .navbar .d-flex.gap-2 { flex-wrap: wrap; justify-content: center; padding-top: 0.5rem; }
    .section-title { font-size: 1.5rem; }
    .section { padding: 3.5rem 0; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    .section-header-flex { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 576px) {
    .navbar-brand { font-size: 1.1rem; }
    .navbar .d-flex.gap-2 { width: 100%; justify-content: center; }
    .navbar .d-flex.gap-2 .btn { flex: 1; text-align: center; }

    .hero-section { padding: 3rem 0 2.5rem; min-height: auto; }
    .hero-heading { font-size: 2rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-buttons { flex-direction: column !important; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 260px; }
    .hero-stats { gap: 1rem; }
    .hero-stats .stat-number { font-size: 1.4rem; }

    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.35rem; }

    .journal-card-body { padding: 1.25rem; }

    .article-item:hover { padding-left: 0; }

    .category-pill { font-size: 0.78rem; padding: 0.3rem 0.75rem; }

    .price-amount { font-size: 1.8rem; }
    .pricing-card { padding: 1.75rem 1.25rem; }
    .pricing-card.featured { transform: none; }

    .stats-strip .stat-number { font-size: 1.4rem; }

    footer .col-lg-2, footer .col-lg-3, footer .col-lg-4 { text-align: center; }
    footer .footer-social { justify-content: center; }
    footer form.d-flex { flex-direction: column; align-items: center; }
    footer form .form-control { width: 100%; }

    .page-banner { padding: 1.75rem 0; }
    .page-banner h2 { font-size: 1.5rem; }

    .admin-topbar { flex-direction: column; gap: 0.5rem; text-align: center; }

    .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 38px; height: 38px; font-size: 1rem; }
    .dark-toggle { bottom: 1.25rem; left: 1.25rem; width: 38px; height: 38px; font-size: 1rem; }
    .marquee-item { padding: 0.35rem 0.85rem; font-size: 0.78rem; }
    .cursor-dot, .cursor-ring { display: none !important; }
    .hscroll-card { flex: 0 0 260px; padding: 1.25rem; }
    .hscroll-track { padding: 1rem; gap: 1rem; }
}
