/* TestRight website polish (header button + footer).
   Loaded after style.css and responsive.css so it overrides the template
   without editing the template files. Bump ?v= in _Layout_EN_WS.cshtml on change. */

:root {
    --tr-primary: #404eb4;
    --tr-primary-dark: #2f3fa3;
    --tr-deep: #1c2678;
    --tr-deeper: #151d5e;
    --tr-accent: #72bf44;
    --tr-white-70: rgba(255, 255, 255, 0.72);
    --tr-white-50: rgba(255, 255, 255, 0.5);
    --tr-line: rgba(255, 255, 255, 0.12);
}

/* ---------- Header "Contact Us" button ---------- */
.second-header-btn .btn {
    background: var(--tr-primary);
    color: #fff;
    border-radius: 50px;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 10px 24px rgba(64, 78, 180, 0.28);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

    .second-header-btn .btn:hover,
    .second-header-btn .btn:focus {
        background: var(--tr-primary-dark);
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(64, 78, 180, 0.36);
    }

/* ---------- Footer ---------- */
.tr-footer.footer-bg {
    background: linear-gradient(160deg, var(--tr-deep) 0%, var(--tr-deeper) 100%) !important;
    color: var(--tr-white-70);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

    .tr-footer.footer-bg::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.04);
        top: -180px;
        right: -140px;
        pointer-events: none;
    }

.tr-footer .footer-top {
    padding-bottom: 40px;
    position: relative;
}

.tr-footer .f-widget-title h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding-bottom: 14px;
    margin-bottom: 22px;
    color: #fff;
}

    .tr-footer .f-widget-title h2::before {
        bottom: 0;
        height: 3px;
        width: 36px;
        border-radius: 3px;
        background: var(--tr-accent);
    }

.tr-footer .tr-footer-logo {
    display: inline-block;
    margin-bottom: 18px;
}

    .tr-footer .tr-footer-logo img {
        height: 46px;
        width: auto;
        border-radius: 8px;
    }

.tr-footer .tr-footer-about {
    color: var(--tr-white-70);
    font-size: 14.5px;
    line-height: 1.85;
    margin-bottom: 22px;
}

.tr-footer .footer-social {
    margin-top: 0;
}

    .tr-footer .footer-social a {
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 15px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--tr-line);
        transition: background 0.2s ease, transform 0.2s ease;
    }

        .tr-footer .footer-social a:hover {
            background: var(--tr-primary);
            transform: translateY(-2px);
        }

.tr-footer .footer-link ul li {
    margin-bottom: 12px;
}

    .tr-footer .footer-link ul li a {
        color: var(--tr-white-70);
        font-size: 15px;
        transition: color 0.2s ease, padding 0.2s ease;
    }

        .tr-footer .footer-link ul li a::before {
            display: inline-block;
            content: "\203A";
            color: var(--tr-accent);
            font-size: 18px;
            margin-right: 8px;
        }

        .tr-footer .footer-link ul li a:hover {
            color: #fff;
            text-decoration: none;
            padding-left: 4px;
        }

.tr-footer .recent-blog-footer li {
    margin-bottom: 18px !important;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--tr-line);
}

    .tr-footer .recent-blog-footer li:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

.tr-footer .recent-blog-footer a {
    color: #fff !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 6px;
}

    .tr-footer .recent-blog-footer a:hover {
        color: #fff !important;
        text-decoration: underline;
    }

.tr-footer .recent-blog-footer span {
    color: var(--tr-white-50);
    font-size: 13px;
}

    .tr-footer .recent-blog-footer span i {
        margin-right: 6px;
    }

.tr-footer .tr-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .tr-footer .tr-footer-contact li {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 18px;
        color: var(--tr-white-70);
        font-size: 15px;
        line-height: 1.6;
    }

    .tr-footer .tr-footer-contact .tr-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--tr-line);
        color: var(--tr-accent);
        font-size: 15px;
    }

    .tr-footer .tr-footer-contact a {
        color: #fff;
    }

        .tr-footer .tr-footer-contact a:hover {
            color: #fff;
            text-decoration: underline;
        }

/* Bottom bar */
.tr-footer .copyright-wrap {
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid var(--tr-line);
    font-size: 14px;
    color: var(--tr-white-70);
    position: relative;
}

    .tr-footer .copyright-wrap .container {
        padding: 18px 15px;
    }

.tr-footer .tr-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    flex-wrap: wrap;
}

.tr-footer .tr-legal a {
    color: var(--tr-white-70);
}

    .tr-footer .tr-legal a:hover {
        color: #fff;
    }

.tr-footer .tr-legal .tr-sep {
    margin: 0 10px;
    color: var(--tr-white-50);
}

.tr-footer .tr-credit a {
    color: #fff;
    font-weight: 600;
}

    .tr-footer .tr-credit a:hover {
        color: var(--tr-accent);
    }

@media (max-width: 991px) {
    .tr-footer .tr-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .tr-footer.footer-bg {
        padding-top: 56px;
    }

    .tr-footer .footer-top {
        padding-bottom: 16px;
    }

    .tr-footer .footer-widget {
        margin-bottom: 34px;
    }
}
