/* ==========================================================================
   Nasa Def theme
   Rujukan: Template 1-3 (panel bulat besar, kad statistik, kad kaca, butang pil)
   Palet: slide FarmGuard (teal, charcoal, mint)
   ========================================================================== */
:root {
    --primary: #0B7A68;
    --primary-dark: #086353;
    --primary-bright: #3FB59F;
    --dark: #1E272A;
    --dark-2: #263236;
    --mint: #E6F1EE;
    --surface: #F4F7F6;
    --frame: #E4EBE9;
    --ink: #1E272A;
    --body: #4E5B5F;
    --muted: #7C8A8E;
    --line: rgba(30, 39, 42, .09);
    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 32px;
    --shadow-soft: 0 1px 2px rgba(30, 39, 42, .04), 0 12px 32px rgba(30, 39, 42, .06);
    --shadow-lift: 0 20px 48px rgba(11, 122, 104, .16);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Asas ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font);
    background: var(--frame);
    color: var(--body);
    -webkit-font-smoothing: antialiased;
}

/* Seluruh halaman = satu kad putih atas latar kelabu (Template 2) */
body > .container-xxl.bg-white {
    width: auto;
    max-width: none;
    margin: 12px;
    border-radius: var(--radius-lg);
    overflow: clip;
    background: #fff !important;
    box-shadow: 0 30px 80px rgba(30, 39, 42, .08);
}

@media (max-width: 575.98px) {
    body > .container-xxl.bg-white { margin: 6px; border-radius: 24px; }
    #header-carousel, .page-header, .footer, .nd-panel, .container-xxl.testimonial { margin-left: 6px !important; margin-right: 6px !important; }
    .container-xxl.py-5.px-0.wow.zoomIn { padding: 6px !important; }
    .nd-header { padding: 6px 6px 0; }
    .testimonial-carousel { padding-left: 0; padding-right: 0; }
    .testimonial-carousel .owl-nav { display: none; }
    .newsletter .form-control { padding-right: 110px !important; }
    .newsletter .bg-white.rounded { padding: 32px 20px !important; }
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font);
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -.02em;
}

