/*
IPTV Premium 4K blog-only styles.
Header, footer, logo, buttons and floating actions are loaded
from the real home page CSS files in functions.php.
*/

.skip-link{
  position:absolute!important;
  left:-9999px!important;
  top:12px!important;
  z-index:100000!important;
  padding:10px 14px!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#08090d!important;
  font-weight:900!important;
  text-decoration:none!important;
}

.skip-link:focus{
  left:12px!important;
}

.screen-reader-text{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

body,
button,
input,
select,
textarea,
.blog-main,
.site-header,
.site-footer{
  font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}

.admin-bar .site-header{
  top:32px;
}

.site-header .nav li{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
}

.blog-main{
  background:#f6f7fb;
  color:#12131a;
}

.blog-hero{
  padding:72px 0 38px;
  background:
    radial-gradient(circle at 50% 0,rgba(239,0,22,.10),transparent 38%),
    linear-gradient(180deg,#fff,#f6f7fb);
  text-align:center;
}

.blog-hero .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  color:#ff2638;
  font-size:12px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.blog-hero .eyebrow::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ef0016;
  box-shadow:0 0 0 5px rgba(239,0,22,.12);
}

.blog-hero h1{
  max-width:850px;
  margin:0 auto 12px;
  color:#11131a;
  font-size:clamp(36px,5vw,68px);
  line-height:1.02;
  letter-spacing:-.055em;
  text-transform:none!important;
}

.blog-hero--category h1{
  max-width:760px;
  font-size:clamp(32px,4vw,54px);
  letter-spacing:-.045em;
  text-transform:none!important;
}

.blog-hero p{
  max-width:760px;
  margin:0 auto;
  color:#5f6472;
  font-size:18px;
  font-weight:400!important;
  letter-spacing:normal!important;
  text-transform:none!important;
}

.blog-search{
  max-width:720px;
  margin:28px auto 0;
}

.blog-search-box{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px;
  border:1px solid rgba(239,0,22,.18);
  border-radius:999px;
  background:#fff;
  box-shadow:0 18px 55px rgba(17,19,26,.10);
}

.blog-search-box svg{
  flex:0 0 auto;
  width:22px;
  height:22px;
  margin-left:14px;
  color:#ef0016;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.blog-search-box input{
  flex:1 1 auto;
  min-width:0;
  height:48px;
  border:0;
  outline:0;
  background:transparent;
  color:#11131a;
  font:inherit;
  font-weight:700;
}

.blog-search-box input::placeholder{
  color:#8b909d;
  font-weight:650;
}

.blog-search-box button{
  flex:0 0 auto;
  height:48px;
  padding:0 24px;
  border:0;
  border-radius:999px;
  background:#ef0016;
  color:#fff;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 14px 35px rgba(239,0,22,.24);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.blog-search-box button:hover{
  transform:translateY(-1px);
  background:#ff1b2f;
  box-shadow:0 18px 44px rgba(239,0,22,.32);
}

.blog-category-filter-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  max-width:980px;
  margin:20px auto 0;
}

.category-scroll-button{
  display:none;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border:1px solid rgba(239,0,22,.18);
  border-radius:999px;
  background:#fff;
  color:#ef0016;
  font-size:28px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(17,19,26,.08);
}

.blog-category-filter{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  max-width:100%;
  scroll-behavior:smooth;
}

.blog-category-filter a{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  box-sizing:border-box;
  height:42px;
  min-height:42px;
  max-height:42px;
  max-width:320px;
  min-width:0;
  padding:0 16px;
  border:1px solid rgba(17,19,26,.10);
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:#222532;
  font-size:13px;
  line-height:1;
  font-weight:900;
  letter-spacing:0!important;
  text-transform:none!important;
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(17,19,26,.07);
  transition:transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  scroll-snap-align:start;
}

.category-filter-label{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.blog-category-filter a:hover,
.blog-category-filter a.is-active{
  border-color:#ef0016;
  background:#ef0016;
  color:#fff;
  box-shadow:0 16px 38px rgba(239,0,22,.23);
}

.category-filter-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  background:rgba(239,0,22,.10);
  color:#ef0016;
  font-size:11px;
  font-weight:950;
}

