/* ------------------------------------------------------------------ */
/* BASE CARD STYLE */
/* ------------------------------------------------------------------ */
.np-sec-title{text-align:center;font-size: 2.1rem;font-weight: 600;}
.netpear-flip-card {
    width: 100%;
    height: 98%; /* FIXED prevents flex wrapping issues */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border-bottom: 6px solid #36d38b;
    transition: transform .3s ease;
}
.np-featured-porto{
padding-top:30px;
    
}
#np-load-more {
    /* display: none; */
}
.np-showimages ,.np-resul{
    padding-top: 50px;
    padding-bottom: 50px;
}
#np-featuredinnerfour {
    padding-top: 70px;
    padding-bottom: 50px;
    background: rgb(244, 244, 244);
}

    .np-section-block .np-info-box ul li {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 6px;
    }
.mt-5.stats-section {
    margin-top: 1rem !important;
}
.netpear-flip-card img {
    height: 100%;
    width: 100%;
    object-fit: fill;
    transition: transform .45s ease;
}

.netpear-flip-card:hover img {
    transform: scale(1.08);
}

.netpear-flip-inner {
    height: 100%;
}

.netpear-flip-back {
    display: none !important;
}

.front-title {
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    z-index: 5;
    padding: 4px 0 5px 0;
    color: #36d38b;
}

.front-title h3 {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 4px;
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE GRID WRAPPER */
/* ------------------------------------------------------------------ */

#np-portfolio-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    padding-top: 0;
}

#np-portfolio-wrapper.np-ready {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity .3s ease;
}

/* REQUIRED for columns to align correctly */
.np-block {
    flex: 0 0 auto;
    width: auto;
}

/* FIRST CARD ALWAYS FULL WIDTH */
.np-full {
    flex: 0 0 100%;
}

/* FIXED COLUMN WIDTHS */
.np-col-5 {
    flex: 0 0 calc(41.666% - 12px);
}

.np-col-7 {
    flex: 0 0 calc(58.333% - 12px);
}

.np-col-3 {
    flex: 0 0 calc(33.333% - 12px);
}

/* ------------------------------------------------------------------ */
/* 3×3 GRID GROUP */
/* ------------------------------------------------------------------ */

.porto-logo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
    width: 100%;
}

.porto-logo-grid .np-block {
    flex: none !important;
}

.porto-logo-grid .netpear-flip-card {
    height: 100%;
}

/* ------------------------------------------------------------------ */
/* LOAD MORE */
/* ------------------------------------------------------------------ */

.np-hidden {
    display: none !important;
}

.np-load-more-wrap {
    text-align: center;
    margin: 50px auto;
}

.np-load-more-btn {
    background: #319969;
    color: white;
    padding: 12px 38px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: .25s;
    margin-top: 40px;
    display: inline-block;
}

.np-load-more-btn:hover {
    opacity: .85;
}

/* ------------------------------------------------------------------ */
/* CORNER SQUARE ARROW */
/* ------------------------------------------------------------------ */

.np-arrow-square {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #36d38b;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.np-arrow-square::before {
    content: "";
    width: 16px;
    height: 16px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(-7deg);
}

/* ------------------------------------------------------------------ */
/* RESPONSIVENESS */
/* ------------------------------------------------------------------ */

/* ===== XS MOBILE ===== */
@media (max-width: 480px) {
    .netpear-flip-card {
        height: 220px;
    }
    .porto-logo-grid .netpear-flip-card {
        height: 200px;
    }
    .front-title h3 {
        font-size: 1.1rem;
    }
    #np-portfolio-wrapper {
        gap: 14px;
    }
    .porto-logo-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .netpear-flip-card {
        height: 260px;
    }

    .np-full,
    .np-col-5,
    .np-col-7,
    .np-col-3 {
        flex: 0 0 100% !important;
    }

    .porto-logo-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== TABLET ===== */
@media (max-width: 992px) {
    .netpear-flip-card {
        height: 98%;
    }
}

/* ===== DESKTOP ===== */
@media (min-width: 1200px) {
    .netpear-flip-card {
        height: 97%;
    }
}

/* ===== LARGE MONITOR ===== */
@media (min-width: 1600px) {
    .netpear-flip-card {
        height: 100%;
    }
}

/* ===== ULTRAWIDE ===== */
@media (min-width: 2200px) {
    .netpear-flip-card {
        height: 97%;
    }
}

/* ------------------------------------------------------------------ */
/* FIRST CARD SPECIAL HEIGHT */
/* ------------------------------------------------------------------ */

.np-block.np-full .netpear-flip-card {
    height: 100%;
}

@media (max-width: 480px) {
    .np-block.np-full .netpear-flip-card {
        height: 240px;
    }
    .np-featured-porto{
padding-top:30px;
    
}
}

