/* ==========================================================
   Perbaikan tampilan mobile website publik (dimuat paling akhir)
   ========================================================== */
@media screen and (max-width: 768px) {
	html, body { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
	body { background-color: #f1f5f9 !important; }

	/* Semua kontainer lebar-tetap jadi fleksibel */
	.template, .fix-width, #header, #mobile-header, .pom, .pom-right, .pom-left,
	.template-left, .template-right, #headerslide, .roundedbox, #mobile-about,
	.why_choose, .why_choose ul, .why_choose li, #priceinfo, .tabcontent2, .tabcontent2 ul, .tabcontent2 li,
	#product_list, .productItem, .noborder, .desc, .intro_text, .why_choose_explore, .space-top,
	form, .form-more, #notice, #notice .padding, #notice .left, #notice .right, #footer {
		width: auto !important; max-width: 100% !important; box-sizing: border-box;
	}
	.template { margin: 0 !important; padding: 0 !important; border: 0 !important; }
	.pom, .pom-right { margin: 0 !important; padding: 0 10px !important; float: none !important; }
	.template-left, .template-right { float: none !important; margin: 0 !important; }
	.template * { max-width: 100%; box-sizing: border-box; }
	.template img { height: auto; }
	.template iframe, .template video, .template embed, .template object { max-width: 100% !important; }
	.template table { display: block; overflow-x: auto; }

	/* Kartu konten */
	.roundedbox {
		margin: 12px 0 !important; padding: 16px !important; border-radius: 12px !important;
		border: 1px solid #e2e8f0 !important; box-shadow: 0 2px 10px rgba(15, 23, 42, .05) !important;
		background: #fff !important;
	}
	.roundedbox p, .roundedbox span, .roundedbox li { font-size: 15px !important; line-height: 1.65 !important; text-align: left !important; }
	.roundedbox h1, .roundedbox h2, h1.poounder, .poounder { font-size: 20px !important; line-height: 1.3 !important; height: auto !important; }

	/* Header mobile: logo + tombol menu */
	#mobile-header {
		position: sticky; top: 0; z-index: 999; display: flex !important; flex-wrap: wrap; align-items: center;
		justify-content: space-between; padding: 10px 14px !important; height: auto !important;
		background: #111 !important; box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
	}
	#mobile-header .mobile-header-left { float: none !important; width: auto !important; }
	#mobile-header .mobile-header-left img { height: 38px; width: auto; display: block; }
	#mobile-header .menu-btn {
		display: inline-flex; align-items: center; gap: 8px; background: #22c55e; color: #fff; border: 0;
		border-radius: 8px; padding: 9px 14px; font: 600 14px/1 Arial, sans-serif; cursor: pointer;
	}
	#mobile-header .menu-btn .bars, #mobile-header .menu-btn .bars:before, #mobile-header .menu-btn .bars:after {
		display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; content: "";
	}
	#mobile-header .menu-btn .bars:before { position: absolute; top: -6px; }
	#mobile-header .menu-btn .bars:after { position: absolute; top: 6px; }
	#mobile-header .mobile-header-right {
		float: none !important; width: 100% !important; display: none; margin: 10px 0 2px !important;
	}
	#mobile-header.open .mobile-header-right { display: block; }
	#mobile-header .mobile-header-right ul { width: 100% !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
	#mobile-header .mobile-header-right li.hn { width: auto !important; float: none !important; margin: 0 !important; height: auto !important; }
	#mobile-header .mobile-header-right li.hn a {
		display: block !important; padding: 12px 12px !important; border-radius: 8px; background: rgba(255, 255, 255, .07);
		color: #e5e7eb !important; font-size: 15px !important; text-align: left !important; line-height: 1.2 !important; height: auto !important;
	}
	#mobile-header .mobile-header-right li.hn.active a { background: #22c55e; color: #fff !important; }

	/* Tombol & form */
	.findoutmorefield, .form-more input, .form-more select, .form-more textarea, form input[type=text], form textarea, form select {
		width: 100% !important; font-size: 16px !important; padding: 10px 12px !important; height: auto !important;
		border: 1px solid #cbd5e1 !important; border-radius: 8px !important; box-sizing: border-box;
	}
	.form-more .fr, form .fr, form .fl { float: none !important; width: 100% !important; margin: 0 0 10px !important; }
	.button2, .button3 { margin-top: 8px; }

	/* Daftar layanan dan "why choose" */
	.why_choose li { padding-right: 0 !important; margin-bottom: 14px !important; }
	.tabcontent2 li { padding: 8px 0 !important; }
	.productItem .image, .productItem img { float: none !important; display: block; margin: 0 auto 12px !important; }

	/* Slider/carousel lebar tetap */
	.bx-wrapper, .bx-window, #showcase, .intro_slider { width: 100% !important; }
	#showcase li, .intro_slider li { max-width: 100%; }

	/* Footer */
	#notice { margin: 12px 10px !important; border-radius: 12px; padding: 0 !important; }
	#notice .left, #notice .right { float: none !important; text-align: center; padding: 12px !important; }
	#notice img { max-width: 100%; height: auto; }
	#footer { padding: 18px 14px 28px !important; text-align: left; font-size: 13px; line-height: 1.6; }
	#footer .logo { float: left; width: 56px !important; height: auto; margin: 0 12px 8px 0 !important; }

	/* Elemen desktop yang mengganggu di HP */
	#social, .social-float, .floating-social, .top.hide { display: none !important; }
}

