


/* =========================
   SECTION
========================= */
.case-hero {
    position: relative;
    padding: 180px 40px;
    font-family: "Segoe UI", sans-serif;
    background-color: #022E49;
    overflow: hidden;
}

/* BACKGROUND IMAGE (RIGHT SIDE ONLY) */
.case-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/static/assets/images/sevice-case-study/Bg.jpg.jpeg") no-repeat right center;
    background-size: contain;
    z-index: 0;
}

/* =========================
   CONTAINER
========================= */
.case-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================
   CONTENT
========================= */
.case-hero-content {
    max-width: 600px;
    color: #fff;
}

/* =========================
   TITLE
========================= */
.case-hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #ffffff;
}

/* HIGHLIGHT */
.case-hero-content h2 span {
    color: #3BE79B;
}

/* =========================
   PARAGRAPH
========================= */
.case-hero-content p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
}


/* =========================
   TABLET (992px ↓)
========================= */
@media (max-width: 992px) {

    .case-hero {
        padding: 120px 20px;
    }

    .case-hero::before {
        background-size: cover;
        background-position: center;
        opacity: 0.25;
    }

    .case-hero::after {
        background: #022E49;
    }


    .case-hero-content {
        margin: auto;
    }

    .case-hero-content h2 {
        font-size: 34px;
    }
}

/* =========================
   MOBILE (768px ↓)
========================= */
@media (max-width: 768px) {

    .case-hero {
        padding: 100px 15px;
    }

    .case-hero-content h2 {
        font-size: 28px;
        line-height: 1.4;
    }

    .case-hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* =========================
   SMALL MOBILE (480px ↓)
========================= */
@media (max-width: 480px) {

    .case-hero {
        padding: 80px 15px;
    }

    .case-hero-content h2 {
        font-size: 24px;
    }

    .case-hero-content p {
        font-size: 14px;
    }
}




/* =========================
   SECTION
========================= */
.nx-overview-carousel {
    background: #07364d;
    padding: 100px 20px;
    position: relative;
    margin-top: -1px;
}

/* BG */
.bg-case {
    background: url("/static/assets/images/sevice-case-study/case-study/BG.jpg") no-repeat center center;
    background-size: cover;
}

/* =========================
   SLIDE LAYOUT
========================= */
.nx-over-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* FIX OVERFLOW */
.carousel-inner {
    overflow: hidden;
}

/* =========================
   LEFT IMAGE
========================= */
.nx-over-left {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.nx-over-left img {
    width: 100%;
    max-width: 520px;
    height: 400px;
    object-fit: contain;

    transition: transform 0.5s ease;
}

/* HOVER */
.nx-over-left:hover img {
    transform: scale(1.05);
}

/* =========================
   RIGHT CONTENT
========================= */
.nx-over-right {
    flex: 1;
    max-width: 500px;
    color: #fff;
}

.nx-over-right h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #ffffff;
}

.nx-over-right p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}