@media (max-width: 768px) {
    .np-block.np-full .netpear-flip-card {
        height: 100%;
    }
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE ARROW */
/* ------------------------------------------------------------------ */

@media (max-width: 480px) {
    .np-arrow-square {
        width: 26px;
        height: 26px;
        bottom: 12px;
        right: 12px;
    }
    .np-arrow-square::before {
        width: 10px;
        height: 10px;
        border-right-width: 2px;
        border-bottom-width: 2px;
    }
}

@media (max-width: 768px) {
    .np-arrow-square {
        width: 30px;
        height: 30px;
        bottom: 14px;
        right: 14px;
    }
    .np-arrow-square::before {
        width: 12px;
        height: 12px;
        border-right-width: 2.5px;
        border-bottom-width: 2.5px;
    }
}

@media (max-width: 992px) {
    .np-arrow-square {
        width: 32px;
        height: 32px;
    }
    .np-arrow-square::before {
        width: 13px;
        height: 13px;
    }
}

/* ------------------------------------------------------------------ */
/* LOADER + INITIAL STATE */
/* ------------------------------------------------------------------ */

 
#np-portfolio-wrapper.np-ready {
    opacity: 1 !important;
    visibility: visible !important;
}

#np-portfolio-loader {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    opacity: 1;
    transition: opacity .35s ease;
}

#np-portfolio-loader.np-hide {
    opacity: 0;
    pointer-events: none;
}

.np-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #36d38b;
    border-top-color: transparent;
    border-radius: 50%;
    animation: npSpin .8s linear infinite;
    margin: 0 auto;
}

@keyframes npSpin {
    to { transform: rotate(360deg); }
}



.single-netpear_portfolio #np-featuredinner {
    padding-top: 40px;
    padding-bottom: 46px;
}

/* ==================================================================
   TYPOGRAPHY AND LAYOUT FOR SMALL SCREENS
   ================================================================== */

/* Desktop defaults */
.text-center.mt-3 {
    font-size: 1.15rem;
    line-height: 1.55;
    text-align: center;
}

.stats-section h4 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.stats-section p {
    font-size: 1rem;
    line-height: 1.55;
}

/* Tablet and below */
@media (max-width: 991px) {
.np-showimages, .np-resul {
    padding-top: 36px;
    padding-bottom: 50px;
}
    /* Main intro paragraph and future intro */
    #np-featuredinner p.text-center.mt-3,
    p.np-future-intro.mt-3.mb-5.text-center {
        font-size: 0.98rem !important;
        line-height: 1.6 !important;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
        padding: 0 14px;
    }

    .np-sec-title {
        text-align: center !important;
        font-weight: 600;
        font-size: 1.6rem;
    }

    .stats-section h4 {
        font-size: 1.15rem !important;
    }

    .stats-section p {
        font-size: 0.95rem !important;
    }

    /* Info boxes (Client Challenges, Goals, Key Features) */
    .np-section-block .np-info-box h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        text-align: center !important;
        margin-bottom: 8px;
    }

    .np-section-block .np-info-box ul {
        padding-left: 18px;
    }

    .np-section-block .np-info-box ul li {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 6px;
    }

    /* Results and Outcomes titles and text */
    .np-section-block .np-result-pill h4 {
        font-size: 1.05rem !important;
        line-height: 1.35 !important;
        margin-bottom: 6px;
    }

    .np-section-block .np-result-pill p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        padding: 0 10px;
    }
 
}

/* Mobile (≤768px) */
@media (max-width: 768px) {

    #np-featuredinner p.text-center.mt-3,
    p.np-future-intro.mt-3.mb-5.text-center {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
        padding: 0 16px;
    }
.np-showimages, .np-resul {
    padding-top: 16px;
    padding-bottom: 30px;
}
    #np-featuredinnerfour {
    padding-top: 20px;
    padding-bottom: 50px;
    }
    .stats-section h4 {
        font-size: 1.05rem !important;
    }

    .stats-section p {
        font-size: 0.85rem !important;
    }

    .np-section-block .np-info-box h3 {
        font-size: 1.5rem !important;
        font-weight: 500;
    }

    .np-section-block .np-info-box ul li {
        font-size: 1rem !important;
        font-weight: 500;
    }

    .np-section-block .np-result-pill h4 {
        font-size: 1.2rem !important;
        font-weight: 600;
    }

    .np-section-block .np-result-pill p {
        font-size: 1rem !important;
    }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {

    #np-featuredinner p.text-center.mt-3,
    p.np-future-intro.mt-3.mb-5.text-center {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        padding: 0 18px;
    }

    .stats-section h4 {
        font-size: 1.2rem !important;
        font-weight: 500;
    }
.mt-5 {
    margin-top: 1rem !important;
}
    .stats-section p {
        font-size: 0.8rem !important;
    }
}

/* ==================================================================
   IMAGE BEHAVIOUR IN VISUAL SECTIONS
   ================================================================== */

/* Case study images should never stretch weirdly */
.np-case-img-full,
.np-case-img-half {
    width: 100%;
    height: auto;
    display: block;
}

/* Fallback in case you wrap them differently */
.np-showimages img,
.np-resul img {
    width: 100%;
    height: auto;
    display: block;
}



