/* ========================================
   JOURNAL OF LUMBINI MEDICAL COLLEGE
   Light Theme CSS - BRICK RED EDITION (#981b1f)
   ======================================== */

/* ------------------------------
   GLOBAL LIGHT THEME STYLES
   ------------------------------ */
   
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9edf2 100%);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #2c3e50;
}

.container {
    max-width: 1280px;
}

/* ------------------------------
   HEADER & NAVIGATION
   ------------------------------ */
.main-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand img,
.navbar-logo img {
    max-height: 70px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover,
.navbar-logo img:hover {
    transform: scale(1.02);
}

/* Navigation links - FIXED HOVER with brick red */
.navbar-nav .nav-link {
    font-weight: 600;
    color: #1a2a3a !important;
    margin: 0 0.25rem;
    padding: 0.6rem 1rem !important;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: #981b1f !important;  /* Brick red theme */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(152, 27, 31, 0.3);
}

/* Dropdown menu (the horizontal box that appears below menu items) */
.navbar-nav .dropdown-menu {
    background: #981b1f !important;           /* Brick red background */
    border: none !important;
    border-radius: 12px !important;           /* Rounded corners */
    box-shadow: 0 8px 20px rgba(152, 27, 31, 0.25) !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.25rem !important;
}

/* Dropdown items (Current, Archives, etc.) */
.navbar-nav .dropdown-menu .dropdown-item {
    color: #ffffff !important;                /* White text */
    background: transparent !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Dropdown items on hover */
.navbar-nav .dropdown-menu .dropdown-item:hover {
    background: #7a1518 !important;           /* Darker brick red */
    color: #ffffff !important;
    padding-left: 1.8rem !important;          /* Slight indent effect */
}

/* Active dropdown item (if any) */
.navbar-nav .dropdown-menu .dropdown-item:active,
.navbar-nav .dropdown-menu .dropdown-item.active {
    background: #7a1518 !important;
    color: #ffffff !important;
}

/* Remove any greenish tint from dropdown toggle button when active */
.navbar-nav .nav-link.dropdown-toggle[aria-expanded="true"] {
    background: #981b1f !important;
    color: #ffffff !important;
    border-radius: 40px 40px 0 0 !important;
}

/* Special styling for "Make a Submission" - Brick red colors */
.navbar-nav .nav-item:last-child .nav-link,
.nav-item.nmi_type_submissions .nav-link {
    background: linear-gradient(135deg, #981b1f 0%, #7a1518 100%);
    color: #ffffff !important;
    padding: 0.6rem 1.2rem !important;
    margin-left: 0.5rem;
    box-shadow: 0 4px 12px rgba(152, 27, 31, 0.3);
    font-weight: 700;
}

.navbar-nav .nav-item:last-child .nav-link:hover,
.nav-item.nmi_type_submissions .nav-link:hover {
    background: linear-gradient(135deg, #7a1518 0%, #981b1f 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(152, 27, 31, 0.4);
}

/* User badge - Brick red */
.badge-light {
    background: linear-gradient(135deg, #981b1f, #7a1518);
    color: white;
    border-radius: 30px;
    padding: 0.25rem 0.6rem;
    margin-left: 0.3rem;
}

/* User dropdown link - Brick red accent */
.nav-item.nmi_type_user_dashboard .nav-link {
    background: #981b1f !important;
    color: #ffffff !important;
    border-radius: 40px;
    padding: 0.6rem 1rem !important;
}

.nav-item.nmi_type_user_dashboard .nav-link:hover {
    background: #7a1518 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(152, 27, 31, 0.3);
}

.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    animation: fadeInUp 0.2s ease;
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #981b1f, #7a1518);
    color: white;
    padding-left: 1.8rem;
}

/* ------------------------------
   HOMEPAGE ISSUE SECTION
   ------------------------------ */
.container-homepage-issue {
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.homepage-issue-current {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem !important;
    color: #981b1f;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.homepage-issue-identifier {
    font-size: 2.8rem !important;
    font-weight: 800;
    background: linear-gradient(135deg, #981b1f, #7a1518);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.25rem;
}

.homepage-issue-published {
    color: #7f8c8d;
    font-size: 1rem;
    border-bottom: 2px solid #981b1f20;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.issue-toc-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(95deg, #981b1f, #7a1518);
    border-image-slice: 1;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.article-summary {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
}

.article-summary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(152, 27, 31, 0.3);
}

.article-summary-authors {
    font-size: 0.85rem;
    color: #981b1f;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.article-summary-pages {
    font-size: 0.8rem;
    color: #95a5a6;
    font-weight: 500;
}

.article-summary-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.article-summary-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-summary-title a:hover {
    color: #981b1f;
}

/* PDF Button - Brick red */
.article-summary-galleys .btn-primary {
    background: #981b1f !important;
    color: #ffffff !important;
    border: none;
    border-radius: 40px;
    padding: 0.35rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.article-summary-galleys .btn-primary:hover {
    background: #7a1518 !important;
    color: #ffffff !important;
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(152, 27, 31, 0.4);
}

.text-center .btn {
    background: transparent;
    border: 2px solid #981b1f;
    color: #981b1f;
    border-radius: 50px;
    padding: 0.6rem 2rem;
    font-weight: 700;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.text-center .btn:hover {
    background: linear-gradient(135deg, #981b1f, #7a1518);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(152, 27, 31, 0.3);
}

/* ------------------------------
   ANIMATIONS
   ------------------------------ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------
   RESPONSIVE TWEAKS
   ------------------------------ */
@media (max-width: 768px) {
    .container-homepage-issue {
        padding: 1.5rem;
        border-radius: 24px;
    }
    
    .homepage-issue-identifier {
        font-size: 1.8rem !important;
    }
    
    .article-summary {
        padding: 1rem;
    }
    
    .article-summary-title {
        font-size: 1rem;
    }
}

/* ------------------------------
   MODAL STYLES (Light)
   ------------------------------ */
.modal-content {
    background: #ffffff;
    border: none;
    border-radius: 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal .btn-primary {
    background: linear-gradient(135deg, #981b1f, #7a1518);
    border: none;
    border-radius: 40px;
    padding: 0.6rem 1.5rem;
}

/* ------------------------------
   SCROLLBAR (Optional - kept original gradient)
   ------------------------------ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

/* ========================================
   COMPLETE FOOTER CSS - brick red accent line
   ======================================== */

/* Main Footer Container */
.site-footer {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    margin-top: 4rem;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #981b1f, #c62828, #981b1f);
}

/* Sidebar Section (Partner Logos) */
.site-footer-sidebar {
    background: rgba(15, 23, 42, 0.6);
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer partner logos - Horizontal flow on ALL screens */
.site-footer-sidebar .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center;
    align-items: flex-start;      /* Align items at top */
    gap: 1.5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
}

.site-footer-sidebar .row > * {
    flex-direction: row !important;
}

/* Each logo block - CRITICAL: prevents full width on mobile */
.site-footer-sidebar .pkp_block {
    background: transparent;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: auto !important;        /* Override any forced width */
    max-width: none !important;    /* Remove max-width limits */
    flex: 0 0 auto !important;     /* Never grow, never shrink to full width */
    display: block !important;     /* Keep as block but flex handles layout */
}

/* Logo images */
.site-footer-sidebar .pkp_block img {
    max-height: 45px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;                /* Center image inside block */
}

/* Text labels under logos (if any) */
.site-footer-sidebar .pkp_block .content p,
.site-footer-sidebar .pkp_block .content {
    text-align: center;
    margin: 0;
}

.site-footer-sidebar .pkp_block:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Mobile: STILL horizontal flow, just smaller gaps */
@media (max-width: 768px) {
    .site-footer-sidebar .row {
        gap: 1rem 1.25rem;
        justify-content: center;
    }
    
    .site-footer-sidebar .pkp_block {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
    }
    
    .site-footer-sidebar .pkp_block img {
        max-height: 35px;
    }
}

@media (max-width: 480px) {
    .site-footer-sidebar .row {
        gap: 0.75rem 1rem;
    }
    
    .site-footer-sidebar .pkp_block img {
        max-height: 30px;
    }
}

/* Top Row - Three columns */
.footer-top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* Centers the group of boxes */
    gap: 2rem;                /* Space between boxes */
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Each box - content left-aligned, flexible width */
.footer-box.journal-info,
.footer-box.credits-info {
    flex: 0 1 auto;           /* Don't grow, shrink if needed */
    min-width: 220px;         /* Minimum width before wrapping */
    text-align: left;         /* Content inside stays left-aligned */
}

.ojs-branding-wrapper {
    flex: 1;
    min-width: 120px;
    text-align: right;
}

.footer-box-title {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.footer-box-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;                  /* Left-aligned underline */
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #c62828, #981b1f);
    border-radius: 2px;
}


.journal-info p, .credits-info p {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.journal-info strong, .credits-info strong {
    color: #ffffff;
    font-weight: 600;
    min-width: 65px;
    display: inline-block;
}

.journal-info a {
    color: #ef9a9a;
    text-decoration: none;
}

.journal-info a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.custom-ojs-brand {
    max-height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.custom-ojs-brand:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Bottom Row - License Info */
.footer-bottom-row {
    width: 100%;
}

.license-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.license-text {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
    text-align: center;
}

.license-text a {
    color: #ef9a9a;
    text-decoration: none;
}

.license-text a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Hide duplicate OJS logo */
.site-footer-content .col-md-2,
.site-footer-content .col-md-2.align-self-center.text-right,
.col-md-2.align-self-center.text-right,
.site-footer-content .col-md-2 .footer-brand-image,
.footer-brand-image {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .site-footer-sidebar {
        padding: 1rem 0.5rem;
    }
    
    .site-footer-sidebar .row {
        gap: 0.5rem 0.75rem;
    }
    
    .site-footer-sidebar .pkp_block img {
        max-height: 35px;
    }
    
    .site-footer-content {
        padding: 1.5rem;
    }
    
    .footer-top-row {
        flex-direction: column;
        align-items: center;   /* Centers each box horizontally when stacked */
        gap: 1.5rem;
    }
    
    .footer-box.journal-info,
    .footer-box.credits-info {
        width: 100%;
        max-width: 320px;      /* Optional: limits width on mobile */
        text-align: left;      /* Keep left-aligned */
    }
    
    .footer-box-title::after {
        left: 0;               /* Underline stays left on mobile */
    }
    
    .license-text {
        font-size: 0.75rem;
    }
    
    .ojs-branding-wrapper {
        text-align: center;
    }
    
    .site-footer-content .col-md-2,
    .footer-brand-image {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .site-footer-sidebar .pkp_block img {
        max-height: 30px;
    }
}

.site-footer-sidebar .pkp_block:hover {
    filter: drop-shadow(0 0 6px rgba(198, 40, 40, 0.3));
}

.site-footer a {
    transition: all 0.2s ease;
}

/* ========================================
   ARCHIVES PAGE STYLES - Brick red
   ======================================== */

.page-archives {
    padding: 2rem 0 3rem;
}

.page-archives-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.page-archives-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #981b1f, #7a1518);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.page-archives-header h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #981b1f, #c62828);
    border-radius: 3px;
}

.issue-summary {
    background: #ffffff;
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
    height: 100%;
}

.issue-summary:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(152, 27, 31, 0.12);
}

.issue-summary .card-img-top {
    border-radius: 20px 20px 0 0;
    object-fit: cover;
    width: 100%;
    height: 200px;
    transition: transform 0.4s ease;
}

.issue-summary:hover .card-img-top {
    transform: scale(1.02);
}

.issue-summary .card-body {
    padding: 1.25rem;
    background: #ffffff;
}

.issue-summary-series {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.issue-summary-series a {
    color: #981b1f;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.issue-summary-series a:hover {
    color: #7a1518;
    text-decoration: underline;
}

.issue-summary-date {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.issue-summary-title {
    font-size: 0.8rem;
    color: #981b1f;
    font-weight: 600;
    margin-bottom: 0;
    background: #fef0f0;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.issue-summary .card-text p {
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .page-archives {
        padding: 1rem 0 2rem;
    }
    
    .page-archives-header h1 {
        font-size: 2rem;
    }
    
    .issue-summary .card-img-top {
        height: 160px;
    }
    
    .issue-summary-series a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .issue-summary .card-img-top {
        height: 140px;
    }
    
    .issue-summary .card-body {
        padding: 1rem;
    }
    
    .issue-summary-series a {
        font-size: 0.85rem;
    }
}

.page-archives .row {
    margin-bottom: 0.5rem;
}

.page-archives .row [class*="col-"] {
    margin-bottom: 1rem;
}

/* ========================================
   EDITORIAL POLICY PAGE - Brick red
   ======================================== */

.page-custom {
    padding: 2rem 0 3rem;
}

.page-custom .page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-custom .page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #981b1f, #7a1518);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.page-custom .page-header h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #981b1f, #c62828);
    border-radius: 3px;
}

.page-custom .page-content {
    background: #ffffff;
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    margin-top: 1rem;
}

.page-custom .page-content p {
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.page-custom .page-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #981b1f;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(152, 27, 31, 0.15);
}

.page-custom .page-content div h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #981b1f;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(152, 27, 31, 0.15);
}

.page-custom .page-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #7a1518;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-custom .page-content ul,
.page-custom .page-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.8rem;
}

.page-custom .page-content li {
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.page-custom .page-content ul li {
    list-style-type: disc;
}

.page-custom .page-content ol li {
    list-style-type: decimal;
}

.page-custom .page-content ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.page-custom .page-content ul ul li {
    list-style-type: circle;
}

.page-custom .page-content a {
    color: #981b1f;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(152, 27, 31, 0.2);
}

.page-custom .page-content a:hover {
    color: #c62828;
    border-bottom-color: #c62828;
}

.page-custom .page-content em small {
    color: #7f8c8d;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.page-custom .page-content div[id] {
    scroll-margin-top: 80px;
}

.page-custom .page-content strong {
    color: #1a2a3a;
    font-weight: 700;
}

@media (max-width: 768px) {
    .page-custom {
        padding: 1rem 0 2rem;
    }
    
    .page-custom .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-custom .page-content {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .page-custom .page-content h3 {
        font-size: 1.3rem;
    }
    
    .page-custom .page-content p,
    .page-custom .page-content li {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .page-custom .page-content {
        padding: 1.25rem;
    }
    
    .page-custom .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-custom .page-content h3 {
        font-size: 1.2rem;
    }
}

.page-custom .page-content {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.page-custom .page-content > p:first-of-type {
    font-size: 1.05rem;
    color: #981b1f;
    font-weight: 500;
}

.page-custom .page-content #fees p,
.page-custom .page-content #openaccess p {
    background: rgba(152, 27, 31, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border-left: 3px solid #981b1f;
}

/* Widen editorial policy page */
.page-custom .col-md-8 {
    width: 90% !important;
    flex: 0 0 90% !important;
    max-width: 90% !important;
}

@media (min-width: 992px) {
    .page-custom .col-md-8 {
        width: 85% !important;
        flex: 0 0 85% !important;
        max-width: 85% !important;
    }
}

/* ========================================
   SUBMISSIONS / AUTHOR GUIDELINES - Brick red
   ======================================== */

.page-submissions {
    padding: 2rem 0 3rem;
}

.page-submissions .page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-submissions .page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #981b1f, #7a1518);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.page-submissions .page-header h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #981b1f, #c62828);
    border-radius: 3px;
}

.page-submissions .page-content {
    background: #ffffff;
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    margin-top: 1rem;
}

.page-submissions .alert.alert-primary {
    background: linear-gradient(135deg, #981b1f, #7a1518);
    border: none;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(152, 27, 31, 0.2);
    text-align: center;
}

.page-submissions .alert.alert-primary a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.page-submissions .alert.alert-primary a:hover {
    border-bottom-color: #ffffff;
    text-decoration: none;
}

.page-submissions .page-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #981b1f;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(152, 27, 31, 0.15);
    position: relative;
}

.page-submissions .page-content h2:first-of-type {
    margin-top: 0;
}

.page-submissions .btn-edit-link {
    background: #eef2f6;
    color: #981b1f;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-left: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-submissions .btn-edit-link:hover {
    background: #981b1f;
    color: #ffffff;
}

.page-submissions .page-content p {
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.page-submissions .page-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #7a1518;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-submissions .page-content ul,
.page-submissions .page-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.8rem;
}

.page-submissions .page-content li {
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.page-submissions .page-content ul li {
    list-style-type: disc;
}

.page-submissions .page-content ol li {
    list-style-type: decimal;
}

.page-submissions .page-content li.show {
    list-style-type: inherit;
}

.page-submissions .page-content a {
    color: #981b1f;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(152, 27, 31, 0.2);
}

.page-submissions .page-content a:hover {
    color: #c62828;
    border-bottom-color: #c62828;
}

.page-submissions #topMenu {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid #eef2f6;
}

.page-submissions #topMenu a {
    border-bottom: none;
}

.page-submissions a[href="#top"] {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #981b1f;
    margin: 0.5rem 0;
    border-bottom: none;
}

.page-submissions a[href="#top"]:hover {
    color: #c62828;
}

.page-submissions .page-content strong {
    color: #1a2a3a;
    font-weight: 700;
}

.page-submissions .page-content em small,
.page-submissions .page-content p em {
    color: #7f8c8d;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.page-submissions .page-content div[id] {
    scroll-margin-top: 80px;
}

.page-submissions #noBr {
    background: transparent;
}

.page-submissions .page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.page-submissions .page-content th,
.page-submissions .page-content td {
    border: 1px solid #e2e6ea;
    padding: 0.75rem;
    text-align: left;
}

.page-submissions .page-content th {
    background: #fef0f0;
    color: #981b1f;
    font-weight: 700;
}

.page-submissions .submissions-checklist,
.page-submissions .submissions-copyright-notice,
.page-submissions .submissions-privacy-statement {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f6;
}

.page-submissions #topMenu ol,
.page-submissions #topMenu ul {
    margin-bottom: 0.25rem;
}

.page-submissions #topMenu > li {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #981b1f;
}

.page-submissions #topMenu ol li,
.page-submissions #topMenu ul li {
    font-weight: normal;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .page-submissions {
        padding: 1rem 0 2rem;
    }
    
    .page-submissions .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-submissions .page-content {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .page-submissions .page-content h2 {
        font-size: 1.4rem;
    }
    
    .page-submissions .page-content h3 {
        font-size: 1.2rem;
    }
    
    .page-submissions .page-content p,
    .page-submissions .page-content li {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .page-submissions #topMenu {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .page-submissions .page-content {
        padding: 1.25rem;
    }
    
    .page-submissions .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-submissions .page-content h2 {
        font-size: 1.2rem;
    }
    
    .page-submissions .alert.alert-primary {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

.page-submissions .col-md-8 {
    width: 90% !important;
    flex: 0 0 90% !important;
    max-width: 90% !important;
}

@media (min-width: 992px) {
    .page-submissions .col-md-8 {
        width: 85% !important;
        flex: 0 0 85% !important;
        max-width: 85% !important;
    }
}

/* ========================================
   ABOUT THE JOURNAL PAGE - Brick red
   ======================================== */

.page-about {
    padding: 2rem 0 3rem;
}

.page-about .page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-about .page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #981b1f, #7a1518);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.page-about .page-header h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #981b1f, #c62828);
    border-radius: 3px;
}

.page-about .page-content {
    background: #ffffff;
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    margin-top: 1rem;
}

.page-about .page-content p {
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.page-about .page-content strong {
    color: #1a2a3a;
    font-weight: 700;
}

.page-about .page-content a {
    color: #981b1f;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(152, 27, 31, 0.2);
}

.page-about .page-content a:hover {
    color: #c62828;
    border-bottom-color: #c62828;
}

.page-about .page-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.8rem;
}

.page-about .page-content li {
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

.page-about .page-content ul li {
    list-style-type: disc;
}

.page-about .page-content li.show {
    list-style-type: disc;
}

.page-about .btn-edit-link {
    background: #eef2f6;
    color: #981b1f;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-top: 1.5rem;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-about .btn-edit-link:hover {
    background: #981b1f;
    color: #ffffff;
}

@media (max-width: 768px) {
    .page-about {
        padding: 1rem 0 2rem;
    }
    
    .page-about .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-about .page-content {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .page-about .page-content p,
    .page-about .page-content li {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .page-about .page-content {
        padding: 1.25rem;
    }
    
    .page-about .page-header h1 {
        font-size: 1.5rem;
    }
}

.page-about .col-md-8 {
    width: 90% !important;
    flex: 0 0 90% !important;
    max-width: 90% !important;
}

@media (min-width: 992px) {
    .page-about .col-md-8 {
        width: 85% !important;
        flex: 0 0 85% !important;
        max-width: 85% !important;
    }
}

/* ========================================
   CONTACT PAGE STYLES - Brick red
   ======================================== */

.page-contact {
    padding: 2rem 0 3rem;
}

.page-contact .page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-contact .page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #981b1f, #7a1518);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.page-contact .page-header h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #981b1f, #c62828);
    border-radius: 3px;
}

.page-contact .page-content {
    background: #ffffff;
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    margin-top: 1rem;
}

.page-contact .contact-section {
    text-align: center;
}

.page-contact .address {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #2c3e50;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-contact .contact-primary,
.page-contact .contact-support {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.page-contact .contact-primary:hover,
.page-contact .contact-support:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(152, 27, 31, 0.08);
    border-color: rgba(152, 27, 31, 0.2);
}

.page-contact .contact-primary h2,
.page-contact .contact-support h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #981b1f;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(152, 27, 31, 0.15);
    display: inline-block;
}

.page-contact .contact-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #7a1518;
    margin-bottom: 0.5rem;
}

.page-contact .contact-affiliation {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.page-contact .contact-phone {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.page-contact .contact-phone .label {
    font-weight: 700;
    color: #981b1f;
    margin-right: 0.5rem;
}

.page-contact .contact-phone .value {
    color: #2c3e50;
}

.page-contact .contact-email {
    margin-top: 0.5rem;
}

.page-contact .contact-email a {
    color: #981b1f;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(152, 27, 31, 0.2);
    font-size: 0.95rem;
}

.page-contact .contact-email a:hover {
    color: #c62828;
    border-bottom-color: #c62828;
}

.page-contact .btn-edit-link {
    background: #eef2f6;
    color: #981b1f;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-top: 1rem;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-contact .btn-edit-link:hover {
    background: #981b1f;
    color: #ffffff;
}

@media (max-width: 768px) {
    .page-contact {
        padding: 1rem 0 2rem;
    }
    
    .page-contact .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-contact .page-content {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .page-contact .address {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .page-contact .contact-primary h2,
    .page-contact .contact-support h2 {
        font-size: 1.2rem;
    }
    
    .page-contact .contact-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-contact .page-content {
        padding: 1.25rem;
    }
    
    .page-contact .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-contact .contact-primary,
    .page-contact .contact-support {
        padding: 1rem;
    }
}

.page-contact .col-md-6 {
    width: 90% !important;
    flex: 0 0 90% !important;
    max-width: 90% !important;
}

@media (min-width: 992px) {
    .page-contact .col-md-6 {
        width: 70% !important;
        flex: 0 0 70% !important;
        max-width: 70% !important;
    }
}