/****************************************************************** 
 * Classic Theme - Components
 * Based on actual OldVersion.com component styling
 ******************************************************************/

/* Buttons */
.button4 {
  display: inline-block;
  padding: 8px 15px;
  background: var(--color-button-bg);
  border: 1px solid var(--color-button-border);
  color: var(--color-button-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

.button4:hover {
  background: var(--color-button-hover);
  color: var(--color-button-text);
  text-decoration: none;
}

.button1.css3, .button4.css3 {
  background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
  border: 1px solid #cccccc;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Upload Page Styles */
.software-details {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  padding: 20px;
  margin-bottom: 20px;
}

.software-details h2 {
  font-size: 18px;
  color: var(--color-text-primary);
  font-weight: normal;
  margin-bottom: 25px;
}

.software-details h2 span {
  color: #ff0000;
}

.software-details h2 a {
  color: var(--color-primary);
  font-weight: bold;
}

.software-details h3 {
  font-size: 16px;
  color: var(--color-text-primary);
  font-weight: normal;
  margin-bottom: 15px;
}

.software-details h4 {
  font-size: 14px;
  color: var(--color-text-primary);
  font-weight: normal;
  margin-bottom: 10px;
}

.regmessage {
  color: #656565;
  font-size: 13px;
  line-height: 18px;
  margin-bottom: 10px;
}

.regmessage .error {
  color: #ff0000;
}

.regreq {
  color: var(--color-primary);
  font-size: 13px;
  line-height: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.formreq {
  color: #ff0000;
}

.b-form-required-mark {
  color: #ff0000;
  padding-right: 3px;
}

.b-form-input {
  color: var(--color-primary);
  font-size: 12px;
  line-height: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.b-form-input label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--color-text-primary);
  font-weight: bold;
}

.b-form-input__input {
  margin-bottom: 5px;
}

.b-form-input input.textbox,
.b-form-input select.textbox {
  display: block;
  border: 1px solid #dbdfe6;
  height: 18px;
  line-height: 18px;
  font-size: 12px;
  color: var(--color-text-primary);
  border-top-color: #abadb3;
  position: relative;
  padding: 0 8px;
  width: 100%;
  max-width: 400px;
}

.b-form-input input.file-input {
  display: block;
  border: 1px solid #dbdfe6;
  height: 18px;
  line-height: 18px;
  font-size: 12px;
  color: var(--color-text-primary);
  border-top-color: #abadb3;
  position: relative;
  padding: 0 8px;
  width: 100%;
  max-width: 400px;
}

.b-form-input .help {
  font-size: 11px;
  color: #666666;
  font-weight: normal;
}

.b-form-errors {
  color: #ff0000;
  font-size: 14px;
  background: #fff2f2;
  border: 1px solid #ffcccc;
  padding: 10px;
  margin-bottom: 15px;
}

.b-form-errors ul {
  margin: 5px 0 0 20px;
}

.formsingup {
  margin-top: 10px;
  margin-bottom: 30px;
}

.formsingup .submit {
  display: inline-block;
  background: var(--color-button-bg);
  border: 1px solid var(--color-button-border);
  color: var(--color-button-text);
  padding: 8px 15px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.formsingup .submit:hover {
  background: var(--color-button-hover);
  color: var(--color-button-text);
  text-decoration: none;
}

.additional-details {
  border-top: 1px solid #cccccc;
  padding-top: 22px;
  margin-bottom: 40px;
}

.additional-details h3 {
  color: var(--color-text-primary);
  font-size: 14px;
  margin-bottom: 10px !important;
}

.additional-details p {
  font-size: 12px;
  color: #4c4c4c;
  margin-bottom: 25px;
}

.additional-details p a {
  color: var(--color-primary);
  font-weight: bold;
}

.additional-details h4 {
  font-size: 14px;
  font-weight: normal;
  color: var(--color-text-primary);
  margin-bottom: 15px;
}

.additional-details h5 {
  font-size: 12px;
  margin-bottom: 7px;
  color: #6b6b6b;
}

.additional-details ul {
  margin-bottom: 15px;
}

.additional-details ul li {
  list-style: none;
  margin: 0 5px 0 0;
  display: inline-block;
  width: 30%;
}

.additional-details ul li label {
  display: inline;
  font-size: 12px;
  font-weight: bold;
  color: #6b6b6b;
}

.additional-details ul li input {
  position: relative;
  top: 2px;
}

.notetext {
  font-size: 12px;
  color: #4c4c4c;
  margin-bottom: 25px;
}

.notetext span {
  font-weight: bold;
}

.notetext a {
  color: var(--color-primary);
  font-weight: bold;
}

/* Widgets */
.widget {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  margin-bottom: 15px;
  padding: 15px;
}

.widget h2, .widget h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--color-text-primary);
  font-weight: bold;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 5px;
}

.widget h3 a {
  color: var(--color-text-primary);
  text-decoration: none;
}

.widget h3 a:hover {
  color: var(--color-link-hover);
}

/* Categories Widget - EXACTLY like original */
.widget.categories {
  margin-bottom: 12px;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}

.widget.categories a {
  display: block;
  width: 100%;
  height: 49px;
  position: relative;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: #000000;
  line-height: 49px;
  text-align: center;
  background: #f0f0f0;
  box-sizing: border-box;
  text-indent: -9999px;
  overflow: hidden;
}

.widget.categories a:hover {
  border-color: #000;
  text-decoration: none;
}

.widget.categories a.windows.active {
  background-position: 0 -51px;
  border-color: #0095ff;
}

.widget.categories a.mac.active {
  background-position: 0 -51px;
  border-color: #0095ff;
}

.widget.categories a.linux.active {
  background-position: 0 -51px;
  border-color: #0095ff;
}

.widget.categories a.games.active {
  background-position: 0 -51px;
  border-color: #0095ff;
}

.widget.categories a.android.active {
  background-position: 0 -51px;
  border-color: #0095ff;
}

/* Platform button sprites */
.widget.categories a.windows {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/menu_windows.fdd38f560942.jpg') no-repeat 0 0;
}

.widget.categories a.mac {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/menu_mac.fd7288cd9e23.jpg') no-repeat 0 0;
}

.widget.categories a.linux {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/menu_linux.14e86331d360.jpg') no-repeat 0 0;
}

.widget.categories a.games {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/menu_games.3513677bddf5.jpg') no-repeat 0 0;
}

.widget.categories a.android {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/menu_android.e3d949ff99fd.png') no-repeat 0 0;
}

/* Contributors Widget - EXACTLY like original */
.widget {
  margin-bottom: 12px;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.widget h2 {
  color: #fff;
  font-size: 14px;
  background: #292929;
  padding-left: 12px;
  margin: 0;
  display: flex;
  align-items: center;
  height: 28px;
  line-height: 1;
  padding-bottom: 0;
}

.widget h2 a {
  color: #fff;
  text-decoration: none;
  font-size: 100%;
}

.widget dl {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contributor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget dl dt {
  color: #6ca000;
  font-size: 12px;
  margin-bottom: 0;
  font-weight: normal;
  text-align: right;
}

.widget dl dd {
  color: #073b76;
  font-size: 12px;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
}

.widget dl dd a {
  color: #073B76;
}

.widget dl dd a:hover {
  color: #292929;
}

/* Upload Software Widget - EXACTLY like original */
.widget.upload-widget {
  background: #f5f5f5;
  background-image: linear-gradient(to bottom, #ffffff 0%, #e8e8e8 100%);
  border: 1px solid #000;
  padding: 12px;
}

.widget.upload-widget h3 {
  color: #00548f;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 5px;
  margin: 0 0 5px 0;
}

.widget.upload-widget h3 a {
  color: #00548f;
  font-size: 100%;
  text-decoration: none;
}

.widget.upload-widget h3 a:hover {
  text-decoration: underline;
}

.widget.upload-widget p {
  color: #656565;
  font-size: 12px;
  line-height: 18px;
  margin: 0;
}

.widget .link1 {
  display: block;
  margin-top: 10px;
  color: #073b76;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}

.widget .link1:hover {
  color: #292929;
  text-decoration: underline;
}

/* Table2 - EXACTLY like original for tabbed content */
.table2 {
  width: 100%;
  border: 1px solid #c2c2c2;
  margin-bottom: 10px;
  border-collapse: collapse;
}

.table2 .description {
  width: 60%;
}

.table2 th {
  background: #f0f0f0;
  height: 24px;
  font-size: 12px;
  color: #292929;
  line-height: 24px;
  padding: 3px 0px 0px 0px;
  font-weight: normal;
  text-align: left;
  border-right: 1px solid #c0c0c0;
  border-bottom: 1px solid #c0c0c0;
}

.table2 th span {
  font-weight: bold;
  float: left;
}

.table2 tr td {
  padding: 10px;
  text-align: center;
  border-right: 1px solid #c2c2c2;
  border-bottom: 1px solid #c2c2c2;
}

.table2 td.description {
  text-align: left;
}

.table2 td.description div.heading2 {
  margin-bottom: 0;
}

.table2 td.description div.heading2 img {
  float: left;
  margin: 0 10px 10px 0;
}

/* Image in software-header - right margin only */
.table2 td.description div.heading2 .software-header img {
  margin: 0 5px 0 0;
}

.table2 td.description p {
  color: #4c4c4c;
  font-size: 11px;
  line-height: 17px;
  margin-bottom: 0;
}

.table2 td.description p a {
  color: #00548f;
  display: inline !important;
}

.table2 td.description p a:hover {
  color: #292929;
}

.table2 td.description div.heading2 a:hover {
  color: #292929;
}

.table2 td.description div.heading2 span {
  margin-bottom: 14px;
  font-size: 11px;
}

.table2 td.description div.heading2 span span.inner {
  color: #4c4c4c;
  display: inline;
  font-size: 100%;
}

.table2 td.description div.heading2 span span.inner a {
  color: #4c4c4c;
}

.table2 td.description div.heading2 span span.divider {
  margin: 0 5px;
  display: inline;
  font-size: 100%;
}

/* Type badge in search results */
.table2 td.description div.heading2 h3 {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.table2 td.description div.heading2 h3 .result-type-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 0;
  order: 2;
}

/* OS badges in category page - align to right */
.table2 td.description div.heading2 h3 > span {
  margin-left: auto !important;
  margin-right: 0;
  margin-bottom: 0;
}

.table2 td.rating-cell {
  vertical-align: top;
}

.table2 td.rating-cell span.title {
  display: block;
  color: #2a2a2a;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: bold;
}

.table2 td.rating-cell span.rating-stars {
  margin-bottom: 8px;
  text-align: left;
  height: 14px;
}

.table2 td.rating-cell span.rating-stars span {
  height: 14px;
}

.table2 td.rating-cell span.votes {
  display: block;
  color: #4c4c4c;
  font-size: 11px;
  font-weight: bold;
}

.table2 td.downloads span {
  color: #2a2a2a;
  font-size: 12px;
  display: block;
}

.table2 td.downloads span.total {
  margin-bottom: 10px;
}

.table2 td.downloads strong {
  color: #6a9b05;
  display: block;
  line-height: 14px;
  font-size: 11px;
  margin-bottom: 3px;
}

/* Downloads column - EXACTLY like original */
td.downloads span {
  color: #2a2a2a;
  font-size: 12px;
  display: block;
}

td.downloads span.total {
  margin-bottom: 10px;
}

td.downloads strong {
  color: #6a9b05;
  display: block;
  line-height: 14px;
  font-size: 11px;
  margin-bottom: 3px;
}

/* Software List Columns - EXACTLY like original screenshot */
.software-list-columns {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.column-left,
.column-right {
  flex: 1;
}

.software-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 0;
}

.software-icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  flex-shrink: 0;
}

.software-info {
  flex: 1;
}

.software-info h3 {
  margin: 0 0 0 0;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
}

.software-info h3 a {
  color: #073b76;
  text-decoration: none;
}

.software-info h3 a:hover {
  color: #292929;
}

.software-info .downloads {
  color: #6a9b05;
  font-size: 12px;
  font-weight: normal;
  display: block;
}

/* Coming Soon Styling - Following style guide */
.coming-soon {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  margin: 20px 0;
}

.coming-soon-badge {
  background: #009933;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 20px;
  margin-bottom: 15px;
  display: inline-block;
  border-radius: 3px;
  animation: blink 1.5s infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.coming-soon-text {
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.7; }
}

/* Read More Content Styling */
.read-more-content {
  padding: 20px;
  background: #ffffff;
}

.read-more-content h2 {
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 1.6em;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.read-more-content p {
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 15px 0;
}

.read-more-content p:last-child {
  margin-bottom: 0;
}

/* Heading2 - EXACTLY like original */
.heading2 {
  margin-bottom: 30px;
}

.heading2 img {
  float: left;
  margin-right: 5px;
}

.heading2 h3 {
  color: #073b76;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1em;
}

.heading2 h3 a {
  color: #073b76;
}

.heading2 h1 {
  color: #073b76;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1em;
}

.heading2 h1 a {
  color: #073b76;
}

.heading2 p.downloads {
  display: block;
  color: #76a611;
  font-size: 12px;
}

.heading2.large h1 {
  font-size: 18px;
}

/* Section - Flexbox category grid with 4 sections per row */
div#content div.section {
  flex: 0 0 calc(25% - 15px);
  width: calc(25% - 15px);
  margin: 0px 15px 30px 0px;
  box-sizing: border-box;
}

div#content div.section.outermost {
  margin-right: 0px;
}

/* Category grid container - flexbox layout */
.post.clearfix {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 20px;
}

div#content div.section h2 {
  color: #666666;
  font-size: 14px;
  font-weight: bold;
}

div#content div.section h2 img {
  vertical-align: middle;
  margin-right: 5px;
}

div#content div.section span {
  color: #073b76;
}

div#content div.section h2 span {
  color: #666666;
}

