/* =========================================================
   SGP PROJECT DETAIL
   ใช้ชื่อ class เฉพาะ ป้องกันชนกับ Theme เดิม
========================================================= */

.sgp-project-detail {
    width: 100%;
    padding: 40px 0 70px;
    background: #ffffff !important;
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* =========================================================
   PROJECT CARD
========================================================= */

.sgp-project-card {
    position: relative !important;

    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;

    display: block !important;

    overflow: hidden;

    background: #ffffff !important;

    border: 1px solid #e5edf5;
    border-radius: 28px;

    box-shadow:
        0 25px 70px rgba(15, 55, 100, .10),
        0 5px 20px rgba(15, 55, 100, .04);

    visibility: visible !important;
    opacity: 1 !important;
}


/* =========================================================
   IMAGE
========================================================= */

.sgp-project-image {
    position: relative !important;

    width: 100%;
    height: 500px;

    display: block !important;

    overflow: hidden;

    background: #062b5c;

    visibility: visible !important;
    opacity: 1 !important;
}

.sgp-project-image img {
    position: relative !important;

    display: block !important;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.01);

    transition:
        transform 1s cubic-bezier(.2, .7, .2, 1);

    visibility: visible !important;
    opacity: 1 !important;
}

.sgp-project-card:hover .sgp-project-image img {
    transform: scale(1.055);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.sgp-project-image-overlay {
    position: absolute !important;

    inset: 0;

    z-index: 2;

    display: block !important;

    background:
        linear-gradient(
            180deg,
            rgba(3, 27, 58, .04) 0%,
            rgba(3, 27, 58, .08) 35%,
            rgba(3, 27, 58, .35) 60%,
            rgba(3, 27, 58, .88) 100%
        );

    pointer-events: none;
}


/* =========================================================
   IMAGE BOTTOM LINE
========================================================= */

.sgp-project-image-line {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 5px;

    z-index: 5;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #22c55e
        );
}


/* =========================================================
   STATUS
========================================================= */

.sgp-project-status {
    position: absolute;

    right: 28px;
    bottom: 28px;

    z-index: 10;

    display: inline-flex !important;

    align-items: center;
    gap: 9px;

    padding: 11px 16px;

    border-radius: 999px;

    background: rgba(255,255,255,.95);

    color: #062b5c !important;

    font-family:
        "Plus Jakarta Sans",
        "Kanit",
        sans-serif;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: .3px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.14);

    backdrop-filter: blur(10px);

    visibility: visible !important;
    opacity: 1 !important;
}

.sgp-status-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 5px rgba(34,197,94,.13);
}


/* =========================================================
   CONTENT
========================================================= */

.sgp-project-content {

    position: relative !important;

    z-index: 50 !important;

    display: block !important;

    width: 100% !important;

    min-height: 400px;

    padding: 55px 60px 45px;

    background: #ffffff !important;

    color: #062b5c !important;

    visibility: visible !important;

    opacity: 1 !important;

    transform: none !important;

    float: none !important;

    clear: both !important;
}


/* =========================================================
   HEADING
========================================================= */

.sgp-project-heading {

    position: relative !important;

    z-index: 51 !important;

    display: block !important;

    visibility: visible !important;

    opacity: 1 !important;
}


/* LABEL */

.sgp-project-label {

    position: relative;

    z-index: 52;

    display: inline-flex !important;

    align-items: center;

    gap: 9px;

    color: #2563eb !important;

    font-family:
        "Plus Jakarta Sans",
        "Kanit",
        sans-serif;

    font-size: 15px !important;

    font-weight: 500;

    letter-spacing: 2.2px;

    line-height: 1.5;

    visibility: visible !important;

    opacity: 1 !important;
}

.sgp-project-label::before {

    content: "";

    width: 24px;
    height: 2px;

    flex-shrink: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #22c55e
        );
}


/* H1 */

.sgp-project-heading h1 {

    position: relative !important;

    z-index: 52 !important;

    display: block !important;

    width: auto !important;

    max-width: 850px;

    height: auto !important;

    margin: 12px 0 0 !important;

    padding: 0 !important;

    color: #062b5c !important;

    background: transparent !important;

    font-family:
        "Plus Jakarta Sans",
        "Kanit",
        sans-serif !important;

    font-size: 26px !important;

    line-height: 1.25 !important;

    font-weight: 500 !important;

    letter-spacing: -.8px;

    text-align: left !important;

    visibility: visible !important;

    opacity: 1 !important;

    transform: none !important;

    overflow: visible !important;
}

.sgp-project-heading h1 span {

    display: inline !important;

    color: #2563eb !important;

    visibility: visible !important;

    opacity: 1 !important;
}