.blog-category-filter a:hover .category-filter-count,
.blog-category-filter a.is-active .category-filter-count{
  background:rgba(255,255,255,.20);
  color:#fff;
}

.blog-list-section{
  padding:42px 0 86px;
}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:30px 26px;
}

.blog-card{
  min-width:0;
}

.blog-card-image{
  position:relative;
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:18px;
  background:#11131a;
  box-shadow:0 16px 32px rgba(13,20,33,.16);
  text-decoration:none!important;
}

.blog-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}

.blog-card:hover .blog-card-image img{
  transform:scale(1.045);
}

.read-time{
  position:absolute;
  left:12px;
  bottom:10px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:linear-gradient(135deg,#ef0016,#ff2638);
  color:#fff;
  font-size:12px;
  font-weight:900;
  box-shadow:0 10px 22px rgba(239,0,22,.26);
}

.read-time svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
}

.blog-card-body{
  padding-top:15px;
}

.blog-category{
  margin-bottom:7px;
  color:#ff2638;
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.blog-card h2{
  margin:0 0 8px;
  color:#101119;
  font-size:21px;
  line-height:1.34;
  letter-spacing:-.035em;
}

.blog-card h2 a{
  color:inherit;
  text-decoration:none;
}

.blog-card h2 a:hover{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-decoration-color:#ff2638;
}

.blog-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  align-items:center;
  margin:0 0 13px;
  color:#5d6270;
  font-size:13px;
  font-weight:750;
}

.blog-meta span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.blog-meta span::before{
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:#ff2638;
}

.blog-card p{
  margin:0;
  color:#202535;
  font-size:15px;
  line-height:1.62;
}

.blog-read-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  margin-top:4px;
  padding:9px 16px;
  border-radius:999px;
  background:#ef0016;
  color:#fff!important;
  font-size:13px;
  font-weight:950;
  line-height:1;
  text-decoration:none!important;
  box-shadow:0 12px 28px rgba(239,0,22,.20);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.blog-read-more:hover{
  transform:translateY(-1px);
  background:#ff1b2f;
  box-shadow:0 16px 36px rgba(239,0,22,.28);
}

.pagination{
  display:flex;
  justify-content:center;
  margin-top:52px;
}

