.sub-title-column {
    display: flex;
    flex-direction: column;
}

/* Our Expertise Grid */
.qc-expertise-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .qc-expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Our Expertise Card */
.qc-expertise-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(13, 39, 63, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    border: 1px solid rgba(13, 39, 63, 0.03);
}

.qc-expertise-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0d273f 0%, var(--qc-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

.qc-expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(13, 39, 63, 0.1);
}

.qc-expertise-card:hover::before {
    transform: scaleX(1);
}

/* Icon Container */
.qc-expertise-card .card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(13, 39, 63, 0.05);
    color: #0d273f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.qc-expertise-card:hover .card-icon {
    background: #0d273f;
    color: #ffffff;
    transform: scale(1.05);
}

/* Card Content */
.qc-expertise-card .card-content span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--qc-secondary);
    margin-bottom: 12px;
}

.qc-expertise-card .card-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0d273f;
    margin-bottom: 16px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.qc-expertise-card .card-content p {
    font-size: 16px;
    color: #5a6b7c;
    line-height: 1.7;
    margin: 0;
}

/* Why QC Legal Section */
.qc-home-trust {
    position: relative;
    overflow: hidden;
    background-color: #fafbfc;
}

.qc-trust-img-container {
    margin-top: 40px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(13, 39, 63, 0.15);
}

.qc-trust-img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.qc-trust-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(13,39,63,0.4) 0%, rgba(13,39,63,0) 50%);
    z-index: 2;
    pointer-events: none;
}

.qc-trust-img-container:hover img {
    transform: scale(1.08);
}

.qc-trust-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 40px;
}

@media (max-width: 991px) {
    .qc-trust-list {
        padding-left: 0;
        margin-top: 50px;
    }
}

.qc-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(13, 39, 63, 0.03);
    border: 1px solid rgba(13, 39, 63, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.qc-trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    /* background: linear-gradient(180deg, var(--qc-secondary) 0%, #0d273f 100%); */
    background: var(--qc-secondary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

.qc-trust-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(13, 39, 63, 0.08);
    border-color: rgba(242, 41, 91, 0.1);
}

.qc-trust-item:hover::before {
    transform: scaleY(1);
}

.qc-trust-item .icon-wrap {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #f4f6f9;
    color: #0d273f;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 3;
}

.qc-trust-item:hover .icon-wrap {
    background: #0d273f;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(13, 39, 63, 0.2);
    transform: rotateY(360deg);
}

.qc-trust-item .content-wrap h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0d273f;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.qc-trust-item .content-wrap p {
    font-size: 16px;
    color: #5a6b7c;
    line-height: 1.6;
    margin: 0;
}

/* Job Search Section */
.qc-job-search-img-wrap {
    position: relative;
    z-index: 1;
}

.qc-img-blob-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(152 132 96) 0%, rgb(13 39 63) 100%);
    /* background: linear-gradient(135deg, rgba(242, 41, 91, 0.1) 0%, rgba(13, 39, 63, 0.05) 100%); */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: -1;
    animation: blob-animation 8s ease-in-out infinite alternate;
}

@keyframes blob-animation {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.qc-job-main-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(13, 39, 63, 0.1);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.qc-floating-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(13, 39, 63, 0.15);
    animation: float-y 4s ease-in-out infinite;
}