div#content div.section span.viewmore,
div#content div.section a.viewmore {
  color: #292929;
  text-decoration: none;
  line-height: 18px;
  font-size: 12px;
  font-weight: bold;
}

div#content div.section span.viewmore span,
div#content div.section a.viewmore span {
  color: #6CA000;
}

/* Post clearfix */
.post.clearfix {
  clear: both;
}

/* Tabs main - EXACTLY like original */
.tabs.main {
  height: 302px;
  margin-bottom: 20px;
}

/* Software List Items */
.list3, .list7 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list3 li, .list7 li {
  margin: 0;
  padding: 2px 0;
  font-size: 11px;
}

.list3 li a, .list7 li a {
  color: var(--color-link);
  text-decoration: none;
}

.list3 li a:hover, .list7 li a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* View More Links */
.viewmore {
  display: block;
  margin-top: 10px;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.viewmore:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.viewmore span {
  color: var(--color-text-secondary);
  font-weight: normal;
}

/* Pagination - EXACTLY like original */
.pagination1 {
  border: 1px solid #c2c2c2;
  margin-bottom: 10px;
  padding: 6px;
}

.pagination1 a, 
.pagination1 span {
  display: inline-block;
  padding: 0 4px;
  height: 16px;
  line-height: 16px;
  border: 1px solid #c2c2c2;
  color: #292929;
  margin-right: 5px;
  font-size: 12px;
}

.pagination1 a.next-btn, 
.pagination1 a.previous-btn {
  color: #626262;
}

.pagination1 a:hover, 
.pagination1 span.active {
  color: #fff !important;
  text-decoration: none;
  background: #00548f;
  border-color: #00548f;
}

.pagination1 span.control {
  display: inline-block;
  float: right;
  line-height: 20px;
  color: #292929;
  font-size: 12px;
  border: 0;
  padding: 0;
}

.pagination1 span.control select {
  width: 40px;
  margin: 0 3px;
}

.pagination1 span.etc {
  border: 0;
}

.pagination1 span.control span.inner {
  display: inline-block;
  float: left;
  font-size: 100%;
  border: 0;
  padding: 0;
  margin: 0 3px;
}

/* Breadcrumbs - EXACTLY like original */
.breadcrumbs {
  background: #292929;
  padding: 0 10px;
  margin-bottom: 14px;
}

.breadcrumbs p {
  color: #fff;
  font-size: 12px;
  line-height: 28px;
  font-weight: bold;
  margin: 0;
}

.breadcrumbs p a {
  color: #fff;
  text-decoration: none;
}

.breadcrumbs p span {
  color: #ffe718;
}

.breadcrumbs p a span {
  color: #fff;
}

/* Social Icons */
.sociable {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.sociable li {
  margin: 0;
  padding: 0;
}

.sociable li a {
  display: block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -9999px;
  overflow: hidden;
}

.sociable li a.rss {
  background-image: url("../shared/images/rss.f20531ee7dfc.png");
}

.sociable li a.facebook {
  background-image: url("../shared/images/facebook.8c89ef8ab45d.png");
}

.sociable li a.twitter {
  background-image: url("../shared/images/twitter.6352d995b0c2.png");
}

/* Form Elements */
.textbox {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
}

.textbox:focus {
  outline: none;
  border-color: var(--color-link);
}

.submit {
  padding: 8px 15px;
  background: var(--color-button-bg);
  border: 1px solid var(--color-button-border);
  color: var(--color-button-text);
  font-size: 12px;
  cursor: pointer;
}

.submit:hover {
  background: var(--color-button-hover);
}

/* Language Dropdown */
#main-navigation .right-nav .languages {
  position: relative;
  display: flex;
  align-items: center;
  width: 80px;
  padding-right: 5px;
  z-index: 5;
  height: 32px;
}

#main-navigation .right-nav .languages > a {
  display: flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  height: 20px;
  border: none;
  background: #292929;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  padding: 0 4px;
  margin: 0;
}

