/* JDownloads CSS Variables */
:root {
    --jd-gold: #f1b008;
    --jd-gold-hover: #d99b07;
}

[data-bs-theme="light"] {
    --jd-gold: #c98f06;
    --jd-gold-hover: #a67705;
}

/* CALL-TO-ACTION */
body div#t4-finance div.moduletable.cta {
    padding: 0px;
    margin: 0px;
    border: none;
    border-radius: 0px;
}
body div#t4-finance div.cta {
	padding:10px 0px;
	background-color:#f1b008;
;
	border:2px solid rgba(0,0,0,0.05);
	color:#ffffff;
	overflow:hidden;
	box-shadow:0 4px 10px rgba(0, 0, 0, 0.6);
	-webkit-box-shadow:0 4px 10px rgba(0, 0, 0, 0.6);
	-moz-box-shadow:0 4px 10px rgba(0,0,0,.6);
}
body div#t4-finance div.cta div.custom h2 {
	color:rgba(0,0,0,.8);
	font-weight:500;
    padding: 20px 0px 0px 25px;
	margin:0px;
	text-align:left;
	letter-spacing: normal;
}

/* CTA Button */
body div#t4-finance div.cta div.custom a.btn {
	vertical-align:middle;
    margin-top: 8px;
    border: 2px solid rgba(0, 0, 0, .8);
    color: rgba(0, 0, 0, .8);
	--t4-btn-bg: rgba(0,0,0,0);
	--t4-btn-hover-bg: rgba(0,0,0,.2);
	--t4-btn-hover-color: rgba(0,0,0,0);
}
body div#t4-finance div.cta div.custom a.btn span {
    color: #000000;
}
body div.cta div.custom a.btn:link,
body div.cta div.custom a.btn:visited {
	border:2px solid rgba(0,0,0,.8);
	color:rgba(0,0,0,.8);
}
body div.cta div.custom a.btn:hover,
body div.cta div.custom a.btn:active,
body div.cta div.custom a.btn:focus {
	border:2px solid rgba(0,0,0,1);
	color:#f1b008;
	background-color:rgba(0,0,0,.2);
}
body div.cta div.custom a.btn i.fa {
	margin-right:10px;
	font-size:26px;
}
body div.cta div.custom a.btn span {
	display:inline-block;
	line-height:22px;
	font-size:22px;
}

/* Nav Icons */
body ul.nav a.nav-link img.navicon {
    border-radius: 0px;
    margin-right: 7px;
}
body nav.navbar ul.nav li.nav-item:first-child a.nav-link {
    margin-right: 18px;
}





/* jDownloads Modern Card Styling */
.jd-categories-wrapper {
    padding: 30px 0;
}
.cat-card {
    margin: 20px auto 20px auto;
}
.cat-card .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: visible; /* Allow tooltips to show outside card */
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(241, 176, 8, 0.3);
}
.cat-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(241, 176, 8, 0.2) !important;
    border-color: rgba(241, 176, 8, 0.6);
}

/* Force jDownloads images to cover the card top */
.cat-card .card-img-top {
    height: 150px;
    background-color: #000000;
    overflow: hidden; /* Keep overflow hidden only for images */
}
.cat-card .card-img-top a {
    display: block;
    width: 100%;
    height: 100%;
}
.cat-card .card-img-top img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
	border: none !important;
	border-radius: 0px;
}

/* Icon styling */
.cat-card .fa {
	color: #f1b008;
}
.jd_cats_subheader {
	float: left;
    margin-bottom: 0px;
    width: 100%;
    clear: both;
	background-color: transparent;
}
div.cat-card div.card div.card-body {
	padding: 0px 15px 5px 15px;
}
div.cat-card div.card div.card-body div.card-text {
	font-size: 10px;
}