/* =========================
   ARROWS
========================= */
.nx-over-prev,
.nx-over-next {
    width: 50px;
    height: 50px;
    background: #3BE79B;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.nx-over-prev { left: 40px; }
.nx-over-next { right: 40px; }

.nx-over-prev i,
.nx-over-next i {
    color: #07364d;
}

/* =========================
   TABLET (≤ 992px)
========================= */
@media (max-width: 992px) {

    .nx-over-slide {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .nx-over-left img {
        max-width: 400px;
    }

    .nx-over-right h2 {
        font-size: 30px;
    }

    .nx-over-right {
        max-width: 100%;
    }
}

/* =========================
   MOBILE (≤ 768px)
========================= */
@media (max-width: 768px) {

    .nx-overview-carousel {
        padding: 70px 15px;
    }

    .nx-over-slide {
        gap: 30px;
    }

    .nx-over-left img {
        max-width: 300px;
    }

    .nx-over-right h2 {
        font-size: 24px;
    }

    .nx-over-right p {
        font-size: 14px;
    }

    /* arrows smaller */
    .nx-over-prev,
    .nx-over-next {
        width: 40px;
        height: 40px;
    }
}

/* =========================
   SMALL MOBILE (≤ 480px)
========================= */
@media (max-width: 480px) {

    .nx-over-left img {
        max-width: 250px;
    }

    .nx-over-right h2 {
        font-size: 20px;
    }

    .nx-over-right p {
        font-size: 13px;
    }
}





/* SECTION */
.nx-features {
    background: #032E4A;
    padding: 100px 20px;
    font-family: 'Segoe UI', sans-serif;
}

/* TITLE */
.nx-features-title {
    text-align: center;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
}
.nx-features-title span {
    text-align: center;
    color: #3BE79B;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
}

/* GRID */
.nx-features-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 100px;
    padding: 50px 100px;
    align-items: stretch;
}

/* WRAP (IMPORTANT) */
.nx-feature-wrap {
    position: relative;
    height: 100%;
}

/* CARD */
.nx-feature-card {
    height: 100%;
    display: flex;
    align-items: center;
    background: #0b3e57;
    padding: 30px 30px 30px 60px;
    border-radius: 16px;
    position: relative;
    -webkit-mask-image: radial-gradient(circle 50px at -10px 79%, transparent 70%, transparent 99%, black 93%);
    mask-image: radial-gradient(circle 50px at 3px 50%, transparent 0%, transparent 85%, black 70%);
    transition: 0.3s;
}


/* ICON */
.nx-icon {
    position: absolute;
    left: -34px;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(180deg, #3BE79B, #1fd39c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    z-index: 5;
}

.nx-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 6px solid rgba(255,255,255,0.08);
    clip-path: inset(0 50% 0 0);
    transform: scale(1.2);
}
/* ICON IMAGE */
.nx-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* TEXT */
.nx-feature-content h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 6px;
    font-weight: 700;
}

.nx-feature-content p {
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    line-height: 1.6;
}

/* =========================
   TABLET (≤ 992px)
========================= */
@media (max-width: 992px) {

    .nx-features-grid {
        grid-template-columns: 1fr; /* 2 column → 1 */
        gap: 30px;
    }

    .nx-feature-card {
        padding: 30px 25px 30px 55px;
    }

    .nx-icon {
        width: 65px;
        height: 65px;
        left: -28px;
    }

    .nx-icon img {
        width: 34px;
        height: 34px;
    }
}

/* =========================
   MOBILE (≤ 768px)
========================= */
@media (max-width: 768px) {

    .nx-features-grid {
        padding: 50px 50px;
    }

    .nx-features {
        padding: 70px 15px;
    }

    .nx-features-title,
    .nx-features-title span {
        font-size: 28px;
    }

    .nx-feature-card {
        padding: 25px 20px 25px 50px;
    }
    .nx-feature-card {
        padding: 25px 20px 25px 50px;
        mask-image: radial-gradient(circle 50px at 6px 50%, transparent 0%, transparent 72%, black 70%);
    }
    .nx-icon {
        width: 60px;
        height: 60px;
        left: -25px;
    }

    .nx-icon img {
        width: 30px;
        height: 30px;
    }

    .nx-feature-content h3 {
        font-size: 20px;
    }

    .nx-feature-content p {
        font-size: 16px;
    }
}

/* =========================
   SMALL MOBILE (≤ 480px)
========================= */
@media (max-width: 480px) {

    .nx-features-title,
    .nx-features-title span {
        font-size: 24px;
    }

    .nx-feature-card {
        padding: 20px 15px 20px 45px;
    }

    .nx-icon {
        width: 55px;
        height: 55px;
        left: -22px;
    }

    .nx-icon img {
        width: 26px;
        height: 26px;
    }

    .nx-feature-content h3 {
        font-size: 18px;
    }

    .nx-feature-content p {
        font-size: 14px;
    }
}