/* SUBTITLE */

.sgp-project-subtitle {

    position: relative !important;

    z-index: 52 !important;

    display: block !important;

    width: auto !important;

    max-width: 700px;

    height: auto !important;

    margin: 14px 0 0 !important;

    padding: 0 !important;

    color: #64748b !important;

    background: transparent !important;

    font-family:
        "Kanit",
        "Sarabun",
        sans-serif !important;

    font-size: 17px !important;

    line-height: 1.9 !important;

    text-align: left !important;

    visibility: visible !important;

    opacity: 1 !important;

    transform: none !important;
}


/* =========================================================
   INFORMATION
========================================================= */

.sgp-project-info {

    position: relative !important;

    z-index: 50 !important;

    display: grid !important;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 14px;

    width: 100%;

    margin-top: 38px;

    visibility: visible !important;

    opacity: 1 !important;
}


/* INFO CARD */

.sgp-info-item {

    position: relative !important;

    z-index: 51 !important;

    min-height: 145px;

    display: flex !important;

    align-items: flex-start;

    gap: 18px;

    padding: 28px;

    overflow: hidden;

    border: 1px solid rgba(37,99,235,.10);

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fbff 100%
        ) !important;

    box-shadow:
        0 12px 30px rgba(15,55,100,.06);

    visibility: visible !important;

    opacity: 1 !important;
}

.sgp-info-item:hover {

    transform: translateY(-5px);

    box-shadow:
        0 20px 45px rgba(15,55,100,.12);
}


/* TOP BORDER */

.sgp-info-project {
    border-top: 3px solid #2563eb !important;
}

.sgp-info-location {
    border-top: 3px solid #22c55e !important;
}


/* DECORATION */

.sgp-info-decoration {

    position: absolute;

    width: 120px;
    height: 120px;

    right: -45px;
    bottom: -55px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37,99,235,.10),
            transparent 70%
        );

    pointer-events: none;
}


/* ICON */

.sgp-info-icon {

    position: relative;

    z-index: 55;

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: grid !important;

    place-items: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #ecfdf5
        );

    color: #2563eb !important;

    font-size: 20px;

    visibility: visible !important;

    opacity: 1 !important;
}

.sgp-info-location .sgp-info-icon {
    color: #22a85a !important;
}


/* INFO TEXT */

.sgp-info-text {

    position: relative;

    z-index: 56;

    min-width: 0;

    display: block !important;

    visibility: visible !important;

    opacity: 1 !important;
}


/* INFO LABEL */

.sgp-info-label {

    display: block !important;

    margin: 0 0 6px;

    color: #2563eb !important;

    font-family:
        "Plus Jakarta Sans",
        "Kanit",
        sans-serif;

    font-size: 14px !important;

    font-weight: 800;

    letter-spacing: 1.8px;

    line-height: 1.5;

    visibility: visible !important;

    opacity: 1 !important;
}

.sgp-info-location .sgp-info-label {
    color: #22a85a !important;
}


/* STRONG */

.sgp-info-text strong {

    display: block !important;

    width: auto !important;

    height: auto !important;

    margin: 0 !important;

    padding: 0 !important;

    color: #062b5c !important;

    background: transparent !important;

    font-family:
        "Plus Jakarta Sans",
        "Kanit",
        sans-serif !important;

    font-size: 17px !important;

    line-height: 1.55 !important;

    font-weight: 700 !important;

    visibility: visible !important;

    opacity: 1 !important;

    transform: none !important;
}


/* P */

.sgp-info-text p {

    display: block !important;

    width: auto !important;

    height: auto !important;

    margin: 5px 0 0 !important;

    padding: 0 !important;

    color: #7b8ba0 !important;

    background: transparent !important;

    font-family:
        "Kanit",
        "Sarabun",
        sans-serif !important;

    font-size: 16px !important;

    line-height: 1.6 !important;

    visibility: visible !important;

    opacity: 1 !important;
}


/* =========================================================
   SERVICES
========================================================= */

.sgp-project-scope {

    position: relative !important;

    z-index: 50 !important;

    display: block !important;

    padding-top: 48px;

    visibility: visible !important;

    opacity: 1 !important;
}


.sgp-scope-heading {

    display: flex !important;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;
}

.sgp-scope-title {
    flex-shrink: 0;
}


/* SERVICE TITLE */

.sgp-scope-heading h2 {

    display: block !important;

    margin: 7px 0 0 !important;

    padding: 0 !important;

    color: #062b5c !important;

    font-family:
        "Kanit",
        "Sarabun",
        sans-serif !important;

    font-size: 27px !important;

    line-height: 1.3 !important;

    font-weight: 600 !important;

    visibility: visible !important;

    opacity: 1 !important;
}