@media screen and (max-width: 420px) {
	.pom, .pom-right { padding: 0 8px !important; }
	.roundedbox { padding: 14px !important; }
	#mobile-header .mobile-header-right ul { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
	/* Daftar berita/produk: kolom deskripsi lebar-tetap */
	#product_list .productItem .desc, #product_list .desc, #product_list .productItem, #product_list .noborder {
		width: auto !important; display: block !important; float: none !important;
	}
	#product_list .productItem .desc .brief, #product_list .productItem .desc * { max-width: 100%; overflow-wrap: anywhere; }

	/* Formulir kontak: label berpasangan -> grid 2 kolom yang rapi */
	#moreinfo.form-more { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 10px; align-items: end; }
	#moreinfo.form-more > * { grid-column: 1 / -1; }
	#moreinfo.form-more > label.qlabell, #moreinfo.form-more > label.qlabelr,
	#moreinfo.form-more > .fl, #moreinfo.form-more > .fr { grid-column: auto; }
	#moreinfo.form-more > label.qlabell, #moreinfo.form-more > label.qlabelr {
		float: none !important; width: auto !important; margin: 10px 0 4px !important; padding: 0 !important;
		font-size: 13px !important; font-weight: 600; color: #334155; line-height: 1.3;
	}
	#moreinfo.form-more > .fl, #moreinfo.form-more > .fr { float: none !important; width: auto !important; margin: 0 !important; }
	#moreinfo.form-more > .clear { display: none; }
	#moreinfo .findoutmorefield { margin: 0 !important; }
	#moreinfo textarea { width: 100% !important; min-height: 110px; }
}
@media screen and (max-width: 360px) {
	#moreinfo.form-more { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
	/* Portofolio terpilih (dulu disembunyikan oleh mediaqueries.css) */
	.pom .roundedbox1, .roundedbox1 {
		display: block !important; width: auto !important; max-width: 100% !important; box-sizing: border-box;
		margin: 12px 0 !important; padding: 16px !important; border-radius: 12px !important;
		border: 1px solid #e2e8f0 !important; box-shadow: 0 2px 10px rgba(15, 23, 42, .05) !important; background: #fff !important;
	}
	#portfolio { width: auto !important; margin: 0 !important; }
	#portfolio .left, #portfolio .right { float: none !important; width: auto !important; text-align: left !important; }
	#portfolio .left { margin-bottom: 14px; }
	#portfolio .left img { width: 100% !important; height: auto !important; border-radius: 8px; border: 1px solid #e2e8f0; display: block; }
	#portfolio .right .title { font-size: 18px !important; margin-bottom: 6px; }
	#portfolio .right .desc, #portfolio .right .desc p { font-size: 15px !important; line-height: 1.65 !important; }

	/* Daftar portofolio: grid 2 kolom */
	#list-port { display: flex !important; flex-wrap: wrap; column-gap: 12px; }
	#list-port > * { flex: 0 0 100%; }
	#list-port > .item {
		flex: 0 0 calc(50% - 6px); float: none !important; width: auto !important; height: auto !important;
		margin: 0 0 14px !important; box-sizing: border-box;
	}
	#list-port > .clear { display: none; }
	#list-port .item .title a { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: block; }
	#list-port .item .link a { font-size: 12px; word-break: break-all; }
	#list-port .item .image img { width: 100% !important; height: auto !important; border-radius: 6px; }
	#list-port .pagination a { display: inline-block; min-width: 34px; padding: 8px 10px; margin: 2px; text-align: center; border-radius: 8px; border: 1px solid #e2e8f0; }
}