#main-navigation .right-nav .languages > a:after {
  content: '';
  width: 8px;
  height: 6px;
  background-image: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/down-arrow.e39bf1306062.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 6px;
  display: inline-block;
}

#main-navigation .right-nav .languages > a:hover {
  background: #555555;
}

#main-navigation .right-nav .languages ul {
  position: absolute;
  top: 100%;
  right: 0;
  background: #292929;
  border: none;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 140px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
}

#main-navigation .right-nav .languages:hover ul {
  display: block;
}

#main-navigation .right-nav .languages ul li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #555555;
}

#main-navigation .right-nav .languages ul li:last-child {
  border-bottom: none;
}

#main-navigation .right-nav .languages ul li a {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
  gap: 10px;
  min-height: 18px;
}

#main-navigation .right-nav .languages ul li a span {
  color: #ffffff;
  font-size: 11px;
}

#main-navigation .right-nav .languages > a span {
  margin-left: 6px;
}

#main-navigation .right-nav .languages ul li a:hover {
  background: #555555;
  color: #ffffff;
}

#main-navigation .right-nav .languages ul li.selected a {
  background: #555555;
  font-weight: bold;
}

/* Language Icons */
.i-language {
  display: inline-block;
  width: 16px;
  height: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  flex-shrink: 0;
}