div.cat-card div.card div.card-body .access {
  font-size: 10px;
}
div.cat-card div.card div.card-body ul.tags {
	margin: 0px;
}
div.cat-card div.card div.card-body ul.tags li a {
	background-color:#f1b008;
	color:#000000;
}
a.badge {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  border-radius: 12px;
  padding: 5px;
}
div.jd-item-page div.cat-card div.card div.card-footer {
  padding: 5px 10px 5px 10px;
}
div.jd-item-page div.cat-card div.card div.card-footer div.small.text-muted span {
  font-size: 10px;
  padding: 5px;
}




/* Sort Button Styling */
#jd-sort-filters {
	margin: 10px 0px 0px 0px;
}
#jd-sort-filters .btn {
	padding: 10px;
	line-height: 12px;
	font-size: 12px;
	color: #f1b008;
	background-color: #000000;
}
#jd-sort-filters .btn.active {
    background-color: #f1b008;
    color: #000;
    border-color: #f1b008;
}
#jd-sort-filters .btn.active {
	background-color: #f1b008;
	color: #000;
	border-color: #f1b008;
}
#jd-sort-filters .btn.btn-outline-secondary {
  border-color: #f1b008;

}


















/* ========================================
   JDOWNLOADS MODULE MODERNIZATION
   ======================================== */

/* Generic JDownloads Module Cards */
.jd-module-card {
    margin-bottom: 20px;
}

.jd-module-card .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(241, 176, 8, 0.3);
    position: relative;
}

.jd-module-card .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(241, 176, 8, 0.2) !important;
    border-color: rgba(241, 176, 8, 0.6);
}

.jd-module-card .card-body {
    padding: 0px 15px 10px 15px;
}

.jd-module-card .card-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 10px 0px 5px 0px;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
}

.jd-module-card .card-title a {
    color: #f1b008;
    text-decoration: none;
}

.jd-module-card .card-title a:hover {
    color: #ffc107;
    text-decoration: underline;
}

/* Module Icons */
.jd-icon {
    color: #f1b008;
    margin-right: 6px;
}

.jd-meta-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 15px;
}

.jd-meta-item:last-child {
    margin-right: 0;
}

.jd-meta-item .jd-icon {
    font-size: 0.7rem;
}



/* CSS-only Tooltips */
.jd-tooltip {
    position: relative;
    cursor: help;
    display: inline-block;
}

.jd-module-card .jd-tooltip[data-tooltip]::after,
.jd-tooltip[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 6px 10px;
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid #f1b008;
    color: #fff;
    font-size: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease 1s, transform 0.2s ease; /* 1s delay on fade-out */
    z-index: 1000;
    text-transform: none !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    font-style: normal !important;
}

.jd-module-card .jd-tooltip:hover::after,
.jd-tooltip:hover::after {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease; /* No delay on fade-in */
}

/* Light theme tooltip */
[data-bs-theme="light"] .jd-module-card .jd-tooltip[data-tooltip]::after,
[data-bs-theme="light"] .jd-tooltip[data-tooltip]::after {
    background-color: rgba(255, 255, 255, 0.98);
    color: #000;
    border-color: #d89e07;
}




/* File Type Icons - Small and unobtrusive at top-left */
.jd-file-type-icon {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 1.2rem;
    color: rgba(128, 128, 128, 0.6);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
}

/* File type icon tooltip appears below */
.jd-file-type-icon.jd-tooltip[data-tooltip]::after {
    bottom: auto;
    top: 100%;
    transform: translateX(-50%) translateY(5px);
}

.jd-file-type-icon.jd-tooltip:hover::after {
    transform: translateX(-50%) translateY(8px);
}

.jd-module-card .card:hover .jd-file-type-icon {
    color: rgba(241, 176, 8, 0.8);
}

/* Download Count Badge - top-right */
.jd-download-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    z-index: 10;
    background-color: #f1b008 !important;
    color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.jd-download-badge i {
    margin-right: 4px;
}

.jd-download-badge.jd-tooltip[data-tooltip]::after {
    bottom: auto;
    top: 100%;
    transform: translateX(-50%) translateY(5px);
}

