/* Work Permits & Sponsorships Page Specific Styles */

/* Root and Global Overrides for this page */
.work-permits-page {
    background-color: #ffffff;
    font-family: 'Outfit', 'Inter', sans-serif;
    padding: 0;
}

/* ================= HERO SECTION ================= */
.work-permits-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../../assets/images/work-permit-sponsorships.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 955px;
    padding: 0;
    color: #ffffff;
    border-radius: 0 0 20px 20px;
    margin-bottom: 0;
}

.hero-title {
    font-size: 72px;
    font-weight: 600;
    line-height: 72px;
    letter-spacing: 0px;
    font-family: 'Outfit';
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 797px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    margin-bottom: 0px;
}

.hero-action-btn {
    justify-content: center;
}

.hero-btn {
    font-family: 'Outfit';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 5% 0px 15% 0px;
    display: flex;
    padding: 16px 24px 16px 24px;
    justify-content: center;
    align-items: center;
    border-radius: 90px;
}

.hero-btn-primary {
    background: #1989FB;
    color: #FFF;
    border: none;
}

.hero-btn-secondary {
    background: #FFF;
    color: #0D0100;
}

/* ================= INFO SECTION ================= */
.wp-info-section {
    padding: 80px 0;
}
.wp-info-section .container {
    margin: unset;
    max-width: unset;
    padding: 0px 90px;
}
.wp-info-content {
    display: flex;
    gap: 84px;
    max-width: 1260px;
    margin: auto;
}
.section-image-col {
    flex: 0 0 504px;
    width: 504px;
    height: 600px;
}
.wp-info-section .section-image {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
    border-radius: 24px;
}
.section-text-col {
    flex: 1;
}
.wp-info-section .section-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 48px;
    letter-spacing: 2px;
    font-family: 'Outfit';
    margin-bottom: 116px;
}
.info-title {
    font-family: 'Outfit';
    font-size: 34px;
    font-weight: 500;
    color: #222;
    letter-spacing: 2px;
    line-height: 34px;
    margin-bottom: 30px;
}
.info-text {
    font-family: 'Outfit';
    font-size: 24px;
    line-height: 37px;
    color: #0D0100;
}

/* ================= HOW WORKS SECTION ================= */
.how-works-section {
    padding: 120px 0;
    background: #ffffff;
    overflow: hidden;
}
.how-works-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.how-works-title {
    font-family: 'Outfit';
    font-size: 48px;
    font-weight: 500;
    color: #0D0100;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 2px;
}
.how-works-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 74px;
    position: relative;
    padding: 40px 0;
}
.how-step {
    width: 370px;
    min-height: 232px;
    flex: 0 1 370px;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #EFEFEF;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.how-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #1989FB;
}
.step-icon,
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.step-icon {
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
}
.step-icon svg,
.step-icon img {
    width: 100%;
    height: 100%;
}
.how-step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #0D0100;
    margin-bottom: 12px;
}
.how-step p {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #524E4E;
    line-height: 1.6;
    max-width: 100%;
}
.how-arrow {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}
.how-arrow.top-arrow {
    top: -45px;
    right: -75px;
    width: 180px;
}
.how-arrow.bottom-arrow {
    bottom: -45px;
    right: -75px;
    width: 180px;
    transform: scaleY(-1);
}

/* ================= HIRE SECTION ================= */
.hire-section {
    padding: 80px 0;
    background: #ffffff;
}
.hire-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0;
}
.hire-header {
    text-align: center;
    margin-bottom: 75px;
}
.hire-title {
    font-family: 'Outfit';
    font-size: 48px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 40px;
    line-height: 62.5px;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 370px));
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.hire-card {
    background: #FFFCFA;
    border: none;
    border-radius: 24px;
    padding: 30px 24px 60px 24px;
    width: 100%;
    max-width: 370px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 63px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}