.i-language_en {
  background-image: url("../shared/images/flags/en.75ab170dc0aa.gif");
}

.i-language_ar {
  background-image: url("../shared/images/flags/ar.54e5972e80a4.gif");
}

.i-language_de {
  background-image: url("../shared/images/flags/de.7baef9c49b67.gif");
}

.i-language_es {
  background-image: url("../shared/images/flags/es.985dd843b5be.gif");
}

.i-language_fr {
  background-image: url("../shared/images/flags/fr.010c9071ce7e.gif");
}

.i-language_it {
  background-image: url("../shared/images/flags/it.bd52db82be1e.gif");
}

.i-language_ja {
  background-image: url("../shared/images/flags/ja.52bf377389ce.gif");
}

.i-language_ru {
  background-image: url("../shared/images/flags/ru.a1efad419982.gif");
}

.i-language_ro {
  background-image: url("../shared/images/flags/ro.70453db77d94.gif");
}

.i-language_tr {
  background-image: url("../shared/images/flags/tr.2c665c771f19.gif");
}

.i-language_zh {
  background-image: url("../shared/images/flags/zh.2166d88c115b.gif");
}

/* Tabbed Selectors - EXACTLY like original */
.tabs {
  margin-bottom: 20px;
  min-height: 370px;
}

.tabstrips2 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  border-bottom: 1px solid #c2c2c2;
  background: #ffffff;
  overflow-x: visible;
}

.tabstrips2 li {
  margin: 0;
  padding: 0;
  float: left;
}

.tabstrips2 li a {
  display: inline-block;
  padding: 0 12px;
  height: 26px;
  line-height: 26px;
  color: #00548f;
  font-weight: bold;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: none;
  position: relative;
  margin-bottom: -1px;
  white-space: nowrap;
}

/* Tab icon and text - desktop shows text, mobile shows icon */
.tabstrips2 li a .tab-icon {
  display: none;
}

.tabstrips2 li a .tab-text {
  display: inline;
}

.tabstrips2 li a:hover {
  color: #292929;
  text-decoration: none;
}

.tabstrips2 li.active a,
.tabstrips2 li.ui-state-active a {
  color: #292929;
  border: 1px solid #c2c2c2;
  border-bottom-color: #fff;
  position: relative;
  margin-bottom: -1px;
  background: #ffffff;
}

.tab-content2 {
  background: #ffffff;
  border: 1px solid #c2c2c2;
  border-top: none;
  padding: 15px;
  min-height: 200px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.software-list {
  margin: 0;
  padding: 0;
}

.software-list p {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #666666;
  line-height: 1.4;
}

/* Tab functionality - hide/show panes */
.tabstrips2 li a[href="#popular"]:focus ~ .tab-content2 #popular,
.tabstrips2 li a[href="#recently-added"]:focus ~ .tab-content2 #recently-added,
.tabstrips2 li a[href="#editors-choice"]:focus ~ .tab-content2 #editors-choice,
.tabstrips2 li a[href="#top-rated"]:focus ~ .tab-content2 #top-rated,
.tabstrips2 li a[href="#read-more"]:focus ~ .tab-content2 #read-more {
  display: block;
}

/* Heading2 - EXACTLY like original */
.heading2 {
  margin-bottom: 30px;
}

.heading2 img {
  float: left;
  margin-right: 5px;
  width: 32px;
  height: 32px;
}

.heading2 h3 {
  color: #073b76;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1em;
}

.heading2 h3 a {
  color: #073b76;
  text-decoration: none;
}

.heading2 h3 a:hover {
  color: #292929;
}

.heading2 span {
  margin-bottom: 14px;
  font-size: 11px;
  color: #4c4c4c;
}

.heading2 span span.inner {
  color: #4c4c4c;
  display: inline;
  font-size: 100%;
}

.heading2 span span.inner a {
  color: #4c4c4c;
  text-decoration: none;
}

.heading2 span span.inner a:hover {
  color: #292929;
}

.heading2 span span.divider {
  margin: 0 5px;
  display: inline;
  font-size: 100%;
}

/* Rating - EXACTLY like original */
.rating-stars {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/rating.d3deac3caf19.png') no-repeat left bottom;
  height: 14px;
  width: 78px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
}

.rating-stars span {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/rating.d3deac3caf19.png') no-repeat left top;
  height: 14px;
  display: inline-block;
  text-indent: -999em;
}

/* Category Icons - EXACTLY like original */
.i-category-gray {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/category-icons.e53d45fc35a4.png') no-repeat 50px 0;
  float: left;
  width: 22px;
  height: 22px;
  margin: 0 4px 0 0;
  position: relative;
  top: -5px;
}

.i-category-gray_utilities {
  background-position: -48px 0;
}

.i-category-gray_security {
  background-position: -144px 0;
}

.i-category-gray_office {
  background-position: -240px 0;
}

.i-category-gray_networking {
  background-position: -192px 0;
}

.i-category-gray_multimedia {
  background-position: -24px 0;
}

.i-category-gray_internet {
  background-position: -72px 0;
}

.i-category-gray_graphics {
  background-position: -168px 0;
}

.i-category-gray_ftp {
  background-position: -120px 0;
}

.i-category-gray_file-sharing {
  background-position: -96px 0;
}