.jd-download-badge.jd-tooltip:hover::after {
    transform: translateX(-50%) translateY(8px);
}

/* Rating Badge - top-right with star ratings */
.jd-rating-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 10;
    background-color: #f1b008 !important;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.jd-rating-badge .jd-stars {
    display: inline-block;
    color: #fff;
}

.jd-rating-badge .jd-stars i {
    font-size: 0.85em;
    margin: 0 1px;
}

.jd-rating-badge .jd-votes {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-left: 4px;
}

/* Numerical Counter Badge - circular, centered above title */
.jd-counter-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: -30px auto 2px;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    background-color: #f1b008 !important;
    color: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 5;
    position: relative;
}

.jd-counter-hash {
    position: absolute;
    top: 2px;
    left: 6px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
}

.jd-download-badge.jd-tooltip[data-tooltip]::after {
    bottom: auto;
    top: 100%;
    transform: translateX(-50%) translateY(5px);
}

.jd-download-badge.jd-tooltip:hover::after {
    transform: translateX(-50%) translateY(8px);
}

/* Thumbnails - 16:9 aspect ratio */
.jd-thumbnail-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.jd-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.jd-thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
}

/* Description toggle icon */
.jd-description-toggle {
    display: inline-block;
    margin-left: 6px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    text-decoration: none !important;
}

.jd-description-toggle:hover {
    opacity: 1;
}

.jd-description-toggle .jd-icon {
    font-size: 0.9rem;
    margin: 0;
}

/* Description using HTML5 details/summary */
.description {
    margin: 0px 0;
	min-height: 10px;
}

.description[open] .description-content {
    animation: slideDown 0.2s ease;
}

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

.description-content {
    padding: 10px 0px 10px 0px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-top: 0px;
	font-size: 10px;
}

