/* Footer */
.footer .widget .widget-title {
    margin-top: 15px;
    background: #179bd7;
    color: white;
    padding: 7px;
}
/* Footer */

/* Preloader */
.dark-div,
.dark-div a {
    color: rgba(255, 255, 255, 0.75);
}
.spinner {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -30px;
}

.cube1,
.cube2 {
    background: #f7f7f7;
}
.cube1,
.cube2 {
    background-color: #fff;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: cubemove 1.8s infinite ease-in-out;
    animation: cubemove 1.8s infinite ease-in-out;
}

@keyframes cubemove {
    25% {
        transform: translateX(20px) rotate(-90deg) scale(0.5);
    }

    50% {
        transform: translateX(20px) translateY(20px) rotate(-180deg);
    }

    75% {
        transform: translateX(0px) translateY(20px) rotate(-270deg) scale(0.5);
    }

    100% {
        transform: rotate(-360deg);
    }
}

.cube1,
.cube2 {
    animation: cubemove 1.8s infinite ease-in-out;
}

.cube2 {
    animation-delay: -0.9s;
}

.spinner {
    transform: rotate(45deg);
}
/* Preloader */

.widget-title {
    margin-top: 15px;
    background: #179bd7;
    color: white;
    padding: 7px;
}

#sidebar {
    margin-top: -100px;
}

/* Book section */
/* ==========================
   BOOK GRID
========================== */

.book-grid {
    margin-top: 30px;
}

/* ==========================
   BOOK CARD
========================== */

.book-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================
   IMAGE AREA
========================== */

.book-image {
    position: relative;
    text-align: center;
    padding: 25px 20px 20px;
    background: #fafafa;
}

.book-image img {
    display: inline-block;
    width: auto;
    height: 280px;
    max-width: 100%;
    object-fit: contain;

    border-radius: 4px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12),
        0 3px 8px rgba(0, 0, 0, 0.08);

    transition: all 0.35s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.05);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.18),
        0 5px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================
   ADD TO CART BUTTON
========================== */

.add-cart-btn {
    position: absolute;
    right: 15px;
    bottom: 15px;

    width: 46px;
    height: 46px;

    border: none;
    border-radius: 50%;

    background: #179bd7;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(23, 155, 215, 0.35);

    transition: all 0.3s ease;
}

.add-cart-btn i {
    font-size: 16px;
    line-height: 1;
    margin: 0;
}

.add-cart-btn:hover {
    background: #0f86bd;
    color: #fff;
    transform: scale(1.08);
}

.add-cart-btn:focus,
.add-cart-btn:active {
    outline: none;
    color: #fff;
    text-decoration: none;
}

/* ==========================
   CONTENT
========================== */

.book-content {
    padding: 18px 20px 22px;
}

/* 🔽 REDUCED TITLE SIZE */
.book-title {
    margin: 0;
    min-height: 34px;

    font-size: 14px; /* reduced */
    font-weight: 600;
    line-height: 1.4;
    color: #222;
}

.book-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.book-title a:hover {
    color: #179bd7;
}

.book-author {
    margin-top: 6px;

    font-size: 13px;
    color: #777;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================
   PRICE
========================== */

/* 🔽 REDUCED PRICE SIZE */
.book-price {
    margin-top: 14px;

    font-size: 20px; /* reduced */
    font-weight: 700;
    color: #179bd7;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 991px) {
    .book-image img {
        height: 230px;
    }

    .book-price {
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .book-card {
        margin-bottom: 20px;
    }

    .book-image {
        padding: 20px 15px;
    }

    .book-image img {
        height: 180px;
    }

    .book-content {
        padding: 15px;
    }

    .book-title {
        font-size: 13px;
        min-height: 42px;
    }

    .book-price {
        font-size: 18px;
    }

    .add-cart-btn {
        width: 42px;
        height: 42px;
    }
}
/* End books section */

/* Book details section */
.book-detail-page {
    margin-top: 40px;
}

/* =========================
   IMAGE SECTION
========================= */

.book-image-box {
    position: relative;
    text-align: center;
    padding: 25px;
    background: #fafafa;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.book-image-box img {
    height: 420px;
    width: auto;
    max-width: 100%;
    object-fit: contain;

    border-radius: 6px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);

    transition: all 0.35s ease;
}

.book-image-box img:hover {
    transform: scale(1.03);
}

/* badge */
.badge-sale {
    position: absolute;
    top: 15px;
    left: 15px;

    background: #ff6b35;
    color: #fff;

    padding: 5px 10px;
    font-size: 12px;

    border-radius: 4px;
}

/* =========================
   TEXT DETAILS
========================= */

.book-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin-top: 0;
}

