/* JFAM Styles */

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* JFAM Body */
.jfam-body {
    font-family: "Inter", sans-serif;
    padding-top: 110px;
    background: #EFEBE2;
    min-height: 100vh;
}

.jfam-navbar {
    margin-top: -110px;
    width: 100%;
    max-width: 100%;
    background: #f3efe6;
    padding: 10px 20px 5px;
    position: relative;
    z-index: 100;
    box-sizing: border-box;
    overflow: hidden;
}

.jfam-container {
    max-width: 100%;
    width: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}

/* Logo */
.jfam-logo {
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
    min-width: 0;
}

.jfam-logo img {
    height: 100px;
    /* Increased to 100px */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Back Button */
.jfam-back {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.jfam-back:hover {
    opacity: 0.7;
}

.jfam-back img {
    height: 100px;
    /* Increased to 100px */
    width: auto;
}

/* Tablet */
@media (max-width: 992px) {
    .jfam-body {
        padding-top: 90px;
    }

    .jfam-navbar {
        margin-top: -90px;
        padding: 8px 15px 4px;
    }

    .jfam-logo img {
        height: 80px;
        /* Increased to 80px */
    }

    .jfam-back {
        padding: 0;
    }

    .jfam-back img {
        height: 80px;
        /* Increased to 80px */
    }
}

/* Mobile */
@media (max-width: 600px) {
    .jfam-body {
        padding-top: 70px;
    }

    .jfam-navbar {
        margin-top: -70px;
        padding: 6px 15px 3px;
    }

    .jfam-container {
        gap: 10px;
    }

    .jfam-logo img {
        height: 60px;
        /* Increased to 60px */
    }

    .jfam-back {
        padding: 0;
    }

    .jfam-back img {
        height: 60px;
        /* Increased to 60px */
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .jfam-body {
        padding-top: 60px;
    }

    .jfam-navbar {
        margin-top: -60px;
        padding: 5px 12px 2px;
    }

    .jfam-logo img {
        height: 50px;
        /* Increased to 50px */
    }

    .jfam-back {
        padding: 0;
    }

    .jfam-back img {
        height: 35px;
    }
}


/* JFAM Hero */
.jfam-hero {
    position: relative;
    height: min(90vh, 680px);
    min-height: 360px;
    overflow: hidden;
    margin-top: 0;
    margin-left: 20px;
    margin-right: 20px;
    background-color: transparent;
    border-radius: 24px;
}

.jfam-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

/* Overlay removed as per user request */
.jfam-hero-overlay {
    display: none;
}

.jfam-hero-text {
    position: absolute;
    top: 50%;
    /* Center vertically */
    left: 60px;
    /* Align left with padding */
    transform: translateY(-50%);
    /* Correct vertical centering */
    color: #fff;
    max-width: 800px;
    width: auto;
    padding: 0;
    text-align: left;
    /* Align text left */
    z-index: 2;
}

.jfam-hero-text h1 {
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-left: 0;
}

.jfam-hero-float1 {
    position: absolute;
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    align-items: center;
    z-index: 2;
    box-sizing: border-box;
}

.jfam-hero-float1 img {
    width: 95px;
    height: 75px;
    object-fit: cover;
    border-radius: 15px;
}

.jfam-hero-float2 {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    align-items: center;
    z-index: 2;
    box-sizing: border-box;
}

.float {
    width: 100%;
    max-width: 170px;
}

.float img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.jfam-float-text {
    font-size: 0.9rem;
    color: #1a1a1a;
    max-width: 220px;
    line-height: 1.35;
    font-weight: 500;
}

.btn {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn button {
    background-color: #000;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    padding: 12px 28px;
    width: 100%;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.btn button img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.jfam-float-left {
    bottom: 8%;
    left: 5%;
    width: auto;
    max-width: 360px;
}

.jfam-float-right {
    bottom: 8%;
    right: 5%;
    width: auto;
    max-width: 180px;
}

/* Tablet */
@media (max-width: 992px) {
    .jfam-hero {
        margin-left: 15px;
        margin-right: 15px;
        height: min(70vh, 500px);
        min-height: 300px;
    }

    .jfam-hero-text {
        top: 35%;
    }

    .jfam-hero-float1 {
        padding: 8px 12px;
        border-radius: 18px;
        max-width: 320px;
    }

    .jfam-hero-float1 img {
        width: 70px;
        height: 55px;
        border-radius: 12px;
    }

    .jfam-float-text {
        font-size: 0.8rem;
        max-width: 200px;
    }

    .jfam-float-right {
        bottom: 5%;
        right: 3%;
        max-width: 155px;
        padding: 10px;
        border-radius: 20px;
    }

    .float {
        max-width: 135px;
    }

    .float img {
        border-radius: 15px;
    }

    .btn button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .btn button img {
        width: 18px;
        height: 18px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .jfam-hero {
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 0;
        height: auto;
        min-height: 400px;
        padding: 20px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .jfam-hero-text {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0 10px;
        text-align: center;
    }

    .jfam-hero-text h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .jfam-float-left {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 30px;
        max-width: 90%;
        width: 90%;
        order: 2;
        padding: 12px 15px;
        border-radius: 20px;
    }

    .jfam-hero-float1 img {
        width: 70px;
        height: 55px;
    }

    .jfam-float-right {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 15px;
        max-width: 180px;
        width: auto;
        order: 3;
        padding: 10px;
        border-radius: 22px;
    }

    .float {
        max-width: 150px;
    }

    .btn button {
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .jfam-hero {
        margin-left: 8px;
        margin-right: 8px;
        padding: 15px 0;
    }

    .jfam-hero-text h1 {
        font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    }

    .jfam-float-left {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .jfam-hero-float1 img {
        width: 60px;
        height: 50px;
    }

    .jfam-float-text {
        max-width: 100%;
    }

    .jfam-float-right {
        max-width: 180px;
    }
}

/* JFAM About */
.jfam-about {
    padding: 0 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.jfam-about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.jfam-about-content h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: #000;
    justify-content: center;
    line-height: 1.1;
}

.jfam-about-content p {
    color: #333;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 16px;
}

.jfam-logos {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    align-items: flex-start;
    justify-content: flex-start;
}

.jfam-logos img {
    max-width: 80px;
    height: auto;
}

.jfam-logos .jfam-expert-card {
    padding: 20px 15px;
    min-width: 180px;
    flex: 1;
    text-align: center;
}

.jfam-logos .jfam-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.jfam-logos .jfam-expert-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.jfam-logos .jfam-expert-card p {
    font-size: 0.8rem;
    line-height: 1.4;
}

.jfam-logos .jfam-count {
    display: none;
}


.jfam-about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
}

.jfam-about-stats div h3 {
    font-size: 2rem;
    color: #d4a643;
    margin-bottom: 5px;
}

.jfam-about-stats div span {
    color: #666;
    font-size: 0.85rem;
}

/* Tablet */
@media (max-width: 992px) {
    .jfam-about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .jfam-about-content h2 {
        font-size: 2rem;
    }

    .jfam-logos {
        justify-content: center;
    }

    .jfam-logos img {
        max-width: 70px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .jfam-about {
        padding: 0 15px 40px;
    }

    .jfam-about-layout {
        gap: 30px;
    }

    .jfam-about-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .jfam-about-content p {
        font-size: 14px;
        text-align: center;
    }

    .jfam-logos {
        gap: 10px;
    }

    .jfam-logos img {
        max-width: 60px;
    }

    .jfam-about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .jfam-about-stats div h3 {
        font-size: 1.8rem;
    }

    .jfam-about-stats div span {
        font-size: 0.75rem;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .jfam-about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jfam-logos img {
        max-width: 50px;
    }
}

/* JFAM Expertise */

.jfam-expertise {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.jfam-expertise h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-left: 0;
    margin-bottom: 40px;
    text-align: center;
}

.jfam-expertise-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-left: 0;
    max-width: 100%;
}


.jfam-expert-card {
    background: #fff;
    border-radius: 22px;
    width: 100%;
    max-width: 100%;
    padding: 30px 25px 60px;
    position: relative;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* Mask for cutout */
.jfam-expert-card::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 65px;
    /* Tighter width gap */
    height: 85px;
    /* Tighter height gap */
    background: #EFEBE2;
    border-top-left-radius: 10px;
    /* Tighter curve, closer to box radius */
    z-index: 1;
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .jfam-expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .jfam-expertise h2 {
        text-align: left;
        margin-left: 0;
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .jfam-expertise {
        padding: 40px 15px;
    }

    .jfam-expertise-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .jfam-expert-card {
        padding: 25px 20px 50px;
        border-radius: 16px;
    }

    .jfam-expert-card h4 {
        font-size: 1.2rem;
    }

    .jfam-expert-card p {
        font-size: 16px;
        line-height: 1.6;
    }
}

.jfam-expert-card:hover {
    background-color: #A99074;
}

.jfam-icon img {
    width: 48px;
    margin-bottom: 25px;
}

.jfam-expert-card h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.jfam-expert-card p {
    font-size: 20px;
    line-height: 1.7;
    color: #333;
}

/* NUMBER BOX */
.jfam-count {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55px;
    /* Rectangular width */
    height: 75px;
    /* Rectangular height */
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    /* Sit above mask */
    margin: 0;
    transform: none;
}

.jfam-count p {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}


/* JFAM Why Choose */
.jfam-why {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.jfam-why-left h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #000000;
    margin-bottom: 30px;
}

.jfam-why-left p {
    color: #696969;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 16px;
}

.jfam-primary-btn {
    background: #000000;
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jfam-primary-btn:hover {
    background: #c29538;
    transform: scale(1.05);
}

.jfam-why-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 200px;
    width: 100%;
}

.jfam-why-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.jfam-why-item span {
    font-weight: 500;
    font-size: 20px;
}

.jfam-why-item.active {
    background: #D6BCAD;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.jfam-why-item.active:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.jfam-why-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

.jfam-why-text p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 90%;
}

.jfam-toggle {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.jfam-toggle.close {
    background: #000;
}

.jfam-toggle:hover {
    transform: scale(1.1);
}

/* Tablet */
@media (max-width: 992px) {
    .jfam-why {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 20px;
    }

    .jfam-why-left h2 {
        font-size: 2rem;
    }

    .jfam-why-right {
        gap: 12px;
    }

    .jfam-why-item {
        padding: 18px;
    }

    .jfam-why-item span {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .jfam-why {
        padding: 40px 15px;
        gap: 30px;
    }

    .jfam-why-left h2 {
        font-size: 1.6rem;
        text-align: center;
    }

    .jfam-why-left p {
        font-size: 14px;
        text-align: center;
    }

    .jfam-primary-btn {
        width: 100%;
        padding: 14px 25px;
        font-size: 0.9rem;
    }

    .jfam-why-item {
        padding: 15px;
        border-radius: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .jfam-why-item span {
        font-size: 14px;
    }

    .jfam-why-text strong {
        font-size: 15px;
    }

    .jfam-why-text p {
        font-size: 13px;
        max-width: 100%;
    }

    .jfam-toggle {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .jfam-why-item {
        position: relative;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .jfam-why-left h2 {
        font-size: 1.4rem;
    }

    .jfam-why-item span {
        font-size: 13px;
        padding-right: 35px;
    }
}


/* JFAM Testimonials */
.jfam-testimonials-v2 {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.jfam-testimonials-v2 h2,
.about-us {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 30px 0;
    text-align: center;
    white-space: normal;
}

.jfam-testimonial-layout {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.jfam-testimonial-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.jfam-testimonial-card {
    background: #1c1c1c;
    padding: 30px 25px;
    border-radius: 16px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.jfam-testimonial-card .quote-img {
    width: 30px;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

.jfam-testimonial-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
    margin: 0 0 20px 0;
    flex-grow: 0;
}

.jfam-testimonial-card .author {
    text-align: right;
    font-size: 14px;
    color: #fff;
    margin-top: auto;
}

.jfam-testimonial-card .author small {
    display: block;
    color: #bbb;
    margin-top: 4px;
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .jfam-testimonials-v2 {
        padding: 25px 20px;
    }

    .jfam-testimonials-v2 h2,
    .about-us {
        font-size: clamp(1.3rem, 3.5vw, 2rem);
        margin-bottom: 25px;
    }

    .jfam-testimonial-cards {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .jfam-testimonial-card {
        padding: 25px 20px;
    }

    .jfam-testimonial-card .quote-img {
        width: 28px;
        margin-bottom: 12px;
    }

    .jfam-testimonial-card p {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .jfam-testimonial-card .author {
        font-size: 13px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .jfam-testimonials-v2 {
        padding: 20px 15px;
    }

    .jfam-testimonials-v2 h2,
    .about-us {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        margin-bottom: 20px;
    }

    .jfam-testimonial-layout {
        padding: 0;
    }

    .jfam-testimonial-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .jfam-testimonial-card {
        padding: 20px 18px;
        border-radius: 12px;
    }

    .jfam-testimonial-card .quote-img {
        width: 25px;
        margin-bottom: 10px;
    }

    .jfam-testimonial-card p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .jfam-testimonial-card .author {
        font-size: 12px;
        text-align: right;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    .jfam-testimonials-v2 {
        padding: 15px 12px;
    }

    .jfam-testimonials-v2 h2,
    .about-us {
        font-size: clamp(1.1rem, 3.5vw, 1.4rem);
        margin-bottom: 15px;
    }

    .jfam-testimonial-cards {
        gap: 12px;
    }

    .jfam-testimonial-card {
        padding: 18px 15px;
        border-radius: 10px;
    }

    .jfam-testimonial-card .quote-img {
        width: 22px;
        margin-bottom: 8px;
    }

    .jfam-testimonial-card p {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .jfam-testimonial-card .author {
        font-size: 11px;
    }
}

/* .jfam-testimonials-v2 h2 {
    font-size: 64px;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 60px;
    text-align: left;
    margin-left: 40%;
}

.about-us {
    font-size: 45px;
    font-weight: 500;
    line-height: 1.15;
    margin-right: -10%;
    margin-bottom: -180px;

} */


/* MAIN GRID */
/* .jfam-testimonial-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}


.jfam-testimonial-image {
    margin-top: -180px;
    margin-left: 20px;
}

.jfam-testimonial-cards {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 110px;
}

.jfam-testimonial-card {
    background: #1c1c1c;
    margin-left: -76.3%;
    margin-top: -4.2%;
    padding: 50px 40px;
    width: 470px;
    height: 500px;
    position: relative;
    min-height: 420px;
    color: #fff;
}

.jfam-testimonial-card .quote {
    position: absolute;
    top: 50px;
    left: 50px;
    font-size: 160px;
    line-height: 1;
    opacity: 0.9;
} */

/* TEXT */
/* .jfam-testimonial-card p {
    margin-top: 120px;
    font-size: 24px;
    line-height: 2;
    color: #f1f1f1;
} */

/* AUTHOR */
/* .jfam-testimonial-card .author {
    position: absolute;
    bottom: 32px;
    right: 32px;
    text-align: left;
    font-weight: 25px;
}

.jfam-testimonial-card .author small {
    display: block;
    opacity: 0.6;
    font-weight: 400;
}


/* Tablet: 2 testimonial cards side by side */
@media (min-width: 768px) {
    .jfam-testimonial-layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .about-us {
        grid-column: 1 / -1;
        margin-left: 0;
        margin-top: 0;
        text-align: left;
        margin-bottom: 30px;
    }

    .jfam-testimonial-cards {
        grid-template-columns: 1fr;
    }

    .jfam-testimonial-card {
        padding: 40px 30px;
    }

    .jfam-testimonial-card p {
        font-size: 18px;
    }
}

/* Desktop: Side by side testimonials */
@media (min-width: 992px) {
    .jfam-testimonials-v2 {
        padding: 80px 40px;
        margin-left: 30px;
    }

    .jfam-testimonial-layout {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .about-us {
        grid-column: 1 / -1;
        margin-left: 0;
        margin-top: 0;
        font-size: 2.5rem;
        text-align: left;
    }

    .jfam-testimonial-cards {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .jfam-testimonial-card {
        padding: 40px 35px;
        min-height: 350px;
    }

    .jfam-testimonial-card .quote {
        font-size: 100px;
    }

    .jfam-testimonial-card p {
        font-size: 18px;
        line-height: 1.7;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .jfam-testimonials-v2 {
        padding: 100px 60px;
        margin-left: 50px;
        max-width: 1200px;
        margin-inline: auto;
        margin-left: auto;
    }

    .jfam-testimonial-layout {
        gap: 80px;
    }

    .jfam-testimonial-card {
        padding: 50px 40px;
        min-height: 380px;
    }

    .jfam-testimonial-card .quote {
        font-size: 120px;
    }

    .jfam-testimonial-card p {
        font-size: 20px;
        line-height: 1.8;
    }
}

/* JFAM Near Footer */
.jfam-nearfooter {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.jfam-nearfooter-left,
.jfam-nearfooter-right {
    flex: 1;
    max-width: 300px;
    margin-top: -100px;
}

.jfam-nearfooter img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Tablet */
@media (max-width: 992px) {
    .jfam-nearfooter {
        justify-content: center;
        flex-wrap: wrap;
        padding: 0 15px;
    }

    .jfam-nearfooter-left,
    .jfam-nearfooter-right {
        max-width: 200px;
        margin-top: -50px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .jfam-nearfooter {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 0 10px;
    }

    .jfam-nearfooter-left,
    .jfam-nearfooter-right {
        max-width: 45%;
        width: 45%;
        margin-top: -30px;
    }

    .jfam-nearfooter img {
        border-radius: 8px;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .jfam-nearfooter {
        gap: 10px;
    }

    .jfam-nearfooter-left,
    .jfam-nearfooter-right {
        max-width: 48%;
        width: 48%;
        margin-top: -20px;
    }
}

.footer {
    background-color: #9a765c;
    padding: 40px 20px;
    color: #000;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.footer-section .footer-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-section.services {
    padding-left: 80px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-item span {
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-section img {
    vertical-align: middle;
    margin-right: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 12px;
}

.social-icons img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.3s;
    object-fit: contain;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-section.about {
        grid-column: 1 / -1;
    }
}

/* Mobile: 1 column, centered */
@media (max-width: 600px) {
    .footer {
        padding: 30px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section.services {
        padding-left: 0;
    }

    .footer-section img {
        margin-right: 5px;
        margin-left: 5px;
    }

    .social-icons,
    .contact-item {
        justify-content: center;
    }

    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
}


/* Large desktop tuning (e.g. 1920x1080) */
@media (min-width: 1600px) {

    /* Slightly widen main content containers */
    .jfam-about,
    .jfam-expertise,
    .jfam-why,
    .jfam-testimonials-v2,
    .jfam-nearfooter,
    .jfam-footer-grid {
        max-width: 1480px;
        margin-inline: auto;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Give hero a bit more breathing room on tall desktops */
    .jfam-hero {
        height: 80vh;
        min-height: 520px;
    }

    .jfam-hero-text h1 {
        font-size: clamp(3rem, 4.2vw, 4.4rem);
    }

    /* Keep floating cards compact on large screens */
    .jfam-hero-float1,
    .jfam-hero-float2 {
        max-width: 260px;
    }

    .jfam-hero-float2 .float {
        max-width: 130px;
    }

    /* Slightly tighten expertise heading so it doesn’t feel too far left */
    .jfam-expertise h2 {
        margin-left: 0;
    }
}

/* JFAM Responsive */
@media (max-width: 992px) {
    .jfam-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        height: auto;
        min-height: 60vh;
        padding: 32px 14px 22px;
    }

    .jfam-hero-text {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0;
        width: 100%;
        max-width: 560px;
        z-index: 2;
    }

    .jfam-hero-floats {
        position: absolute;
        bottom: 20px;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: flex-end;
        gap: 12px;
        margin-top: 0;
        padding: 0 10px;
        box-sizing: border-box;
        z-index: 10;
    }

    .jfam-hero-float1,
    .jfam-hero-float2 {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 0;
        background: #fff;
        padding: 10px;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 1;
    }

    .jfam-float-left {
        max-width: 220px;
        width: auto;
        margin: 0;
    }

    .jfam-float-right {
        max-width: 130px;
        flex-direction: column;
        padding: 8px;
        margin: 0;
    }

    .jfam-hero-float1 img {
        width: 55px;
        height: 45px;
        border-radius: 10px;
    }

    .jfam-float-text {
        font-size: 0.7rem;
        max-width: 140px;
        line-height: 1.25;
        font-weight: 500;
    }

    .jfam-hero-float2 .float {
        max-width: 100px;
    }

    .float img {
        border-radius: 12px;
    }

    .btn button {
        padding: 8px 14px;
        font-size: 11px;
        gap: 6px;
        border-radius: 20px;
    }

    .btn button img {
        width: 16px;
        height: 16px;
    }

    .jfam-why {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .jfam-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .jfam-hero-text h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .jfam-expertise h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        text-align: center;
        margin-left: 0;
    }

    .jfam-expertise-grid {
        grid-template-columns: 1fr;
    }

    .jfam-about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .jfam-about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .jfam-footer-grid {
        text-align: center;
    }

    .jfam-nearfooter {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .jfam-nearfooter-left,
    .jfam-nearfooter-right {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .jfam-about-stats {
        grid-template-columns: 1fr;
    }

    .jfam-expert-card {
        padding: 30px 20px;
    }

    .jfam-primary-btn {
        width: 100%;
    }

    .jfam-hero-floats {
        gap: 8px;
        padding: 0 5px;
    }

    .jfam-float-left {
        max-width: 190px;
        padding: 8px;
        border-radius: 16px;
    }

    .jfam-hero-float1 img {
        width: 45px;
        height: 35px;
        border-radius: 8px;
    }

    .jfam-float-text {
        font-size: 0.65rem;
    }

    .jfam-float-right {
        max-width: 110px;
        padding: 6px;
        border-radius: 18px;
    }

    .jfam-hero-float2 .float {
        max-width: 95px;
    }

    .btn button {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* JFAM Touch Styles */
@media (hover: none) and (pointer: coarse) {
    .jfam-expert-card:active {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .jfam-why-item:active {
        background: #d4a643;
        color: #fff;
    }

    .jfam-primary-btn:active {
        transform: scale(1.05);
        background: #c29538;
    }

    .jfam-testimonial-card:active {
        background: rgba(255, 255, 255, 0.2);
    }
}