@media (max-width: 991px) {
    .qc-floating-badge {
        right: 20px;
    }
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.qc-floating-badge .icon {
    width: 45px;
    height: 45px;
    background: var(--qc-secondary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.qc-floating-badge .text {
    display: flex;
    flex-direction: column;
}

.qc-floating-badge .text strong {
    font-size: 20px;
    font-weight: 800;
    color: #0d273f;
    line-height: 1;
}

.qc-floating-badge .text span {
    font-size: 13px;
    color: #5a6b7c;
    font-weight: 500;
}

.qc-feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qc-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qc-feature-item i {
    color: white;
    font-size: 14px;
    /* background: rgba(242, 41, 91, 0.1); */
    background: var(--qc-primary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.qc-feature-item span {
    font-size: 16px;
    color: #0d273f;
    font-weight: 600;
}

.qc-btn-primary {
    background: #0d273f;
    color: #ffffff !important;
    padding: 10px 10px 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(13, 39, 63, 0.1);
}

.qc-btn-primary:hover {
    background: var(--qc-secondary);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(242, 41, 91, 0.2);
}

.qc-btn-primary .icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qc-btn-primary:hover .icon-circle {
    background: #ffffff;
    color: var(--qc-secondary);
    transform: translateX(5px);
}

/* For Employers Section */
.qc-employer-img-wrap {
    position: relative;
    z-index: 1;
    padding-right: 20px;
    padding-bottom: 20px;
}

.qc-faq-list.custom-faqs,
.qc-home-employers .qc-employer-img-wrap {
    position: sticky;
    top: 110px;
}

.qc-employer-img-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background: #0d273f;
    border-radius: 20px;
    z-index: -1;
    transition: all 0.4s ease;
}

.qc-employer-img-wrap:hover .qc-employer-img-bg {
    transform: translate(-10px, -10px);
}

.qc-employer-main-img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(13, 39, 63, 0.1);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: transform 0.5s ease;
}

.qc-employer-img-wrap:hover .qc-employer-main-img {
    transform: translateY(-10px);
}

.qc-employer-floating-box {
    position: absolute;
    top: 40px;
    left: -40px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(13, 39, 63, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--qc-secondary);
    animation: float-x 4s ease-in-out infinite;
    z-index: 2;
}

@media (max-width: 991px) {
    .qc-employer-floating-box {
        left: 20px;
    }
}

@keyframes float-x {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

.qc-employer-floating-box .box-icon {
    width: 50px;
    height: 50px;
    background: rgba(13, 39, 63, 0.05);
    color: #0d273f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 12px;
}

.qc-employer-floating-box .box-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0d273f;
    margin: 0 0 5px 0;
    line-height: 1;
}

.qc-employer-floating-box .box-content p {
    font-size: 14px;
    color: #5a6b7c;
    margin: 0;
    line-height: 1;
}

.qc-employer-list {
    display: grid;
    /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 34px;
    counter-reset: employer-point;
}

.employer-list-item {
    counter-increment: employer-point;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    /* min-height: 104px; */
    padding: 20px 18px 20px 20px;
    background: var(--qc-light);
    /* background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%); */
    border: 1px solid rgba(13, 39, 63, 0.1);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(13, 39, 63, 0.045);
    overflow: hidden;
    transition: all 0.3s ease;
}

.employer-list-item::before {
    content: "0" counter(employer-point);
    position: absolute;
    right: 14px;
    bottom: 8px;
    color: rgba(13, 39, 63, 0.055);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.employer-list-item::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--qc-secondary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.employer-list-item:hover {
    transform: translateY(-5px);
    border-color: rgba(152, 132, 96, 0.32);
    box-shadow: 0 18px 38px rgba(13, 39, 63, 0.09);
}

.employer-list-item:hover::after {
    transform: scaleY(1);
}

.employer-list-item i {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: var(--qc-primary);
    font-size: 15px;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(13, 39, 63, 0.14);
    transition: all 0.3s ease;
}

.employer-list-item:hover i {
    background: var(--qc-secondary);
    transform: translateY(-2px);
}

.employer-list-item span {
    position: relative;
    z-index: 1;
    display: block;
    padding-top: 2px;
    color: #0d273f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.employer-list-item:last-child {
    grid-column: 1 / -1;
    min-height: 88px;
}

@media (max-width: 768px) {
    .qc-employer-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .employer-list-item {
        min-height: auto;
        padding: 16px;
    }

    .employer-list-item:last-child {
        grid-column: auto;
    }

    .employer-list-item::before {
        font-size: 34px;
    }
}

/* FAQs Section */
.qc-faq-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(13, 39, 63, 0.1);
}

.qc-faq-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(242, 41, 91, 0.2) 0%, rgba(13, 39, 63, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.qc-faq-main-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.qc-faq-img-wrap:hover .qc-faq-main-img {
    transform: scale(1.08);
}

.custom-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qc-faq-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(13, 39, 63, 0.03);
    border: 1px solid rgba(13, 39, 63, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.qc-faq-item[open] {
    box-shadow: 0 15px 30px rgba(13, 39, 63, 0.08);
    border-color: rgba(242, 41, 91, 0.2);
}

.qc-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 700;
    color: #0d273f;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    user-select: none;
    transition: color 0.3s ease;
}

.qc-faq-summary::-webkit-details-marker {
    display: none; /* Hide arrow in WebKit */
}

.qc-faq-item[open] .qc-faq-summary {
    color: var(--qc-secondary);
}

.faq-icon-wrap {
    width: 35px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(13, 39, 63, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #0d273f;
}

.qc-faq-item:hover .faq-icon-wrap {
    background: #0d273f;
    color: #ffffff;
}

.qc-faq-item[open] .faq-icon-wrap {
    transform: rotate(180deg);
    background: var(--qc-secondary);
    color: #ffffff;
}

.qc-faq-content {
    padding: 0 25px 25px 25px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qc-faq-content p {
    font-size: 16px;
    color: #5a6b7c;
    line-height: 1.6;
    margin: 0;
}

.qc-faq-list.custom-faqs summary::after {
    display: none;
}
.qc-faq-list.custom-faqs summary {
    padding: 22px 22px 22px 24px;
}

/* Keep the new home sections aligned with the site's standard layout scale. */
.qc-home-intro h2,
.qc-home-expertise h2,
.qc-home-trust h2,
.qc-home-job-cta h2,
.qc-home-employers h2,
.qc-home-faq h2 {
    font-size: 50px;
    line-height: 1.1em;
}

.qc-home-intro p,
.qc-home-expertise p,
.qc-home-trust p,
.qc-home-job-cta p,
.qc-home-employers p,
.qc-home-faq p {
    font-size: 18px;
    line-height: 1.6em;
}

@media (max-width: 768px) {
    .qc-home-intro h2,
    .qc-home-expertise h2,
    .qc-home-trust h2,
    .qc-home-job-cta h2,
    .qc-home-employers h2,
    .qc-home-faq h2 {
        font-size: 40px;
    }
}

@media only screen and (max-width: 510px) {
    .employer-list-item::after,
    .qc-trust-item::before {
        transform: scaleY(1);
    }
    .qc-x-section.qc-home-trust .qc-trust-list .qc-trust-item {
        flex-direction: column;
    }
    .qc-faq-list summary span {
        width: 88%;
    }
    .qc-x-section.qc-home-faq .qc-faq-img-wrap {
        display: none;
    }
    .qc-home-employers .qc-employer-img-wrap {
        padding-top: 70px;
    }
}
@media only screen and (min-width: 510px) and (max-width: 820px) {
    .qc-job-search-img-wrap img,
    .qc-trust-img-container img {
        width: 100%;
        height: 100%;
        object-position: center;
    }
    .qc-job-search-img-wrap img {
        object-fit: top;
    }
    .qc-trust-img-container img {
        object-fit: cover;
    }
    .qc-job-search-img-wrap,
    .qc-trust-img-container {
        height: 300px;
    }
    .qc-faq-list summary span {
        width: 88%;
    }
    .qc-employer-img-wrap,
    .qc-x-section.qc-home-faq .qc-faq-img-wrap {
        display: none;
    }
    .qc-home-employers .qc-employer-img-wrap {
        padding-top: 70px;
    }
    .employer-list-item::after,
    .qc-trust-item::before {
        transform: scaleY(1);
    }
}