/* List Style Modules */
.jd-list-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(241, 176, 8, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.jd-list-item:hover {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: rgba(241, 176, 8, 0.5);
    transform: translateX(3px);
}

.jd-list-item a {
    color: #f1b008;
    text-decoration: none;
    font-weight: 500;
}

.jd-list-item a:hover {
    color: #ffc107;
}

/* Version Badge */
.jd-version {
    /* */
	display: inline-block;
    
	background-color: rgba(241, 176, 8, 0.2);
    color: #f1b008;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 4px;
    font-weight: 600;
}

/* Category Link */
.jd-category {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.jd-category a {
    color: rgba(241, 176, 8, 0.8);
    text-decoration: none;
}

.jd-category a:hover {
    color: #f1b008;
    text-decoration: underline;
}

/* Module Before/After Text */
.jd-module-before {
    padding: 0px;
    margin-top: 0px;
    margin-bottom: 15px;
}
.jd-module-after {
    padding: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
}

/* Light Theme Support */
[data-bs-theme="light"] .jd-module-card .card {
    background-color: #fff;
    border-color: rgba(241, 176, 8, 0.3);
}

[data-bs-theme="light"] .jd-module-card .card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="light"] .jd-module-card .card-title a {
    color: #d89e07;
}

[data-bs-theme="light"] .jd-module-card .card-title a:hover {
    color: #b8850a;
}

[data-bs-theme="light"] .jd-download-badge {
    background-color: #f1b008 !important;
    color: rgba(0, 0, 0, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Light theme category cards */
[data-bs-theme="light"] .cat-card .card {
    background-color: #fff;
    border-color: rgba(241, 176, 8, 0.3);
}

[data-bs-theme="light"] .cat-card .card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(241, 176, 8, 0.6);
}

[data-bs-theme="light"] .jd-counter-badge {
    background-color: #f1b008 !important;
    color: rgba(0, 0, 0, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-bs-theme="light"] .jd-rating-badge {
    background-color: #f1b008 !important;
    color: rgba(0, 0, 0, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-bs-theme="light"] .jd-rating-badge .jd-stars {
    color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .jd-meta-item {
    color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .jd-tooltip::before {
    background-color: rgba(255, 255, 255, 0.98);
    color: #000;
    border-color: #d89e07;
}

[data-bs-theme="light"] .jd-tooltip::after {
    border-top-color: #d89e07;
}

[data-bs-theme="light"] .jd-file-type-icon {
    color: rgba(100, 100, 100, 0.6);
    background-color: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="light"] .jd-module-card .card:hover .jd-file-type-icon {
    color: rgba(216, 158, 7, 0.9);
}

[data-bs-theme="light"] .description-content {
    background-color: rgba(241, 176, 8, 0.08);
    color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .jd-list-item {
    background-color: rgba(241, 176, 8, 0.05);
    border-color: rgba(241, 176, 8, 0.3);
}

[data-bs-theme="light"] .jd-list-item:hover {
    background-color: rgba(241, 176, 8, 0.1);
}

[data-bs-theme="light"] .jd-list-item a {
    color: #d89e07;
}

[data-bs-theme="light"] .jd-category {
    color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .jd-thumbnail-placeholder {
    background-color: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.2);
}

[data-bs-theme="light"] .jd-thumbnail-container {
    background-color: rgba(0, 0, 0, 0.05);
}






























/* Footer */

div.jd_footer {
	display: none;
}

/* ============================================
   JDownloads Stats Module
   ============================================ */

.jd-stats-module {
    line-height: 1.6;
}

.jd-stats-number {
    color: #f1b008;
    font-weight: 600;
    font-size: 1.1em;
}

[data-bs-theme="light"] .jd-stats-number {
    color: #c98f06;
}

/* ============================================
   JDownloads Tree Module
   ============================================ */

.jd-tree-module {
    font-size: 0.95rem;
}

.jd-tree-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.75rem;
    cursor: pointer;
    gap: 0.5rem;
    user-select: none;
}

.jd-tree-header .jd-tree-toggle {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jd-tree-header .jd-tree-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    color: rgba(255, 255, 255, 0.5);
}

.jd-tree-header .jd-tree-icon.rotated {
    transform: rotate(90deg);
}

.jd-tree-header .fa-home,
.jd-tree-header .fa-folder {
    color: #f1b008;
    flex-shrink: 0;
}

.jd-tree-header a {
    color: #f1b008;
    text-decoration: none;
    font-weight: 500;
}

.jd-tree-header a:hover {
    color: #ffc107;
    text-decoration: underline;
}

.jd-tree-header span {
    color: #f1b008;
    font-weight: 500;
}

.jd-tree-root {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jd-tree-item {
    list-style: none;
    margin: 0;
}

.jd-tree-node {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    gap: 0.5rem;
}

.jd-tree-toggle {
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jd-tree-toggle-empty {
    width: 16px;
    flex-shrink: 0;
}

.jd-tree-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    color: rgba(255, 255, 255, 0.5);
}

.jd-tree-icon.rotated {
    transform: rotate(90deg);
}

.jd-tree-folder-icon {
    color: #f1b008;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.jd-tree-link {
    color: inherit;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.jd-tree-link:hover {
    color: #f1b008;
    text-decoration: underline;
}

.jd-tree-count {
    background-color: rgba(241, 176, 8, 0.2);
    color: #f1b008;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
    margin-left: auto;
}

.jd-tree-children {
    list-style: none;
    padding-left: 1.25rem;
    margin: 0;
}

.jd-tree-children .jd-tree-node {
    padding: 0.35rem 0;
}

/* Light theme adjustments */
[data-bs-theme="light"] .jd-tree-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .jd-tree-header .jd-tree-icon {
    color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .jd-tree-header .fa-home,
[data-bs-theme="light"] .jd-tree-header .fa-folder {
    color: #c98f06;
}

[data-bs-theme="light"] .jd-tree-header a {
    color: #c98f06;
}

[data-bs-theme="light"] .jd-tree-header a:hover {
    color: #a67705;
}

[data-bs-theme="light"] .jd-tree-header span {
    color: #c98f06;
}

[data-bs-theme="light"] .jd-tree-icon {
    color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .jd-tree-folder-icon {
    color: #c98f06;
}

[data-bs-theme="light"] .jd-tree-link:hover {
    color: #c98f06;
}

[data-bs-theme="light"] .jd-tree-count {
    background-color: rgba(201, 143, 6, 0.15);
    color: #c98f06;
}

/* ==========================================
   JDownloads View Limits Module
   ========================================== */

.jd-limits-module {
    font-size: 0.95rem;
}

.jd-limits-header {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.jd-limits-header .fa-user-shield {
    font-size: 1.1rem;
}

.jd-limits-no-limits .alert {
    border-radius: 0.375rem;
    border: none;
}

.jd-limits-list .list-group {
    border-radius: 0.375rem;
    overflow: hidden;
}

.jd-limits-list .list-group-item {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.jd-limits-list .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.jd-limits-list .list-group-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.jd-limits-list .list-group-item .fa-fw {
    width: 1.25rem;
    text-align: center;
}

.jd-limits-list .badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    min-width: 3rem;
    text-align: center;
}

.jd-limits-list .bg-success {
    background-color: #28a745 !important;
}

.jd-limits-list .bg-danger {
    background-color: #dc3545 !important;
}

.jd-limits-footer {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.jd-limits-link {
    color: var(--jd-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.jd-limits-link:hover {
    color: var(--jd-gold-hover);
    text-decoration: underline;
}

/* Light theme adjustments */
[data-bs-theme="light"] .jd-limits-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .jd-limits-header .fa-user-shield {
    color: #c98f06;
}

[data-bs-theme="light"] .jd-limits-list .list-group-item {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .jd-limits-list .list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="light"] .jd-limits-list .list-group-item:first-child {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .jd-limits-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .jd-limits-link {
    color: #c98f06;
}

[data-bs-theme="light"] .jd-limits-link:hover {
    color: #a67705;
}

/* ==========================================
   JDownloads Related Module
   ========================================== */

.jd-related-module {
    font-size: 0.95rem;
}

.jd-related-header {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.jd-related-header h3 {
    margin: 0;
    color: var(--jd-gold);
}

.jd-related-header .fa-link {
    font-size: 0.9rem;
}

.jd-related-before,
.jd-related-after {
    padding: 0.75rem 0;
}

.jd-related-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.jd-related-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 0.375rem;
}

.jd-related-item:last-child {
    border-bottom: none;
}

.jd-related-icon img {
    display: block;
}

.jd-related-title {
    line-height: 1.5;
}

.jd-related-number {
    font-weight: 600;
}

.jd-related-link {
    color: var(--jd-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.jd-related-link:hover {
    color: var(--jd-gold-hover);
    text-decoration: underline;
}

.jd-related-version {
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.jd-related-hits,
.jd-related-date {
    font-size: 0.9rem;
}

.jd-related-hits-line,
.jd-related-date-line {
    margin-top: 0.25rem;
}

.jd-related-category {
    margin-top: 0.25rem;
}

.jd-related-cat-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jd-related-cat-link:hover {
    color: var(--jd-gold);
    text-decoration: underline;
}

.jd-related-thumbnail img {
    max-width: 100%;
    height: auto;
}

/* Light theme adjustments */
[data-bs-theme="light"] .jd-related-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .jd-related-header h3 {
    color: #c98f06;
}

[data-bs-theme="light"] .jd-related-header .fa-link {
    color: #c98f06;
}

[data-bs-theme="light"] .jd-related-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .jd-related-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="light"] .jd-related-link {
    color: #c98f06;
}

[data-bs-theme="light"] .jd-related-link:hover {
    color: #a67705;
}

[data-bs-theme="light"] .jd-related-cat-link:hover {
    color: #c98f06;
}
