/* Custom Navbar Styles */
.navbar-custom {
    background: #953f31;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 10px 17px !important;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-custom .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.navbar-custom .nav-link i {
    margin-right: 8px;
    font-size: 0.9em;
}

/* Dropdown Styles */
.navbar-custom .dropdown-menu {
    background: #2c3e50;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    min-width: 220px;
}

.navbar-custom .dropdown-item {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 2px 8px;
    width: calc(100% - 16px);
}

.navbar-custom .dropdown-item:hover {
    background: #3498db;
    color: #fff;
    transform: translateX(5px);
}

.navbar-custom .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* Active Menu Item */
.navbar-custom .nav-link.active {
    background: #3498db;
    color: #fff !important;
}

/* Mega Menu (if needed) */
.navbar-custom .mega-dropdown {
    position: static !important;
}

.navbar-custom .mega-dropdown .dropdown-menu {
    width: 100%;
    padding: 20px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        background: #2c3e50;
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }
    
    .navbar-custom .dropdown-menu {
        background: rgba(255,255,255,0.05);
        box-shadow: none;
        margin-left: 20px;
    }
}

/* Animation for dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-custom .dropdown-menu {
    animation: slideDown 0.3s ease forwards;
}


/* ===============================
   BASE DYNAMIC PAGE STYLES
   =============================== */

.dynamic-page-content {
    max-width: 1100px;
    margin: auto;
    margin-top: 1rem;
    padding: 30px 15px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #222;
}

/* Remove empty paragraphs from CKEditor */
.dynamic-page-content p:empty {
    display: none;
}

/* Paragraphs */
.dynamic-page-content p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 14px;
    text-align: left;
}

/* Headings (Sections like Aims, Ethics, OA, etc.) */
.dynamic-page-content h2 {
    font-size: 22px;
    margin-top: 35px;
    margin-bottom: 12px;
    color: #953f31;
    border-left: 4px solid #003a70;
    padding-left: 10px;
}

/* Links */
.dynamic-page-content a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

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

/* External link indicator */
.dynamic-page-content a[target="_blank"]::after {
    content: " ↗";
    font-size: 12px;
}

/* Ordered lists (Advertising Policy etc.) */
.dynamic-page-content ol {
    padding-left: 22px;
    margin: 15px 0;
}

.dynamic-page-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Images (future-safe) */
.dynamic-page-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
}

/* ===============================
   ABOUT US PAGE ONLY STYLES
   (slug: about-us)
   =============================== */

.page-about-us .dynamic-page-content {
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
}

/* Intro paragraph emphasis */
.page-about-us .dynamic-page-content p:first-of-type {
    font-size: 17px;
    font-weight: 500;
}



/* ===============================
   EDITORIAL BOARD SECTION
   =============================== */

/* Page title */
.dynamic-page-content h1 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #953f31;
}

/* Section titles (Executive Editor, Associate Editors etc.) */
.dynamic-page-content h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #953f31;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 6px;
border-left-color: #953f31;
}

/* Editor name */
.dynamic-page-content h3 {
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 6px;
    color: #111;
}

/* Editor profile image */
.dynamic-page-content img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    /*border-radius: 50%;*/
    border: 3px solid #003a70;
    margin: 15px 0 5px 0;
}

/* Editor details text */
.dynamic-page-content h3 + p,
.dynamic-page-content h3 + p + p,
.dynamic-page-content h3 + p + p + p,
.dynamic-page-content h3 + p + p + p + p {
    margin-bottom: 4px;
    font-size: 15px;
}

/* Group editor blocks visually */
.dynamic-page-content img + h3 {
    margin-top: 10px;
}

/* Email links */
.dynamic-page-content a[href^="mailto:"] {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    color: #0056b3;
}

/* Divider between editors */
.dynamic-page-content a[href^="mailto:"] + h2,
.dynamic-page-content a[href^="mailto:"] + p + img {
    margin-top: 30px;
}

/* Improve spacing between editor entries */
.dynamic-page-content img + h3 + p:last-of-type {
    margin-bottom: 25px;
}

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

@media (max-width: 768px) {
    .dynamic-page-content img {
        width: 110px;
        height: 110px;
    }

    .dynamic-page-content h1 {
        font-size: 26px;
    }

    .dynamic-page-content h2 {
        font-size: 20px;
    }
}



/* Articles Styling */
.article-type-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-type-original {
    background-color: #e3f2fd;
    color: #1565c0;
}