.display-3 { font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.text-primary { color: var(--primary) !important; }
.text-body { color: var(--body) !important; }
.text-uppercase.text-primary { text-transform: none !important; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* Seksyen lebar penuh; kandungan kekal dalam .container */
.container-xxl.py-5,
.container-xl.py-5 { max-width: none; }

.nd-section { padding: 88px 0; }
.nd-section + .nd-section { padding-top: 0; }

/* ---------- Butang (semua halaman) ---------- */
.btn {
    font-family: var(--font);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 999px;
    padding: .7rem 1.5rem;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(63, 181, 159, .55); outline-offset: 2px; box-shadow: none; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1rem; }
.btn.py-3, .btn.py-md-3 { padding-top: .9rem !important; padding-bottom: .9rem !important; }
.btn.rounded, .btn.rounded-0 { border-radius: 999px !important; }

.btn.btn-primary {
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 8px 20px rgba(11, 122, 104, .25);
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 12px 26px rgba(11, 122, 104, .32);
}

.btn.btn-dark, .btn.btn-success {
    color: #fff;
    background: var(--dark);
    border: 1px solid var(--dark);
}
.btn.btn-dark:hover, .btn.btn-success:hover { color: #fff; background: #000; border-color: #000; }

.btn.btn-light {
    color: var(--ink);
    background: #fff;
    border: 1px solid #fff;
}
.btn.btn-light:hover { color: var(--primary); background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }

.btn.btn-outline-dark {
    color: var(--ink);
    background: transparent;
    border: 1px solid rgba(30, 39, 42, .2);
}
.btn.btn-outline-dark:hover { color: #fff; background: var(--dark); border-color: var(--dark); }

.btn.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn.btn-outline-light:hover { background: #fff; color: var(--ink); }

.btn.btn-warning, .btn.btn-soft {
    color: #7a5a00;
    background: #FFF4D6;
    border: 1px solid #FFE7A3;
}
.btn.disabled, .btn:disabled { opacity: 1; transform: none; box-shadow: none; }

.btn-square, .btn-sm-square, .btn-lg-square { border-radius: 50% !important; padding: 0; }

/* ---------- Header ---------- */
.nd-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 12px 12px 0;
    background: #fff;
}

.nd-nav {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-radius: 999px;
    padding: 10px 0;
    box-shadow: var(--shadow-soft);
}

.nd-logo { height: 46px; width: auto; }

.nd-nav .navbar-nav .nav-link {
    position: relative;
    margin: 0 4px;
    padding: 8px 14px !important;
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    border-radius: 999px;
    text-transform: none;
}

.nd-nav .navbar-nav .nav-link:hover { color: var(--ink); background: var(--surface); }
.nd-nav .navbar-nav .nav-link.active { color: var(--primary); background: var(--mint); }

.nd-nav .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 8px;
    margin-top: 8px !important;
    box-shadow: var(--shadow-soft);
}
.nd-nav .dropdown-item { border-radius: 12px; padding: 8px 14px; font-size: 14px; }
.nd-nav .dropdown-item:hover, .nd-nav .dropdown-item.active { background: var(--mint); color: var(--primary); }

.nd-cta { padding: .6rem 1.25rem; font-size: 14px; }

.nd-nav .navbar-toggler { border: 0; border-radius: 12px; padding: 8px 10px; }
.nd-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(63, 181, 159, .4); }

@media (max-width: 991.98px) {
    .nd-nav { border-radius: 24px; }
    .nd-logo { height: 36px; }
    .nd-nav .navbar-nav .nav-link { margin: 2px 0; }
    .nd-cta { width: 100%; margin-bottom: 8px; }
}

/* ---------- Hero (karusel) ---------- */
#header-carousel {
    width: auto;
    margin: 12px 12px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.container-fluid.p-0.mb-5:has(#header-carousel) { margin-bottom: 0 !important; }

#header-carousel .carousel-item img { height: min(82vh, 760px); object-fit: cover; }

.carousel-caption {
    background: linear-gradient(100deg, rgba(20, 28, 30, .88) 0%, rgba(20, 28, 30, .55) 45%, rgba(11, 122, 104, .25) 100%);
    align-items: flex-start !important;
    text-align: left;
    padding: 0 6vw;
}

.carousel-caption .p-3 { padding: 0 !important; }
.carousel-caption .display-3 { font-size: clamp(2.2rem, 5.2vw, 4.5rem); }

.carousel-caption .section-title,
.page-header .section-title {
    color: #fff !important;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
}

.carousel-control-prev, .carousel-control-next { width: 6%; opacity: .6; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .14);
    background-size: 40%;
    backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item img { height: 540px; }
    .carousel-caption { padding: 0 24px; }
}

/* Page header (AISA, FloodSense) */
.page-header {
    width: auto;
    margin: 12px 12px 0 !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--dark);
}
.page-header-inner {
    background: linear-gradient(100deg, rgba(20, 28, 30, .9) 0%, rgba(20, 28, 30, .6) 55%, rgba(11, 122, 104, .35) 100%);
    padding: 110px 0 120px !important;
}
.page-header .display-3 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.breadcrumb { text-transform: none !important; font-size: 14px; }
.breadcrumb-item a { color: rgba(255, 255, 255, .75); }
.breadcrumb-item a:hover { color: #fff; }

/* ---------- Label & tajuk seksyen ---------- */
.section-title,
.nd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--primary) !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase !important;
}

.section-title::before, .section-title::after { display: none; }

.section-title.text-start::before,
.nd-eyebrow::before {
    content: "";
    display: block !important;
    position: static;
    width: 6px;
    height: 6px;
    margin: 0;
    border-radius: 50%;
    background: currentColor;
}

.nd-eyebrow-light { background: rgba(255, 255, 255, .1); color: var(--primary-bright) !important; }

.nd-h2 {
    margin: 16px 0 0;
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    font-weight: 500;
    line-height: 1.12;
}

.nd-lead { max-width: 420px; margin: 0; color: var(--muted); }

.nd-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
}

/* Tajuk h1 seksyen lama: lebih ringan, ikut Template 2 */
.container-xxl h1.mb-5,
.container-xl h1.mb-5,
.container-xxl h1.mb-4 { font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; }
h1 .text-uppercase { text-transform: none !important; }