.i-category-gray_drivers {
  background-position: -216px 0;
}

.i-category-gray_development {
  background-position: -264px 0;
}

.i-category-gray_games {
  background-position: -288px 0;
}

/* Game subcategory icons - each has unique icon in spritesheet */
.i-category-gray_strategy {
  background-position: -288px 0; /* chess piece - position 12 */
}

.i-category-gray_simulation {
  background-position: -336px 0; /* plane - position 14 */
}

.i-category-gray_rpg {
  background-position: -360px 0; /* helmet - position 15 */
}

.i-category-gray_puzzle {
  background-position: -384px 0; /* triangle blocks - position 16 */
}

.i-category-gray_platform {
  background-position: -408px 0; /* star - position 17 */
}

.i-category-gray_arcade {
  background-position: -504px 0; /* joystick - position 21 */
}

.i-category-gray_adventure {
  background-position: -528px 0; /* Pacman - position 22 */
}

.i-category-gray_action {
  background-position: -552px 0; /* gun - position 23 */
}

.i-category-gray_sport {
  background-position: -312px 0; /* position 13 */
}

.i-category-gray_communication {
  background-position: 0 0;
}

/* Software Detail Page Styles - EXACTLY like original */
.softwares {
  margin-bottom: 10px;
}

.softwares .title {
  margin-bottom: 15px;
}

.softwares .title h1.logo {
  float: left;
  margin: 6px 13px 0px 3px;
}

.softwares .title h1.logo a {
  position: relative;
  width: 32px;
  height: 32px;
  display: block;
}

.softwares .title h2 {
  color: #00548f;
  font-size: 14px;
  margin: 7px 0px 5px 0px;
  float: left;
}

.softwares .title h2 a {
  color: #00548f;
}

.softwares .title h2 span {
  color: #4c4c4c;
  font-size: 90%;
  margin-bottom: 5px;
  display: block;
  font-weight: normal;
}

.softwares .title h2 span a {
  color: #4c4c4c;
}

.softwares h3.heading1 {
  background: #4c4c4c;
  color: #fff;
  font-size: 12px;
  margin-bottom: 10px;
  height: 28px;
  font-weight: normal;
  line-height: 28px;
  padding-left: 10px;
}

.softwares h3.heading1 span {
  color: #ffe718;
  font-weight: bold;
}

h3.heading1 {
  background: #4c4c4c;
  color: #fff;
  font-size: 12px;
  margin-bottom: 10px;
  height: 28px;
  font-weight: normal;
  line-height: 28px;
  padding-left: 10px;
}

h3.heading1 span {
  color: #ffe718;
  font-weight: bold;
}

.softwares .title ul {
  float: right;
  margin: 5px 0px 0px 20px;
}

.softwares .title ul li {
  float: left;
  margin-right: 23px;
}

.softwares .description p {
  color: #2a2a2a;
  font-size: 12px;
  line-height: 18px;
  margin-bottom: 15px;
}

/* Software Meta-data */
.softwares .meta-data h3 {
  color: #2a2a2a;
  font-size: 14px;
  margin-bottom: 12px;
}

.softwares .meta-data h3 span.underline {
  display: block;
  font-size: 80%;
  color: #4c4c4c;
  font-weight: normal;
}

.softwares .meta-data h1 {
  color: #2a2a2a;
  font-size: 14px;
  margin-bottom: 12px;
}

.softwares .meta-data h1 span {
  display: block;
  font-size: 80%;
  color: #4c4c4c;
  font-weight: normal;
}

.softwares .meta-data ul li {
  padding-bottom: 5px;
  margin-bottom: 5px;
  color: #4c4c4c;
  font-size: 11px;
  border-bottom: 1px solid #c0c0c0;
  line-height: 14px;
}

.softwares .meta-data ul li.last {
  border: 0px;
}

.softwares .meta-data ul li span {
  color: #6ca000;
}

.softwares .meta-data ul li span a {
  color: #3e4e9c;
  font-weight: bold;
}

.softwares .meta-data a.software {
  color: #00548f;
}

.softwares .meta-data ul li span a:hover {
  color: #292929;
}

/* Rating */
span.rating {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/rating.d3deac3caf19.png') no-repeat left bottom;
  height: 14px;
  width: 78px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
}

span.rating span {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/rating.d3deac3caf19.png') no-repeat left top;
  height: 14px;
  display: inline-block;
  text-indent: -999em;
}

/* Tested */
span.tested {
  font-size: 12px;
  color: #4c4c4c;
  display: block;
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/tested.31a7cbfdf277.png') no-repeat left center;
  padding-left: 18px;
  font-weight: normal;
  line-height: 18px;
}

.softwares .column {
  width: 355px;
  margin-bottom: 10px;
}

/* .softwares .downloads {
  clear: both;
  margin-bottom: 15px;
} */

.softwares .downloads h3.heading1 {
  font-style: italic;
  margin-bottom: 2px;
}

.softwares .downloads h3.heading1 span {
  color: #fff;
}

.softwares .downloads h3.heading1 span.inner {
  color: #ffe718;
  font-weight: normal;
}

/* Box2 - Download boxes */
.box2 {
  border: 1px solid #c0c0c0;
  padding: 1px;
  background: #fff;
}

.box2 .inner {
  background: #e7f6c7;
  padding: 10px;
}

.box2:hover .inner {
  background: #fffabf;
}

.box2 a.button4, .box2 input.button4 {
  margin-bottom: 6px;
}

.box2:hover a.button4, .box2:hover input.button4 {
  background-position: 0 -40px;
  text-decoration: none;
}

.box2 dl {
  margin-bottom: 5px;
}

.box2 h3 {
  color: #3e4e9c;
  font-size: 14px;
  margin-bottom: 10px;
}

.box2 h3 a {
  color: #3e4e9c;
}

.box2 dl dt {
  font-size: 12px;
  font-weight: bold;
  color: #4c4c4c;
  line-height: 16px;
  display: inline;
}

.box2 dl dd {
  color: #4c4c4c;
  font-size: 12px;
  line-height: 16px;
  margin-right: 10px;
  display: inline;
}