.book-meta {
    margin-top: 10px;
    font-size: 13px;
    color: #777;
}

.book-rating {
    margin-top: 10px;
    color: #f5a623;
    font-size: 14px;
}

.book-rating span {
    color: #777;
    margin-left: 6px;
}

.book-detail-price {
    margin-top: 15px;
    font-size: 32px;
    font-weight: 700;
    color: #179bd7;
}

.book-description {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* =========================
   BUTTONS (FIXED CENTER)
========================= */

.book-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Add to Cart */
.btn-add-cart {
    background: #ff6b35;
    color: #fff;

    border: none;
    border-radius: 30px;

    text-decoration: none; /* ✅ removes underline */
    color: #fff; /* ✅ force text color */

    padding: 12px 22px;

    font-weight: 600;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    cursor: pointer;

    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: #e85c2b;
    transform: translateY(-2px);
    color: #fff;
}

/* Wishlist */
.btn-wishlist {
    width: 44px;
    height: 44px;

    border-radius: 50%;
    border: 1px solid #ddd;

    background: #fff;
    color: #444;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.3s;
}

.btn-wishlist:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

/* =========================
   EXTRA INFO
========================= */

.book-extra {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.book-extra div {
    margin-bottom: 5px;
}

/* =========================
   TABS
========================= */

.book-tabs {
    margin-top: 40px;
}

.book-tabs .nav-tabs > li > a {
    font-weight: 600;
    border-radius: 0;
}

.book-tabs .tab-content {
    padding: 20px;
    border: 1px solid #eee;
    border-top: none;
    background: #fff;
}

/* =========================
   REVIEWS
========================= */

.reviews-section {
    margin-top: 10px;
}

.review-card {
    border: 1px solid #eee;
    border-radius: 12px;

    padding: 15px;
    margin-bottom: 15px;

    background: #fff;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.review-header {
    display: flex;
    justify-content: space-between;
}

.reviewer-name {
    font-weight: 600;
    color: #222;
}

.review-stars {
    color: #f5a623;
}

.review-text {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.review-date {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
    .book-image-box img {
        height: 340px;
    }

    .book-detail-title {
        font-size: 22px;
    }

    .book-detail-price {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .book-image-box img {
        height: 280px;
    }

    .book-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add-cart {
        width: 100%;
    }
}
/* Book details section */

/* Article submission form */
/* Panel Styling */
.panel {
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: none;
}

.panel-heading {
    background: #179bd7 !important;
    color: #fff !important;
    padding: 15px;
    border-radius: 10px 10px 0 0;
}

.panel-title {
    font-weight: 600;
}

/* Form Controls */
.form-control {
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #179bd7;
    box-shadow: 0 0 6px rgba(23, 155, 215, 0.2);
}

/* Labels */
label {
    font-weight: 600;
    color: #333;
}

/* Submit Button */
.btn-submit {
    background: #ff6b35;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #e85c2b;
    transform: translateY(-2px);
}

/* File input hint spacing */
small.text-muted {
    display: block;
    margin-top: 5px;
}

/* Responsive spacing */
@media (max-width: 767px) {
    .panel-body {
        padding: 15px;
    }
}
/* Article submission form */

/* Contact form section */

/* =========================
   TITLES
========================= */

.contact-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #222;
}

.contact-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

/* =========================
   FORM CARD (LEFT)
========================= */

.contact-form-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* =========================
   INFO CARD (RIGHT)
========================= */

.contact-info-card {
    background: #179bd7;
    color: #fff;

    border-radius: 10px;
    padding: 25px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Right column title */
.info-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Info items */
.contact-info-item {
    display: flex;
    align-items: flex-start;

    margin-bottom: 18px;
}

.contact-info-item i {
    font-size: 16px;
    margin-right: 10px;
    margin-top: 3px;
}

/* Links */
.contact-info-card a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.contact-info-card a:hover {
    opacity: 1;
}

/* Note */
.contact-note {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 15px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
    .contact-right {
        margin-top: 20px;
    }
}
/* End contact form section */

/* Blog section */
/* =========================
   COMMENTS SECTION
========================= */

.blog-comments {
    margin-top: 50px;
}

/* Header */
.comments-header {
    margin-bottom: 20px;
}

.comments-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

/* =========================
   COMMENT CARDS
========================= */

.comment-card {
    background: #fff;

    border: 1px solid #eee;
    border-radius: 12px;

    padding: 20px;
    margin-bottom: 18px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);

    transition: all 0.3s ease;
}

.comment-card:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

/* Comment Header */
.comment-header {
    margin-bottom: 12px;
}

.comment-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.comment-time {
    margin-top: 2px;

    font-size: 12px;
    color: #999;
}

/* Comment Text */
.comment-text {
    margin: 0;

    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

/* =========================
   COMMENT FORM
========================= */

.comment-form {
    margin-top: 40px;

    padding: 25px;

    background: #fff;

    border: 1px solid #eee;
    border-radius: 12px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* Inputs */
.comment-form .form-control {
    height: 44px;

    border: 1px solid #ddd;
    border-radius: 8px;

    box-shadow: none;

    transition: all 0.3s ease;
}

.comment-form textarea.form-control {
    height: auto;
    min-height: 140px;
    resize: vertical;
}

.comment-form .form-control:focus {
    border-color: #179bd7;

    box-shadow: 0 0 0 3px rgba(23, 155, 215, 0.12);
}

/* Submit Button */
/* Submit Button */
.btn-comment-submit {
    background: #179bd7;
    color: #fff;

    border: none;
    border-radius: 30px;

    height: 44px;
    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    transition: all 0.3s ease;
}

.btn-comment-submit:hover,
.btn-comment-submit:focus {
    background: #0f86bd;
    color: #fff;

    transform: translateY(-2px);
    text-decoration: none;
}

.btn-comment-submit:active,
.btn-comment-submit:focus:active {
    outline: none;
    box-shadow: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 767px) {
    .comment-card {
        padding: 16px;
    }

    .comment-form {
        padding: 18px;
    }

    .comments-title {
        font-size: 18px;
    }
}
/* End blog section */

/* Start jounal */

/* ==========================================
   JOURNAL LIST SECTION
========================================== */

.journal-list-section {
    margin-bottom: 40px;
}

/* =========================
   CARD WRAPPER
========================= */
.journal-toolbar-card {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef0f3;
    margin: 15px;
}

/* ROW */
.journal-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* =========================
   LEFT FILTER
========================= */
.journal-toolbar-left {
    flex: 1;
    max-width: 280px;
}

.journal-select {
    width: 100%;
    height: 44px; /* unified height */
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #d9dee5;
    background: #f9fafc;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

.journal-select:focus {
    border-color: #4a90e2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

/* =========================
   SEARCH SECTION
========================= */
.journal-toolbar-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.journal-search-wrapper {
    display: flex;
    width: 100%;
    max-width: 420px;
    align-items: stretch;
}

/* INPUT */
.journal-search-input {
    flex: 1;
    height: 44px; /* SAME HEIGHT AS BUTTON */
    padding: 0 12px;
    border: 1px solid #d9dee5;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #f9fafc;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

/* focus */
.journal-search-input:focus {
    border-color: #4a90e2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
}

/* BUTTON */
.journal-search-btn {
    width: 48px;
    height: 33px; /* MATCH INPUT HEIGHT */
    border: 1px solid #4a90e2;
    background: #4a90e2;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    border-radius: 0 8px 8px 0;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}

.journal-search-btn:hover {
    background: #3b7bd4;
    border-color: #3b7bd4;
}

.journal-search-btn:active {
    transform: scale(0.97);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .journal-toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }

    .journal-toolbar-left,
    .journal-toolbar-right {
        max-width: 100%;
    }

    .journal-search-wrapper {
        max-width: 100%;
    }
}
/* ==========================================
   GRID LAYOUT (FIXED LIKE STRATFORD STYLE)
========================================== */

.journal-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

/* Each journal card */
.journal-card {
    width: 100%;
    max-width: 100%;
    background: #fff;

    border: 1px solid #e9edf2;
    border-radius: 12px;

    margin: 15px;
    overflow: hidden;

    height: 280px; /* 🔥 FIXED HEIGHT */
    display: flex;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.journal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   LEFT COVER (FIXED AREA)
========================================== */

.journal-cover {
    width: 220px; /* 🔥 FIXED WIDTH */
    min-width: 220px;

    background: #f7f9fc;

    display: flex;
    align-items: center;
    justify-content: center;

    border-right: 1px solid #eef1f5;
    padding: 15px;
}

/* FIXED IMAGE BOX */
.journal-cover img {
    width: 160px;
    height: 220px; /* 🔥 FIXED HEIGHT */

    object-fit: contain; /* show full cover */
    display: block;

    border-radius: 6px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s ease;
}

.journal-card:hover .journal-cover img {
    transform: scale(1.03);
}

/* ==========================================
   CONTENT AREA (FIXED HEIGHT ALIGNMENT)
========================================== */

.journal-content {
    flex: 1;
    padding: 22px 26px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;
}

/* Category badge */
.journal-category {
    display: inline-flex; /* better than inline-block for centering control */
    align-items: center;
    justify-content: center;

    width: fit-content; /* ensures no stretching */
    max-width: 100%; /* prevents overflow */

    background: #eef5ff;
    color: #0f62fe;

    padding: 4px 10px;
    border-radius: 999px; /* fully pill-shaped */

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    margin-bottom: 10px;

    white-space: nowrap; /* prevents text wrapping */
}

/* Title */
.journal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f1f1f;

    margin: 0 0 10px;
    line-height: 1.3;

    /* prevent overflow */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description */
.journal-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;

    margin-bottom: 10px;

    /* clamp text for uniform height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.journal-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.journal-meta span {
    margin-right: 15px;
    display: inline-block;
}

.journal-meta i {
    color: #0f62fe;
    margin-right: 5px;
}

/* ==========================================
   BUTTONS
========================================== */

.journal-actions {
    margin-top: auto;
}

.journal-actions .btn {
    border-radius: 30px;
    padding: 9px 20px;
    font-weight: 600;
    font-size: 13px;

    margin-right: 8px;
    transition: all 0.25s ease;
}

.btn-view {
    background: #0f62fe;
    color: #fff;
    border: 1px solid #0f62fe;
}

.btn-view:hover {
    background: #0048d9;
    border-color: #0048d9;
    color: #fff;
}

.btn-issue {
    background: #fff;
    color: #0f62fe;
    border: 1px solid #0f62fe;
}

.btn-issue:hover {
    background: #0f62fe;
    color: #fff;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {
    .journal-card {
        flex-direction: column;
        height: auto; /* allow natural height */
    }

    .journal-cover {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #eef1f5;
        padding: 20px;
    }

    .journal-cover img {
        width: 140px;
        height: 200px;
    }

    .journal-content {
        padding: 18px;
    }
}
/* End journal */

/* Start journal details */
.journal-view {
    background: #f4f7fb;
    padding: 25px;
    border-radius: 10px;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* ================= TABS ================= */
.journal-tabs {
    border: none;
    margin-bottom: 20px;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 98, 254, 0.08);
}

.journal-tabs > li > a {
    border: none !important;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    color: #555;
}

.journal-tabs > li.active > a {
    background: linear-gradient(135deg, #0f62fe, #3b82f6);
    color: #fff !important;
}

/* ================= HERO CARD ================= */
.journal-hero-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* FULL WIDTH COVER */
.journal-hero-cover {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.journal-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* IMPORTANT FIX */
    display: block;
    transform: scale(1.02);
}

/* DARK OVERLAY */
.journal-hero-cover .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
}

/* HERO TEXT */
.hero-text {
    position: absolute;
    bottom: 20px;
    left: 25px;
    color: #fff;
}

.hero-text h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
}

.hero-text p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

/* ================= BODY ================= */
.journal-body {
    padding: 22px;
}

/* META TAGS */
.journal-meta span {
    display: inline-block;
    margin: 4px 8px 8px 0;
    font-size: 12px;
    background: #eef4ff;
    padding: 5px 10px;
    border-radius: 20px;
    color: #0f62fe;
    font-weight: 600;
}

.journal-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ================= ARTICLES ================= */
.section-title {
    font-weight: 800;
    margin-top: 20px;
    margin-bottom: 15px;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #fff;
    border-radius: 12px;
    padding: 16px;

    margin-bottom: 12px;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0f62fe;
}

.article-title {
    font-weight: 700;
    color: #0f62fe;
    text-decoration: none;
}

.article-desc {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
    max-width: 600px;
}

.article-number {
    font-size: 12px;
    color: #999;
}

/* PDF BUTTON */
.article-action .btn {
    background: linear-gradient(135deg, #0f62fe, #3b82f6);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 7px 14px;
}
/* ================= ARCHIVE CARD ================= */
.archive-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(15, 98, 254, 0.15);
}

/* ================= IMAGE ================= */
.archive-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.archive-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.archive-card:hover .archive-img img {
    transform: scale(1.05);
}

/* ================= BODY ================= */
.archive-body {
    padding: 15px 16px;
}

.archive-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f62fe;
    margin: 0 0 8px;
}

/* META */
.archive-meta {
    margin-bottom: 12px;
}

.archive-meta span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

/* BUTTON */
.archive-btn {
    display: inline-block;
    width: 100%;
    text-align: center;

    padding: 10px 12px;
    border-radius: 10px;

    background: linear-gradient(135deg, #0f62fe, #3b82f6);
    color: #fff;

    font-weight: 600;
    font-size: 13px;

    text-decoration: none;

    transition: all 0.3s ease;
}

.archive-btn:hover {
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(15, 98, 254, 0.25);
}
/* ================= ABOUT ================= */
.about-card {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #0f62fe;
}

.about-card h3 {
    color: #0f62fe;
    font-weight: 800;
}
/* End journal details */

/* Start article details */
.article-view {
    background: #f4f7fb;
    padding: 25px;
    border-radius: 10px;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* ================= BREADCRUMB ================= */
.article-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

/* ================= TITLE ================= */
.article-title-main {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* ================= LAYOUT ================= */
.article-layout {
    display: flex;
    gap: 20px;
}

/* LEFT */
.article-main {
    flex: 2;
}

/* RIGHT */
.article-sidebar {
    flex: 1;
}

/* ================= AUTHORS ================= */
.authors-block {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.author {
    margin-bottom: 10px;
}

.author strong {
    color: #0f62fe;
}

/* ================= DOI ================= */
.doi-block {
    background: #eef4ff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 15px;
}

.doi-block a {
    color: #0f62fe;
    font-weight: 600;
}

/* ================= ABSTRACT ================= */
.abstract-card {
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0f62fe;
    margin-top: 10px;
}

.abstract-card h3 {
    margin-top: 0;
    font-weight: 800;
    color: #0f62fe;
}

.abstract-card p {
    color: #555;
    line-height: 1.7;
}

/* ================= SIDEBAR ================= */
.sidebar-card {
    position: sticky;
    top: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* JOURNAL MINI */
.journal-mini {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.journal-mini img {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    object-fit: cover;
}

.journal-mini h4 {
    font-size: 13px;
    margin: 0;
    color: #0f62fe;
    font-weight: 700;
}

.journal-mini span {
    font-size: 11px;
    color: #777;
}

/* PDF BUTTON */
.pdf-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #0f62fe, #3b82f6);
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 12px;
    text-decoration: none;
}

.pdf-btn:hover {
    color: #fff;
}

/* META */
.meta-box {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

/* CITE */
.cite-box {
    background: #f7f9ff;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
}

.cite-box h5 {
    margin-top: 0;
    font-weight: 700;
    color: #0f62fe;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .article-layout {
        display: block;
    }

    .article-sidebar {
        margin-top: 20px;
    }
}
/* End article details */

/* Start cart section */
.cart-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* HEADER */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cart-count {
    background: #eef5ff;
    color: #0f62fe;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* ITEMS */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 160px 100px 40px;
    align-items: center;
    gap: 15px;

    padding: 15px;
    border: 1px solid #f1f1f1;
    border-radius: 10px;
    transition: 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* IMAGE */
.cart-img img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

/* DETAILS */
.cart-details h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.cart-meta {
    font-size: 12px;
    color: #777;
    margin: 3px 0;
}

.price {
    font-weight: 600;
    color: #0f62fe;
}

/* ========================= */
/* FIXED QUANTITY CONTROLS   */
/* ========================= */

.qty-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* BUTTONS (PLUS / MINUS) */
.qty-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: #f5f7fb;
    cursor: pointer;

    font-size: 14px;
    color: #333;

    transition: 0.2s ease;
}

.qty-btn i {
    font-size: 12px;
    line-height: 1;
}

.qty-btn:hover {
    background: #e9eefc;
    color: #0f62fe;
}

.qty-box {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 38px;

    border: 1px solid #dcdfe6;
    border-radius: 8px;
    overflow: hidden;

    background: #fff;
}

/* BUTTONS */
.qty-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: #f5f7fb;

    cursor: pointer;

    transition: 0.2s ease;
}

.qty-btn i {
    font-size: 12px;
    line-height: 1;
}

.qty-btn:hover {
    background: #e9eefc;
    color: #0f62fe;
}

/* VALUE (THIS FIXES YOUR ISSUE COMPLETELY) */
.qty-value {
    width: 45px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 600;

    color: #222;

    background: #fff;

    user-select: none;
}

/* SUBTOTAL */
.cart-subtotal {
    font-weight: 600;
    text-align: center;
}

/* DELETE BUTTON (CENTERED ICON FIX) */
.delete-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 8px;

    background: #fff1f1;
    color: #e03131;

    cursor: pointer;
    transition: 0.2s ease;
}

.delete-btn i {
    font-size: 14px;
    line-height: 1;
}

.delete-btn:hover {
    background: #ffe3e3;
}

/* SUMMARY */
.cart-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 700;
}

/* CHECKOUT BUTTON */
.checkout-btn {
    width: 100%;
    padding: 12px;

    background: #0f62fe;
    color: #fff;

    border: none;
    border-radius: 10px;

    margin-top: 10px;
    font-weight: 600;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-btn i {
    font-size: 13px;
}

.checkout-btn:hover {
    background: #0043ce;
}

/* ========================= */
/* RESPONSIVE IMPROVEMENT    */
/* ========================= */

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas:
            "img details"
            "qty subtotal"
            "delete delete";
        row-gap: 10px;
    }

    .qty-box {
        justify-content: flex-start;
    }

    .cart-subtotal {
        text-align: left;
    }
}
/* End cart section */

/* Start Checkout */
.checkout-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* HEADER */
.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.checkout-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.secure-badge {
    font-size: 12px;
    background: #eafaf1;
    color: #1f9d55;
    padding: 5px 12px;
    border-radius: 20px;
}

/* GRID */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
}

/* LEFT CARD */
.checkout-form-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
}

.checkout-form-card h5 {
    margin-bottom: 15px;
}

/* FORM */
.form-row {
    display: flex;
    gap: 10px;
}

input,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;

    border: 1px solid #ddd;
    border-radius: 8px;

    font-size: 14px;
    outline: none;
}

textarea {
    min-height: 80px;
    resize: none;
}

/* RIGHT CARD */
.checkout-summary-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    background: #fafafa;
}

.checkout-summary-card h5 {
    margin-bottom: 15px;
}

/* ORDER ITEMS */
.order-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: #333;
}

/* SUMMARY */
.summary-line {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 14px;
}

.summary-line.total {
    font-weight: 700;
    font-size: 16px;
}

/* PAYMENT OPTIONS */
.payment-methods {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;

    cursor: pointer;
    background: #fff;

    transition: 0.2s;
}

.payment-option input {
    width: auto;
    margin: 0;
}

.payment-option:hover {
    border-color: #0f62fe;
}

/* BUTTON */
.place-order-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;

    background: #0f62fe;
    color: #fff;

    border: none;
    border-radius: 10px;

    font-weight: 600;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.place-order-btn:hover {
    background: #0043ce;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }
}
/* End Checkout */

/* Start CMS Content */
.cms-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
    word-wrap: break-word;
}

/* =========================
   Headings (All Levels Unified)
========================= */

.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4,
.cms-content h5,
.cms-content h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    color: #0f3d75;
    letter-spacing: -0.02em;
}

/* H1 - Page Title */
.cms-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #0f3d75;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

/* H2 - Section Title */
.cms-content h2 {
    font-size: 1.65rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.4rem;
}

/* H3 - Sub Section */
.cms-content h3 {
    font-size: 1.4rem;
    color: #0f3d75;
}

/* H4 - Minor Section */
.cms-content h4 {
    font-size: 1.2rem;
    color: #1e40af;
}

/* H5 - Small Heading */
.cms-content h5 {
    font-size: 1.05rem;
    color: #334155;
}

/* H6 - Tiny / Label Heading */
.cms-content h6 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
}

