:root {
    --rt-primary: #d8261a;
    --rt-primary-dark: #b91f15;
    --rt-secondary: #063e7b;
    --rt-heading: #172b44;
    --rt-text: #677487;
    --rt-border: #e5ebf2;
    --rt-light: #f5f7fb;
}

/* Shared components */
.rt-header,
.rt-home,
.rt-footer {
    font-family: inherit;
    line-height: 1.7;
}

.rt-header *,
.rt-home *,
.rt-footer * {
    box-sizing: border-box;
}

.rt-header a,
.rt-home a,
.rt-footer a {
    text-decoration: none;
}

.rt-home {
    color: var(--rt-text);
    background: #fff;
}

.rt-home h1,
.rt-home h2,
.rt-home h3,
.rt-home h4 {
    color: var(--rt-heading);
    line-height: 1.3;
}

.rt-header a:focus-visible,
.rt-header button:focus-visible,
.rt-home a:focus-visible,
.rt-home button:focus-visible,
.rt-footer a:focus-visible {
    outline: 3px solid #82b6ef;
    outline-offset: 4px;
}

.rt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}

.rt-btn-primary {
    background: var(--rt-primary);
    color: #fff !important;
}

.rt-btn-primary:hover {
    background: var(--rt-primary-dark);
}

.rt-btn-secondary {
    background: var(--rt-secondary);
    color: #fff !important;
}

.rt-btn-secondary:hover {
    background: #042d5b;
}

.rt-btn-white {
    background: #fff;
    color: var(--rt-secondary) !important;
}

.rt-btn-white:hover {
    background: #edf3fa;
}

.rt-btn-outline {
    border-color: var(--rt-primary);
    background: transparent;
    color: var(--rt-primary) !important;
}

.rt-btn-outline:hover {
    background: var(--rt-primary);
    color: #fff !important;
}

.rt-section {
    padding: 75px 0;
}

.rt-bg-light {
    background: var(--rt-light);
}

.rt-section-heading {
    max-width: 700px;
    margin: 0 auto 38px;
    text-align: center;
}

.rt-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--rt-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.rt-section-title {
    margin-bottom: 14px;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
}

.rt-section-heading p {
    margin: 0;
}

.rt-section-heading::after {
    display: block;
    width: 55px;
    height: 3px;
    margin: 22px auto 0;
    background: var(--rt-primary);
    content: "";
}

.rt-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--rt-primary);
    font-weight: 600;
}

.rt-link:hover {
    color: var(--rt-primary-dark);
}

/* Header */
.rt-header {
    position: relative;
    z-index: 100;
    background: #fff;
}

.rt-topbar {
    padding: 8px 0;
    background: var(--rt-secondary);
    color: #fff;
    font-size: 12px;
}

.rt-topbar-inner,
.rt-topbar-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.rt-topbar a {
    color: #fff;
}

.rt-topbar i {
    margin-right: 6px;
}

.rt-nav {
    padding: 15px 0;
    border-bottom: 1px solid var(--rt-border);
}

.rt-brand img {
    display: block;
    width: 145px;
    max-height: 65px;
    object-fit: contain;
}

.rt-header .navbar-nav {
    gap: 4px;
}

.rt-header .navbar-nav .nav-link {
    padding: 12px 11px;
    color: var(--rt-heading);
    font-size: 13px;
    font-weight: 600;
}

.rt-header .navbar-nav .nav-link:hover,
.rt-header .navbar-nav .nav-link.active {
    color: var(--rt-primary);
}

.rt-header .dropdown-menu {
    padding: 8px;
    border: 1px solid var(--rt-border);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(6, 62, 123, 0.1);
}

.rt-header .dropdown-item {
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.rt-header .dropdown-item:active {
    background: var(--rt-secondary);
}

.rt-account-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.rt-account-link {
    color: var(--rt-secondary);
    font-size: 13px;
    font-weight: 600;
}

.rt-logout {
    padding: 0;
    border: 0;
    background: none;
    color: var(--rt-primary);
    font-size: 13px;
    cursor: pointer;
}

.rt-nav-toggle {
    padding: 10px 12px;
    border: 1px solid var(--rt-border);
    border-radius: 5px;
    background: #fff;
    color: var(--rt-secondary);
}

/* Hero */
.rt-hero {
    position: relative;
    padding: 105px 0 80px;
    background-color: var(--rt-secondary);
    background-position: center;
    background-size: cover;
}

.rt-hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(3, 35, 71, 0.95),
        rgba(6, 62, 123, 0.84),
        rgba(3, 35, 71, 0.72)
    );
    content: "";
}

.rt-hero .container {
    position: relative;
    z-index: 1;
}