/* Box3 - Upload/Request boxes */
.box3 {
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
}

.box3 .section1 {
  width: 335px;
}

.box3 .section1 img {
  float: left;
  margin-right: 10px;
}

.box3 .section1 h3 {
  color: #292929;
  font-size: 11px;
  font-weight: normal;
  margin-bottom: 5px;
}

.box3 .section1 a {
  display: block;
  color: #3e4e9c;
  font-weight: bold;
  font-size: 17px;
}

.box3 .section1 a:hover {
  color: #292929;
}

/* Table1 - Version table */
.table1 {
  width: 100%;
  border: 1px solid #c0c0c0;
  margin-bottom: 20px;
}

.table1 th {
  background: #f0f0f0;
  height: 24px;
  font-size: 12px;
  color: #292929;
  line-height: 24px;
  padding: 0 6px;
  font-weight: normal;
  text-align: left;
  border: 1px solid #c0c0c0;
}


.table1 td {
  padding: 6px 10px;
  text-align: left;
  border: 1px solid #c0c0c0;
}

.table1 td a {
  color: #00548f;
  font-weight: bold;
}

.table1 td {
  color: #4c4c4c;
  font-size: 11px;
}

.table1 td.version {
  font-size: 12px;
}

.table1 .version {
  width: 40%;
  cursor: pointer;
}

.table1 .rdate {
  width: 16%;
  cursor: pointer;
}

.table1 .alC {
  cursor: pointer;
}

.table1 td.version a {
  font-weight: bold;
  color: #3e4e9c;
}

.table1 td a:hover {
  color: #292929;
}

.table1 tr.alt td {
  background: #f2f6f8;
}

/* List7 - Other software */
.list7 {
  margin-bottom: 20px;
}

.list7 li {
  float: left;
  margin: 0px 7px 7px 0px;
  background: #ebebeb;
  border-bottom: 2px solid #d5d4d4;
  height: 22px;
  line-height: 22px;
  font-size: 12px;
}

.list7 li a {
  float: left;
  display: block;
  line-height: 22px;
  padding: 0px 10px;
  color: #3e4e9c;
  text-decoration: none;
  font-weight: bold;
}

.list7 li:hover {
  border-color: #e7daab;
}

.list7 li:hover a {
  background: #fff2be;
  text-decoration: none;
}

/* Comments */
.comments {
  margin-bottom: 58px;
  padding-top: 9px;
}

/* Breadcrumbs */
.breadcrumbs {
  background: #292929;
  padding: 0 10px;
  margin-bottom: 14px;
}

.breadcrumbs p {
  color: #fff;
  font-size: 12px;
  line-height: 28px;
  font-weight: bold;
}

.breadcrumbs p a {
  color: #fff;
}

.breadcrumbs p span {
  color: #ffe718;
}

.breadcrumbs p a span {
  color: #fff;
}

/* Utility Classes */
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

.flL {
  float: left;
}

.flR {
  float: right;
}

.alC {
  text-align: center;
}

.outermost {
  margin-right: 0 !important;
}

/* List2 - Footer links styling */
ul.list2{ 
  margin:0px; 
  padding:0px;
}

ul.list2 li{ 
  list-style:none; 
  font-size:100%; 
  line-height:12px; 
  background:url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/list2-li-bg.gif') no-repeat center left; 
  padding-left:10px; 
  margin-bottom:10px; 
  font-weight:bold;
}

ul.list2 li a{ 
  color:#FFF;
}

/* ================================================================
   Responsive Component Adjustments
   All changes preserve desktop layout (1200px+)
   ================================================================ */

/* Tablet and below (991px and below) */
@media (max-width: 991px) {
  /* Category grid responsive - 3 columns on tablet */
  div#content div.section {
    flex: 0 0 calc(33.333% - 10px);
    width: calc(33.333% - 10px);
    margin: 0px 10px 20px 0px;
  }
  
  /* Widget categories - center align on tablet */
  .widget.categories a {
    display: block;
    margin: 5px auto;
    text-align: center;
  }
  
  .sociable {
    justify-content: center;
  }
  
  /* Software list columns - stack on tablet */
  /* Software list - single column on mobile */
  .software-list-columns {
    flex-direction: column;
    gap: 0;
  }
  
  .column-left,
  .column-right {
    width: 100%;
  }
  
  .software-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .software-item:last-child {
    border-bottom: none;
  }
  
  .software-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    flex-shrink: 0;
  }
  
  .software-info h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }
  
  .software-info .downloads {
    font-size: 11px;
  }
  
  /* Download boxes - stack on tablet */
  .download-boxes {
    flex-direction: column;
    gap: 15px;
  }
  
  .download-boxes .column {
    width: 100% !important;
    float: none !important;
  }
  
  /* Box3 sections - stack on tablet */
  .box3 {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .box3 .section1 {
    width: 100%;
  }
  
  /* Meta data column - stack below main content */
  .column.flR.meta-data {
    float: none;
    width: 100%;
    margin-top: 20px;
  }
}

