/* ==========================================================================
   Custom polish layer — loaded after style.css / all.css.
   Keeps the existing Bootstrap theme structure & brand colors, but tightens
   spacing, adds depth/hover feedback, and modernizes a few dated widgets.
   ========================================================================== */

:root {
    --brand-red: #f94b35;
    --brand-red-dark: #d72924;
    --ink: #232323;
    --muted: #888686;
    --card-radius: 10px;
    --card-shadow: 0 2px 10px rgba(20, 20, 20, 0.06);
    --card-shadow-hover: 0 12px 28px rgba(20, 20, 20, 0.14);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a, button {
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* ---- Top utility bar ---------------------------------------------------- */
.top-bar {
    border-bottom: 1px solid #eee;
}

.top-bar .ts-top-nav li a {
    color: var(--muted);
    font-size: 13px;
}

.top-bar .ts-top-nav li a:hover {
    color: var(--brand-red);
}

.top-bar .top-social li a {
    color: var(--muted);
}

.top-bar .top-social li a:hover {
    color: var(--brand-red);
}

/* ---- Header / main nav --------------------------------------------------- */
.header-default {
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
}

.logo {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
}

.nav-menu > li > a {
    letter-spacing: .3px;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--brand-red) !important;
}

.nav-search-button {
    transition: transform .2s ease;
}

.nav-search-button:hover {
    transform: scale(1.08);
}

/* ---- Cards / post grids --------------------------------------------------- */
.ts-grid-box {
    border-radius: var(--card-radius);
}

.ts-grid-box.ts-grid-content {
    border-radius: var(--card-radius);
    transition: box-shadow .25s ease, transform .25s ease;
}

/* Category badge floats over the thumbnail; inset it so its rounded
   corners aren't sliced by the thumbnail's own clipped edge. */
.ts-grid-box .post-cat {
    top: 12px;
    left: 12px;
    margin-left: 0;
}

.ts-grid-box.ts-grid-content:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.ts-grid-box.ts-grid-content .ts-post-thumb {
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.ts-post-thumb img {
    transition: transform .4s ease;
}

.most-populers .item,
.hot-topics-slider .item {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow .25s ease, transform .25s ease;
}

.most-populers .item:hover,
.hot-topics-slider .item:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.post-tab-list .post-content.media,
.post-content.media {
    border-radius: 8px;
    transition: background-color .2s ease;
}

.post-tab-list .post-content.media:hover {
    background-color: #fafafa;
}

.sidebar-img {
    border-radius: 8px;
}

/* ---- Category / tag badges ------------------------------------------------ */
.post-cat {
    border-radius: 20px;
    padding: 5px 14px;
    font-weight: 600;
    letter-spacing: .3px;
    font-size: 11px;
}

.tag-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tag-list ul li {
    display: inline-block;
}

.tag-list ul li a {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    background: #f4f4f4;
    color: var(--ink);
    font-size: 12px;
}

.tag-list ul li a:hover {
    background: var(--brand-red);
    color: #fff;
}

/* ---- Section headings ------------------------------------------------------ */
.ts-title,
.widget-title {
    font-weight: 700;
}

/* ---- Article body ---------------------------------------------------------- */
.single-post .entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.single-post .entry-content p {
    margin-bottom: 1.2em;
}

.single-post .post-title.lg {
    line-height: 1.4;
}

.single-big-img {
    border-radius: var(--card-radius);
}

/* ---- Newsletter / footer --------------------------------------------------- */
.ts-newslatter {
    background: linear-gradient(135deg, #fff5f3 0%, #fff 60%);
}

.ts-newslatter .newsletter-form .email-form-group .form-control {
    border-bottom: 2px solid #e2e2e2;
}

.ts-newslatter .newsletter-form .email-form-group .form-control:focus {
    border-bottom-color: var(--brand-red);
}

.ts-newslatter .btn.btn-primary {
    border-radius: 24px;
    padding: 10px 28px;
}

.ts-newslatter .btn.btn-primary:hover {
    box-shadow: 0 8px 18px rgba(249, 75, 53, 0.35);
    transform: translateY(-1px);
}

.ts-footer {
    background: #1c1d21;
}

.ts-footer .footer-menu ul li a {
    color: #c7c7c7;
}

.ts-footer .footer-menu ul li a:hover {
    color: var(--brand-red);
}

.ts-footer .copyright-text p {
    color: #8a8a8a;
}

/* ---- Focus accessibility ---------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

/* ---- Responsive tweaks ------------------------------------------------------ */
@media (max-width: 991px) {
    .logo {
        height: 80px;
    }

    .logo a {
        line-height: 80px;
    }

    .header-default {
        position: relative;
    }
}