/* =========================
   SECTION
========================= */
.design-section {
    padding: 120px 20px;
    font-family: "Segoe UI", sans-serif;

    background: url("../images/sevice-case-study/sketch/sketch-bg.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================
   CONTAINER
========================= */
.design-container {
    max-width: 1400px; 
    margin: auto;
    padding: 0 20px;
}

/* =========================
   TITLE
========================= */
.design-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 50px;
}

/* =========================
   GRID
========================= */
.design-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* =========================
   CARD
========================= */
.design-card {
    flex: 1; 
    border-radius: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.4s ease;
}

/* IMAGE */
.design-card img {
    width: 100%;     
    max-width: 500px;
    height: auto;
    object-fit: contain;
    border-radius: 25px;
    transition: 0.4s ease;
}

/* HOVER */
.design-card:hover img {
    transform: scale(1.05);
}


/* =========================
   TABLET (992px)
========================= */
@media (max-width: 992px) {

    .design-title {
        font-size: 28px;
    }

    .design-grid {
        gap: 30px;
    }

    .design-card img {
        max-width: 100%;
    }
}


/* =========================
   MOBILE (768px)
========================= */
@media (max-width: 768px) {
    .design-container {
        padding: 160px 20px 50px 20px;
    }
    .design-section {
        padding: 80px 15px;
    }

    .design-title {
        font-size: 24px;
        line-height: 1.4;
    }

    .design-grid {
        flex-direction: column; 
        gap: 25px;
    }

    .design-card {
        width: 100%;
    }

    .design-card img {
        width: 100%;
        max-width: 100%;
    }
}


/* =========================
   SMALL MOBILE (480px)
========================= */
@media (max-width: 480px) {

    .design-title {
        font-size: 20px;
    }

    .design-section {
        padding: 60px 10px;
    }
}










/* =========================
   MAIN SECTION
========================= */
.nx-case-combined {
    width: 100%;
}


/* =========================
   TOP BANNER
========================= */
.nx-case-banner {
    background: url("/static/assets/images/sevice-case-study/case-study/rm-tax-service-bg.jpeg");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;

    padding: 100px 150px;
}

.nx-case-content {
    max-width: 700px;
}

.nx-case-content h2 {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.6;
    color: #fff;
}

.nx-case-content span {
    color: #3BE79B;
    font-weight: 700;
}


/* =========================
   IMAGE SECTION
========================= */
.nx-case-image {
    width: 100%;
    overflow: hidden;
}

.nx-case-image img {
    width: 100%;
    height: auto; 
    object-fit: cover;
    display: block;
}


/* =========================
   CTA SECTION
========================= */
.nx-case-cta {
    padding: 100px 20px;
    background: #0c3b52;
    text-align: center;
}

.nx-case-cta h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
}

/* BUTTON */
.nx-case-btn {
    display: inline-block;
    padding: 14px 60px;
    font-size: 25px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;

    color: #0c3b52;
    background: linear-gradient(90deg, #2ef2a2, #e6f7ef);

    box-shadow: 
        0 10px 25px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.6);

    transition: all 0.4s ease;
}

.nx-case-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(90deg, #28d891, #c8f5e4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}


/* =========================
   TABLET (992px)
========================= */
@media (max-width: 992px) {

    .nx-case-banner {
        padding: 80px 60px;
        background-position: center;
    }

    .nx-case-content {
        max-width: 100%;
    }

    .nx-case-content h2 {
        font-size: 22px;
    }

    .nx-case-cta h2 {
        font-size: 28px;
    }

    .nx-case-btn {
        font-size: 20px;
        padding: 12px 40px;
    }
}


/* =========================
   MOBILE (768px)
========================= */
@media (max-width: 768px) {

    .nx-case-banner {
        padding: 60px 20px;
        text-align: center;
        background-position: center;
    }

    .nx-case-content {
        margin: auto;
    }

    .nx-case-content h2 {
        font-size: 18px;
        line-height: 1.5;
    }

    .nx-case-cta {
        padding: 70px 20px;
    }

    .nx-case-cta h2 {
        font-size: 22px;
    }

    .nx-case-btn {
        font-size: 18px;
        padding: 12px 30px;
    }
}


/* =========================
   SMALL MOBILE (480px)
========================= */
@media (max-width: 480px) {

    .nx-case-banner {
        padding: 50px 15px;
    }

    .nx-case-content h2 {
        font-size: 16px;
    }

    .nx-case-cta h2 {
        font-size: 20px;
    }

    .nx-case-btn {
        font-size: 16px;
        padding: 10px 25px;
    }
}





/* =========================
   SECTION
========================= */
.nx-process-section {
    padding: 120px 20px;
    margin-bottom: 20px;

    background: url("/static/assets/images/sevice-case-study/sketch/logo-sketch-design-bg.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    font-family: "Segoe UI", sans-serif;
}

/* =========================
   CONTAINER
========================= */
.nx-process-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* =========================
   TITLE
========================= */
.nx-process-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 60px;
}

/* =========================
   GRID
========================= */
.nx-process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* =========================
   CARD
========================= */
.nx-process-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;

    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    transition: all 0.4s ease;

    height: 100%; 
}

