/* ============================================================
   arm-wrestling.org — Custom overrides for RetNews template
   ============================================================ */

/* Logo — all instances controlled here */
.site-logo    { height: 200px; width: auto; display: block; padding: 20px; }
.loading-logo { max-height: 360px; max-width: 840px; width: auto; height: auto; }
.logo-footer  { height: 60px; width: auto; display: block; }

/* Fix bootstrap 5 / bootstrap 4 nav alignment quirks */
.navbar-nav.ml-auto { margin-left: auto !important; }

/* Article body (WYSIWYG output) */
.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
    clear: both;
}
.article-body p      { margin-bottom: 1.25rem; }
.article-body img    { max-width: 100%; height: auto; border-radius: 4px; }
.article-body h2,
.article-body h3,
.article-body h4     { margin-top: 2rem; margin-bottom: .75rem; }
.article-body { overflow-x: hidden; word-break: break-word; }
.article-body table  { width: 100% !important; max-width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; table-layout: fixed; }
.article-body table td,
.article-body table th { word-break: break-word; }
.article-body table th,
.article-body table td {
    border: 1px solid #dee2e6;
    padding: .5rem .75rem;
}
.article-body table th { background: #f8f9fa; }
.article-body table tr:nth-child(even) { background: #fdfdfd; }

/* Results table */
.results-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.results-content table th,
.results-content table td {
    border: 1px solid #dee2e6;
    padding: .5rem .85rem;
    vertical-align: middle;
}
.results-content table th { background: #1a1f2e; color: #fff; }
.results-content table tr:nth-child(even) { background: #f8f9fa; }
.results-content table tr:first-child td:first-child { font-weight: 700; color: #e63946; }

/* Event meta box */
.event-meta strong { display: inline-block; min-width: 80px; }

/* Sidebar widget title */
.title-widget {
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e63946;
    margin-bottom: 1rem;
    color: #1a1f2e;
}

/* Section title */
.title-section {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding-left: 10px;
    border-left: 3px solid #e63946;
}

/* Ad widget */
.widget-ad a { display: block; }
.widget-ad img { border-radius: 6px; }

/* Gallery hover */
#photo-grid [data-src] { overflow: hidden; }
#photo-grid img { transition: transform .25s; }
#photo-grid img:hover { transform: scale(1.04); }

/* Card post height fix on grid */
.card__post__body img { display: block; }

/* News card titles — override template white color */
.card__post__title h5 a { color: #1a1f2e !important; }
.card__post__title h5 a:hover { color: #e63946 !important; }

/* Hero featured posts (left carousel + right column) — white text with shadow */
.card__post__transition .card__post__body .card__post__content .card__post__title h5 a,
.card__post__transition .card__post__body .card__post__content .card__post__title h5,
.card__post-carousel .card__post .card__post__body .card__post__content .card__post__title h2 a,
.popular__news-right .card__post__title h5 a,
.popular__news-right .card__post__title h6 a {
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.9), 0 2px 10px rgba(0,0,0,.7) !important;
}
.card__post__transition .card__post__body .card__post__content .card__post__author-info a,
.card__post__transition .card__post__body .card__post__content .card__post__author-info span {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.9) !important;
}

/* Breadcrumb active */
.breadcrumbs__item--current { color: #6c757d; }

/* Pagination */
.pagination { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; }
.pagination .page-item { display: block !important; float: none !important; }
.pagination .page-item .page-link { display: block !important; }

/* Event list thumbnail */
.event-thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    flex-shrink: 0;
}
.event-thumb--placeholder {
    background-color: #f0f1f3;
    background-image: url('/assets/images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    opacity: 0.35;
}

/* Contact form */
.form-control:focus { border-color: #e63946; box-shadow: 0 0 0 .15rem rgba(230,57,70,.2); }
.btn-dark { background: #1a1f2e; border-color: #1a1f2e; }
.btn-dark:hover { background: #e63946; border-color: #e63946; }