/* Mobile Large and below (767px and below) */
@media (max-width: 767px) {
  /* Category grid responsive - 2 columns on mobile */
  div#content div.section {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
    margin: 0px 10px 15px 0px;
  }
  
  /* Category lists - comma-separated inline list on mobile */
  div#content div.section .list3 {
    padding: 0 12px;
    display: flex;
    flex-wrap: wrap;
  }
  
  div#content div.section .list3 li {
    display: inline;
  }
  
  div#content div.section .list3 li:not(:last-child)::after {
    content: ', ';
    margin-right: 4px;
  }
  
  div#content div.section .list3 li a {
    display: inline;
  }
  
  /* View More link - align with list padding on mobile */
  div#content div.section .viewmore {
    padding-left: 12px;
  }
  
  /* Tables - horizontal scroll on mobile */
  /* Wrap tables in a scrollable container */
  .table1 {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    min-width: 600px;
  }
  
  /* Table2 - fit screen width on mobile, no horizontal scroll */
  .table2 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    display: table !important;
    overflow-x: visible !important;
    -webkit-overflow-scrolling: auto !important;
    box-sizing: border-box;
    table-layout: auto;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Ensure table parent containers constrain overflow */
  .post {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Any div containing tables should constrain overflow */
  div .table1 {
    max-width: 100%;
  }
  
  /* Table2 - adjust cell padding on mobile */
  .table2 tr td {
    padding: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }
  
  .table2 td.description div.heading2 img {
    float: none;
    display: block;
    margin: 0 auto 10px auto;
  }
  
  /* Hide rating column on mobile for table2 */
  .table2 td.rating-cell {
    display: none !important;
  }
  
  /* Make downloads column narrower on mobile */
  .table2 td.downloads {
    width: auto !important;
    min-width: 0 !important;
    max-width: 30% !important;
    font-size: 10px !important;
    padding: 8px 4px !important;
    white-space: nowrap;
  }
  
  .table2 td.downloads span {
    font-size: 10px !important;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .table2 td.description {
    width: auto !important;
    min-width: 0 !important;
    max-width: 70% !important;
  }
  
  /* Operating Systems table - override inline styles on mobile */
  .table2 td[style*="width: 70%"],
  .table2 td.description[style*="width: 70%"] {
    width: auto !important;
    max-width: 65% !important;
    min-width: 0 !important;
  }
  
  .table2 td[style*="width: 30%"] {
    width: auto !important;
    max-width: 35% !important;
    min-width: 0 !important;
    font-size: 11px;
    padding: 8px 4px !important;
  }
  
  /* Make View Software button smaller on mobile */
  .table2 td .button {
    padding: 4px 8px !important;
    font-size: 10px !important;
    white-space: nowrap;
    display: inline-block;
    box-sizing: border-box;
  }
  
  /* Ad blocks - responsive sizing (flexible, content-based) */
  .ad-block.ad-leaderboard {
    width: auto !important;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
  }
  
  /* Tabbed selectors - use icons on mobile */
  .tabs {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
  }
  
  .tabstrips2 {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: visible;
  }
  
  .tabstrips2 li {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
  
  .tabstrips2 li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px !important;
    font-size: 10px;
    white-space: normal;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
  }
  
  /* Show only icons on mobile */
  .tabstrips2 li a .tab-icon {
    display: block;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 4px;
  }
  
  .tabstrips2 li a .tab-text {
    display: none;
  }
  
  /* Pagination - wrap on mobile */
  .pagination1 {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
  }
  
  /* Widget categories - full width on mobile */
  .widget.categories a {
    width: 100%;
    max-width: 221px;
  }
  
  /* Softwares column - full width */
  .softwares .column {
    width: 100%;
  }
}

/* Mobile (575px and below) */
@media (max-width: 575px) {
  /* Category grid responsive - 1 column on small mobile */
  div#content div.section {
    flex: 0 0 100%;
    width: 100%;
    margin: 0px 0px 15px 0px;
  }
  
  /* Category lists - comma-separated inline list on small mobile */
  div#content div.section .list3 {
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
  }
  
  div#content div.section .list3 li {
    display: inline;
  }
  
  div#content div.section .list3 li:not(:last-child)::after {
    content: ', ';
    margin-right: 4px;
  }
  
  div#content div.section .list3 li a {
    display: inline;
  }
  
  /* View More link - align with list padding on small mobile */
  div#content div.section .viewmore {
    padding-left: 15px;
  }
  
  /* Tables - reduce padding on small mobile */
  .table1 td,
  .table2 tr td {
    padding: 6px 4px;
    font-size: 11px;
  }
  
  .table1 th,
  .table2 th {
    padding: 4px;
    font-size: 11px;
  }
  
  /* Download boxes - adjust padding */
  .box2 .inner {
    padding: 8px;
  }
  
  .box2 h3 {
    font-size: 13px;
  }
  
  /* Box3 - adjust sizing */
  .box3 {
    padding: 8px;
  }
  
  .box3 .section1 h3 {
    font-size: 10px;
  }
  
  .box3 .section1 a {
    font-size: 15px;
  }
  
  /* Ad blocks - smaller on mobile */
  .ad-block {
    padding: 8px;
    font-size: 11px;
  }
  
  .ad-block.ad-leaderboard {
    height: auto;
  }
  
  /* Pagination - smaller buttons */
  .pagination1 {
    font-size: 11px;
  }
  
  .pagination1 .previous-btn,
  .pagination1 .next-btn {
    padding: 6px 10px;
  }
  
  /* Float classes - disable floats on mobile */
  .flL,
  .flR {
    float: none;
    width: 100%;
  }
  
  /* Download boxes - ensure full width */
  .download-boxes .column.flL,
  .download-boxes .column.flR {
    width: 100%;
    margin-bottom: 15px;
  }
}

/* Static Content Pages - EXACTLY matching original OldVersion.com */
.text-normal {
  font-size: 1.6em;
}

/* Shared Ad Block Styles */
.ad-block {
  margin: 10px 0;
  padding: 10px;
  background: #f0f0f0;
  border: 1px solid #cccccc;
  text-align: center;
  font-size: 12px;
  color: #666666;
}

/* Ad block variants - remove default styling for image/Google/custom ads */
.ad-block.ad-block-image,
.ad-block.ad-block-google,
.ad-block.ad-block-custom {
  background: none;
  border: none;
  padding: 0;
}

/* Ad images */
.ad-image {
  height: auto;
  max-width: 100%;
}

/* Google Ads */
.adsbygoogle {
  display: block;
}

/* Common ad block sizes - flexible sizing based on content */
/* No width constraints - ads expand to their natural content size */
.ad-block.ad-leaderboard,
.ad-block.ad-full-banner,
.ad-block.ad-large-rectangle,
.ad-block.ad-medium-rectangle,
.ad-block.ad-half-page,
.ad-block.ad-square,
.ad-block.ad-vertical-rectangle,
.ad-block.ad-half-banner,
.ad-block.ad-skyscraper,
.ad-block.ad-rectangle,
.ad-block.ad-wide-skyscraper,
.ad-block.ad-square-button,
.ad-block.ad-skyscraper-120,
.ad-block.ad-vertical-banner,
.ad-block.ad-small-rectangle,
.ad-block.ad-button,
.ad-block.ad-micro-button,
.ad-block.ad-custom {
  width: auto;
  display: block;
  padding: 0;
}