/* ==========================================================
   Home versi HP: blok tambahan (.m-home / .m-contact)
   ========================================================== */
.m-home, .m-contact { display: none; }
@media screen and (max-width: 768px) {
	.m-home, .m-contact { display: block; font-family: Inter, Arial, sans-serif; color: #0f172a; }
	.m-home h2, .m-home h3, .m-contact h3 { font-family: Poppins, Inter, Arial, sans-serif; margin: 0; }

	.m-hero {
		margin: 12px 0; padding: 22px 18px 18px; border-radius: 16px; color: #fff;
		background: radial-gradient(120% 120% at 100% 0%, #0e7490 0%, #0b3b5a 45%, #0b1220 100%);
		box-shadow: 0 8px 24px rgba(11, 59, 90, .25);
	}
	.m-kicker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .3px; background: rgba(255,255,255,.12); padding: 5px 10px; border-radius: 999px; }
	.m-hero h2 { display: block !important; float: none !important; font-size: 24px !important; line-height: 1.25 !important; margin: 12px 0 8px; color: #fff; }
	.m-hero p { font-size: 14.5px !important; line-height: 1.6 !important; color: #cbe4f1; margin: 0 0 16px; }
	.m-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.m-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none !important; }
	.m-btn .fa { font-size: 17px; }
	.m-btn-wa { background: #22c55e; color: #fff !important; }
	.m-btn-line { border: 1.5px solid rgba(255,255,255,.55); color: #fff !important; }
	.m-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.15); }
	.m-stats li { text-align: center; }
	.m-stats b { display: block; font-size: 18px; color: #a3e635; font-family: Poppins, Arial, sans-serif; }
	.m-stats span { display: block; font-size: 11.5px !important; line-height: 1.3 !important; color: #cbe4f1; }

	.m-card { margin: 12px 0; padding: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 2px 10px rgba(15,23,42,.05); }
	.m-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
	.m-head h3 { font-size: 17px !important; color: #0f172a; }
	.m-head a { font-size: 13px; font-weight: 600; color: #0e7490 !important; text-decoration: none; }

	.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
	.m-svc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; background: #f1f5f9; text-align: center; text-decoration: none !important; }
	.m-svc .fa { width: 38px; height: 38px; line-height: 38px; border-radius: 10px; background: #0e7490; color: #fff; font-size: 17px; }
	.m-svc span { font-size: 11.5px !important; line-height: 1.25 !important; font-weight: 600; color: #1e293b; text-align: center !important; }

	.m-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
	.m-checks li { font-size: 13.5px !important; line-height: 1.35 !important; display: flex; gap: 6px; align-items: flex-start; }
	.m-checks .fa { color: #22c55e; font-size: 16px; margin-top: 1px; }

	.m-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
	.m-steps li { position: relative; padding: 0 0 14px 44px; counter-increment: s; }
	.m-steps li:before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #0e7490; color: #fff; font: 700 14px/30px Poppins, Arial, sans-serif; text-align: center; }
	.m-steps li:not(:last-child):after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: #cbd5e1; }
	.m-steps b { display: block; font-size: 15px; }
	.m-steps span { display: block; font-size: 13.5px !important; line-height: 1.5 !important; color: #475569; }

	.m-testi { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
	.m-testi blockquote { flex: 0 0 85%; scroll-snap-align: start; margin: 0; padding: 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 14px; line-height: 1.55; color: #334155; font-style: italic; }
	.m-testi .fa { color: #0e7490; }

	.m-news { list-style: none; margin: 0; padding: 0; }
	.m-news li { border-top: 1px solid #eef2f7; }
	.m-news li:first-child { border-top: 0; }
	.m-news a { display: block; padding: 10px 0; text-decoration: none !important; }
	.m-news span { display: block; font-size: 14.5px !important; font-weight: 600; color: #0f172a; line-height: 1.4 !important; }
	.m-news small { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }

	.m-contact { margin: 12px 0 16px; padding: 18px; border-radius: 16px; background: #0b1220; color: #e2e8f0; }
	.m-contact h3 { font-size: 18px !important; color: #fff; margin-bottom: 4px; }
	.m-contact p { font-size: 13.5px !important; color: #94a3b8; margin: 0 0 12px; line-height: 1.5 !important; }
	.m-contact ul { list-style: none; margin: 0 0 14px; padding: 0; }
	.m-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px !important; line-height: 1.45 !important; }
	.m-contact li .fa { width: 18px; color: #a3e635; margin-top: 3px; text-align: center; }
	.m-contact a { color: #fff !important; text-decoration: none; }
	.m-contact .m-cta .m-btn-line { border-color: rgba(255,255,255,.35); }

	/* Rapikan blok lama di Home */
	#iconScreen h2 { font-size: 18px !important; }
	.roundedbox .button, .roundedbox .button2 { float: none !important; display: inline-block; margin: 10px 6px 0 0 !important; vertical-align: middle; }
	#product_list .productItem { padding: 14px 0 !important; border-bottom: 1px solid #eef2f7; }
	#product_list .productItem .thumb { float: none !important; text-align: center; }
	#product_list .productItem .thumb img { max-width: 170px !important; }
	#product_list .productItem .desc .title a { font-size: 18px !important; }
	#product_list .buttons { display: flex; gap: 8px; margin-top: 10px; }
	#product_list .pagination a { display: block; text-align: center; padding: 11px; border-radius: 10px; background: #0e7490; color: #fff !important; border: 0; font-weight: 600; }
}
@media screen and (max-width: 360px) {
	.m-grid { grid-template-columns: repeat(2, 1fr); }
	.m-checks { grid-template-columns: 1fr; }
}

/* ==========================================================
   Daftar produk versi HP: kartu ringkas
   ========================================================== */
.m-pbtn, .m-intro { display: none; }
@media screen and (max-width: 768px) {
	.m-intro { display: block; font-size: 14px !important; line-height: 1.55 !important; color: #475569; margin: 4px 0 6px !important; }
	.m-intro a { color: #0e7490 !important; font-weight: 600; }
	#product_list .productItem, #product_list .productItem.new, #product_list .productItem.top {
		display: grid !important; grid-template-columns: 84px 1fr; column-gap: 14px; align-items: start;
		padding: 16px 0 !important; height: auto !important; min-height: 0 !important;
		background-size: 30px auto !important; background-position: 100% 14px !important;
	}
	#product_list .productItem .thumb { float: none !important; width: 84px !important; margin: 0 !important; text-align: center; }
	#product_list .productItem .thumb img { width: 84px !important; max-width: 84px !important; height: auto; margin: 0 !important; border-radius: 8px; }
	#product_list .productItem .desc { display: block !important; padding-right: 26px; min-width: 0; }
	#product_list .productItem .desc .title a { font-size: 16.5px !important; line-height: 1.3; }
	#product_list .productItem .desc .brief {
		font-size: 14px !important; line-height: 1.5 !important; color: #475569; padding: 4px 0 0 !important;
		display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	}
	#product_list .productItem .desc .brief * { font-size: 14px !important; line-height: 1.5 !important; margin: 0 !important; display: inline; }
	#product_list .productItem .desc .brief img, #product_list .productItem .desc .brief br { display: none !important; }
	#product_list .buttons { display: none !important; }
	.m-pbtn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; grid-column: 1 / -1; }
	.m-pbtn a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none !important; }
	.m-pb1 { background: #e0f2fe; color: #0e7490 !important; }
	.m-pb2 { background: #22c55e; color: #fff !important; }
	.m-pb2 .fa { font-size: 16px; }
}