.pagination .nav-links{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.pagination a,
.pagination span{
  min-width:42px;
  min-height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  border:1px solid rgba(15,20,32,.12);
  background:#fff;
  color:#11131a;
  text-decoration:none;
  font-weight:900;
}

.pagination .current,
.pagination a:hover{
  background:linear-gradient(135deg,#ef0016,#ff2638);
  color:#fff;
  border-color:transparent;
}

.empty-state{
  padding:80px 24px;
  text-align:center;
  background:#fff;
  border-radius:24px;
  color:#11131a;
}

.single-main{
  background:#f6f7fb;
  color:#151822;
  padding:64px 0 86px;
}

.single-article{
  max-width:920px;
}

.single-hero{
  text-align:center;
  margin-bottom:30px;
}

.single-hero h1{
  margin:0 auto 18px;
  color:#11131a;
  font-size:clamp(34px,5vw,62px);
  line-height:1.08;
  letter-spacing:-.055em;
}

.back-link{
  display:inline-flex;
  margin-bottom:18px;
  color:#ff2638;
  font-weight:900;
  text-decoration:none;
}

.single-featured{
  margin:0 0 34px;
  overflow:hidden;
  border-radius:24px;
  box-shadow:0 22px 50px rgba(13,20,33,.15);
}

.single-featured img{
  display:block;
  width:100%;
  height:auto;
}

.single-content{
  background:#fff;
  border-radius:24px;
  padding:clamp(24px,4vw,52px);
  box-shadow:0 18px 45px rgba(13,20,33,.08);
  color:#202535;
  font-size:18px;
  line-height:1.82;
}

.single-content h2,
.single-content h3,
.single-content h4{
  color:#11131a;
  line-height:1.2;
  letter-spacing:-.03em;
}

.single-content a{
  color:#ef0016;
  font-weight:800;
}

.single-content img{
  border-radius:18px;
}

@media(max-width:1100px){
  .blog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:768px){
  .admin-bar .site-header{
    top:46px;
  }

  .blog-hero{
    padding:54px 0 28px;
  }

  .blog-hero--category h1{
    font-size:clamp(30px,9vw,42px);
  }

  .blog-search{
    margin-top:22px;
  }

  .blog-search-box{
    flex-wrap:wrap;
    border-radius:24px;
    padding:12px;
  }

  .blog-search-box svg{
    margin-left:6px;
  }

  .blog-search-box input{
    height:44px;
    font-size:15px;
  }

  .blog-search-box button{
    width:100%;
    height:46px;
  }

  .blog-category-filter-wrap{
    display:grid;
    grid-template-columns:40px minmax(0,1fr) 40px;
    align-items:center;
    gap:8px;
    max-width:100%;
    margin-top:18px;
  }

  .category-scroll-button{
    display:flex;
  }

  .blog-category-filter{
    justify-content:flex-start;
    flex-wrap:nowrap;
    max-width:100%;
    overflow-x:auto;
    padding:2px 0 8px;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
  }

  .blog-category-filter::-webkit-scrollbar{
    display:none;
  }

  .blog-category-filter a{
    flex:0 0 auto;
    height:40px;
    min-height:40px;
    max-height:40px;
    max-width:280px;
    padding:0 14px;
    font-size:12px;
  }

  .blog-grid{
    grid-template-columns:1fr;
    gap:30px;
  }

  .blog-card h2{
    font-size:20px;
  }

  .single-content{
    border-radius:18px;
  }
}

/*
Mobile menu fallback for WordPress.
The original home page CSS already styles this, but WordPress/plugin loading can
sometimes miss the open state. Keep this scoped to mobile only.
*/
@media(max-width:1024px){
  .site-header .header-cta{
    display:none!important;
  }

  .site-header .menu-toggle{
    display:block!important;
    position:relative;
    z-index:10002;
    width:46px!important;
    height:46px!important;
    border:1px solid rgba(255,255,255,.14)!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.06)!important;
    cursor:pointer!important;
    pointer-events:auto!important;
    touch-action:manipulation!important;
  }

  .site-header .menu-toggle span,
  .site-header .menu-toggle::before,
  .site-header .menu-toggle::after{
    content:""!important;
    position:absolute!important;
    left:12px!important;
    right:12px!important;
    height:2px!important;
    border-radius:999px!important;
    background:#fff!important;
    transition:transform .2s ease, opacity .2s ease!important;
  }

  .site-header .menu-toggle span{
    top:22px!important;
  }

  .site-header .menu-toggle::before{
    top:15px!important;
  }

  .site-header .menu-toggle::after{
    top:29px!important;
  }

  .site-header .menu-toggle.is-active span{
    opacity:0!important;
  }

  .site-header .menu-toggle.is-active::before{
    top:22px!important;
    transform:rotate(45deg)!important;
  }

  .site-header .menu-toggle.is-active::after{
    top:22px!important;
    transform:rotate(-45deg)!important;
  }

  .site-header .nav{
    position:fixed!important;
    inset:72px 14px auto 14px!important;
    z-index:10001!important;
    display:none!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:7px!important;
    padding:18px!important;
    border:1px solid rgba(239,0,22,.24)!important;
    border-radius:22px!important;
    background:rgba(8,9,13,.99)!important;
    box-shadow:0 24px 70px rgba(0,0,0,.45)!important;
  }

  .site-header .nav.open{
    display:flex!important;
  }

  .site-header .nav a{
    justify-content:center!important;
    min-height:46px!important;
    background:rgba(255,255,255,.045)!important;
  }

  .site-header .menu-close{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:flex-end!important;
    width:38px!important;
    height:38px!important;
    border:1px solid rgba(255,255,255,.14)!important;
    border-radius:12px!important;
    background:rgba(239,0,22,.12)!important;
    color:#fff!important;
    font-size:22px!important;
    cursor:pointer!important;
  }
}
