/* ==============================================================
   theme/202605-daylight/css/footer.css
   © 2004–2026 Ideal Creation Center Co., Ltd.
   ============================================================== */

#ic-footer {
  clear: both; /* fix: styleMoodle.css float สั่ง .section.shareFeature/.faqs202407 float:left → footer ลอยขึ้นชนเนื้อหา */
  background: #333333;
  color: #fff;
  padding: 44px 0 0;
  font-family: var(--ic-font, 'Quicksand','Prompt',sans-serif);
}
.ic-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* 4-col links */
.ic-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 28px 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ic-footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 11px;
  padding-bottom: 6px;
  border-bottom: 2px solid #FF9900;
  display: inline-block;
}
#ic-footer .ic-footer-col { display: block !important; visibility: visible !important; min-width: 0; }
#ic-footer .ic-footer-col ul { list-style: none !important; padding: 0; margin: 0; display: block !important; }
#ic-footer .ic-footer-col ul li { display: block !important; }
.ic-footer-col ul li { margin-bottom: 6px; }
.ic-footer-col ul li a {
  font-size: 14px;
  color: #DFDFDF !important;
  text-decoration: none !important;
  display: block;
  transition: color .12s, padding-left .1s;
  word-break: break-word;
  line-height: 1.5;
}
#ic-footer a { color: #DFDFDF; text-decoration: none; }
.ic-footer-col ul li a:hover {
  color: #FFFFFF !important;
  padding-left: 3px;
}
/* desc ต่อท้าย solution links */
.ic-footer-sol-desc {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  font-weight: 400;
}
.ic-footer-col ul li a:hover .ic-footer-sol-desc {
  color: #FFFFFF !important; 
}

/* HOTLINE — กลาง */
.ic-footer-hotline-bar {
  text-align: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 17px;
  color: #FF9900;
  font-weight: 700;
}
.ic-footer-hotline-bar .ic-hl-label {
  color: #FF9900;
  font-weight: 700;
}
.ic-footer-hotline-bar a {
  color: #FF9900;
  text-decoration: none;
  font-weight: 700;
}
.ic-footer-hotline-bar a:hover { color: #FFFFFF !important; }

/* copyright ซ้าย + legal ขวา */
.ic-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 4px;
}
.ic-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.42);
}
.ic-footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.ic-footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color .12s;
}
.ic-footer-legal a:hover { color: #FFFFFF !important; }

/* Your IP — ล่างสุดซ้าย */
.ic-footer-ip-bar {
  padding: 0 0 14px;
}
.ic-footer-ip-highlight {
  font-size: 14px;
  color: #FF9900;
  font-weight: 700;
}
/* เฉพาะตัวเลข IP ขาว — ใช้ .ic-footer-ip-num ใน copyrights.php */
.ic-footer-ip-num {
  color: #ffffff;
  font-weight: 700;
}

/* scroll-to-top */
.dmtop {
  position: fixed;
  bottom: -70px;
  right: 22px;
  width: 40px;
  height: 40px;
  background: #021159;
  color: #fff;
  border: 2.5px solid rgba(255,255,255,.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2,17,89,.45);
  transition: bottom .3s cubic-bezier(.4,0,.2,1), background .15s;
  z-index: 900;
}
.dmtop.show { bottom: 22px; }
body.host_version .dmtop:hover {
  background: #FF9900;
  border-color: #FF9900;
  color: #1a1400;
}
.dmtop svg { display: block; }

/* responsive */
@media (max-width: 768px) {
  #ic-footer .ic-footer-inner { padding: 0 16px; }
  #ic-footer .ic-footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 16px !important;
  }
  #ic-footer .ic-footer-col { display: block !important; }
  #ic-footer .ic-footer-col h4 { font-size: 14px; color: #fff !important; }
  #ic-footer .ic-footer-col ul li a {
    font-size: 13.5px;
    color: #DFDFDF !important;
  }
  #ic-footer .ic-footer-hotline-bar { font-size: 15px; color: #FF9900 !important; }
  #ic-footer .ic-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .ic-footer-grid { grid-template-columns: 1fr; }
}
