/*
Theme Name: GeneratePress Child
Template: generatepress
Description: Child theme for recruiter.africa
Version: 1.0
*/

@import url("../generatepress/style.css");

/* ================================================
   GENERATEPRESS FULL-WIDTH OVERRIDE — HOMEPAGE
   ================================================ */

.home .site-main,
.home #primary,
.home .content-area,
.home .site-content,
.home .inside-site-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

.home .entry-content,
.home .inside-article,
.home .entry-header,
.home .page-content,
.home .paging-navigation {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.home .site-content > .grid-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ================================================
   BASE
   ================================================ */

.ra-homepage {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
}

.ra-homepage * {
    box-sizing: border-box;
}

.ra-homepage a {
    text-decoration: none;
}

.ra-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}

.ra-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 1.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid #1a7a4a;
    display: inline-block;
    letter-spacing: -0.01em;
}

/* ================================================
   HERO
   ================================================ */

.ra-hero {
    background: linear-gradient(145deg, #1a7a4a 0%, #0f5230 100%);
    color: #fff;
    padding: 72px 32px 64px;
    text-align: center;
    width: 100%;
}

.ra-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.ra-hero-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.ra-hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.18;
    margin: 0 0 1.1rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.ra-hero-sub {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.ra-trust-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.9;
}

.ra-trust-strip span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================================================
   COUNTRY QUICK NAV
   ================================================ */

.ra-countries {
    background: #f2f7f4;
    padding: 52px 32px;
    width: 100%;
}

.ra-country-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ra-country-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #d8eade;
    border-radius: 14px;
    padding: 26px 22px;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.ra-country-card:hover {
    border-color: #1a7a4a;
    box-shadow: 0 8px 24px rgba(26, 122, 74, 0.14);
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.ra-country-flag {
    font-size: 2.5rem;
    margin-bottom: 14px;
    line-height: 1;
}

.ra-country-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 5px;
}

.ra-country-sub {
    font-size: 0.78rem;
    color: #777;
    line-height: 1.55;
    flex: 1;
}

.ra-country-arrow {
    font-size: 1rem;
    color: #1a7a4a;
    font-weight: 700;
    margin-top: 16px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.ra-country-card:hover .ra-country-arrow {
    transform: translateX(6px);
}

/* ================================================
   COUNTRY DETAIL SECTIONS
   ================================================ */

.ra-country-section {
    padding: 56px 32px;
    background: #fff;
    width: 100%;
}

.ra-country-section--alt {
    background: #f9fbf9;
}

.ra-cs-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.ra-cs-flag {
    font-size: 2.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.ra-cs-header > div {
    flex: 1;
    min-width: 180px;
}

.ra-cs-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 5px;
    letter-spacing: -0.01em;
}

.ra-cs-desc {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.ra-cs-all {
    align-self: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a7a4a;
    white-space: nowrap;
    border: 1.5px solid #1a7a4a;
    padding: 8px 18px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.ra-cs-all:hover {
    background: #1a7a4a;
    color: #fff;
    text-decoration: none;
}

.ra-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.ra-link-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1.5px solid #e5ede8;
    border-radius: 10px;
    padding: 18px 18px;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ra-country-section--alt .ra-link-card {
    background: #fff;
}

.ra-link-card:hover {
    border-color: #1a7a4a;
    box-shadow: 0 4px 16px rgba(26, 122, 74, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.ra-link-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 1px;
    width: 36px;
    text-align: center;
}

.ra-link-card > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ra-link-card strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    display: block;
}

.ra-link-card span {
    font-size: 0.76rem;
    color: #888;
    line-height: 1.5;
}

/* ================================================
   RECENT POSTS
   ================================================ */

.ra-recent {
    padding: 56px 32px;
    background: #fff;
    border-top: 1px solid #eeeeee;
    width: 100%;
}

.ra-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.ra-post-card {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ra-post-card:hover {
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.ra-post-thumb img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.ra-post-thumb--fallback {
    height: 190px;
    background: linear-gradient(145deg, #1a7a4a, #0f5230);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ra-post-thumb--fallback span {
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.ra-post-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.ra-post-cat {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a7a4a;
    font-weight: 700;
}

.ra-post-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #111;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.ra-post-date {
    font-size: 0.74rem;
    color: #bbb;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* ================================================
   TRUST BAR
   ================================================ */

.ra-bottom-trust {
    background: #eef7f2;
    padding: 56px 32px;
    border-top: 1px solid #d4e9db;
    width: 100%;
}

.ra-bottom-trust-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.ra-trust-item {
    padding: 28px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #d8eade;
}

.ra-trust-item strong {
    display: block;
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 10px;
    font-weight: 700;
}

.ra-trust-item p {
    font-size: 0.84rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 12px;
}

.ra-trust-item a {
    font-size: 0.84rem;
    color: #1a7a4a;
    font-weight: 600;
}

.ra-trust-item a:hover {
    text-decoration: underline;
}

/* ================================================
   TABLET — max-width: 900px
   ================================================ */

@media (max-width: 900px) {
    .ra-country-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .ra-bottom-trust-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .ra-container {
        padding: 0 24px;
    }

    .ra-countries,
    .ra-country-section,
    .ra-recent,
    .ra-bottom-trust {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ================================================
   MOBILE — max-width: 600px
   ================================================ */

@media (max-width: 600px) {

    /* Hero */
    .ra-hero {
        padding: 48px 20px 44px;
    }

    .ra-hero-title {
        font-size: 1.65rem;
    }

    .ra-hero-sub {
        font-size: 0.93rem;
    }

    .ra-trust-strip {
        gap: 1rem;
        font-size: 0.78rem;
    }

    /* Container */
    .ra-container {
        padding: 0 16px;
    }

    /* Country nav */
    .ra-countries {
        padding: 36px 16px;
    }

    .ra-country-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ra-country-card {
        padding: 18px 14px;
    }

    .ra-country-flag {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .ra-country-name {
        font-size: 0.95rem;
    }

    /* Country sections */
    .ra-country-section {
        padding: 36px 16px;
    }

    .ra-cs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ra-cs-all {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }

    .ra-links-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ra-link-card {
        padding: 14px 14px;
    }

    /* Posts */
    .ra-recent {
        padding: 36px 16px;
    }

    .ra-posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Trust bar */
    .ra-bottom-trust {
        padding: 36px 16px;
    }

    .ra-bottom-trust-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ra-trust-item {
        padding: 20px;
    }

    /* Section title */
    .ra-section-title {
        font-size: 1.15rem;
    }
}