/* ---------- Jalur produk di bawah hero ---------- */
.booking {
    margin-top: -70px !important;
    padding: 0 12px;
    background: transparent;
}
.booking > .container > .bg-white {
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(30, 39, 42, .12) !important;
    padding: 36px !important;
}
.booking .text-center > i {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: var(--mint);
    font-size: 20px !important;
}
.booking h6 { margin-top: 6px; font-weight: 600; }
.booking p { font-size: 14px; color: var(--muted); }
.booking + .container-xxl { padding-top: 88px !important; }

/* ---------- Kad umum ---------- */
.bg-light { background: var(--surface) !important; }
.rounded { border-radius: var(--radius) !important; }
.shadow { box-shadow: var(--shadow-soft) !important; }

/* Kaunter About: kad statistik (Template 2) */
#about .border.rounded.p-1 { border: 0 !important; padding: 0 !important; }
#about .border.rounded.text-center {
    border: 1px solid var(--line) !important;
    background: var(--surface);
    border-radius: var(--radius) !important;
    transition: transform .3s, background .3s, color .3s;
}
#about .col-sm-4:nth-child(2) .border.rounded.text-center { background: var(--dark); border-color: var(--dark) !important; }
#about .col-sm-4:nth-child(2) .border.rounded.text-center * { color: #fff !important; }
#about .border.rounded.text-center:hover { transform: translateY(-4px); }
#about h2 { font-weight: 500; }
#about img.rounded { border-radius: var(--radius) !important; box-shadow: var(--shadow-soft); }

/* ---------- Kad produk (kecil) ---------- */
.nd-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nd-product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }

.nd-product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 10px 10px 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
}
.nd-product-media img { width: 100%; height: 100%; display: block; transition: transform .5s ease; }
.nd-fit-cover img { object-fit: cover; }
.nd-fit-contain img { object-fit: contain; padding: 14px; }
.nd-fit-white { background: #fff; border: 1px solid var(--line); }
.nd-fit-white img { object-fit: contain; padding: 8px; }
.nd-product:hover .nd-product-media img { transform: scale(1.05); }

.nd-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    backdrop-filter: blur(6px);
}
.nd-tag-primary { background: var(--primary); color: #fff; }
.nd-tag-dark { background: rgba(30, 39, 42, .85); color: #fff; }
.nd-tag-warn { background: #FFF4D6; color: #7a5a00; }

.nd-product-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.nd-product-body h5 { margin-bottom: 6px; font-size: 1.05rem; }
.nd-product-body p { margin-bottom: 12px; font-size: 13.5px; line-height: 1.55; color: var(--body); }

.nd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.nd-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface);
    font-size: 12px;
    color: var(--body);
}
.nd-chips i { color: var(--primary); font-size: 11px; }

.nd-product-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* ---------- Panel gelap besar (Template 2 + kaca Template 3) ---------- */
.nd-panel {
    margin: 0 12px;
    padding: 80px 0;
    border-radius: var(--radius-lg);
}
.nd-panel-dark {
    color: rgba(255, 255, 255, .75);
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(63, 181, 159, .22), transparent 60%),
        radial-gradient(700px 380px at -10% 110%, rgba(11, 122, 104, .28), transparent 60%),
        var(--dark);
}
#progress.nd-section { padding: 0 0 12px; background: transparent; }

