/*
Pure IPTV WordPress blog 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;
}

.site-header .nav .menu-item a{
  display:flex;
  align-items:center;
}

.site-header .nav a[aria-current="page"],
.site-header .nav .current-menu-item>a{
  color:#fff;
  background:rgba(47,107,255,.13);
}

.scroll-progress{
  position:fixed;
  top:107px;
  left:0;
  right:0;
  z-index:219;
  height:1px;
  pointer-events:none;
  background:rgba(47,107,255,.12);
}

.pure-iptv-wordpress .blog-card,
.pure-iptv-wordpress .single-content,
.pure-iptv-wordpress .empty-state{
  border:1px solid rgba(16,28,52,.08);
}

.pure-iptv-wordpress .site-footer{
  background-image:radial-gradient(circle at 82% 10%,rgba(47,107,255,.10),transparent 27%),linear-gradient(180deg,#070c18,#030712);
}

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

.blog-hero{
  padding:56px 0 32px;
  background:
    radial-gradient(circle at 50% 0,rgba(47,107,255,.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:#4b7cff;
  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:#2f6bff;
  box-shadow:0 0 0 5px rgba(47,107,255,.12);
}

.blog-hero h1{
  max-width:850px;
  margin:0 auto 12px;
  color:#11131a;
  font-size:clamp(34px,4.1vw,52px);
  line-height:1.06;
  letter-spacing:-.04em;
  text-transform:none!important;
}

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

.blog-hero p{
  max-width:760px;
  margin:0 auto;
  color:#5f6472;
  font-size:17px;
  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(47,107,255,.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:#2f6bff;
  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:#2f6bff;
  color:#fff;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 14px 35px rgba(47,107,255,.24);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.blog-search-box button:hover{
  transform:translateY(-1px);
  background:#4e7dff;
  box-shadow:0 18px 44px rgba(47,107,255,.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(47,107,255,.18);
  border-radius:999px;
  background:#fff;
  color:#2f6bff;
  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:#2f6bff;
  background:#2f6bff;
  color:#fff;
  box-shadow:0 16px 38px rgba(47,107,255,.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(47,107,255,.10);
  color:#2f6bff;
  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:34px 0 72px;
}

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

.blog-grid--single{
  grid-template-columns:minmax(0,920px)!important;
  justify-content:center;
}

/* Robust fallback when WordPress returns one card without the helper class. */
.pure-iptv-wordpress .blog-grid:has(> .blog-card:only-child){
  grid-template-columns:minmax(0,920px)!important;
  justify-content:center;
}

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

.blog-card-image{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16/9!important;
  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%;
  aspect-ratio:16/9;
  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,#2f6bff,#4b7cff);
  color:#fff;
  font-size:12px;
  font-weight:900;
  box-shadow:0 10px 22px rgba(47,107,255,.26);
}

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

.blog-card-body{
  padding:20px 24px 24px;
}

.blog-categories{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px 12px;
  margin-bottom:7px;
}

.blog-category{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin:0;
  color:#4b7cff;
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-decoration:none;
}

.blog-category+.blog-category::before{
  content:"•";
  margin-right:12px;
  color:#8da8db;
}

.blog-category:hover{
  color:#2f6bff;
  text-decoration:underline;
  text-underline-offset:3px;
}

.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:#4b7cff;
}

.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:#4b7cff;
}

.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:#2f6bff;
  color:#fff!important;
  font-size:13px;
  font-weight:950;
  line-height:1;
  text-decoration:none!important;
  box-shadow:0 12px 28px rgba(47,107,255,.20);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.blog-read-more:hover{
  transform:translateY(-1px);
  background:#4e7dff;
  box-shadow:0 16px 36px rgba(47,107,255,.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,#2f6bff,#4b7cff);
  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(32px,4.1vw,52px);
  line-height:1.08;
  letter-spacing:-.055em;
}

.back-link{
  display:inline-flex;
  margin-bottom:18px;
  color:#4b7cff;
  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:17px;
  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:#2f6bff;
  font-weight:800;
}

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

/*
 * Articles may be pasted as self-contained landing pages. Keep their content,
 * but suppress duplicate fixed UI so the theme remains the only navigation
 * and mobile-action layer.
 */
.single-content .pb-progress,
.single-content .pb-mobile-cta,
.single-content .pb-top,
.single-content .pb-modal{
  display:none!important;
}

.single-content .pure-blog{
  padding-bottom:22px!important;
}

@media(max-width:1024px){
  body.menu-open .menu-toggle{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}

@media(max-width:768px){
  .pure-iptv-wordpress .floating-whatsapp{
    display:none!important;
  }
}

@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-grid--single,
  .pure-iptv-wordpress .blog-grid:has(> .blog-card:only-child){
    grid-template-columns:minmax(0,1fr)!important;
  }

  .blog-card-body{
    padding:18px 18px 22px;
  }

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

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

  .scroll-progress{top:91px}
}

/*
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(47,107,255,.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(47,107,255,.12)!important;
    color:#fff!important;
    font-size:22px!important;
    cursor:pointer!important;
  }
}

/* Keep the live-site header dimensions when the WordPress admin bar is visible. */
.admin-bar .announcement{
  top:32px!important;
}

.admin-bar .site-header{
  top:67px!important;
}

.admin-bar .scroll-progress{
  top:139px;
}

@media(max-width:782px){
  .admin-bar .announcement{
    top:46px!important;
  }

  .admin-bar .site-header{
    top:73px!important;
  }

  .admin-bar .scroll-progress{
    top:137px;
  }
}

/* Match the main site's full-screen mobile navigation. */
@media(max-width:1024px){
  .site-header .nav.open{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100dvh!important;
    min-height:100svh!important;
    z-index:10001!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:2px!important;
    margin:0!important;
    padding:90px 28px 42px!important;
    border:0!important;
    border-radius:0!important;
    background:rgba(5,10,22,.99)!important;
    background-image:radial-gradient(circle at 85% 12%,rgba(47,107,255,.20),transparent 32%)!important;
    overflow-y:auto!important;
  }

  .site-header .nav.open a{
    justify-content:flex-start!important;
    min-height:58px!important;
    padding:13px 4px!important;
    border-bottom:1px solid rgba(143,176,255,.12)!important;
    border-radius:0!important;
    background:transparent!important;
    font-size:18px!important;
  }

  .site-header .nav.open .menu-close{
    position:absolute!important;
    top:20px!important;
    right:22px!important;
    width:46px!important;
    height:46px!important;
  }
}