/* ============================================================
   FUTURE IMPROVEMENTS SECTION — RESPONSIVE TYPOGRAPHY
   ============================================================ */

/* Desktop defaults (already look fine) */
.np-section-block .np-sec-title {
    font-size: 2.1rem;
    margin-bottom: 45px;
}

.np-future-intro {
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.np-future-clean-list .np-future-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.np-future-clean-list .np-future-desc {
    font-size: 1.1rem;
    line-height: 1.55;
    margin-bottom: 18px;
}



/* =============================== */
/* TABLET <= 991px */
/* =============================== */
@media (max-width: 991px) {

    .np-section-block .np-sec-title {
        font-size: 1.55rem;
        line-height: 1.35;
    }

    .np-future-intro {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        padding: 0 12px;
    }

    .np-future-clean-list .np-future-title {
        font-size: 1.05rem !important;
    }

    .np-future-clean-list .np-future-desc {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
    }

    .np-future-split {
        text-align: center; /* improves readability when stacked */
    }
}



/* =============================== */
/* MOBILE <= 768px */
/* =============================== */
@media (max-width: 768px) {

    .np-section-block .np-sec-title {
        font-size: 1.6rem !important;
        margin-bottom: 21px;
    }

    .np-future-intro {
        font-size: 0.95rem !important;
        padding: 0 15px;
    }

    .np-future-clean-list .np-future-title {
        font-size: 1rem !important;
        margin-bottom: 4px;
    }

    .np-future-clean-list .np-future-desc {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
    }
}



/* =============================== */
/* SMALL MOBILE <= 480px */
/* =============================== */
@media (max-width: 480px) {

    .np-section-block .np-sec-title {
        font-size: 1.5rem !important;
        font-weight: 500;
    }

    .np-future-intro {
        font-size: 0.9rem !important;
        line-height: 1.45 !important;
        padding: 0 18px;
    }

    .np-future-clean-list .np-future-title {
        font-size: 1.2rem !important;
    }

    .np-future-clean-list .np-future-desc {
        font-size: 1rem !important;
        line-height: 1.45 !important;
    }
}


/* ================================================
   MORE PROJECTS SECTION — DEFAULT DESKTOP STYLE
   ================================================ */

.similars .np-sec-title {
    font-size: 2.1rem;
    margin-bottom: 10px;
}

.similars .np-future-intro {
    font-size: 1.15rem;
    /* max-width: 600px; */
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.np-related-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: white;
    transition: transform .25s ease;
}

.np-related-card:hover {
    transform: translateY(-6px);
}

.np-related-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.np-related-content {
    padding: 18px 10px;
    text-align: center;
}

.np-related-title {
    font-size: 1.25rem;
    color: black;
    margin: 0;
}

/* BUTTON */
.np-related-btn {
    background: #319969;
    color: white;
    padding: 12px 32px;
    display: inline-block;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: .25s;
    margin-bottom: 30px;
}

.np-related-btn:hover {
    opacity: .85;
}


/* ================================================
   TABLET ≤ 995px
   ================================================ */
@media (max-width: 995px) {

    .similars .np-sec-title {
        font-size: 1.55rem;
        margin-bottom: 8px;
    }

    .similars .np-future-intro {
        font-size: 1rem;
        padding: 0 15px;
        margin-bottom: 20px;
    }

    /* cards become bigger and readable */
    .np-related-img {
        height: 200px;
    }

    .np-related-title {
        font-size: 1.15rem;
    }
}


/* ================================================
   MOBILE ≤ 768px
   ================================================ */
@media (max-width: 768px) {

    .similars .np-sec-title {
        font-size: 1.45rem;
    }

    .similars .np-future-intro {
        font-size: .95rem;
    }

    /* stack cards with spacing */
    .np-related-img {
        height: 180px;
    }

    .np-related-title {
        font-size: 1.1rem;
    }

    .np-related-content {
        padding: 14px 8px;
    }

    .np-related-card {
        margin-bottom: 15px;
    }
}


/* ================================================
   SMALL MOBILE ≤ 480px
   ================================================ */
@media (max-width: 480px) {

    .similars .np-sec-title {
        font-size: 1.30rem;
    }

    .similars .np-future-intro {
        font-size: .9rem;
        line-height: 1.45;
    }

    .np-related-img {
        height: 160px; /* reduces stretch */
    }

    .np-related-title {
        font-size: 1rem;
    }

    .np-related-btn {
        font-size: 1rem;
        padding: 10px 26px;
        margin-bottom: 30px;
    }
    
}



.np-showimages {
    background-color: rgb(244, 244, 244);
}

#np-portfolio-wrapper {
    min-height: 200px; /* forces mobile Safari to paint it */
}
/* =======================================================
   MOBILE FIX — ALWAYS SHOW FIRST ITEMS WITHOUT JS
   ======================================================= */
@media (max-width: 768px) {
    #np-portfolio-wrapper {
        opacity: 1 !important;
        visibility: visible !important;
    }
	#np-load-more {
    display: inline-block !important;
    text-align:center;
    mer
}
}

