/*
Theme Name: TVI – The Various Innovation
Theme URI: http://www.tvi-th.com/
Author: The Various Innovation Co., Ltd.
Description: Custom bilingual (English / Thai) company theme for The Various Innovation Co., Ltd. Pages are created automatically when the theme is activated.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tvi
*/
html{scroll-behavior:smooth}
body{margin:0;font-family:'Inter','Noto Sans Thai',system-ui,sans-serif;color:#33415C;background:#FFFFFF;line-height:1.6;-webkit-font-smoothing:antialiased}
html[lang^="th"] body{line-height:1.75}
*,*::before,*::after{box-sizing:border-box}
img{max-width:100%;height:auto}
a{color:#0E1C6B}a:hover{color:#E3131B}
.tvi-skip{position:absolute;left:-9999px;top:0;background:#0E1C6B;color:#fff;padding:12px 16px;z-index:1000}
.tvi-skip:focus{left:8px;top:8px}
/* client logo marquee */
@keyframes tvi-marquee{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0)}}
.tvi-marquee{overflow:hidden;position:relative}
.tvi-marquee::before,.tvi-marquee::after{content:"";position:absolute;top:0;bottom:0;width:5%;z-index:2;pointer-events:none}
.tvi-marquee::before{left:0;background:linear-gradient(90deg,#F3F6FA,rgba(243,246,250,0))}
.tvi-marquee::after{right:0;background:linear-gradient(270deg,#F3F6FA,rgba(243,246,250,0))}
.tvi-track{display:flex;width:max-content;-webkit-animation:tvi-marquee 55s linear infinite;animation:tvi-marquee 55s linear infinite;will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.tvi-track.tvi-rev{-webkit-animation-direction:reverse;animation-direction:reverse}
@media (hover:hover){.tvi-marquee:hover .tvi-track{-webkit-animation-play-state:paused;animation-play-state:paused}}
@media (prefers-reduced-motion: reduce){.tvi-track{-webkit-animation:none;animation:none}.tvi-marquee{overflow-x:auto}}
/* privacy policy */
.tvi-policy p{margin:0 0 12px}.tvi-policy ul{margin:0 0 12px;padding-left:22px;display:flex;flex-direction:column;gap:6px}.tvi-policy a{color:#1E5BD8}
/* form */
.tvi-form input:focus,.tvi-form select:focus,.tvi-form textarea:focus{outline:2px solid #1E5BD8;outline-offset:1px}
.tvi-notice{border-radius:8px;padding:12px 16px;font-size:15px;font-weight:500}
.tvi-notice.ok{background:#E7F6EC;color:#14532D;border:1px solid #9AD3AE}
.tvi-notice.err{background:#FDECEC;color:#7F1D1D;border:1px solid #F3A9A9}
/* generic posts (blog etc.) */
.tvi-generic{max-width:820px;margin:0 auto;padding:64px 24px 80px}
.tvi-generic h1{font-family:'Montserrat','Noto Sans Thai',sans-serif;color:#0E1C6B}
/* small screens */
@media (max-width:640px){
 .tvi-main h1{font-size:32px !important}
 .tvi-main h2{font-size:26px !important}
 .tvi-main section>div{padding-top:56px !important;padding-bottom:56px !important}
 .tvi-header-actions{width:100%;justify-content:space-between}
}
@media (max-width:400px){ .tvi-main [style*="minmax(320px"],.tvi-main [style*="minmax(260px"]{grid-template-columns:1fr !important} }

/* Solutions: on desktop some sections show the "What's included" card on the left.
   When the columns stack on narrow screens, always show the heading/text first. */
@media (max-width:900px){
  #network > div > div:first-child,
  #unixcape > div > div:first-child,
  #it > div > div:first-child{order:2}
}
