/* Custom Navbar Styles */
.navbar-custom {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    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: 6rem;
    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: #003a70;
    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: #002f5f;
}

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

/* 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;
}