/* =========================
   Paragraphs
========================= */

.cms-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* =========================
   Lists
========================= */

.cms-content ul,
.cms-content ol {
    margin: 1rem 0;
    padding-left: 1.75rem;
}

.cms-content ul {
    list-style: disc;
}

.cms-content ol {
    list-style: decimal;
}

.cms-content li {
    margin-bottom: 0.5rem;
}

/* =========================
   Links
========================= */

.cms-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s ease;
}

.cms-content a:hover {
    text-decoration: underline;
}

/* =========================
   Images
========================= */

.cms-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* =========================
   Tables
========================= */

.cms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: 8px;
}

.cms-content table thead {
    background: #0f3d75;
    color: #ffffff;
}

.cms-content table th,
.cms-content table td {
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.cms-content table tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* =========================
   Blockquotes
========================= */

.cms-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #f59e0b;
    background: #f8fafc;
    color: #374151;
    font-style: italic;
    border-radius: 6px;
}

/* =========================
   Horizontal Rule
========================= */

.cms-content hr {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 2rem 0;
}

/* =========================
   Code Blocks
========================= */

.cms-content pre {
    background: #111827;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.cms-content code {
    background: #f3f4f6;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.95em;
}

/* =========================
   Embedded Content
========================= */

.cms-content iframe {
    width: 100%;
    min-height: 450px;
    border: none;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
    .cms-content h1 {
        font-size: 1.75rem;
    }

    .cms-content h2 {
        font-size: 1.5rem;
    }

    .cms-content h3 {
        font-size: 1.25rem;
    }

    .cms-content h4 {
        font-size: 1.1rem;
    }

    .cms-content h5 {
        font-size: 1rem;
    }
}
/* End CMS Content */