.card-icon {
    padding: 10px;
    border-radius: 999px;
    background: rgba(25, 137, 251, 0.80);
    margin-bottom: 24px;
}
.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hire-card h3 {
    color: #0D0100;
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
    margin: 0;
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.flip-card {
    perspective: 1000px;
    padding: 0;
    background: transparent !important;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 360px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 360px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 63px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flip-card-front {
    color: black;
    background: #FFFCFA;
    padding: 30px 24px 60px 24px;
}

.flip-card-back {
    color: black;
    background: #E0ECF4;
    transform: rotateY(180deg);
    justify-content: flex-start;
    text-align: start;
    padding: 40px 24px;
    transition: all 0.3s ease;
    cursor: pointer;
        box-shadow: 
        0px 2px 4px 0px #0000001A,
        0px 7px 7px 0px #00000017,
        0px 16px 9px 0px #0000000D,
        0px 28px 11px 0px #00000003,
        0px 43px 12px 0px #00000000;
    border: 1px solid #1989FB;
}

.flip-card-back:hover {
    transform: rotateY(180deg) translateY(-4px);
}

.flip-card-back h3 {
    color: #0D0100;
    font-family: 'Outfit';
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 20px;
    text-align: center;
}

.flip-card-back p {
    color: #0D0100;
    font-family: 'Outfit';
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    margin: 0;
}

/* Uniform Sections Wrapper - Only for screens 767px and above */
@media (min-width: 767px) {
    .uniform-sections-wrapper {
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
        max-width: 1270px;
    }

    .uniform-sections-wrapper .wp-info-section,
    .uniform-sections-wrapper .hire-section,
    .uniform-sections-wrapper .how-works-section,
    .uniform-sections-wrapper .ready-strengthen-section,
    .uniform-sections-wrapper .container,
    .uniform-sections-wrapper .hire-container,
    .uniform-sections-wrapper .how-works-container {
        padding-left: 0;
        padding-right: 0;
        max-width: unset;
    }

    .how-step:first-child {
        padding-left: 0;
    }
    
    .how-step:last-child {
        padding-right: 0;
    }

    .how-works-grid {
        margin: 0;
    }

    .cards-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-content: stretch;
        gap: 20px;
    }

    .hire-card {
        max-width: unset;
    }

    .hire-card h3 {
        max-width: 216px;
    }
}

/* ================= MEDIA QUERIES ================= */

@media (min-width: 1900px) {
    .hero-title { font-size: 100px; line-height: 100px; }
    .hero-subtitle { font-size: 32px; max-width: 1200px; }
}

@media (max-width: 1299.98px) {
    .how-works-section { padding: 80px 0; }
    .how-works-container { padding-left: 24px; padding-right: 24px; max-width: 100%; }
    .how-works-title { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 56px; }
    .how-works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 32px 0; }
    .how-step { width: 100%; max-width: none; min-width: 0; min-height: 220px; flex: none; }
    .how-step h3 { font-size: clamp(18px, 1.8vw, 22px); }
    .how-step p { font-size: 13px; }
}

@media (max-width: 1239.98px) {
    .how-works-grid { gap: 24px; }
    .how-step h3 { font-size: 18px; }
}

@media (max-width: 1200px) {
    .how-arrow { display: none; }
    .hero-title { font-size: 56px; line-height: 1.1; }
    .hero-subtitle { font-size: 18px; }
    .hire-card h3 { font-size: 24px; }
}

@media (max-width: 1024px) {
    .ready-strengthen-section { padding: 48px 20px 64px; }
    .ready-strengthen-card { flex-direction: column; min-height: 0; background-position: center; background-size: 60%; }
    .ready-strengthen-title { font-size: 30px; }
    .ready-strengthen-text { font-size: 16px; margin-bottom: 24px; }
    .ready-strengthen-image-wrap { flex: none; min-height: 280px; justify-content: center; }
    .ready-strengthen-image { max-height: 320px; object-position: center bottom; }
    
    .how-works-section { padding: 72px 0; }
    .how-works-title { font-size: clamp(28px, 5vw, 40px); margin-bottom: 48px; }
    .how-works-grid { grid-template-columns: 1fr; align-items: center; gap: 32px; padding: 24px 0; }
    .how-step { width: 100%; max-width: 400px; min-height: 200px; padding: 28px 24px; justify-self: center; }
    .how-step h3 { font-size: 20px; margin-bottom: 10px; }
    .how-step p { font-size: 14px; }
}