/* OS Category Buttons - EXACTLY like original */
.widget.categories {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 12px;
}

/* Hide OS category buttons in sidebar on mobile */
@media (max-width: 767px) {
  .widget.categories {
    display: none !important;
  }
}

.widget.categories a {
  display: block;
  width: 221px;
  height: 49px;
  position: relative;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  text-decoration: none;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.widget.categories a:hover {
  border-color: #000;
  text-decoration: none;
}

.widget.categories a.windows {
  background-image: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/menu_windows.fdd38f560942.jpg');
}

.widget.categories a.mac {
  background-image: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/menu_mac.fd7288cd9e23.jpg');
}

.widget.categories a.linux {
  background-image: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/menu_linux.14e86331d360.jpg');
}

.widget.categories a.games {
  background-image: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/menu_games.3513677bddf5.jpg');
}

.widget.categories a.android {
  background-image: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/menu_android.e3d949ff99fd.png');
}

.widget.categories a.active {
  background-position: 0 -51px;
  border-color: #0095ff;
}

/* Top Contributors Widget - EXACTLY like original */
.widget.top-contributors dl {
  padding: 0 15px 0 0;
}

.widget.top-contributors dl dt {
  float: right;
  color: #6ca000;
  display: block;
}

.widget.top-contributors dl dd {
  color: #073b76;
  float: left;
  display: block;
  width: 120px;
}

.widget.top-contributors dl dd a {
  color: #073B76;
  text-decoration: none;
}

.widget.top-contributors dl dd a:hover {
  color: #292929;
}

/* Upload Software Widget - EXACTLY like original */
.widget.box1 {
  background: #f5f5f5;
  border: 1px solid #000;
  padding: 12px;
}

.widget.box1 h3 {
  color: #00548f;
  font-size: 160%;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.widget.box1 h3 a {
  color: #00548f;
  font-size: 100%;
  text-decoration: none;
}

.widget.box1 p {
  color: #656565;
  font-size: 120%;
  line-height: 18px;
}

/* Link Styles - EXACTLY like original */
.link1 {
  font-size: 120%;
  color: #00548f;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
}

.link1:hover {
  text-decoration: underline;
}

/* 404 Error Page Styles */
.error-404-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.error-404-header {
  margin-bottom: 30px;
}

/* BSOD Screen Styling */
.bsod-screen {
  background: #0000aa !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 40px !important;
  text-align: left !important;
  font-family: 'Courier New', 'Lucida Console', monospace !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  min-height: 400px;
}

.bsod-screen .bsod-message {
  color: #ffffff;
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.bsod-screen .bsod-message p {
  margin: 8px 0;
  color: #ffffff;
}

.bsod-screen .bsod-stop {
  font-weight: bold;
  font-size: 16px;
  margin: 16px 0 !important;
  color: #ffffff;
}

.error-search-section,
.error-navigation,
.error-popular-section,
.error-recent-section {
  margin: 30px 0;
  padding: 20px;
  background: var(--color-bg-primary, #fff);
  border: 1px solid var(--color-border, #ddd);
}

.error-search-section h2,
.error-navigation h2,
.error-popular-section h2,
.error-recent-section h2 {
  font-size: 18px;
  color: var(--color-primary, #0066cc);
  margin-bottom: 15px;
  font-weight: bold;
}

.error-search-form {
  margin-top: 15px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.error-software-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.error-software-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: var(--color-bg-secondary, #f9f9f9);
  border: 1px solid var(--color-border, #eee);
}

.software-icon-small {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--color-border, #ddd);
}

.software-info-small h3 {
  font-size: 14px;
  margin: 0 0 5px 0;
}

.software-info-small h3 a {
  color: var(--color-primary, #0066cc);
  text-decoration: none;
}

.software-info-small h3 a:hover {
  text-decoration: underline;
}

.downloads-small {
  font-size: 12px;
  color: var(--color-text-secondary, #666);
}

.error-debug-info {
  margin: 30px 0;
  padding: 20px;
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 5px;
}

.error-debug-info h3 {
  font-size: 16px;
  color: #856404;
  margin-bottom: 15px;
}

.debug-table {
  width: 100%;
  border-collapse: collapse;
}

.debug-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
}

.debug-table td:first-child {
  width: 150px;
  font-weight: bold;
}

.debug-table code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  word-break: break-all;
}

@media (max-width: 767px) {
  .error-links {
    flex-direction: column;
  }
  
  .error-links .button4 {
    width: 100%;
    text-align: center;
  }
}

/* Search Filters - Clean, aligned layout */
.search-filters-form {
  margin: 15px 0;
}

.search-filters-grid {
  display: grid;
  grid-template-columns: 150px 180px 1fr auto;
  gap: 15px;
  margin-bottom: 15px;
  align-items: end;
}

.search-filter-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.search-filter-item.search-filter-item-small {
  max-width: 150px;
}

.search-filter-item label {
  font-size: 11px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 3px;
  line-height: 1.4;
}

.search-filter-item .selectbox {
  width: 100%;
  padding: 5px;
  font-size: 11px;
  border: 1px solid #cccccc;
  background: #ffffff;
  font-family: Arial, sans-serif;
}

.search-filters-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: auto;
}

.search-filter-button-apply {
  background: #00548f;
  border: 1px solid #00548f;
  color: #fff;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: normal;
  font-family: Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.search-filter-button-apply:hover {
  background: #003d6b;
  border-color: #003d6b;
}

.search-filter-button-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f0f0f0;
  border: 1px solid #cccccc;
  color: #666666;
  font-size: 20px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s ease;
  box-sizing: border-box;
  line-height: 1;
  padding: 0;
}

.search-filter-button-clear:hover {
  background: #e0e0e0;
  border-color: #999999;
  color: #000000;
  text-decoration: none;
}

/* Responsive adjustments for search filters */
@media (max-width: 991px) {
  .search-filters-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .search-filters-actions {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .search-filters-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .search-filters-actions {
    flex-direction: row;
    align-items: flex-start;
  }
}