/* Start pagination section */
/* =========================
   BOOTSTRAP PAGINATION FIX
   PERFECT ALIGNMENT
========================= */

.journal-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* pagination container */
.journal-pagination-wrapper .pagination {
    display: flex;
    align-items: center; /* ✅ fixes vertical alignment */
    gap: 6px;
    margin: 0;
    padding: 0;
}

/* each item */
.journal-pagination-wrapper .page-item {
    display: flex;
}

/* ALL links (numbers + prev + next) */
.journal-pagination-wrapper .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 38px; /* consistent height */
    min-width: 38px; /* equal width for numbers */
    padding: 0 12px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;
    line-height: 1; /* removes baseline shift */

    text-decoration: none;

    border: 1px solid #dee2e6;
    background-color: #ffffff;
    color: #495057;

    transition: all 0.2s ease-in-out;
}

/* hover */
.journal-pagination-wrapper .page-link:hover {
    background-color: #f1f3f5;
    border-color: #ced4da;
    color: #212529;
}

/* active page */
.journal-pagination-wrapper .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.25);
}

/* disabled prev/next */
.journal-pagination-wrapper .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
    background-color: #f8f9fa;
}

/* make Prev/Next text not misaligned */
.journal-pagination-wrapper .page-item:first-child .page-link,
.journal-pagination-wrapper .page-item:last-child .page-link {
    padding: 0 14px;
    min-width: auto;
}
/* End pagination section */
