/* =========================================================
   INSTAWORKS HOME PAGE
   Mobile-first responsive design
   ========================================================= */

:root {
    --home-purple: #6338b3;
    --home-purple-dark: #4e2a8e;
    --home-purple-light: #f3f0fb;
    --home-text: #171717;
    --home-muted: #6c757d;
    --home-border: #eaeaea;
}


/* =========================================================
   GENERAL
   ========================================================= */

.home-page {
    background: #fcfcfc;
    overflow: hidden;
}

.home-page .text-primary-custom {
    color: var(--home-purple) !important;
}

.home-page .bg-primary-custom {
    background-color: var(--home-purple) !important;
}

.home-page .bg-primary-light {
    background-color: var(--home-purple-light) !important;
}

.home-page .rounded-4 {
    border-radius: 16px !important;
}


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

.home-hero {
    padding: 70px 0 55px;

    background:
        linear-gradient(
            135deg,
            #fdfbfb 0%,
            #f4f0fa 100%
        );

    overflow: hidden;
}

.home-hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    padding: 9px 16px;

    background: #ffffff;

    border-radius: 50px;

    font-size: 0.85rem;
    font-weight: 600;

    color: #333333;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.05);
}

.hero-title {
    margin: 0;

    color: var(--home-text);

    font-size: clamp(2.7rem, 5vw, 4.2rem);

    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -2px;
}

.hero-description {
    max-width: 650px;

    color: #5f6368;

    font-size: clamp(1rem, 2vw, 1.2rem);

    line-height: 1.7;
}


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

.home-search-box {
    display: flex;
    align-items: center;

    width: 100%;

    max-width: 650px;

    margin-top: 28px;

    padding: 7px;

    background: #ffffff;

    border: 1px solid #eeeaf2;

    border-radius: 15px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.07);
}

.home-search-input-wrapper {
    display: flex;
    align-items: center;

    flex: 1;

    min-width: 0;

    padding: 0 12px;
}

.home-search-input-wrapper i {
    flex-shrink: 0;

    color: var(--home-purple);

    font-size: 1.15rem;
}

.home-search-input {
    width: 100%;

    padding: 12px 10px;

    color: #222222;

    background: transparent;

    border: 0;
    outline: 0;

    font-size: 0.95rem;
}

.home-search-input::placeholder {
    color: #9a9a9a;
}

.home-search-button {
    flex-shrink: 0;

    min-height: 46px;

    padding: 0 22px;

    color: #ffffff;

    background: var(--home-purple);

    border: 0;

    border-radius: 11px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.home-search-button:hover {
    color: #ffffff;

    background: var(--home-purple-dark);
}

.home-search-button:active {
    transform: scale(0.97);
}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.home-quick-actions {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    max-width: 650px;

    margin-top: 15px;
}

.home-quick-action {
    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 58px;

    padding: 10px 13px;

    color: var(--home-text);

    background: #ffffff;

    border: 1px solid #ece9ef;

    border-radius: 13px;

    text-decoration: none;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.03);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.home-quick-action:hover {
    color: var(--home-text);

    border-color: var(--home-purple);

    transform: translateY(-2px);
}

.home-quick-action-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    color: var(--home-purple);

    background: var(--home-purple-light);

    border-radius: 10px;
}

.home-quick-action-title {
    display: block;

    font-size: 0.85rem;

    font-weight: 700;
}

.home-quick-action-text {
    display: block;

    margin-top: 2px;

    color: var(--home-muted);

    font-size: 0.7rem;
}


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

.home-hero-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;

    max-width: 650px;

    margin-top: 28px;
}

.home-hero-stat {
    min-width: 0;
}

.home-hero-stat-icon {
    color: var(--home-purple);

    font-size: 1.15rem;
}

.home-hero-stat-title {
    margin-top: 5px;

    color: #414141;

    font-size: 0.85rem;

    font-weight: 700;
}

.home-hero-stat-subtitle {
    margin-top: 2px;

    color: var(--home-muted);

    font-size: 0.72rem;
}


/* =========================================================
   POPULAR SEARCHES
   ========================================================= */

.home-popular-searches {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    max-width: 650px;

    margin-top: 20px;
}

.home-popular-title {
    margin-right: 4px;

    color: #222222;

    font-size: 0.82rem;

    font-weight: 800;
}

.home-popular-link {
    display: inline-flex;

    align-items: center;

    min-height: 30px;

    padding: 5px 11px;

    color: var(--home-purple);

    background: var(--home-purple-light);

    border-radius: 50px;

    font-size: 0.72rem;

    font-weight: 600;

    text-decoration: none;
}