@media (max-width: 991px) {
    .wp-info-content { flex-direction: column; gap: 40px; }
    .section-image-col { flex: auto; width: 100%; max-width: 504px; height: auto; }
    .wp-info-section .section-image { height: auto; }
    .work-permits-hero { height: 600px; }
    .wp-info-section .container { padding: 0px 40px; }
    .wp-info-section .section-title { margin-bottom: 60px; }
}

@media (max-width: 768px) {
    .ready-strengthen-section { padding: 40px 16px 56px; }

    .how-works-section { padding: 56px 0; }
    .how-works-container { padding-left: 16px; padding-right: 16px; }
    .how-works-title { font-size: clamp(24px, 6vw, 32px); margin-bottom: 32px; }
    .how-works-grid { gap: 24px; padding: 16px 0; }
    .how-step { max-width: none; width: 100%; min-height: 0; padding: 24px 20px; }
    .step-icon { width: 40px; height: 40px; margin-bottom: 16px; }
    .step-icon svg { width: 36px; height: 36px; }
    .how-step h3 { font-size: 18px; margin-bottom: 8px; }
    .how-step p { font-size: 15px; line-height: 1.5; }
}

@media (max-width: 767px) {
    .work-permits-hero { height: 500px; border-radius: 0 0 20px 20px; }
    .hero-title { font-size: 27px; line-height: 32px; margin-bottom: 20px;}
    .hero-subtitle { font-size: 16px; line-height: 18px; margin-bottom: 35px;}
    .hero-btn { margin: 0; font-size: 12px; line-height: 16px; padding: 11px 14px; height: unset;}
    .hero-action-btn { flex-wrap: nowrap !important;}

    .wp-info-section { padding: 60px 0; }
    .wp-info-section .container { padding: 0px 24px; }
    .wp-info-content { gap: 30px; }
    .section-image-col { max-width: 100%; }
    .wp-info-section .section-title { font-size: 28px; line-height: 1.2; margin-bottom: 40px; }
    .info-title { font-size: 24px; line-height: 1.2; margin-bottom: 20px; }
    .info-text { font-size: 16px; line-height: 1.5; }

    .hire-section { padding: 60px 0; }
    .hire-title { font-size: 32px; line-height: 1.2; margin-bottom: 30px; }
    .hire-header { margin-bottom: 40px; }
    .cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .hire-card { padding: 20px 16px 28px; gap: 20px; min-height: 180px; }
    .hire-card h3 { font-size: clamp(18px, 4.2vw, 24px); line-height: 1.3; }
    .hire-card h3 br { display: none; }
    .cards-grid .hire-card {width: 100%; max-width: none; padding: 0 16px; gap: 20px; min-height: 180px;}
    .hire-container {padding: 0 16px;}
    .flip-card-back p {
        font-size: 18px;
        line-height: 28px;
    }
    .flip-card-inner, .flip-card-front, .flip-card-back {
        min-height: 200px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .work-permits-hero { height: 480px; border-radius: 0 0 16px 16px; }
    .hero-btn-primary, .hero-btn-secondary { width: 100%; justify-content: center; }

    .ready-strengthen-section { padding: 32px 12px 48px; }
    .how-works-section { padding: 40px 0; }
    .how-works-container { padding-left: 12px; padding-right: 12px; }
    .how-works-title { font-size: 22px; margin-bottom: 24px; }
    .how-works-grid { gap: 20px; }
    .how-step { padding: 20px 16px; }
    .how-step h3 { font-size: 17px; }
    .how-step p { font-size: 13px; }

    .wp-info-section { padding: 40px 0; }
    .wp-info-section .container { padding: 0px 16px; }
    .wp-info-section .section-image { max-height: 300px; }
    .wp-info-section .section-title { font-size: 26px; line-height: 34px; }
    .info-title { font-size: 22px; }
    .info-text { font-size: 15px; }
    
    .hire-section { padding: 40px 0; }
    .hire-title { font-size: 26px; }
    .hero-action-btn { gap: 12px !important; }
}

@media (max-width: 375px) {
    .work-permits-hero { height: 420px; }
    .hero-title { font-size: 28px; }
    
    .wp-info-section .section-title { font-size: 22px; }
    .info-title { font-size: 20px; }
    .info-text { font-size: 14px; }
    .hire-title { font-size: 24px; }
}
