/* ===================================
   RESEARCHPUBX JOURNALS - GLOBAL MODERN DESIGN
   Comprehensive CSS for all journal view pages
   Mobile-first responsive design
   =================================== */

/* ===================================
   1. GLOBAL RESETS & BASE STYLES
   =================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    background: #f5f7fa;
}

/* Container and Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

/* ===================================
   2. JOURNAL BODY CONTENT WRAPPER
   =================================== */
.jrnl-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 0;
    min-height: 100vh;
}

/* Main Content Cards */
.editor-in.gen-content .col-xs-12,
.jnl-content,
.about-journal {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* ===================================
   3. PAGE TITLES & HEADINGS
   =================================== */
.jrnl_body_main_title {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.jrnl_body_main_title h3 {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.jrnl_body_main_title h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 2px;
}

/* Section Headings */
h2,
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #10b981;
    position: relative;
}

h2:after,
.section-title:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #047857;
}

h3,
.journal-subheading {
    font-size: 24px;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 15px;
    margin-top: 25px;
}

h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

/* ===================================
   4. TEXT & CONTENT FORMATTING
   =================================== */
p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.text-justify {
    text-align: justify;
}

.inner-text-beautification p {
    font-size: 16px;
    line-height: 1.8;
    color: #34495e;
}

/* Lists */
ul,
ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

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

.journal-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.journal-list li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 18px;
}

/* Arrow Lists */
.arrow-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arrow-list li {
    position: relative;
    padding: 15px 15px 15px 35px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

.arrow-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.arrow-list li:before {
    content: '→';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-size: 18px;
    font-weight: bold;
}

.arrow-list li strong {
    color: #047857;
    font-weight: 600;
}

/* ===================================
   5. CARDS & PANELS
   =================================== */
.journal-card,
.content-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.journal-card:hover,
.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.content-card.bg-light {
    background: #f8f9fa;
}

/* Well Styles */
.well {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
}

.well-sm {
    padding: 20px;
}

/* ===================================
   6. EDITORIAL BOARD & PROFILES
   =================================== */
.editor-in-chief-section,
.editorial-members-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.editor_in_chief,
.editorial-member-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

.editor_in_chief:hover,
.editorial-member-card:hover {
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.name-ef h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.editor_in_cheif_label a {
    color: #10b981;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.member_profile_link {
    color: #047857;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.member_profile_link:hover {
    color: #10b981;
    text-decoration: underline;
}

.edit_text_justify span {
    display: block;
    margin-bottom: 5px;
    color: #34495e;
    font-size: 14px;
}

/* Profile Images */
.editor-in img,
.editorial-member-card img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===================================
   7. ARCHIVE & ARTICLE LISTS
   =================================== */
.archive-list,
.article-list {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.archive-item,
.article-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #047857;
    transition: all 0.3s ease;
}

.archive-item:hover,
.article-item:hover {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.article-authors {
    font-size: 14px;
    color: #34495e;
    font-style: italic;
}

/* ===================================
   8. BUTTONS & LINKS
   =================================== */
.btn,
button[type="submit"],
button[type="button"],
.header-btn,
.add-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-info,
.btn-primary,
.header-btn {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
}

.btn-info:hover,
.btn-primary:hover,
.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
}

.btn-warning {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #ffffff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* Link Styles */
a {
    color: #10b981;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #047857;
    text-decoration: underline;
}

/* ===================================
   9. FORMS & INPUTS
   =================================== */
.form-group {
    margin-bottom: 25px;
    width: 100%;
}

label,
.control-label {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

label i,
.control-label i {
    margin-right: 8px;
    color: #10b981;
}

label .red,
.control-label .red {
    color: #e74c3c;
    margin-left: 3px;
}

.form-control,
.form-cus,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
    width: 100%;
    height: 45px;
    min-height: 45px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-sizing: border-box;
    display: block;
}

textarea.form-control,
textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
    padding-top: 12px;
}

.form-control:focus,
.form-cus:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #95a5a6;
}

/* Select Dropdown */
select.form-control,
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Error Messages */
.text-danger_form_error,
.error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* ===================================
   10. ALERTS & MESSAGES
   =================================== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
}

.alert-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #ffffff;
}

.alert-warning {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    color: #2c3e50;
}

.alert-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #ffffff;
}

.flash-msg {
    font-weight: 500;
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   11. TABLES
   =================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

table thead {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
}

table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e8ed;
    color: #2c3e50;
}

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

table tbody tr:hover {
    background: #f8f9fa;
}

.table-bordered {
    border: 2px solid #e1e8ed;
}

.table-striped tbody tr:nth-child(even) {
    background: #f8f9fa;
}

/* ===================================
   12. BADGES & LABELS
   =================================== */
.badge,
.label {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.issn-badge {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 13px;
}

.frequency-badge {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e1e8ed;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 13px;
}

.new-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 13px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ===================================
   13. PAGINATION
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: #ffffff;
    color: #10b981;
    border: 2px solid #10b981;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    transform: translateY(-2px);
}

.pagination .active {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
}

