/*
Theme Name: RaboteshtLink Classic
Theme URI: https://raboteshtlink.com/
Author: Ivan
Description: Lightweight classic theme rebuilt for the original RaboteshtLink.com database and content.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: raboteshtlink-classic
*/

:root {
    --rtl-red: #ef1821;
    --rtl-red-dark: #7d0b0f;
    --rtl-header: #540508;
    --rtl-text: #4a4a4a;
    --rtl-bg: #f4f4f4;
    --rtl-border: #ef1821;
    --rtl-width: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--rtl-bg);
    color: var(--rtl-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.65;
}
a { color: #444; text-decoration: none; }
a:hover { color: var(--rtl-red); }
img { max-width: 100%; height: auto; }

.site-header { background: var(--rtl-header); color: #fff; }
.site-branding {
    width: min(var(--rtl-width), calc(100% - 36px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
}
.site-title { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.2; }
.site-title a { color: #fff; }
.site-description { display: none; }

.primary-nav-wrap { background: #72090d; border-bottom: 36px solid var(--rtl-red); }
.primary-nav {
    width: min(var(--rtl-width), calc(100% - 36px));
    margin: 0 auto;
}
.primary-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}
.primary-nav li { position: relative; margin: 0; }
.primary-nav > ul > li { flex: 0 0 auto; }
.primary-nav a {
    display: block;
    padding: 14px 17px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav a:hover { background: var(--rtl-red); color: #fff; }
.primary-nav .sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    display: none;
    width: max-content;
    min-width: 190px;
    margin: 0;
    padding: 0;
    background: #72090d;
    box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.primary-nav .sub-menu li {
    display: block;
    width: 100%;
    margin: 0;
}
.primary-nav .sub-menu a {
    display: block;
    padding: 11px 15px;
    white-space: nowrap;
    border-top: 1px solid rgba(255,255,255,.08);
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.menu-toggle { display: none; border: 0; background: transparent; color: #fff; padding: 14px 0; font-weight: 700; cursor: pointer; }

.site-main {
    width: min(var(--rtl-width), calc(100% - 36px));
    margin: 0 auto;
    padding: 18px 0 52px;
}
.entry-header { text-align: center; }
.entry-title { margin: 0 0 12px; font-size: 25px; line-height: 1.25; font-weight: 400; color: #555; }
.entry-content { font-size: 13px; }
.entry-content p { margin: 0 0 14px; }
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: #4a4a4a; line-height: 1.25; }
.entry-content h1 { text-align: center; font-size: 25px; font-weight: 400; margin: 0 0 12px; }
.entry-content h2 { font-size: 23px; margin: 28px 0 12px; }
.entry-content h3 { font-size: 21px; margin: 26px 0 12px; }
.entry-content ul,
.entry-content ol { padding-left: 28px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { border: 1px solid #ddd; padding: 9px; }
.entry-content figure { margin: 14px 0; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }

.home-intro > :first-child { margin-top: 0; }
.home-bookmakers-title {
    margin: 20px 0 10px;
    padding: 8px 10px;
    background: var(--rtl-red);
    color: #fff;
    border-radius: 3px;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
}
.bookmaker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px 28px;
    margin-bottom: 26px;
}
.bookmaker-card {
    grid-column: span 2;
    border: 2px solid var(--rtl-border);
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.bookmaker-card:nth-child(n+4) { grid-column: span 3; }
.bookmaker-card__media {
    min-height: 205px;
    padding: 26px 20px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bookmaker-card__media figure { margin: 0; width: 100%; text-align: center; }
.bookmaker-card__media img { max-height: 105px; width: auto; object-fit: contain; }
.bookmaker-card__content { padding: 0 11px 16px; text-align: justify; flex: 1; }
.bookmaker-card__content p:last-child { margin-bottom: 0; }
.home-rest > h2,
.home-rest > h3 { margin-top: 28px; }

.post-list { display: grid; gap: 18px; }
.post-card { background: #fff; padding: 22px; border: 1px solid #e1e1e1; }
.post-card h2 { margin: 0 0 8px; font-size: 22px; }
.post-meta { color: #888; font-size: 12px; margin-bottom: 10px; }

.site-footer { background: #4b0508; color: #ddd; }
.site-footer__inner {
    width: min(var(--rtl-width), calc(100% - 36px));
    margin: 0 auto;
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.site-footer a { color: #fff; }
.btn-lined {
    background: none;
    color: #fff;
    text-shadow: none;
    padding: 7px 20px;
    line-height: 1.6;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 3px;
    border: 2px solid #fff;
    -webkit-transition: all .1s ease-in-out;
    transition: all .1s ease-in-out;
    border-color: #ed1c24;
    color: #ed1c24;
}
h3.tbk__title {
    background: #ed1c24;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
}
@media (max-width: 850px) {
    .site-branding { min-height: 68px; }
    .primary-nav-wrap { border-bottom-width: 16px; }
    .menu-toggle { display: block; }
    .primary-nav > ul { display: none; padding-bottom: 8px; }
    .primary-nav.is-open > ul { display: block; }
    .primary-nav a { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
    .primary-nav .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding-left: 18px;
        background: transparent;
        box-shadow: none;
    }
    .primary-nav .sub-menu .sub-menu { padding-left: 18px; }
    .primary-nav .sub-menu a { white-space: normal; }
    .bookmaker-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .bookmaker-card,
    .bookmaker-card:nth-child(n+4) { grid-column: span 1; }
}

@media (max-width: 560px) {
    body { font-size: 14px; }
    .site-title { font-size: 24px; }
    .site-main,
    .site-branding,
    .primary-nav,
    .site-footer__inner { width: min(100% - 24px, var(--rtl-width)); }
    .bookmaker-grid { grid-template-columns: 1fr; }
    .bookmaker-card__media { min-height: 150px; }
    .entry-content { font-size: 14px; }
}