.home-popular-link:hover {
    color: var(--home-purple-dark);
}


/* =========================================================
   DESKTOP HERO VISUAL
   ========================================================= */

.hero-visual-container {
    position: relative;

    width: 100%;

    max-width: 650px;

    margin: 0 auto;

    padding: 2rem 0;
}

.hero-blob {
    position: absolute;

    top: 5%;
    right: 5%;

    width: 90%;
    height: 90%;

    background-color: #f3e8ff;

    border-radius:
        50% 50% 50% 50% /
        60% 60% 40% 40%;

    z-index: 0;
}

.hero-student-img {
    position: relative;

    z-index: 1;

    width: 100%;

    max-height: 650px;

    object-fit: contain;
}

.floating-card {
    position: absolute;

    z-index: 2;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 16px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);

    animation:
        home-float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 15%;
    right: -5%;
}

.floating-card-2 {
    bottom: 20%;
    right: -8%;

    animation-delay: 2s;
}

@keyframes home-float {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }

}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.home-section {
    padding: 55px 0;
}

.home-section-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}

.home-section-title {
    margin: 0;

    color: #171717;

    font-size: 1.45rem;

    font-weight: 800;
}

.home-section-link {
    color: var(--home-purple);

    font-size: 0.82rem;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}


/* =========================================================
   OPPORTUNITY CATEGORIES
   ========================================================= */

.opportunity-grid {
    display: grid;

    grid-template-columns:
        repeat(8, minmax(0, 1fr));

    gap: 12px;
}

.opportunity-card {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 145px;

    padding: 15px 8px;

    color: #222222;

    background: #ffffff;

    border: 1px solid #eeeaf2;

    border-radius: 16px;

    text-align: center;

    text-decoration: none;

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.opportunity-card:hover {
    color: #222222;

    transform: translateY(-4px);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.08);
}

.cat-icon-box {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    border-radius: 12px;

    font-size: 1.4rem;
}

.cat-icon-1 {
    background: #e3f2fd;
    color: #0d6efd;
}

.cat-icon-2 {
    background: #f3e5f5;
    color: #6610f2;
}

.cat-icon-3 {
    background: #e8f5e9;
    color: #198754;
}

.cat-icon-4 {
    background: #fff3cd;
    color: #ffc107;
}


/* =========================================================
   FEATURED JOBS
   ========================================================= */

.featured-jobs-section {
    background: #f8f9fa;
}

.featured-jobs-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.home-job-card {
    display: flex;

    flex-direction: column;

    min-width: 0;

    padding: 18px;

    background: #ffffff;

    border: 0;

    border-radius: 16px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.home-job-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.09);
}

.job-company-logo {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #ffffff;

    background: var(--home-purple);

    border-radius: 10px;

    font-weight: 800;
}

.job-tag {
    display: inline-flex;

    padding: 4px 9px;

    color: #6c757d;

    background: #f8f9fa;

    border-radius: 6px;

    font-size: 0.7rem;

    font-weight: 600;
}

.home-job-apply {
    color: #ffffff;

    background: var(--home-purple);

    border: 0;

    border-radius: 9px;

    font-size: 0.75rem;

    font-weight: 700;
}

.home-job-apply:hover {
    color: #ffffff;

    background: var(--home-purple-dark);
}


/* =========================================================
   WHY CHOOSE US
   ========================================================= */

.why-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.why-card {
    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 75px;

    padding: 12px;

    background: #ffffff;

    border-radius: 13px;
}

.why-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--home-purple);

    background: var(--home-purple-light);

    border-radius: 10px;
}


/* =========================================================
   STATS
   ========================================================= */

.stats-banner {
    padding: 38px;

    color: #ffffff;

    background-color: var(--home-purple);

    border-radius: 18px;

    background-image:
        radial-gradient(
            rgba(255,255,255,0.12) 1px,
            transparent 1px
        );

    background-size: 20px 20px;
}