.rt-hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.rt-hero-label {
    display: inline-block;
    margin-bottom: 20px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    color: #fff;
    font-size: 12px;
    letter-spacing: 1px;
}

.rt-home .rt-hero-title {
    margin-bottom: 20px;
    color: #fff;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: -1.3px;
}

.rt-hero-title span {
    color: #ffb3ad;
}

.rt-hero-description {
    max-width: 680px;
    margin: 0 auto;
    color: #e1eaf5;
    font-size: 17px;
}

.rt-search {
    display: grid;
    grid-template-columns: 1.25fr 1fr auto;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.rt-search-field {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 6px 18px;
}

.rt-search-field + .rt-search-field {
    border-left: 1px solid var(--rt-border);
}

.rt-search-field > i {
    color: var(--rt-secondary);
    font-size: 21px;
}

.rt-search-control {
    flex: 1;
    min-width: 0;
}

.rt-search-control label {
    display: block;
    margin: 0;
    color: var(--rt-heading);
    font-size: 12px;
    font-weight: 700;
}

.rt-search-control input {
    width: 100%;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--rt-heading);
    font-size: 14px;
}

.rt-search-control input:focus {
    outline: none;
    box-shadow: 0 2px 0 var(--rt-primary);
}

.rt-search .rt-btn {
    min-width: 175px;
    min-height: 58px;
}

.rt-popular {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 15px;
    margin-top: 22px;
    color: #fff;
    font-size: 12px;
}

.rt-popular a {
    color: #e0eafa;
}

.rt-popular a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Statistics */
.rt-stats {
    padding: 30px 0;
    border-bottom: 1px solid var(--rt-border);
    background: #fff;
}

.rt-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.rt-stat > i {
    color: var(--rt-primary);
    font-size: 30px;
}

.rt-stat strong {
    display: block;
    color: var(--rt-secondary);
    font-size: 29px;
    line-height: 1.2;
}

.rt-stat span {
    font-size: 13px;
}

/* Job categories */
.rt-category {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 23px;
    border: 1px solid var(--rt-border);
    border-radius: 8px;
    background: #fff;
    transition:
        transform 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}

.rt-category:hover {
    transform: translateY(-4px);
    border-color: #e7a49f;
    box-shadow: 0 12px 28px rgba(6, 62, 123, 0.07);
}

.rt-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #eef4fb;
    color: var(--rt-secondary);
    font-size: 23px;
}

.rt-category:hover .rt-category-icon {
    background: #fff0ee;
    color: var(--rt-primary);
}

.rt-category h3 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.rt-category small {
    color: var(--rt-text);
}

.rt-category > i {
    margin-left: auto;
    color: #a0acba;
    font-size: 12px;
}

/* CV section */
.rt-cv-image {
    width: 100%;
    height: 410px;
    border-radius: 12px;
    object-fit: cover;
}

.rt-cv-content {
    padding-left: 30px;
}

.rt-cv-content p {
    margin-bottom: 22px;
}

.rt-check-list {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.rt-check-list li {
    margin-bottom: 12px;
    color: var(--rt-heading);
    font-size: 14px;
}

.rt-check-list i {
    margin-right: 10px;
    color: var(--rt-primary);
}

.rt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Training tabs and cards */
.rt-training-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.rt-training-tabs .nav-link {
    padding: 11px 24px;
    border: 1px solid var(--rt-border);
    border-radius: 5px;
    background: #fff;
    color: var(--rt-secondary);
    font-size: 14px;
    font-weight: 600;
}

.rt-training-tabs .nav-link.active {
    border-color: var(--rt-primary);
    background: var(--rt-primary);
    color: #fff;
}

.rt-training-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--rt-border);
    border-radius: 9px;
    background: #fff;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.rt-training-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(6, 62, 123, 0.08);
}

.rt-training-image-wrap {
    position: relative;
}

.rt-training-image {
    display: block;
    width: 100%;
    height: 215px;
    object-fit: cover;
}

.rt-training-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    background: var(--rt-secondary);
    color: #fff;
    font-size: 11px;
}

.rt-training-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px;
}

.rt-training-date {
    margin-bottom: 12px;
    color: var(--rt-text);
    font-size: 12px;
}

.rt-training-date i {
    margin-right: 6px;
    color: var(--rt-primary);
}

.rt-training-body h3 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.rt-training-body p {
    margin-bottom: 22px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.rt-training-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--rt-border);
}

.rt-training-footer .rt-btn {
    width: 100%;
}

.rt-custom-training {
    padding: 40px;
    border: 1px solid var(--rt-border);
    border-radius: 10px;
    background: #fff;
}

.rt-custom-training p {
    margin-bottom: 0;
}

.rt-empty {
    width: 100%;
    padding: 30px;
    border: 1px dashed #c4d1e1;
    border-radius: 8px;
    text-align: center;
}

