.tt-video-grid,
.tt-resources-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}

@media(max-width:1024px){
  .tt-video-grid,
  .tt-resources-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .tt-video-grid,
  .tt-resources-grid{grid-template-columns:1fr; gap:16px}
}

.tt-video-card,
.tt-resources-card{
  position:relative;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tt-video-card:hover,
.tt-resources-card:hover{
  transform:translateY(-4px);
  border-color:rgba(0,0,0,.14);
  box-shadow:0 18px 42px rgba(0,0,0,.10);
}

.tt-video-card a,
.tt-resources-card a{
  text-decoration:none;
  color:inherit;
}

.tt-video-card img,
.tt-resources-card img{
  width:100%;
  height:190px;
  object-fit:cover;
  display:block;
  background:#f3f4f6;
  border-bottom:3px solid #000341;
}

@media(max-width:560px){
  .tt-video-card img,
  .tt-resources-card img{height:200px}
}

.tt-resources-meta{
  position:absolute;
  left:12px;
  top:12px;
  margin:0;
  z-index:2;
}

.tt-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  line-height:1;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.45);
  background:#000341;
  color:#fff;
  backdrop-filter:blur(6px);
}

.tt-badge-course::before,
.tt-badge-video::before,
.tt-badge-download::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  display:inline-block;
}