.stat-number {
    margin-top: 8px;

    font-size: 2rem;

    font-weight: 800;
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.testimonial-card {
    padding: 22px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-card i {
    color: #ffc107;

    font-size: 0.75rem;
}


/* =========================================================
   CTA
   ========================================================= */

.home-cta {
    overflow: hidden;

    color: #ffffff;

    background: var(--home-purple);

    border-radius: 22px;
}

.home-cta-image {
    max-width: 260px;

    height: 230px;

    object-fit: contain;
}

.home-cta-button {
    color: var(--home-purple);

    background: #ffffff;

    border: 0;

    border-radius: 50px;

    font-weight: 700;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .home-hero {
        padding: 30px 0 38px;
    }

    .home-hero .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-badge {
        padding: 8px 13px;

        font-size: 0.72rem;

        white-space: nowrap;
    }

    .hero-title {
        margin-top: 18px;

        font-size: clamp(2.55rem, 13vw, 3.45rem);

        line-height: 1.02;

        letter-spacing: -1.7px;
    }

    .hero-description {
        margin-top: 18px;

        font-size: 1rem;

        line-height: 1.65;
    }


    /* Search becomes primary action */

    .home-search-box {
        margin-top: 22px;

        padding: 6px;

        border-radius: 14px;

        flex-direction: row;
    }

    .home-search-input-wrapper {
        padding-left: 9px;
        padding-right: 5px;
    }

    .home-search-input {
        min-width: 0;

        padding: 11px 7px;

        font-size: 0.82rem;
    }

    .home-search-button {
        min-height: 44px;

        padding: 0 15px;

        font-size: 0.78rem;
    }


    /* Quick actions */

    .home-quick-actions {
        gap: 8px;

        margin-top: 10px;
    }

    .home-quick-action {
        min-height: 55px;

        padding: 8px 9px;
    }

    .home-quick-action-icon {
        width: 34px;
        height: 34px;
    }

    .home-quick-action-title {
        font-size: 0.75rem;
    }

    .home-quick-action-text {
        font-size: 0.62rem;
    }


    /* Hero stats */

    .home-hero-stats {
        gap: 7px;

        margin-top: 22px;
    }

    .home-hero-stat-icon {
        font-size: 1rem;
    }

    .home-hero-stat-title {
        font-size: 0.72rem;
    }

    .home-hero-stat-subtitle {
        font-size: 0.61rem;
    }


    /* Popular searches */

    .home-popular-searches {
        gap: 6px;

        margin-top: 18px;
    }

    .home-popular-title {
        width: 100%;

        margin-bottom: 2px;
    }

    .home-popular-link {
        min-height: 28px;

        padding: 4px 9px;

        font-size: 0.65rem;
    }


    /* Hide desktop visual */

    .hero-visual-container {
        display: none;
    }


    /* Sections */

    .home-section {
        padding: 34px 0;
    }

    .home-section .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-section-header {
        margin-bottom: 16px;
    }

    .home-section-title {
        font-size: 1.15rem;
    }

    .home-section-link {
        font-size: 0.72rem;
    }


    /* Categories become horizontal swipe */

    .opportunity-grid {
        display: flex;

        overflow-x: auto;

        gap: 10px;

        padding: 4px 2px 12px;

        margin-right: -18px;

        scrollbar-width: none;

        scroll-snap-type: x mandatory;
    }

    .opportunity-grid::-webkit-scrollbar {
        display: none;
    }

    .opportunity-grid > * {
        flex: 0 0 135px;

        scroll-snap-align: start;
    }

    .opportunity-card {
        min-height: 130px;

        padding: 13px 8px;

        border-radius: 14px;
    }

    .cat-icon-box {
        width: 43px;
        height: 43px;

        font-size: 1.15rem;
    }


    /* Featured jobs become horizontal cards */

    .featured-jobs-grid {
        display: flex;

        overflow-x: auto;

        gap: 12px;

        padding: 3px 2px 12px;

        margin-right: -18px;

        scrollbar-width: none;

        scroll-snap-type: x mandatory;
    }

    .featured-jobs-grid::-webkit-scrollbar {
        display: none;
    }

    .featured-jobs-grid > * {
        flex: 0 0 285px;

        scroll-snap-align: start;
    }

    .home-job-card {
        min-height: 290px;

        padding: 16px;

        border-radius: 15px;
    }


    /* Why choose */

    .why-grid {
        grid-template-columns: 1fr;

        gap: 9px;
    }

    .why-card {
        min-height: 65px;

        padding: 10px;
    }


    /* Stats */

    .stats-banner {
        margin-left: 18px;
        margin-right: 18px;

        padding: 26px 12px;

        border-radius: 16px;
    }

    .stat-number {
        font-size: 1.45rem;
    }


    /* Testimonials */

    .testimonials-grid {
        display: flex;

        overflow-x: auto;

        gap: 12px;

        padding: 3px 2px 12px;

        margin-right: -18px;

        scrollbar-width: none;

        scroll-snap-type: x mandatory;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonials-grid > * {
        flex: 0 0 290px;

        scroll-snap-align: start;
    }

    .testimonial-card {
        min-height: 205px;

        padding: 17px;
    }


    /* CTA */

    .home-cta {
        margin-left: 18px;
        margin-right: 18px;

        border-radius: 18px;
    }

    .home-cta-image {
        max-width: 180px;

        height: 170px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199.98px) {

    .home-hero {
        padding: 55px 0 45px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .opportunity-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .featured-jobs-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .why-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .home-hero {
        padding: 75px 0 60px;
    }

}

/* =========================================================
   HOME PAGE - FINAL MOBILE UI
   ========================================================= */


/* =========================================================
   OPPORTUNITIES
   ========================================================= */

.opportunity-scroll {
    display: grid;

    grid-template-columns: repeat(8, minmax(0, 1fr));

    gap: 14px;

    width: 100%;
}

.opportunity-card {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 145px;

    padding: 18px 10px;

    color: #171717;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 17px;

    text-align: center;

    text-decoration: none;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.05);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.opportunity-card:hover {
    color: #171717;

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}

.opportunity-card h6 {
    margin: 7px 0 3px;

    font-size: .88rem;

    font-weight: 750;
}

.opportunity-card small {
    color: #707070;

    font-size: .72rem;
}

.opportunity-card-more {
    background: #fafafa;
}

.opportunity-card-more .cat-icon-box {
    background: #ffffff;

    color: #333333;
}


/* =========================================================
   FEATURED JOBS
   ========================================================= */

.featured-jobs-scroll {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
}

.home-job-card {
    display: flex;

    flex-direction: column;

    min-width: 0;

    min-height: 300px;

    padding: 18px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .06);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.home-job-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .09);
}


/* Company header */

.home-job-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 18px;
}

.home-job-company {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}

.job-company-logo {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #ffffff;

    background: #0d6efd;

    border-radius: 10px;

    font-size: 1.25rem;

    font-weight: 800;
}

.home-job-company-name {
    margin: 0;

    overflow: hidden;

    color: #161616;

    font-size: .88rem;

    font-weight: 750;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.home-job-verified {
    display: inline-flex;

    align-items: center;

    gap: 3px;

    margin-top: 2px;

    color: #6338b3;

    font-size: .72rem;
}

.home-job-bookmark {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    flex-shrink: 0;

    color: #777777;

    background: transparent;

    border: 0;

    font-size: 1.1rem;
}


/* Job title */

.home-job-title {
    margin: 0 0 12px;

    color: #171717;

    font-size: 1.35rem;

    line-height: 1.25;

    font-weight: 800;
}


/* Job meta */

.home-job-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    color: #707070;

    font-size: .78rem;
}

.home-job-meta span {
    display: inline-flex;

    align-items: center;

    gap: 4px;
}


/* Salary */

.home-job-salary {
    margin-top: 18px;

    color: #171717;

    font-size: 1rem;

    font-weight: 800;
}


/* Skills */

.home-job-skills {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 15px;
}

.home-job-skills .job-tag {
    padding: 7px 10px;

    color: #68707a;

    background: #f5f7fa;

    border-radius: 8px;

    font-size: .7rem;

    font-weight: 650;
}


/* Job footer */

.home-job-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;

    padding-top: 20px;
}

.home-job-footer small {
    color: #707070;

    font-size: .7rem;
}

.home-job-apply {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 8px 14px;

    color: #ffffff;

    background: #6338b3;

    border-radius: 9px;

    font-size: .75rem;

    font-weight: 750;

    text-decoration: none;
}

.home-job-apply:hover {
    color: #ffffff;

    background: #522d98;
}


/* No jobs */

.home-no-jobs {
    width: 100%;

    padding: 35px;

    color: #707070;

    background: #ffffff;

    border-radius: 16px;

    text-align: center;
}

.home-no-jobs i {
    display: block;

    margin-bottom: 10px;

    color: #6338b3;

    font-size: 2rem;
}


/* =========================================================
   WHY SECTION
   ========================================================= */

.why-list {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.why-card {
    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 76px;

    padding: 12px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 14px;
}

.why-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    flex-shrink: 0;

    color: #6338b3;

    background: #f3effa;

    border-radius: 11px;

    font-size: 1.1rem;
}

.why-card h3 {
    margin: 0;

    color: #171717;

    font-size: .85rem;

    font-weight: 750;
}

.why-card p {
    margin: 3px 0 0;

    color: #707070;

    font-size: .7rem;

    line-height: 1.35;
}


/* =========================================================
   TESTIMONIAL AVATAR
   ========================================================= */

.testimonial-avatar {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    flex-shrink: 0;

    color: #ffffff;

    background: #6338b3;

    border-radius: 50%;

    font-size: 1rem;

    font-weight: 800;
}

.testimonial-content {
    display: flex;

    gap: 14px;
}

.testimonial-text {
    margin-bottom: 8px;

    color: #666666;

    font-size: .85rem;

    line-height: 1.55;
}

.testimonial-name {
    margin: 0;

    font-size: .85rem;
}

.testimonial-company {
    font-size: .72rem;
}

.testimonial-stars {
    margin-top: 5px;

    color: #ffc107;

    font-size: .75rem;
}


/* =========================================================
   CTA
   ========================================================= */

.home-cta {
    padding: 28px;

    background:
        linear-gradient(
            135deg,
            #6338b3,
            #763dcc
        );

    border-radius: 20px;
}

.home-cta-image {
    width: 100%;

    max-width: 260px;

    height: 230px;

    object-fit: contain;
}

.home-cta-button {
    min-height: 42px;

    padding: 9px 18px;

    color: #6338b3 !important;

    font-size: .82rem;

    font-weight: 750;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {


    /* ---------------------------------------------
       Sections
    ---------------------------------------------- */

    .home-section {
        padding: 34px 0;
    }

    .home-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-section-header {
        display: flex;

        align-items: center;
        justify-content: space-between;

        gap: 10px;

        margin-bottom: 18px;
    }

    .home-section-title {
        margin: 0;

        font-size: 1.2rem;

        line-height: 1.2;
    }

    .home-section-link {
        flex-shrink: 0;

        font-size: .75rem;

        font-weight: 750;

        white-space: nowrap;
    }


    /* ---------------------------------------------
       Opportunities - horizontal swipe
    ---------------------------------------------- */

    .opportunity-scroll {
        display: flex;

        overflow-x: auto;

        gap: 12px;

        width: calc(100% + 20px);

        padding: 4px 2px 12px;

        margin-right: -20px;

        scrollbar-width: none;

        scroll-snap-type: x mandatory;

        overscroll-behavior-x: contain;
    }

    .opportunity-scroll::-webkit-scrollbar {
        display: none;
    }

    .opportunity-card {
        flex: 0 0 145px;

        min-height: 140px;

        scroll-snap-align: start;
    }


    /* ---------------------------------------------
       Featured jobs - horizontal swipe
    ---------------------------------------------- */

    .featured-jobs-scroll {
        display: flex;

        overflow-x: auto;

        gap: 12px;

        width: calc(100% + 20px);

        padding: 4px 2px 12px;

        margin-right: -20px;

        scrollbar-width: none;

        scroll-snap-type: x mandatory;

        overscroll-behavior-x: contain;
    }

    .featured-jobs-scroll::-webkit-scrollbar {
        display: none;
    }

    .home-job-card {
        flex: 0 0 88%;

        min-height: 285px;

        scroll-snap-align: start;

        padding: 17px;

        border-radius: 17px;
    }


    .home-job-title {
        font-size: 1.3rem;
    }


    /* ---------------------------------------------
       Why section
    ---------------------------------------------- */

    .why-list {
        grid-template-columns: 1fr;

        gap: 9px;
    }

    .why-card {
        min-height: 67px;

        padding: 10px;
    }

    .why-icon {
        width: 42px;
        height: 42px;
    }


    /* ---------------------------------------------
       Testimonials - horizontal
    ---------------------------------------------- */

    .testimonials-grid {
        display: flex;

        overflow-x: auto;

        gap: 12px;

        padding: 4px 2px 12px;

        margin-right: -20px;

        scrollbar-width: none;

        scroll-snap-type: x mandatory;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonials-grid > * {
        flex: 0 0 88%;

        scroll-snap-align: start;
    }


    /* ---------------------------------------------
       CTA
    ---------------------------------------------- */

    .home-cta {
        margin-left: 0;
        margin-right: 0;

        padding: 22px 18px;

        border-radius: 18px;

        text-align: center;
    }

    .home-cta-image {
        max-width: 190px;

        height: 165px;

        margin: 0 auto;
    }

    .home-cta h2 {
        margin-top: 8px;

        font-size: 1.7rem;

        line-height: 1.15;
    }

    .home-cta p {
        font-size: .9rem;

        line-height: 1.55;
    }

    .home-cta ul {
        display: inline-block;

        margin: 0 auto 15px;

        text-align: left;
    }

    .home-cta .border-start {
        border-left: 0 !important;

        margin-top: 20px;

        padding-top: 20px;

        border-top: 1px solid rgba(255,255,255,.2);
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199.98px) {

    .opportunity-scroll {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .featured-jobs-scroll {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .why-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}