/* IMAGE */
.nx-process-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* HOVER */
.nx-process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.12);
}

/* =========================
   TABLET (≤ 992px)
========================= */
@media (max-width: 992px) {

    .nx-process-section {
        padding: 100px 20px;
    }

    .nx-process-title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .nx-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* =========================
   MOBILE (≤ 768px)
========================= */
@media (max-width: 768px) {

    .nx-process-section {
        padding: 80px 15px;
    }

    .nx-process-title {
        font-size: 22px;
        line-height: 1.4;
    }

    .nx-process-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .nx-process-card {
        border-radius: 15px;
    }
}

/* =========================
   SMALL MOBILE (≤ 480px)
========================= */
@media (max-width: 480px) {

    .nx-process-section {
        padding: 60px 10px;
    }

    .nx-process-title {
        font-size: 18px;
    }

    .nx-process-card {
        border-radius: 12px;
    }
}





/* OVERLAY */
.nx-popup-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.4);

    backdrop-filter: blur(10px);       
    -webkit-backdrop-filter: blur(10px); 

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

/* POPUP BOX */
.nx-popup-box {
    width: 600px;
    max-width: 90%;
    padding: 40px 40px;
    border-radius: 25px;
    text-align: center;
    color: #0c3b52;
    background: url("/static/assets/images/sevice-case-study/popup-bg.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    position: relative;
    animation: popupFade 0.5s ease;
}

/* TITLE */
.nx-popup-box h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* TEXT */
.nx-popup-box p {
    font-size: 16px;
    margin-bottom: 25px;
}

/* LIST */
.nx-popup-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 40px;
    font-weight: 500;
}

.nx-popup-list div {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ICON STYLE */
.nx-popup-list i {
    color: #0c3b52;
    font-size: 18px;
}
.nx-popup-btn {
    display: inline-block;
    padding: 8px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(180deg, #5fd3b3, #2f7f73);
    transition: all 0.3s ease;
    position: relative;
}


/* HOVER */
.nx-popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        inset 0 2px 6px rgba(255,255,255,0.5),
        inset 0 -6px 12px rgba(0,0,0,0.25),
        0 20px 40px rgba(0,0,0,0.3);
}

/* CLOSE BTN */
.nx-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    border: none;
    background: #0c3b52;
    color: #fff;
    font-size: 22px;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
}

/* =========================
   TABLET (≤ 992px)
========================= */
@media (max-width: 992px) {

    .nx-popup-box {
        padding: 35px 25px;
    }

    .nx-popup-box h2 {
        font-size: 24px;
    }

    .nx-popup-box p {
        font-size: 15px;
    }

    .nx-popup-list {
        gap: 10px 15px;
    }

    .nx-popup-btn {
        font-size: 16px;
        padding: 10px 30px;
    }
}

/* =========================
   MOBILE (≤ 768px)
========================= */
@media (max-width: 768px) {

    .nx-popup-box {
        width: 95%;
        padding: 30px 20px;
        border-radius: 20px;
    }

    .nx-popup-box h2 {
        font-size: 20px;
    }

    .nx-popup-box p {
        font-size: 14px;
    }

    /* list 2 column → 1 column */
    .nx-popup-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nx-popup-btn {
        font-size: 15px;
        padding: 10px 25px;
    }

    .nx-popup-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/* =========================
   SMALL MOBILE (≤ 480px)
========================= */
@media (max-width: 480px) {

    .nx-popup-box {
        padding: 25px 15px;
    }

    .nx-popup-box h2 {
        font-size: 18px;
    }

    .nx-popup-box p {
        font-size: 13px;
    }

    .nx-popup-btn {
        font-size: 14px;
        padding: 8px 20px;
    }
}

/* =========================
   ANIMATION
========================= */
@keyframes popupFade {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}