/* Tambahan tema Klasik: komponen baru (tombol ke atas, peta, form) dan perbaikan responsif ponsel. */
img { max-width: 100%; height: auto; }

/* Tombol kembali ke atas (kanan bawah) */
#to-top { position: fixed; right: 18px; bottom: 18px; z-index: 999; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: #ec5054; color: #fff; font-size: 24px; line-height: 46px; text-align: center; cursor: pointer; padding: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
#to-top.show { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { background: #d63c40; }

/* Peta Google (iframe) */
.peta-embed { width: 100%; border: 0; border-radius: 4px; }

/* Footer & form */
.ft-input { height: 20px; width: 125px; max-width: 60%; }
.ft-btn, .domain-btn { height: 32px; background: #ec5054; color: #fff; border: 0; cursor: pointer; padding: 0 12px; }
.domain-input { height: 20px; }
.domain-select { height: 31px; background: #000; border: 1px solid #3e3e3e; color: #999; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; }
.hl { color: #ec5054; font-weight: bold; }
.hl.small { font-size: 10px; font-weight: normal; }
.hl-bg { background: #ec5054; padding: 0 4px; }
.telp { color: #ec5054; font-size: 14px; }
.wa-link { display: inline-block; background: #25d366; color: #fff !important; padding: 5px 12px; border-radius: 4px; margin: 4px 6px 4px 0; font-size: 12px; }
.bank-logo { max-height: 34px; width: auto; }
.iklan-img { width: 250px; max-width: 100%; display: block; margin-bottom: 10px; }
.komentar-item { border-left: 3px solid #ec5054; padding: 6px 14px; margin-bottom: 14px; background: rgba(255,255,255,.03); }
.komentar-item .small, .small { font-size: 11px; opacity: .7; }
.hasil-info { font-weight: bold; margin-bottom: 14px; }
.hasil-tabel { width: 100%; }
.v-mid { vertical-align: middle; } .c-mid { text-align: center; }
.desk { font-size: 13px; text-align: justify; }
.prevnext { width: 100%; }
.sep { color: #bc4444; }
.contact_form input[type=text], .contact_form input[type=email], .contact_form input[type=tel], .contact_form select, .contact_form textarea { max-width: 100%; box-sizing: border-box; }
.captcha { display: inline-block; vertical-align: middle; margin-left: 6px; }
.judul-produk { padding-top: 20px; }

/* ===== Responsif ponsel/tablet: kontainer lentur menggantikan lebar tetap ===== */
@media (max-width: 1000px) {
  #container, .image_grid, .header, .jqueryslidemenu { width: auto !important; max-width: 100%; }
  #container { padding: 0 12px; box-sizing: border-box; }
  .header_right_sec { float: none; width: auto; }
  .jqueryslidemenu { margin-top: 12px; }
  .two_third, .one_third, .one_third_last, .one_half, .one_half_last, .one_fourth, .one_fourth_last, .one_fifth, .four_fifth_last, .three_fourth, .full_width {
    float: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; }
  .portfolio_list li, .portfolio_3col li, .portfolio_4col li { width: 46% !important; margin: 2% !important; }
  .portfolio_content img { width: 100% !important; height: auto !important; }
  .search_box { float: none; margin: 10px 0; }
  .socialization { float: none; }
  .flexslider, .flexslider .slides img { max-width: 100%; height: auto; }
  .flex-caption { position: static !important; width: auto !important; font-size: 12px; }
  aside, footer .widget_container { margin-bottom: 20px; }
  .image-align-left2, .imagestrs, .imagek { float: none !important; max-width: 100%; height: auto; }
  table { max-width: 100%; }
  .prevnext, .hasil-tabel { display: block; overflow-x: auto; }
}
@media (max-width: 560px) {
  .portfolio_list li, .portfolio_3col li, .portfolio_4col li { width: 96% !important; }
  .list_carousel li { width: 90% !important; }
  .sub_header h2 { font-size: 20px; }
  .ft-input { width: 60%; }
  iframe, .flexslider { max-width: 100%; }
}

/* Form cek domain */
#cek-domain { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
#cek-domain .margin-input { margin: 0 !important; float: none !important; }
#cek-domain input[type=submit] { height: 34px; width: auto; padding: 0 14px; }
.logo img { max-height: 60px; width: auto; }

/* ===== Ponsel: tanpa carousel; menu tampil sebagai tombol, bukan <select> ===== */
@media (max-width: 768px) {
  .jqueryslidemenu select { display: none !important; }
  .jqueryslidemenu ul { display: none !important; width: 100% !important; float: none !important; }
  .jqueryslidemenu.open ul { display: block !important; }
  .jqueryslidemenu.open ul li { display: block; border-bottom: 1px solid #2a2a2a; }
  .jqueryslidemenu { margin-top: 0 !important; background: #151515; }
  .menu-toggle { display: block !important; }
  .jqueryslidemenu ul li { float: none !important; }
  .jqueryslidemenu ul li a { padding: 10px 12px !important; font-size: 13px; display: block; text-align: left; float: none !important; }
  .jqueryslidemenu ul li ul { display: none !important; }

  .list_carousel, .latest_news, .testimonial_carousel { width: 100% !important; height: auto !important; }
  #latest_projects, #latest_news, #testimonial { position: static !important; width: 100% !important; height: auto !important; margin: 0 !important; display: grid; gap: 16px; }
  #latest_projects { grid-template-columns: 1fr 1fr; }
  #latest_projects li, #latest_news li, #testimonial li { width: auto !important; height: auto !important; float: none !important; margin: 0 !important; }
  .list_carousel .controls, .latest_news .controls, .testimonial_carousel .controls { display: none; }
  .portfolio_content img, .list_carousel img { width: 100% !important; height: auto !important; }
  .teasercontainer { padding: 16px 12px; }
  .flexslider .flex-caption { position: static !important; }
  .flexslider .slides img { width: 100% !important; height: auto !important; }
  .header { height: auto !important; padding: 8px 0 !important; position: relative; }
  .logo { float: none !important; margin: 0 !important; padding: 0 56px 0 0; }
  .logo img { max-height: 44px; }
  .header > div { margin: 0 !important; }
  .socialization { display: none !important; }
  .menu-toggle { position: absolute; right: 4px; top: 10px; }
  .search_box { float: none !important; margin: 8px 0 !important; width: 100% !important; text-align: left; }
  .copy_right { height: auto; text-align: center; padding: 10px; }
  .copy_info { float: none !important; display: block; margin: 6px 0 0 !important; text-align: center; }
  footer { height: auto !important; }
}
@media (max-width: 480px) { #latest_projects { grid-template-columns: 1fr; } }
@media (max-width:768px){ .controls { display:none !important; } }

/* ===== Form (kontak, pemesanan, testimoni, komentar): label di atas, rata kiri ===== */
#contact-form label, .contact_form label { float: none !important; display: block; width: auto !important; text-align: left; padding: 0; margin: 12px 0 2px; }
#contact-form p, .contact_form p { margin: 0; }
#contact-form input[type=text], #contact-form input[type=email], #contact-form input[type=tel], #contact-form select,
.contact_form input[type=text], .contact_form input[type=email], .contact_form input[type=tel], .contact_form select { width: 100%; max-width: 420px; box-sizing: border-box; margin: 4px 0 6px; }
#contact-form select, .contact_form select { padding: 6px; border: 1px solid #3e3e3e; background: #131313; color: #aaa; }
#contact-form textarea, .contact_form textarea { width: 100%; max-width: 100%; box-sizing: border-box; margin: 4px 0 6px; }
#contact-form input[type=submit], .contact_form input[type=submit] { float: none !important; width: auto !important; background: #ec5054; color: #fff; border: 0; padding: 9px 22px; cursor: pointer; font-size: 13px; }
#contact-form input[type=submit]:hover, .contact_form input[type=submit]:hover { background: #1a1d1e; }
.captcha-row { display: flex; align-items: center; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.captcha-row input[type=text] { width: 90px !important; max-width: 90px !important; margin: 0 !important; text-transform: uppercase; }
.captcha-row img { display: block; border-radius: 3px; background: #fff; }
.captcha-refresh { font-size: 22px; color: #fff; line-height: 1; text-decoration: none; }
.captcha-refresh:hover { color: #ec5054; }
form.form-klasik { max-width: 100%; }

/* Tombol menu (garis tiga) - hanya tampil di ponsel */
.menu-toggle { display: none; width: 44px; height: 40px; background: #ec5054; border: 0; border-radius: 4px; cursor: pointer; padding: 10px 9px; }
.menu-toggle span { display: block; height: 3px; background: #fff; margin: 4px 0; border-radius: 2px; }

/* Lightbox gambar */
#rw-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 10000; padding: 16px; cursor: zoom-out; }
#rw-lightbox.open { display: flex; }
#rw-lightbox img { max-width: 96vw; max-height: 92vh; background: #fff; border-radius: 4px; }
#rw-lightbox button { position: absolute; top: 10px; right: 18px; background: #ec5054; color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 38px; cursor: pointer; }

/* Gambar artikel/portfolio: ukuran wajar agar teks di sampingnya tidak sempit */
.image-align-left2 { width: 230px; max-width: 42%; height: auto; box-sizing: content-box; }
.imagek { float: none !important; display: block; max-width: 100%; height: auto; margin: 0 0 14px; }
@media (max-width: 768px) { .image-align-left2 { float: none !important; display: block; width: auto; max-width: 100%; margin: 0 0 10px; } }