/* Benefits */
.rt-benefit {
    height: 100%;
    padding: 28px;
    border: 1px solid var(--rt-border);
    border-radius: 9px;
    background: #fff;
}

.rt-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 22px;
    border-radius: 10px;
    background: #fff0ee;
    color: var(--rt-primary);
    font-size: 22px;
}

.rt-benefit h3 {
    margin-bottom: 12px;
    font-size: 19px;
    font-weight: 600;
}

.rt-benefit p {
    margin: 0;
    font-size: 14px;
}

.rt-benefit-highlight {
    border-color: var(--rt-secondary);
    background: var(--rt-secondary);
}

.rt-benefit-highlight h3 {
    color: #fff;
    font-size: 25px;
}

.rt-benefit-highlight p {
    margin-bottom: 24px;
    color: #e0eafa;
}

.rt-benefit-highlight .rt-eyebrow {
    color: #ffb3ad;
}

/* Footer */
.rt-footer {
    padding-top: 60px;
    background: #052f5d;
    color: #c8d5e6;
    font-size: 13px;
}

.rt-footer-brand {
    display: inline-block;
    margin-bottom: 20px;
    padding: 12px 18px;
    border-radius: 6px;
    background: #fff;
}

.rt-footer-brand img {
    width: 140px;
    max-height: 65px;
    object-fit: contain;
}

.rt-footer h3 {
    margin-bottom: 22px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.rt-footer h3::after {
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 12px;
    background: var(--rt-primary);
    content: "";
}

.rt-footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rt-footer-list li {
    margin-bottom: 11px;
}

.rt-footer a {
    color: #c8d5e6;
}

.rt-footer a:hover {
    color: #fff;
}

.rt-footer-list a::before {
    margin-right: 9px;
    color: #f67d73;
    content: "›";
}

.rt-footer-social {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.rt-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
}

.rt-footer-social a:hover {
    border-color: var(--rt-primary);
    background: var(--rt-primary);
}

.rt-footer-office {
    margin-bottom: 20px;
}

.rt-footer-office strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
}

.rt-footer-office address {
    margin: 0;
    font-style: normal;
    font-size: 12px;
    line-height: 1.8;
}

.rt-footer-office a {
    overflow-wrap: anywhere;
}

.rt-footer-bottom {
    margin-top: 35px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.rt-footer-bottom p {
    margin: 0;
    font-size: 12px;
}

@media (max-width: 1199.98px) {
    .rt-header .navbar-nav .nav-link {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 12px;
    }

    .rt-brand img {
        width: 125px;
    }

    .rt-account-actions {
        gap: 10px;
        margin-left: 12px;
    }
}

@media (max-width: 991.98px) {
    .rt-header .navbar-collapse {
        padding-top: 18px;
    }

    .rt-header .navbar-nav .nav-link {
        padding: 10px 0;
        font-size: 14px;
    }

    .rt-account-actions {
        margin: 15px 0 0;
        padding-top: 15px;
        border-top: 1px solid var(--rt-border);
    }

    .rt-hero {
        padding: 75px 0 60px;
    }

    .rt-cv-content {
        margin-top: 30px;
        padding-left: 0;
    }

    .rt-cv-image {
        height: 350px;
    }

    .rt-custom-training .rt-btn {
        margin-top: 22px;
    }
}

@media (max-width: 767.98px) {
    .rt-section {
        padding: 50px 0;
    }

    .rt-topbar-inner {
        justify-content: center;
    }

    .rt-topbar-message {
        display: none;
    }

    .rt-hero {
        padding: 55px 0 45px;
    }

    .rt-hero-description {
        font-size: 15px;
    }

    .rt-search {
        grid-template-columns: 1fr;
    }

    .rt-search-field {
        padding: 10px;
    }

    .rt-search-field + .rt-search-field {
        border-top: 1px solid var(--rt-border);
        border-left: 0;
    }

    .rt-search .rt-btn {
        width: 100%;
    }

    .rt-stat {
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 0;
    }

    .rt-stat strong {
        font-size: 25px;
    }

    .rt-stat > i {
        font-size: 24px;
    }

    .rt-custom-training {
        padding: 25px;
    }

    .rt-footer {
        padding-top: 45px;
    }

    .rt-footer-column {
        margin-bottom: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rt-header *,
    .rt-home *,
    .rt-footer * {
        transition: none !important;
    }
}
/* Sticky header */
.rt-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 18px rgba(6, 62, 123, 0.08);
}

/* Mobile: expanded menu can scroll on smaller screens */
@media (max-width: 991.98px) {
    .rt-header #rectraMainNavigation {
        max-height: 65vh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* Keep homepage contact heading visible below sticky header */
#rectra-contact {
    scroll-margin-top: 150px;
}