.tt-badge-course::before{background:#34d399;}
.tt-badge-video::before{background:#ff0000;}
.tt-badge-download::before{background:#a855f7;}

.tt-video-card h3,
.tt-resources-title{
  font-size:20px;
  letter-spacing:-0.01em;
  margin:14px 20px 10px;
  line-height:1.2;
  color:#f20477;
}

@media(max-width:560px){
  .tt-video-card h3,
  .tt-resources-title{font-size:18px}
}

.tt-resources-excerpt,
.tt-video-excerpt{
  margin:0 20px 16px;
  font-size:14px;
  line-height:1.5;
  color:rgba(17,24,39,.75);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.tt-resources-footer,
.tt-video-footer{
  margin:0 16px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  color:rgba(17,24,39,.55);
  font-size:12px;
}

.tt-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(17,24,39,.06);
}

.tt-pill svg{
  width:14px;
  height:14px;
  opacity:.8;
}

.tt-video-embed{
  max-width:100%;
  margin:0 0 18px;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(0,0,0,.08);
}

.tt-video-embed iframe{
  width:100% !important;
  height:480px;
  display:block;
}

@media(max-width:560px){
  .tt-video-embed iframe{height:240px}
}

body.single-tt_video .page-content{
  max-width:1000px;
  margin:0 auto;
  padding:26px 20px 60px;
}

body.single-tt_video .tt-video-embed{
  max-width:90%;
  margin:0 auto 18px;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 18px 55px rgba(0,0,0,.14);
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  position:relative;
}

body.single-tt_video .tt-video-embed::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,#000341 0%,#f20477 60%,rgba(242,4,119,.65) 100%);
  z-index:2;
}

body.single-tt_video .tt-video-embed iframe{
  width:100% !important;
  aspect-ratio:16/9;
  height:auto !important;
  display:block;
}

body.single-tt_video .entry-title,
body.single-tt_video h1{
  max-width:980px;
  margin:0 auto 14px;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-0.02em;
  color:#000341;
}

body.single-tt_video .page-content p{
  font-size:16px;
  line-height:1.75;
  color:rgba(17,24,39,.86);
  margin:0 0 14px;
}

body.single-tt_video .page-content p:first-of-type{
  font-size:16px;
  line-height:1.65;
  color:rgba(17,24,39,.78);
}

body.single-tt_video .page-content a{
  color:#f20477;
  text-decoration:none;
  border-bottom:1px solid rgba(242,4,119,.35);
}

body.single-tt_video .page-content a:hover{
  border-bottom-color:rgba(242,4,119,.8);
}

@media(max-width:560px){
  body.single-tt_video .page-content{padding:18px 14px 46px}
  body.single-tt_video .tt-video-embed{border-radius:18px}
}

.tt-single-video{
  max-width:1000px;
  margin:0 auto;
}

.tt-single-title{
  font-size:32px;
  line-height:1.2;
  margin:18px 0 10px;
  color:#000341;
  font-weight:800;
}

.tt-single-excerpt{
  margin:0 0 18px;
  font-size:16px;
  line-height:1.6;
  color:rgba(17,24,39,.75);
}

.tt-filterbar{
  max-width:980px;
  margin:0 auto 18px;
  padding:6px;
}

.tt-filterbar__inner{
  background:rgb(255 255 255 / 4%);
  backdrop-filter:blur(10px);
  border:1px solid rgb(255 255 255 / 4%);
  border-radius:18px;
  padding:14px;
  display:flex;
  gap:12px;
  align-items:center;
  box-shadow:0 18px 55px rgba(0,0,0,.14);
}

.tt-filterbar__input,
.tt-filterbar__select{
  height:46px;
  border:1px solid rgba(20,20,20,.10);
  border-radius:12px;
  padding:0 14px;
  font-size:15px;
  line-height:46px;
  background:rgba(255,255,255,.98);
  color:#1b1b1b;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, transform .08s ease;
}

.tt-filterbar__input{
  flex:1.25;
  min-width:220px;
  border-radius: 12px !important;
  border: 1px solid rgba(20, 20, 20, .10) !important;
}

.tt-filterbar__select{
  flex:.9;
  min-width:180px;
  padding-right:36px;
  appearance:none;
  background-image:
    linear-gradient(45deg,transparent 50%,#000 50%),
    linear-gradient(135deg,#000 50%,transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 13px) 19px;
  background-size:6px 6px;
  background-repeat:no-repeat;
}

.tt-filterbar__input:focus,
.tt-filterbar__select:focus{
  border-color:rgba(47,107,255,.55);
  box-shadow:0 0 0 4px rgba(47,107,255,.14);
}

.tt-filterbar__input:hover,
.tt-filterbar__select:hover{
  border-color:rgba(20,20,20,.18);
}

.tt-filterbar__input::placeholder{
  color:#1b1b1b;
  opacity:1;
}

@media(max-width:820px){
  .tt-filterbar__inner{
    padding:12px;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .tt-filterbar__input,
  .tt-filterbar__select{
    width:100%;
    min-width:0;
  }
}
.tt-account-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:42px;
  padding:0 14px;
  border-radius:16px !important;
  font-weight:500 !important;
  font-size: 16px !important;
  text-decoration:none;
  border:1px solid #f20476;
  background:#fff;
  color:#fff;
  transition:all .2s ease;
}
.tt-account-btn:hover{ 
  transform:translateY(-1px); 
  box-shadow:0 10px 30px rgba(0,0,0,.10); 
  background: #f20476 !important;
  color: #fff !important;
}
.tt-account {
  position: relative;
}
@media (max-width: 767px) {
  .tt-account__name {
    display: none !important;
  }
  .tt-account-btn {
      font-size: 14px !important;
      letter-spacing: 0px;
  }
}
.tt-account__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-account__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.tt-account__avatar {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
}

.tt-account__name {
  display: inline-block;
  color: #000;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.tt-account{ position:relative; display:inline-flex; }
.tt-account__trigger{
  width:44px; height:44px;
  border-radius:999px;
  border:1px solid #f20476;
  background: transparent !important;
  padding:0;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:all .2s ease;
}
.tt-account__trigger:hover{ box-shadow:0 10px 30px rgba(0,0,0,.10); transform:translateY(-1px); }

.tt-account__avatar{
  width:40px;
  border-radius:999px !important;
  display:block;
}

.tt-account__menu{
  position:absolute;
  top:52px;
  right:0;
  min-width:170px;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  box-shadow:0 18px 60px rgba(0,0,0,.18);
  padding:10px;
  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
  transition:all .18s ease;
  z-index:9999;
}

.tt-account.is-open .tt-account__menu{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.tt-account__item{
  display:flex;
  padding:5px 10px;
  border-radius:12px;
  color:#111;
  text-decoration:none;
  font-weight:400;
  font-size: 14px;
}
.tt-account__item:hover{
  background:rgba(0,0,0,.06);
}