/* LINE */

.sgp-scope-line {

    flex: 1;

    height: 1px;

    margin-bottom: 10px;

    background:
        linear-gradient(
            90deg,
            #dce7f3,
            transparent
        );
}


/* SERVICE GRID */

.sgp-service-grid {

    display: grid !important;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 15px;

    margin-top: 25px;

    visibility: visible !important;

    opacity: 1 !important;
}


/* SERVICE ITEM */

.sgp-service-item {

    position: relative !important;

    z-index: 51 !important;

    min-height: 94px;

    display: flex !important;

    align-items: center;

    gap: 17px;

    padding: 18px 20px;

    overflow: hidden;

    border: 1px solid #e5edf5;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f8fbff
        ) !important;

    visibility: visible !important;

    opacity: 1 !important;

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.sgp-service-item:hover {

    transform: translateY(-4px);

    border-color: #cbdcf0;

    box-shadow:
        0 15px 35px rgba(15,55,100,.09);
}


/* LEFT COLOR LINE */

.sgp-service-item::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    opacity: 0;

    transition: opacity .3s ease;
}

.sgp-service-item:hover::before {
    opacity: 1;
}

.sgp-service-item:nth-child(1)::before {
    background: linear-gradient(
        180deg,
        #2563eb,
        #38bdf8
    );
}

.sgp-service-item:nth-child(2)::before {
    background: linear-gradient(
        180deg,
        #22c55e,
        #84cc16
    );
}

.sgp-service-item:nth-child(3)::before {
    background: linear-gradient(
        180deg,
        #f59e0b,
        #f97316
    );
}

.sgp-service-item:nth-child(4)::before {
    background: linear-gradient(
        180deg,
        #8b5cf6,
        #6366f1
    );
}


/* SERVICE DECORATION */

.sgp-service-decoration {

    position: absolute;

    width: 100px;
    height: 100px;

    right: -35px;
    bottom: -45px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37,99,235,.07),
            transparent 70%
        );

    pointer-events: none;
}


/* SERVICE NUMBER */

.sgp-service-number {

    position: relative;

    z-index: 55;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: grid !important;

    place-items: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #062b5c,
            #1458a6
        );

    color: #ffffff !important;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 11px;

    font-weight: 800;

    visibility: visible !important;

    opacity: 1 !important;
}

.sgp-service-item:nth-child(2)
.sgp-service-number {

    background:
        linear-gradient(
            135deg,
            #15803d,
            #22c55e
        );
}

.sgp-service-item:nth-child(3)
.sgp-service-number {

    background:
        linear-gradient(
            135deg,
            #d97706,
            #f59e0b
        );
}

.sgp-service-item:nth-child(4)
.sgp-service-number {

    background:
        linear-gradient(
            135deg,
            #6d28d9,
            #8b5cf6
        );
}


/* SERVICE TEXT */

.sgp-service-text {

    position: relative;

    z-index: 56;

    min-width: 0;

    display: block !important;

    visibility: visible !important;

    opacity: 1 !important;
}

.sgp-service-text h3 {

    display: block !important;

    margin: 0 !important;

    padding: 0 !important;

    color: #062b5c !important;

    background: transparent !important;

    font-family:
        "Kanit",
        "Sarabun",
        sans-serif !important;

    font-size: 16px !important;

    line-height: 1.5 !important;

    font-weight: 600 !important;

    visibility: visible !important;

    opacity: 1 !important;
}

.sgp-service-text p {

    display: block !important;

    margin: 3px 0 0 !important;

    padding: 0 !important;

    color: #8a98a8 !important;

    background: transparent !important;

    font-family:
        "Plus Jakarta Sans",
        "Kanit",
        sans-serif !important;

    font-size: 15px !important;

    line-height: 1.5 !important;

    visibility: visible !important;

    opacity: 1 !important;
}


/* =========================================================
   FOOTER
========================================================= */

.sgp-project-footer {

    position: relative !important;

    z-index: 50 !important;

    display: flex !important;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-top: 45px;

    padding-top: 30px;

    border-top: 1px solid #e5edf5;

    visibility: visible !important;

    opacity: 1 !important;
}


/* POWER */

.sgp-footer-power {

    position: relative;

    padding-left: 18px;
}

.sgp-footer-power::before {

    content: "";

    position: absolute;

    left: 0;

    top: 4px;

    bottom: 4px;

    width: 3px;

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            #2563eb,
            #22c55e
        );
}