.nd-bigstat {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 18px 40px rgba(11, 122, 104, .35);
}
.nd-bigstat-num { font-size: clamp(3rem, 6vw, 4.25rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.nd-bigstat-label { font-size: 15px; font-weight: 500; line-height: 1.35; color: rgba(255, 255, 255, .85); }

.nd-projects { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.nd-projects li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    transition: background .3s, border-color .3s;
}
.nd-projects li:hover { background: rgba(255, 255, 255, .09); border-color: rgba(63, 181, 159, .4); }
.nd-projects strong { display: block; color: #fff; font-weight: 600; }
.nd-projects span:not(.nd-ico) { font-size: 13.5px; color: rgba(255, 255, 255, .65); }

.nd-ico {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(63, 181, 159, .16);
    color: var(--primary-bright);
}

.nd-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 290px 180px;
    gap: 10px;
}
.nd-gallery figure { min-height: 0; }
.nd-gallery figure {
    position: relative;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--dark-2);
}
.nd-gallery .nd-gallery-main { grid-column: 1 / -1; }
.nd-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.nd-gallery figure:hover img { transform: scale(1.05); }
.nd-gallery figcaption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(20, 28, 30, .6);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.nd-statbar {
    margin-top: 28px;
    padding: 32px;
    border-radius: var(--radius);
    background: #fff;
    color: var(--body);
}
.nd-statbar-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.nd-statbar-head h3 { margin: 0; font-weight: 500; font-size: 1.6rem; }
.nd-statbar-head p { max-width: 380px; margin: 0; font-size: 14px; color: var(--muted); }

.nd-stat {
    height: 100%;
    padding: 22px 20px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.nd-stat strong { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.nd-stat > span { font-size: 13px; color: var(--muted); }
.nd-stat-dark { background: var(--dark); border-color: var(--dark); }
.nd-stat-dark strong { color: #fff; }
.nd-stat-dark > span { color: rgba(255, 255, 255, .65); }

@media (max-width: 767.98px) {
    .nd-panel { padding: 56px 0; }
    .nd-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px 150px; }
    .nd-gallery figure:last-child { grid-column: 1 / -1; }
    .nd-statbar { padding: 22px; }
}

/* ---------- Company info / video ---------- */
.container-xxl.py-5.px-0.wow.zoomIn { background: transparent; padding: 12px !important; max-width: none; }
.container-xxl.py-5.px-0 > .row { border-radius: var(--radius-lg); overflow: hidden; }
.container-xxl.py-5.px-0 .bg-dark { background: var(--dark) !important; }
.company-details p { margin-bottom: 6px; color: rgba(255, 255, 255, .75); }
.company-details strong { color: #fff; font-weight: 600; }
.video .btn-play:before, .video .btn-play:after { background: var(--primary); }
.video .btn-play span { border-left-color: #fff; }

/* ---------- Servis ---------- */
.service-item {
    height: 100%;
    min-height: 260px;
    border-radius: var(--radius) !important;
    background: var(--surface);
    box-shadow: none;
    border: 1px solid var(--line);
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 28px;
}
.service-item .service-icon {
    margin: 0 0 22px;
    width: 52px; height: 52px;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 16px !important;
    background: #fff !important;
}
.service-item .service-icon > div { border: 0 !important; }
.service-item .service-icon i { font-size: 20px !important; }
.service-item:hover { background: var(--dark); border-color: var(--dark); transform: translateY(-4px); }
.service-item:hover .service-icon { background: rgba(255, 255, 255, .1) !important; }
.service-item:hover .service-icon i { color: var(--primary-bright) !important; }
.service-item:hover p { color: rgba(255, 255, 255, .7) !important; }

/* ---------- Testimoni: panel teal (Template 2) ---------- */
.container-xxl.testimonial {
    width: auto;
    max-width: none;
    margin: 12px !important;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(800px 400px at 100% 0%, rgba(63, 181, 159, .35), transparent 60%),
        var(--primary) !important;
}
.testimonial-carousel .testimonial-item {
    background: rgba(255, 255, 255, .1) !important;
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    border-radius: var(--radius) !important;
    color: rgba(255, 255, 255, .9);
}
.testimonial-carousel .testimonial-item h6, .testimonial-carousel .testimonial-item small { color: #fff; }
.testimonial-carousel .testimonial-item img { border-radius: 50% !important; }
.testimonial-carousel .testimonial-item .fa-quote-right { color: rgba(255, 255, 255, .18) !important; }
.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next { border-radius: 50%; background: #fff; color: var(--primary); }
.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover { background: var(--dark); color: #fff; }
/* AISA "What is AISA?" guna kelas sama: kad putih kekal putih */
.container-xxl.testimonial .bg-white.rounded.p-4 { border-radius: var(--radius) !important; }
.container-xxl.testimonial .text-light { color: rgba(255, 255, 255, .8) !important; }

/* Butang utama atas panel teal: tukar jadi putih supaya nampak */
.container-xxl.testimonial .btn.btn-primary { background: #fff; border-color: #fff; color: var(--primary); box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }
.container-xxl.testimonial .btn.btn-primary:hover { background: var(--dark); border-color: var(--dark); color: #fff; }

/* Panel CTA (FloodSense) */
.nd-cta-panel {
    width: auto;
    margin: 12px !important;
    padding: 80px 0 !important;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(800px 400px at 100% 0%, rgba(63, 181, 159, .3), transparent 60%),
        radial-gradient(600px 320px at 0% 100%, rgba(11, 122, 104, .35), transparent 60%),
        var(--dark) !important;
}
.nd-cta-panel .section-title { background: rgba(255, 255, 255, .1); color: var(--primary-bright) !important; }
.nd-cta-panel h1 { font-weight: 500; }
.nd-cta-panel p { color: rgba(255, 255, 255, .75) !important; }
@media (max-width: 575.98px) { .nd-cta-panel { margin: 6px !important; padding: 56px 0 !important; } }

/* ---------- Pasukan ---------- */
#leadership .rounded.shadow {
    min-height: 0 !important;
    border: 1px solid var(--line);
    box-shadow: none !important;
    background: var(--surface);
    transition: transform .3s, box-shadow .3s;
}
#leadership .rounded.shadow:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift) !important; }
#leadership img.rounded-circle { border: 6px solid #fff; box-shadow: var(--shadow-soft); }
#leadership .btn-square { width: 38px; height: 38px; }

/* ---------- Newsletter ---------- */
.newsletter .border.rounded { border: 0 !important; padding: 0 !important; }
.newsletter .bg-white.rounded {
    background: var(--surface) !important;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg) !important;
}
.newsletter .form-control { border-radius: 999px; border: 1px solid var(--line); padding-right: 140px !important; }
.newsletter .btn.position-absolute { margin: 6px !important; }

/* ---------- Borang (semua) ---------- */
.form-control, .form-select { border-radius: 12px; border-color: #D8E1DF; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(11, 122, 104, .18); }

/* ---------- Contact (kad maklumat) ---------- */
#contact { background: #fff; }
#contact .bg-light.rounded { border: 1px solid var(--line); text-align: left !important; }
#contact .bg-primary.rounded-circle { margin-left: 0 !important; border-radius: 18px !important; width: 60px !important; height: 60px !important; }
#contact .bg-primary.rounded-circle i { font-size: 22px !important; }

/* Kotak ikon bulat lain */
.bg-primary { background-color: var(--primary) !important; }

/* ---------- Footer (panel gelap, Template 2) ---------- */
.footer {
    width: auto;
    margin: 12px !important;
    padding-top: 72px !important;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(700px 300px at 0% 0%, rgba(11, 122, 104, .35), transparent 60%),
        var(--dark) !important;
}
.footer .bg-primary.rounded { background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important; }
.footer .section-title { background: transparent; padding: 0; color: var(--primary-bright) !important; }
.footer .section-title::before { display: none !important; }
.footer p, .footer .btn.btn-link { color: rgba(255, 255, 255, .72); }
.footer .btn.btn-link { border-radius: 0; padding: 0; transform: none; font-weight: 500; }
.footer .btn.btn-link:hover { color: #fff; letter-spacing: 0; transform: translateX(3px); }
.footer .btn.btn-social { width: 38px; height: 38px; padding: 0; border-color: rgba(255, 255, 255, .25); }
.footer .btn.btn-social:hover { background: #fff; color: var(--primary); }
.footer .copyright { border-top-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); }
.footer .copyright a, .footer .footer-menu a { color: rgba(255, 255, 255, .75); }
.footer .copyright a:hover, .footer .footer-menu a:hover { color: #fff; }

/* Back to top */
.back-to-top {
    right: 24px !important;
    bottom: 24px !important;
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    background: var(--dark) !important;
    border-color: var(--dark) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

/* Spinner */
#spinner { background: #fff !important; }

/* ==========================================================================
   Kad FarmGuard utama (halaman depan)
   ========================================================================== */
.nd-tag-promo { background: #F5B82E; color: #3b2a00; }

.nd-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    color: rgba(255, 255, 255, .75);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(63, 181, 159, .28), transparent 60%),
        var(--dark);
    transition: transform .3s ease, box-shadow .3s ease;
}
.nd-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.nd-feature-media { position: relative; margin: 12px 12px 0; border-radius: 16px; overflow: hidden; background: #fff; aspect-ratio: 16 / 9; }
.nd-feature-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.nd-feature-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.nd-feature-body .nd-eyebrow { align-self: flex-start; }
.nd-feature-body h3 { margin: 12px 0 8px; color: #fff; font-weight: 500; font-size: 1.7rem; }
.nd-feature-body p { font-size: 14px; }
.nd-chips-dark li { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); }
.nd-chips-dark i { color: var(--primary-bright); }
.nd-feature-models { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.nd-feature-models span {
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
}
.nd-feature-models strong { color: #fff; font-weight: 600; margin-left: 4px; }
.nd-feature-models .is-promo { background: rgba(245, 184, 46, .14); border-color: rgba(245, 184, 46, .45); }
.nd-feature .nd-product-actions { margin-top: auto; }

.nd-product-sm .nd-product-media { aspect-ratio: 16 / 10; }
.nd-product-sm .nd-product-body p { margin-bottom: 10px; }

/* ==========================================================================
   Halaman FarmGuard
   ========================================================================== */
.nd-fg-hero { padding: 12px 0 0; }
.nd-fg-hero .nd-panel { margin: 0 12px; padding: 72px 0; }
.nd-fg-title { margin: 18px 0 16px; font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.nd-fg-lead { max-width: 520px; margin-bottom: 28px; font-size: 1.05rem; color: rgba(255, 255, 255, .75); }
.nd-fg-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .8); }
.nd-fg-badges i { margin-right: 8px; color: var(--primary-bright); }

.nd-fg-visual {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
}
.nd-fg-visual img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 22px; background: #fff; padding: 16px; }
.nd-fg-float {
    position: absolute;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
    line-height: 1.15;
}
.nd-fg-float strong { display: block; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.nd-fg-float span { font-size: 12px; color: var(--muted); }
.nd-fg-float-1 { left: -18px; top: 18%; }
.nd-fg-float-2 { right: -18px; bottom: 14%; background: var(--primary); }
.nd-fg-float-2 strong, .nd-fg-float-2 span { color: #fff; }

.nd-section-tint { background: var(--surface); margin: 0 12px; border-radius: var(--radius-lg); }
.nd-section + .nd-section-tint,
.nd-section-tint + .nd-section { padding-top: 88px; }

.nd-step {
    position: relative;
    height: 100%;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform .3s ease, box-shadow .3s ease;
}
.nd-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.nd-step-no { position: absolute; top: 22px; right: 24px; font-size: 13px; font-weight: 600; color: var(--muted); }
.nd-step-ico {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background: #fff;
    color: var(--primary);
    font-size: 20px;
}
.nd-step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.nd-step p { margin: 0; font-size: 14px; }
.nd-step-dark { background: var(--dark); border-color: var(--dark); color: rgba(255, 255, 255, .72); }
.nd-step-dark h3 { color: #fff; }
.nd-step-dark .nd-step-ico { background: rgba(255, 255, 255, .1); color: var(--primary-bright); }

.nd-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.nd-kpis > div { padding: 22px 24px; border-right: 1px solid var(--line); }
.nd-kpis > div:last-child { border-right: 0; }
.nd-kpis strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; color: var(--primary); letter-spacing: -.03em; }
.nd-kpis span { font-size: 13px; color: var(--muted); }

/* Kad harga */
.nd-price {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.nd-price:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.nd-price-media { position: relative; margin: 10px 10px 0; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--surface); }
.nd-price-media img { width: 100%; height: 100%; object-fit: cover; }
.nd-price-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.nd-price-body h3 { margin-bottom: 4px; font-size: 1.3rem; }
.nd-price-desc { font-size: 14px; color: var(--muted); }
.nd-price-amount { margin: 6px 0 18px; font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.nd-price-amount small { margin-right: 4px; font-size: 1rem; font-weight: 600; vertical-align: super; letter-spacing: 0; }
.nd-price-amount span { margin-left: 6px; font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nd-checks { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14px; }
.nd-checks li { display: flex; gap: 10px; align-items: flex-start; }
.nd-checks i {
    flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--mint); color: var(--primary); font-size: 10px;
}
.nd-price-note { margin: -6px 0 16px; font-size: 12.5px; color: var(--muted); font-style: italic; }
.nd-price .btn { margin-top: auto; }

.nd-price-featured {
    border-color: var(--dark);
    color: rgba(255, 255, 255, .75);
    background:
        radial-gradient(500px 260px at 100% 0%, rgba(63, 181, 159, .3), transparent 60%),
        var(--dark);
    box-shadow: 0 24px 60px rgba(30, 39, 42, .25);
}
.nd-price-featured .nd-price-media { background: #fff; }
.nd-price-featured .nd-price-media img { object-fit: contain; padding: 10px; }
.nd-price-featured h3, .nd-price-featured .nd-price-amount { color: #fff; }
.nd-price-featured .nd-price-desc, .nd-price-featured .nd-price-amount span, .nd-price-featured .nd-price-note { color: rgba(255, 255, 255, .6); }
.nd-price-featured .nd-checks i { background: rgba(63, 181, 159, .18); color: var(--primary-bright); }
@media (min-width: 992px) {
    .nd-price-featured { transform: translateY(-14px); }
    .nd-price-featured:hover { transform: translateY(-20px); }
}

/* Jadual perbandingan */
.nd-compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.nd-compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.nd-compare th, .nd-compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.nd-compare tbody tr:last-child th, .nd-compare tbody tr:last-child td { border-bottom: 0; }
.nd-compare thead th { background: var(--surface); font-weight: 600; color: var(--ink); }
.nd-compare thead th:last-child { background: var(--primary); color: #fff; }
.nd-compare tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.nd-compare td.is-bad { color: #B4232A; }
.nd-compare td.is-ok { color: var(--primary); font-weight: 600; }
.nd-compare td.is-fg { background: var(--mint); color: var(--primary); font-weight: 600; }
.nd-scroll-hint { margin: 0 0 10px; font-size: 13px; color: var(--primary); }
.nd-footnote { margin-top: 12px; font-size: 13px; color: var(--muted); font-style: italic; }

/* Video bukti lapangan */
.nd-video { margin: 0; }
.nd-video-frame { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid rgba(255, 255, 255, .1); }
.nd-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.nd-video-len { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; pointer-events: none; }
.nd-video figcaption { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .65); }
.nd-video figcaption strong { display: block; color: #fff; font-weight: 600; }
.nd-lead-light { color: rgba(255, 255, 255, .65); }

.nd-glass {
    display: flex; gap: 14px; align-items: flex-start;
    height: 100%;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}
.nd-glass i { margin-top: 3px; color: var(--primary-bright); }
.nd-glass p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .75); }

.nd-cta-box {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
    padding: 48px;
    border-radius: var(--radius-lg);
    background: var(--mint);
}

@media (max-width: 991.98px) {
    .nd-fg-float-1 { left: 0; }
    .nd-fg-float-2 { right: 0; }
}
@media (max-width: 767.98px) {
    .nd-kpis { grid-template-columns: 1fr 1fr; }
    .nd-kpis > div:nth-child(2) { border-right: 0; }
    .nd-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .nd-cta-box { padding: 28px 22px; }
}
@media (max-width: 575.98px) {
    .nd-fg-hero .nd-panel, .nd-section-tint { margin: 0 6px; }
    .nd-fg-hero { padding-top: 6px; }
    .nd-fg-hero .nd-panel { padding: 48px 0; }
}

/* ---------- Harga diskaun ---------- */
.nd-price-row { display: flex; align-items: center; gap: 10px; min-height: 22px; margin-top: 4px; }
.nd-price-old { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: #C0392B; }
.nd-price-save { padding: 2px 10px; border-radius: 999px; background: #FDECEA; color: #B4232A; font-size: 12px; font-weight: 600; }
.nd-price-featured .nd-price-old { color: rgba(255, 255, 255, .55); }
.nd-price-featured .nd-price-save { background: rgba(245, 184, 46, .18); color: #F5B82E; }
.nd-price-contain img { object-fit: contain !important; padding: 10px; background: #fff; }
.nd-price-media.nd-price-contain { background: #fff; border: 1px solid var(--line); }
.nd-price-featured .nd-price-media.nd-price-contain { border: 0; }
.nd-price-row1 .nd-price-featured { transform: none; }
@media (min-width: 992px) {
    .nd-price-row1 .nd-price-featured { transform: translateY(-14px); }
    .nd-price-row1 .nd-price-featured:hover { transform: translateY(-20px); }
}
.nd-subhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: 56px 0 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.nd-subhead h3 { margin: 0; font-size: 1.4rem; font-weight: 500; }
.nd-subhead p { margin: 0; font-size: 14px; color: var(--muted); }

.nd-feature-models del { color: rgba(255, 255, 255, .45); font-size: 12px; margin-left: 4px; }

/* ---------- Carousel footage ---------- */
.nd-footage { position: relative; }
.nd-footage .carousel-item { transition: transform .5s ease; }
.nd-footage-nav {
    position: absolute;
    top: calc(50% - 48px);
    z-index: 3;
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
    transition: background .2s, color .2s;
}
.nd-footage-nav:hover { background: var(--primary); color: #fff; }
.nd-footage-nav:focus-visible { outline: 3px solid var(--primary-bright); outline-offset: 2px; }
.nd-footage-prev { left: 14px; }
.nd-footage-next { right: 14px; }

.nd-thumbs { display: grid; gap: 10px; }
.nd-thumb {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    padding: 8px;
    text-align: left;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    font-weight: 500;
    transition: background .2s, border-color .2s;
}
.nd-thumb img { flex: 0 0 96px; width: 96px; height: 56px; object-fit: cover; border-radius: 10px; opacity: .7; transition: opacity .2s; }
.nd-thumb:hover { background: rgba(255, 255, 255, .08); }
.nd-thumb.active { border-color: var(--primary-bright); background: rgba(63, 181, 159, .12); color: #fff; }
.nd-thumb.active img { opacity: 1; }
.nd-thumb:focus-visible { outline: 3px solid var(--primary-bright); outline-offset: 2px; }

@media (max-width: 991.98px) {
    .nd-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .nd-thumb { flex-direction: column; padding: 6px; }
    .nd-thumb img { flex: none; width: 100%; height: 54px; }
    .nd-thumb span { display: none; }
}

/* ---------- Borang tanya FarmGuard ---------- */
.nd-enquiry { align-items: flex-start; }
.nd-form {
    padding: 28px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.nd-form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.nd-form-label span { font-weight: 400; color: var(--muted); }
.nd-form legend.nd-form-label { float: none; width: auto; }
.nd-form .form-control, .nd-form .form-select { padding: 11px 14px; }
.nd-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nd-choice label {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    height: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--body);
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.nd-choice label i { color: var(--primary); }
.nd-choice label:hover { border-color: rgba(11, 122, 104, .35); }
.nd-choice .btn-check:checked + label { border-color: var(--primary); background: var(--mint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--primary); }
.nd-choice .btn-check:focus-visible + label { outline: 3px solid rgba(63, 181, 159, .55); outline-offset: 2px; }
.nd-form.was-validated .form-control:invalid { border-color: #dc3545; }
.nd-form-status { margin-top: 12px; font-size: 14px; font-weight: 500; }
.nd-form-status.error { color: #dc3545; }
.nd-form-status.success { color: #198754; }

@media (max-width: 575.98px) {
    .nd-choice { grid-template-columns: 1fr; }
    .nd-choice label { flex-direction: row; align-items: center; }
    .nd-form { padding: 20px; }
}

/* ---------- Clients (marquee) ---------- */
.nd-clients { padding: 88px 0 !important; overflow: hidden; }
.nd-head-center { justify-content: center; text-align: center; }
.nd-head-center .nd-eyebrow { margin: 0 auto; }

.nd-marquee {
    --gap: 20px;
    --speed: 40s;
    position: relative;
    display: flex;
    overflow: hidden;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.nd-marquee-track { display: flex; gap: var(--gap); width: max-content; animation: nd-marquee var(--speed) linear infinite; }
.nd-marquee:hover .nd-marquee-track,
.nd-marquee:focus-within .nd-marquee-track { animation-play-state: paused; }
.nd-marquee-group { display: flex; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.nd-logo-item {
    flex: 0 0 auto;
    width: 200px;
    height: 104px;
    display: flex; align-items: center; justify-content: center;
    padding: 6px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.nd-logo-item img { width: 100%; height: 100%; object-fit: contain; }
.nd-logo-item:hover { border-color: transparent; box-shadow: var(--shadow-lift); transform: translateY(-3px); }

/* Gerak sebanyak satu kumpulan + jarak, jadi gelung tak nampak sambungan */
@keyframes nd-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - var(--gap) / 2)); }
}

@media (max-width: 575.98px) {
    .nd-marquee { --gap: 12px; --speed: 30s; }
    .nd-logo-item { width: 150px; height: 80px; border-radius: 16px; }
}

/* Pengguna yang minta kurang gerakan: tiada animasi, boleh geser sendiri */
@media (prefers-reduced-motion: reduce) {
    .nd-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .nd-marquee-track { animation: none !important; }
    .nd-marquee-group[aria-hidden="true"] { display: none; }
}

/* Kurangkan gerakan */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
