/* SAICO - styles for resources.html (loaded after common.css) */
:root{--blue:#001fff;--text:#000;--light:#f8f7fc;--line:#e2e4e6;--container:1600px}
.logo img{width:194px;height:auto}
.res-top{position:relative;height:818px;background:#f5f7fa url(../images/resources-hero.jpg) center top/cover no-repeat}
.res-top .container{position:relative;height:100%;color:#fff}
.res-top h1{position:absolute;top:118px;left:-3px;font-size:57px;font-weight:600;line-height:66px}
.res-top h2{position:absolute;top:199px;left:0;font-size:24.4px;font-weight:500;line-height:36px}
.res-top .lead{position:absolute;top:298px;left:1px;width:660px;font-size:18px;font-weight:300;line-height:28px}
.crumb{position:absolute;top:510px;left:0;display:flex;align-items:center;gap:6px;font-size:16px;color:#fff}
.crumb svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:1.6;margin-right:2px}
.crumb a:hover{text-decoration:underline}
.sub-tabs{position:absolute;left:0;right:0;top:584px;height:77px;border-bottom:1px solid #e1e4e9}
.sub-tabs .container{display:flex;justify-content:center;gap:0;height:100%;color:#111}
.sub-tab{position:relative;height:100%;padding:0 10px;background:none;font-size:22px;font-weight:500;color:#111;transition:color .2s;display:flex;align-items:center;padding-bottom:16px}
.sub-tab:nth-child(1){margin-right:99px}
.sub-tab:nth-child(2){margin-right:99px}
.sub-tab:hover,.sub-tab.active{color:var(--blue)}
.sub-tab.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--blue)}
.res-top h3{position:absolute;left:0;right:0;top:752px;text-align:center;font-size:42px;font-weight:600;line-height:56px;color:#000}
.listing{background:#f5f7fa;padding:65px 0 127px}
.platforms{width:728px;height:60px;margin:0 auto;background:#fff;border-radius:30px;display:flex}
.platform{display:flex;align-items:center;justify-content:center;height:60px;border-radius:30px;background:none;font-size:18px;font-weight:500;color:#111;transition:.25s}
.platform:nth-child(1){width:180px}
.platform:nth-child(2){width:155px}
.platform:nth-child(3){width:200px}
.platform:nth-child(4){width:170px}
.platform:hover{color:var(--blue)}
.platform.active{background:var(--blue);color:#fff}
.posts{display:grid;grid-template-columns:repeat(5,1fr);gap:42px 34px;margin-top:102px;transition:opacity .3s}
.post{background:#fff;border-radius:12px;overflow:hidden;height:auto;box-shadow:0 4px 18px rgba(20,40,90,.04);transition:transform .3s,box-shadow .3s}
.post:hover{transform:translateY(-6px);box-shadow:0 14px 34px rgba(20,40,90,.1)}
.post .img{height:auto;overflow:hidden}
.post .img img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.post:hover .img img{transform:scale(1.05)}
.post .body{padding:30px}
.post time{display:block;font-size:13.5px;color:var(--blue);line-height:20px;word-spacing:4px}
.post h4{font-size:21.6px;font-weight:600;line-height:36px;margin-top:14px;color:#000}
.post:hover h4{color:var(--blue)}
.post p{font-size:18px;font-weight:300;line-height:30px;color:#666;margin-top:6px;padding-right:20px;hyphens:auto;-webkit-hyphens:auto;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pager{margin-top:83px}
.footer{background:#f5f7fa}

@media (max-width:1280px){
  :root{--container:1400px}
}

@media (max-width:1280px){
  .posts{grid-template-columns:repeat(2,1fr)}
  .cta .container{flex-direction:column;gap:40px}
  .cta-form,.cta-left{width:100%}
}

@media (max-width:760px){
  .container{max-width:calc(100% - 32px)}
  .res-top h1{font-size:40px;top:60px}
  .res-top h2{font-size:18px;top:130px;line-height:26px}
  .res-top .lead{width:auto;right:0;top:200px;font-size:15px;line-height:24px}
  .crumb{top:330px}
  .sub-tab{font-size:16px}
  .sub-tab:nth-child(1),.sub-tab:nth-child(2){margin-right:20px}
  .res-top h3{font-size:30px}
  .platforms{width:100%}
  .platform{flex:1;width:auto!important;font-size:14px}
  .posts{grid-template-columns:1fr}
  .post{height:auto;padding-bottom:30px}
  .logo img{width:120px}
}

@media (max-width:360px){
  .logo img{width:100px}
}

@media (max-width:760px){
  .cta .container{padding-top:0;gap:28px}
  .posts{margin-top:28px;gap:20px}
  .post{padding-bottom:22px}
  .post .img{height:auto;aspect-ratio:9/16}
  .post .body{padding:18px 20px 0}
  .post h4{font-size:17px;line-height:26px;margin-top:8px}
  .post p{font-size:14px;line-height:22px;padding-right:0}
  .res-top{height:auto;padding:0}
  .res-top>.container{height:auto;padding:32px 0 26px;background:rgba(6,18,58,.6);box-shadow:0 0 0 100vmax rgba(6,18,58,.6);clip-path:inset(0 -100vmax)}
  .sub-tabs{margin-top:8px!important}
  .res-top h1,.res-top h2,.res-top .lead,.res-top .crumb,.sub-tabs,.res-top h3{position:static}
  .res-top h1{font-size:34px;line-height:40px}
  .res-top h2{font-size:17px;line-height:24px;margin-top:8px}
  .res-top .lead{width:auto;font-size:14px;line-height:22px;margin-top:12px}
  .res-top .crumb{margin-top:18px;font-size:14px}
  .sub-tabs{height:auto;margin-top:40px}
  .sub-tabs .container{gap:12px;justify-content:space-between}
  .sub-tab,.sub-tab:nth-child(1),.sub-tab:nth-child(2){margin-right:0;padding:0 2px 12px;font-size:15px;white-space:nowrap}
  .res-top h3{margin-top:30px;font-size:26px;line-height:34px}
  .listing{padding:20px 0 52px}
  .platform{height:44px}
  .pager{margin-top:36px}
}