.article-type-review {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.article-type-case {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* DOI styling */
.doi-link {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
}

.doi-link:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Authors styling */
.authors-list {
    color: #555;
    font-style: italic;
}

/* Article cards */
.article-card {
    border-left: 4px solid #007bff;
}

.article-card.featured {
    border-left-color: #ffc107;
}

.top-social-bar {
    z-index: 99999;
}

.top-social-bar a i {
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.top-social-bar a:hover i {
    color: #0d6efd;
    transform: translateY(-2px);
}

/* Footer Styles */
footer a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

footer .list-unstyled li {
    transition: all 0.3s ease;
}

footer .list-unstyled li:hover {
    padding-left: 5px;
}

/* Page Content Styles */
.whitespace-pre-line {
    white-space: pre-line;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-content ul li,
.page-content ol li {
    margin-bottom: 0.5rem;
}

.page-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #7f8c8d;
}

.page-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.page-content table th,
.page-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.page-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.page-content .alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.375rem;
}

.page-content .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.page-content .badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

/* Admin Styles */
.sortable-item {
    transition: background-color 0.3s ease;
}

.sortable-item.sortable-ghost {
    opacity: 0.5;
}

.child-item {
    border-left: 3px solid #6c757d;
}


 #article-submission-section {
            min-height: calc(100vh - 80px);
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 40px 15px;
            margin-top: 2.5rem;
        }

        #compact-article-form {
            max-width: 600px;
            margin: 0 auto;
            padding: 30px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border-top: 5px solid #2c3e50;
        }

        .form-header-compact {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #eaeaea;
        }

        .form-title-compact {
            color: #2c3e50;
            font-weight: 700;
            font-size: 1.8rem;
            margin-bottom: 10px;
        }

        .form-subtitle-compact {
            color: #4a6491;
            font-size: 0.95rem;
        }

        .form-group-compact {
            margin-bottom: 20px;
        }

        .form-label-compact {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
            font-size: 0.9rem;
        }

        .form-input-compact {
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            padding: 12px 15px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            width: 100%;
        }

        .form-input-compact:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
            outline: none;
        }

        .file-upload-wrapper {
            border: 2px dashed #d1d5db;
            border-radius: 8px;
            padding: 25px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f8fafc;
        }

        .file-upload-wrapper:hover {
            border-color: #3498db;
            background: #f0f9ff;
        }

        .file-upload-icon {
            font-size: 2.5rem;
            color: #4a6491;
            margin-bottom: 10px;
        }

        .file-upload-text {
            color: #2c3e50;
            font-weight: 500;
            margin-bottom: 5px;
        }

        .file-upload-hint {
            color: #6b7280;
            font-size: 0.85rem;
        }

        .file-name-display {
            margin-top: 10px;
            padding: 8px 12px;
            background: #e8f4fd;
            border-radius: 5px;
            font-size: 0.85rem;
            color: #2c3e50;
        }

        .form-buttons-compact {
            display: flex;
            gap: 15px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .btn-submit-compact {
            background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            flex: 1;
            min-width: 140px;
        }

        .btn-submit-compact:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2);
        }

        .btn-draft-compact {
            background: #f8f9fa;
            color: #2c3e50;
            border: 2px solid #e0e0e0;
            padding: 12px 30px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            flex: 1;
            min-width: 140px;
        }

        .btn-draft-compact:hover {
            background: #e9ecef;
            border-color: #3498db;
        }

        .required-star {
            color: #e74c3c;
            margin-left: 3px;
        }

        .message-alert {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 25px;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            #compact-article-form {
                padding: 25px 20px;
                margin: 0 15px;
            }
            
            .form-title-compact {
                font-size: 1.5rem;
            }
            
            .form-buttons-compact {
                flex-direction: column;
            }
        }

        @media (max-width: 480px) {
            #compact-article-form {
                padding: 20px 15px;
            }
            
            .form-input-compact {
                padding: 10px 12px;
                font-size: 0.9rem;
            }
            
            .btn-submit-compact,
            .btn-draft-compact {
                padding: 10px 20px;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 350px) {
            #article-submission-section {
                padding: 20px 10px;
            }
            
            #compact-article-form {
                padding: 15px 12px;
                margin: 0 8px;
            }
            
            .form-title-compact {
                font-size: 1.3rem;
            }
            
            .form-subtitle-compact {
                font-size: 0.85rem;
            }
        }


/* Custom Navbar Styles */
.navbar-custom {
    background: #953f31 ;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 10px 17px !important;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-custom .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.navbar-custom .nav-link i {
    margin-right: 8px;
    font-size: 0.9em;
}

/* Dropdown Styles */
.navbar-custom .dropdown-menu {
    background: #2c3e50;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    min-width: 220px;
}

.navbar-custom .dropdown-item {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 2px 8px;
    width: calc(100% - 16px);
}

.navbar-custom .dropdown-item:hover {
    background: #3498db;
    color: #fff;
    transform: translateX(5px);
}

.navbar-custom .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* Active Menu Item */
.navbar-custom .nav-link.active {
    background: #3498db;
    color: #fff !important;
}

/* Mega Menu (if needed) */
.navbar-custom .mega-dropdown {
    position: static !important;
}

.navbar-custom .mega-dropdown .dropdown-menu {
    width: 100%;
    padding: 20px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        background: #2c3e50;
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }
    
    .navbar-custom .dropdown-menu {
        background: rgba(255,255,255,0.05);
        box-shadow: none;
        margin-left: 20px;
    }
}

/* Animation for dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-custom .dropdown-menu {
    animation: slideDown 0.3s ease forwards;
}