html { scroll-behavior:smooth; }
body.tm-final-theme { margin:0; background:#fff; color:#18324f; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; line-height:1.6; }
* { box-sizing:border-box; }
img { max-width:100%; height:auto; }
a { color:#075fb4; }
.tm-container { width:min(1240px, calc(100% - 40px)); margin:0 auto; }
.tm-topbar { background:#07539a; color:#fff; font-size:12px; font-weight:600; }
.tm-topbar-inner { min-height:38px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.tm-header-main { background:#fff; border-bottom:1px solid #e8eef5; position:relative; z-index:9999; }
.tm-header-inner { min-height:84px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.tm-brand { flex:0 0 180px; width:180px; min-width:180px; }
.tm-brand .custom-logo-link { display:block; line-height:0; }
.tm-brand .custom-logo { display:block; max-height:58px; max-width:175px; width:auto; }
.tm-text-logo { text-decoration:none; font-size:25px; font-weight:900; letter-spacing:-1px; color:#075fb4; }
.tm-text-logo span { color:#f47b16; }
.tm-primary-nav-wrap { flex:1 1 auto; display:flex; align-items:center; justify-content:flex-end; gap:10px; min-width:0; }
.tm-nav-list { list-style:none; display:flex; align-items:stretch; gap:4px; margin:0; padding:0; }
.tm-nav-list li { position:relative; list-style:none; }
.tm-nav-list > li > a { display:flex; align-items:center; min-height:50px; padding:8px 8px; color:#142f4a; text-decoration:none; font-size:14px; font-weight:700; white-space:nowrap; border-radius:8px; }
.tm-nav-list > li > a:hover, .tm-nav-list > li.current-menu-item > a, .tm-nav-list > li.current-menu-ancestor > a { color:#075fb4; background:#f2f8ff; }
.tm-nav-list .menu-item-has-children > a::after { content:""; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin-left:8px; margin-top:-4px; }
.tm-nav-list .sub-menu { position:absolute; top:100%; left:0; min-width:245px; margin:0; padding:9px 0; list-style:none; background:#fff; border:1px solid #e4ebf3; border-radius:12px; box-shadow:0 16px 35px rgba(17,53,87,.16); opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .16s ease, transform .16s ease, visibility .16s ease; z-index:100000; }
.tm-nav-list li:hover > .sub-menu, .tm-nav-list li:focus-within > .sub-menu, .tm-nav-list li.tm-sub-open > .sub-menu { opacity:1; visibility:visible; transform:translateY(0); }
.tm-nav-list .sub-menu li { width:100%; }
.tm-nav-list .sub-menu a { display:flex; align-items:center; justify-content:space-between; width:100%; padding:11px 17px; color:#18324f; text-decoration:none; font-size:13.5px; font-weight:600; white-space:nowrap; }
.tm-nav-list .sub-menu a:hover { background:#f3f8fe; color:#075fb4; }
.tm-nav-list .sub-menu .sub-menu { top:-10px; left:calc(100% - 1px); }
.tm-nav-list .sub-menu .menu-item-has-children > a::after { transform:rotate(-45deg); margin-top:0; }
.tm-wa-btn { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 14px; border-radius:9px; background:#087ee8; color:#fff !important; text-decoration:none; font-size:14px; font-weight:800; box-shadow:0 8px 20px rgba(8,126,232,.22); white-space:nowrap; }
.tm-wa-btn:hover { background:#075fb4; }
.tm-menu-toggle { display:none; border:0; background:#075fb4; color:#fff; border-radius:8px; padding:9px 11px; align-items:center; gap:5px; cursor:pointer; }
.tm-menu-toggle span { display:block; width:19px; height:2px; background:#fff; margin:2px 0; }
.tm-menu-toggle b { font-size:11px; margin-left:4px; }

.tm-main { min-height:50vh; }
.tm-page-shell { width:100%; }
.tm-page-content { width:100%; }
.tm-page-title { width:min(1240px, calc(100% - 40px)); margin:35px auto 15px; font-size:36px; line-height:1.15; color:#07539a; }
.tm-page-content > *:first-child { margin-top:0; }
.tm-content-wrap { padding:50px 0; }
.tm-entry { max-width:900px; margin:0 auto; }
.tm-entry h1 { color:#07539a; }
.tm-primary-btn { display:inline-flex; padding:12px 20px; background:#087ee8; color:#fff; border-radius:8px; text-decoration:none; font-weight:700; }

.tm-footer { margin-top:60px; background:#0a2e52; color:#d9e8f7; }
.tm-footer a { color:#fff; }
.tm-footer-grid { display:grid; grid-template-columns:1.3fr 1fr; gap:50px; padding:45px 0; }
.tm-footer-logo { font-size:25px; font-weight:900; color:#fff; }
.tm-footer-logo span { color:#ff8b20; }
.tm-footer h3 { margin:0 0 10px; color:#fff; }
.tm-footer-bottom { padding:16px 0; border-top:1px solid rgba(255,255,255,.15); font-size:12px; }

/* TREEMEDIA FINAL V5 - HEADER LAYOUT FIX */
@media (min-width: 1025px) {
  .tm-header-inner {
    display:grid;
    grid-template-columns:210px minmax(0,1fr) 100px;
    align-items:center;
    column-gap:18px;
    min-height:84px;
  }
  .tm-brand {
    width:210px;
    min-width:210px;
    flex:none;
    display:flex;
    align-items:center;
  }
  .tm-brand .custom-logo {
    display:block;
    width:auto;
    max-width:190px;
    max-height:58px;
    object-fit:contain;
  }
  .tm-primary-nav-wrap {
    width:100%;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:0;
  }
  .tm-nav-list {
    width:100%;
    min-width:0;
    justify-content:flex-end;
    gap:2px;
    overflow:visible;
  }
  .tm-nav-list > li > a {
    font-size:14px;
    padding-left:7px;
    padding-right:7px;
  }
  .tm-wa-btn {
    width:100px;
    min-width:100px;
    padding:0 8px;
    font-size:14px;
  }
}

@media (max-width: 1100px) {
  .tm-header-inner { gap:10px; }
  .tm-brand { flex-basis:160px; width:160px; min-width:160px; }
  .tm-brand .custom-logo { max-width:155px; }
  .tm-nav-list > li > a { padding-left:6px; padding-right:6px; font-size:13px; }
  .tm-wa-btn { padding:0 10px; }
}
@media (max-width: 1024px) {
  .tm-topbar { display:none; }
  .tm-header-inner { min-height:72px; }
  .tm-menu-toggle { display:flex; }
  .tm-primary-nav-wrap { position:absolute; top:100%; left:0; right:0; display:block; background:#fff; border-top:1px solid #e7edf4; box-shadow:0 18px 30px rgba(16,53,86,.12); padding:12px 20px 20px; max-height:calc(100vh - 72px); overflow:auto; opacity:0; visibility:hidden; transform:translateY(-6px); transition:.18s ease; }
  .tm-menu-open .tm-primary-nav-wrap { opacity:1; visibility:visible; transform:translateY(0); }
  .tm-nav-list { display:block; }
  .tm-nav-list > li { border-bottom:1px solid #edf2f7; }
  .tm-nav-list > li > a { min-height:46px; justify-content:space-between; }
  .tm-nav-list .sub-menu { position:static; min-width:0; border:0; border-radius:0; box-shadow:none; padding:0 0 6px 15px; display:none; opacity:1; visibility:visible; transform:none; }
  .tm-nav-list li.tm-sub-open > .sub-menu { display:block; }
  .tm-nav-list .sub-menu a { padding:10px 14px; white-space:normal; }
  .tm-nav-list .sub-menu .sub-menu { padding-left:15px; }
  .tm-wa-btn { margin-top:12px; width:100%; }
}
@media (max-width: 640px) {
  .tm-container { width:min(100% - 28px, 1180px); }
  .tm-brand { flex-basis:150px; width:150px; min-width:150px; }
  .tm-brand .custom-logo { max-height:50px; max-width:145px; }
  .tm-footer-grid { grid-template-columns:1fr; gap:25px; }
  .tm-page-title { width:calc(100% - 28px); font-size:30px; }
}