.sgp-footer-power span {

    display: block;

    color: #8a98a8 !important;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.sgp-footer-power strong {

    display: block;

    margin-top: 4px;

    color: #062b5c !important;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 34px;

    line-height: 1;

    font-weight: 800;
}

.sgp-footer-power small {

    color: #22a85a !important;

    font-size: 14px;
}


/* =========================================================
   BUTTON
========================================================= */

.sgp-project-button {

    position: relative;

    z-index: 60;

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    gap: 24px;

    min-height: 52px;

    padding: 0 25px;

    overflow: hidden;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1747a8
        );

    color: #ffffff !important;

    font-family:
        "Kanit",
        "Sarabun",
        sans-serif;

    font-size: 16px;

    font-weight: 600;

    text-decoration: none !important;

    box-shadow:
        0 12px 28px rgba(37,99,235,.25);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    visibility: visible !important;

    opacity: 1 !important;
}

.sgp-project-button:hover {

    color: #ffffff !important;

    transform: translateY(-3px);

    box-shadow:
        0 18px 35px rgba(37,99,235,.32);
}

.sgp-project-button span {

    position: relative;

    font-size: 20px;

    transition:
        transform .3s ease;
}

.sgp-project-button:hover span {
    transform: translateX(5px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .sgp-project-detail {
        padding: 35px 0 60px;
    }

    .sgp-project-image {
        height: 420px;
    }

    .sgp-project-content {
        padding: 45px 35px 35px;
    }

    .sgp-project-heading h1 {
        font-size: 34px !important;
    }

    .sgp-project-subtitle {
        font-size: 16px !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .sgp-project-detail {
        padding: 25px 0 45px;
    }

    .sgp-project-card {
        width: calc(100% - 20px);
        border-radius: 20px;
    }

    .sgp-project-image {
        height: 280px;
    }

    .sgp-project-status {
        right: 15px;
        bottom: 15px;
        padding: 9px 12px;
        font-size: 9px;
    }

    .sgp-project-content {
        padding: 32px 20px 25px;
    }

    .sgp-project-heading h1 {
        font-size: 25px !important;
        line-height: 1.4 !important;
        letter-spacing: -.3px;
    }

    .sgp-project-subtitle {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }


    /* INFO */

    .sgp-project-info {
        grid-template-columns: 1fr;
        margin-top: 25px;
    }

    .sgp-info-item {
        min-height: auto;
        padding: 20px;
        gap: 14px;
    }

    .sgp-info-icon {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        font-size: 17px;
    }

    .sgp-info-text strong {
        font-size: 15px !important;
    }

    .sgp-info-text p {
        font-size: 14px !important;
    }


    /* SERVICES */

    .sgp-project-scope {
        padding-top: 35px;
    }

    .sgp-scope-heading {
        display: block !important;
    }

    .sgp-scope-heading h2 {
        font-size: 22px !important;
    }

    .sgp-scope-line {
        margin-top: 13px;
    }

    .sgp-service-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sgp-service-item {
        min-height: 78px;
        padding: 15px;
        gap: 13px;
    }

    .sgp-service-number {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .sgp-service-text h3 {
        font-size: 14px !important;
    }

    .sgp-service-text p {
        font-size: 11px !important;
    }


    /* FOOTER */

    .sgp-project-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 25px;
    }

    .sgp-project-button {
        width: 100%;
    }

}
/* =========================================================
   FIX HEADER / MENU LAYER
   ป้องกัน Project Card สีขาวลอยทับเมนูตอน Scroll
========================================================= */

/* ส่วนของ Project ให้อยู่ด้านล่าง Header */
.sgp-project-detail,
.sgp-project-card,
.sgp-project-content,
.sgp-project-heading,
.sgp-project-info,
.sgp-project-scope,
.sgp-project-footer {
    z-index: 1 !important;
}

/* ป้องกัน element ภายใน Project สร้าง layer สูง */
.sgp-project-detail *,
.sgp-project-card *,
.sgp-project-content * {
    z-index: auto;
}

/* =========================================================
   HEADER
========================================================= */

/* Header หลัก */
header,
.header,
.main-header,
.site-header {
    position: relative;
    z-index: 9990 !important;
}

/* เมนูหลัก */
.main-menu,
.main-menu-area,
.main-menu-wrapper,
.navbar,
.navbar-area,
.navigation,
.menu-area {
    position: relative;
    z-index: 9991 !important;
}

/* กรณี Header เป็น Sticky */
.sticky-header,
.sticky,
.header-sticky {
    z-index: 9999 !important;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.breadcumb-section {
    position: relative;
    z-index: 2 !important;
}