/* ===================================
   14. BREADCRUMBS
   =================================== */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb li {
    display: inline;
    font-size: 14px;
}

.breadcrumb li+li:before {
    content: '/';
    padding: 0 10px;
    color: #95a5a6;
}

.breadcrumb a {
    color: #10b981;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #047857;
}

/* ===================================
   15. LOADING & SPINNERS
   =================================== */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #10b981;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

/* ===================================
   16. RESPONSIVE GRID SYSTEM
   =================================== */
.col-xs-1,
.col-xs-2,
.col-xs-3,
.col-xs-4,
.col-xs-5,
.col-xs-6,
.col-xs-7,
.col-xs-8,
.col-xs-9,
.col-xs-10,
.col-xs-11,
.col-xs-12,
.col-sm-1,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12 {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
    float: left;
}

.col-xs-12 {
    width: 100%;
}

.col-xs-11 {
    width: 91.66666667%;
}

.col-xs-10 {
    width: 83.33333333%;
}

.col-xs-9 {
    width: 75%;
}

.col-xs-8 {
    width: 66.66666667%;
}

.col-xs-7 {
    width: 58.33333333%;
}

.col-xs-6 {
    width: 50%;
}

.col-xs-5 {
    width: 41.66666667%;
}

.col-xs-4 {
    width: 33.33333333%;
}

.col-xs-3 {
    width: 25%;
}

.col-xs-2 {
    width: 16.66666667%;
}

.col-xs-1 {
    width: 8.33333333%;
}

/* ===================================
   17. UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 10px !important;
}

.mb-2 {
    margin-bottom: 20px !important;
}

.mb-3 {
    margin-bottom: 30px !important;
}

.mb-4 {
    margin-bottom: 40px !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 10px !important;
}

.mt-2 {
    margin-top: 20px !important;
}

.mt-3 {
    margin-top: 30px !important;
}

.mt-4 {
    margin-top: 40px !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 10px !important;
}

.p-2 {
    padding: 20px !important;
}

.p-3 {
    padding: 30px !important;
}

.p-4 {
    padding: 40px !important;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ===================================
   18. RESPONSIVE BREAKPOINTS
   =================================== */

/* Tablet (991px and below) */
@media (max-width: 991px) {
    .jrnl_body_main_title h3 {
        font-size: 36px;
    }

    h2,
    .section-title {
        font-size: 28px;
    }

    h3,
    .journal-subheading {
        font-size: 22px;
    }

    .editor-in,
    .gen-content,
    .jnl-content,
    .well {
        padding: 25px 20px;
    }

    .col-lg-1,
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-9,
    .col-lg-10,
    .col-lg-11,
    .col-lg-12,
    .col-md-1,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-10,
    .col-md-11,
    .col-md-12 {
        width: 100%;
        float: none;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    .jrnl-body {
        padding: 20px 0;
    }

    .jrnl_body_main_title h3 {
        font-size: 28px;
        letter-spacing: 1px;
    }

    h2,
    .section-title {
        font-size: 24px;
    }

    h3,
    .journal-subheading {
        font-size: 20px;
    }

    .editor-in,
    .gen-content,
    .jnl-content,
    .well {
        padding: 20px 15px;
    }

    .journal-card,
    .content-card {
        padding: 20px;
    }

    .col-sm-1,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12 {
        width: 100%;
        float: none;
    }

    .btn,
    button[type="submit"],
    .header-btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    table {
        font-size: 14px;
    }

    table thead th,
    table tbody td {
        padding: 10px;
    }
}

/* Small Mobile (576px and below) */
@media (max-width: 576px) {
    .jrnl_body_main_title h3 {
        font-size: 24px;
    }

    h2,
    .section-title {
        font-size: 20px;
    }

    h3,
    .journal-subheading {
        font-size: 18px;
    }

    .container {
        padding: 0 10px;
    }

    .editor-in,
    .gen-content,
    .jnl-content,
    .well {
        padding: 15px;
    }

    .journal-card,
    .content-card {
        padding: 15px;
    }

    .arrow-list li {
        padding: 12px 12px 12px 30px;
        font-size: 14px;
    }

    .col-xs-1,
    .col-xs-2,
    .col-xs-3,
    .col-xs-4,
    .col-xs-5,
    .col-xs-6,
    .col-xs-7,
    .col-xs-8,
    .col-xs-9,
    .col-xs-10,
    .col-xs-11,
    .col-xs-12 {
        width: 100%;
        float: none;
    }

    .form-group {
        padding: 0;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ===================================
   19. PRINT STYLES
   =================================== */
@media print {
    .jrnl-body {
        background: #ffffff;
    }

    .btn,
    .header-btn,
    .pagination,
    .breadcrumb {
        display: none;
    }

    .journal-card,
    .content-card {
        box-shadow: none;
        border: 1px solid #e1e8ed;
    }

    a {
        text-decoration: underline;
    }
}

/* ===================================
   20. ACCESSIBILITY
   =================================== */
:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #10b981;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===================================
   END OF GLOBAL STYLES
   =================================== */