
/* TicketPriceNow Custom Homepage - Responsive CSS */

.tpn-home{
  --navy:#062d59;
  --blue:#064b98;
  --orange:#f47700;
  --ink:#10243d;
  color:#111827;
  font-family:inherit;
  width:100%;
  max-width:100%;
  overflow:hidden;
}

.tpn-home,
.tpn-home *{
  box-sizing:border-box;
}

.tpn-home img{
  max-width:100%;
  height: 100%;
}

.tpn-home a{
  text-decoration:none;
}

/* HERO */

.tpn-hero{
  background:linear-gradient(90deg,#e9f5ff 0%,#b9e0ff 48%,#1687d6 100%);
  background-size:cover;
  background-position:center;
  min-height:285px;
  overflow:hidden;
  position:relative;
}

.tpn-hero-inner{
  max-width:1300px;
  width:100%;
  min-height:285px;
  margin:auto;
  display:flex;
  align-items:center;
  padding:32px;
}

.tpn-hero-copy{
  position:relative;
  z-index:2;
  max-width:590px;
}

.tpn-eyebrow{
  font-size:11px;
  font-weight:800;
  letter-spacing:2px;
  color:#07529b;
  margin:0 0 8px;
}

.tpn-hero h1{
  font-size:clamp(30px,4vw,43px);
  line-height:1.08;
  letter-spacing:-1.3px;
  color:#082c55;
  font-weight:800;
  margin:0 0 10px;
  overflow-wrap:anywhere;
}

.tpn-hero h1 em{
  font-style:normal;
  color:#c53d20;
}

.tpn-hero-description{
  font-size:17px;
  line-height:1.45;
  color:#151515;
  font-weight:600;
  margin:0 0 18px;
}

.tpn-orange-button,
.tpn-blue-button{
  display:inline-flex;
  align-items:center;
  gap:12px;
  background:var(--orange);
  color:#fff!important;
  font-weight:800;
  padding:11px 21px;
  border-radius:28px;
  box-shadow:0 3px 8px #0002;
}

.tpn-orange-button:hover{
  background:#d95f00;
}

.tpn-hero-art{
  position:absolute;
  right:5%;
  top:14%;
  width:36%;
  height:72%;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}

.tpn-hero-art span{
  font-size:clamp(100px,17vw,210px);
  color:#fff;
  text-shadow:0 15px 22px #073b6c66;
  transform:rotate(-12deg);
}

/* MAIN LAYOUT */

.tpn-layout{
  width:100%;
  max-width:1240px;
  margin:0 auto;
  padding:22px 20px 26px;
  display:grid;
  grid-template-columns:minmax(0,3fr) minmax(245px,1fr);
  gap:25px;
}

.tpn-layout > *,
.tpn-main,
.tpn-sidebar{
  min-width:0;
  max-width:100%;
}

.tpn-section{
  margin:0 0 22px;
  padding:0 0 19px;
  border-bottom:1px solid #e0e5eb;
}

.tpn-section:last-child{
  border-bottom:0;
  margin-bottom:0;
}

.tpn-section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 11px;
  min-width:0;
}

.tpn-section-heading h2,
.tpn-widget-title{
  font-size:19px;
  line-height:1.2;
  font-weight:800;
  color:#fff;
  background:linear-gradient(105deg,#062c56 0%,#0a477f 88%,transparent 88%);
  padding:6px 27px 6px 12px;
  margin:0;
  min-width:205px;
  clip-path:polygon(0 0,100% 0,94% 100%,0 100%);
}

.tpn-section-heading>a{
  font-size:13px;
  color:#064b98;
  font-weight:800;
  white-space:nowrap;
}

/* POST GRIDS */

.tpn-feature-grid,
.tpn-ticket-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:17px;
}

.tpn-post-card{
  min-width:0;
  max-width:100%;
  overflow:hidden;
}

.tpn-thumb{
  display:block;
  position:relative;
  overflow:hidden;
  border-radius:4px;
  background:#d9e8f6;
  aspect-ratio:1.68;
  width:100%;
}

.tpn-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s;
}

.tpn-post-card:hover .tpn-thumb img{
  transform:scale(1.04);
}

.tpn-card-tag{
  position:absolute;
  left:7px;
  top:7px;
  background:#0752a0;
  color:#fff;
  border-radius:3px;
  padding:4px 8px;
  font-size:12px;
  font-weight:800;
}

.tpn-image-fallback{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#b6dfff,#0d559b);
  color:white;
  font-size:22px;
  font-weight:800;
}

.tpn-card-content{
  min-width:0;
}

.tpn-card-content h3{
  font-size:16px;
  line-height:1.25;
  font-weight:800;
  margin:8px 0 7px;
  overflow-wrap:anywhere;
}

.tpn-card-content h3 a{
  color:#111827;
}

.tpn-card-content h3 a:hover{
  color:#0752a0;
}

.tpn-meta{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  color:#596579;
  font-size:12px;
}

/* CATEGORIES */

.tpn-category-section{
  padding-bottom:18px;
}

.tpn-category-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:9px;
}

.tpn-category-tile{
  height:112px;
  min-width:0;
  border-radius:7px;
  overflow:hidden;
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  background:var(--tpn-cat-color);
  color:#fff!important;
}

.tpn-category-tile img{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  inset:0;
}

.tpn-category-tile:after{
  content:"";
  position:absolute;
  inset:35% 0 0;
  background:linear-gradient(transparent,#0009);
}

.tpn-category-tile strong{
  z-index:1;
  position:relative;
  width:100%;
  text-align:center;
  padding:8px 3px;
  background:var(--tpn-cat-color);
  font-size:13px;
  overflow-wrap:anywhere;
}

.tpn-category-icon{
  position:absolute;
  top:12px;
  font-size:36px;
  color:#fff;
  text-shadow:0 2px 6px #0004;
}

/* SIDEBAR */

.tpn-sidebar{
  min-width:0;
}

.tpn-widget{
  margin:0 0 19px;
  min-width:0;
}

.tpn-widget-title{
  min-width:0;
  width:100%;
  margin-bottom:9px;
}

.tpn-search{
  display:flex;
  width:100%;
  min-width:0;
  border:1px solid #cbd5e1;
  border-radius:5px;
  overflow:hidden;
}

.tpn-search input{
  width:100%;
  min-width:0;
  border:0!important;
  padding:10px 12px!important;
  font:inherit;
  font-size:14px;
  background:#fff!important;
  color:#111;
}

.tpn-search button{
  width:48px;
  flex:0 0 48px;
  border:0;
  background:#064b98;
  color:white;
  font-size:26px;
  cursor:pointer;
}

.tpn-latest-list{
  display:grid;
  gap:10px;
}

.tpn-compact{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-width:0;
}

.tpn-compact .tpn-thumb{
  aspect-ratio:1.25;
}

.tpn-compact .tpn-card-content h3{
  font-size:13px;
  line-height:1.3;
  margin:0 0 5px;
}

.tpn-compact .tpn-meta{
  font-size:10px;
}

.tpn-about>img{
  width:100%;
  height:90px;
  object-fit:cover;
  border-radius:4px;
  display:block;
}

.tpn-about-placeholder{
  height:90px;
  background:linear-gradient(120deg,#f6b17a,#e85b42,#082e59);
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:20px;
  font-weight:800;
  border-radius:4px;
}

.tpn-about p{
  font-size:13px;
  line-height:1.45;
  margin:8px 0;
}

.tpn-blue-button{
  background:#064b98;
  border-radius:4px;
  padding:7px 15px;
  font-size:12px;
  float:right;
}

.tpn-home:after{
  content:"";
  display:block;
  clear:both;
}

/* TABLET */

@media(max-width:900px){

  .tpn-layout{
    grid-template-columns:minmax(0,1fr) 250px;
    gap:18px;
    padding-left:15px;
    padding-right:15px;
  }

  .tpn-category-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .tpn-hero-art{
    right:1%;
    width:32%;
  }

  .tpn-hero-copy{
    max-width:65%;
  }

}

/* MOBILE */

@media(max-width:680px){

  .tpn-home{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  .tpn-layout{
    display:block;
    width:100%;
    padding:16px 13px;
  }

  .tpn-main,
  .tpn-sidebar{
    width:100%;
    max-width:100%;
  }

  .tpn-sidebar{
    margin-top:22px;
  }

  .tpn-hero{
    width:100%;
    min-height:230px;
    background-position:center;
  }

  .tpn-hero-inner{
    width:100%;
    min-height:230px;
    padding:24px 18px;
  }

  .tpn-hero-copy{
    max-width:100%;
  }

  .tpn-hero-art{
    opacity:.18;
    right:-5%;
    width:55%;
  }

  .tpn-hero h1{
    font-size:31px;
    line-height:1.12;
    letter-spacing:-.7px;
  }

  .tpn-hero-description{
    font-size:15px;
    line-height:1.45;
  }

  .tpn-orange-button{
    padding:10px 17px;
    font-size:13px;
  }

  .tpn-desktop{
    display:none;
  }

  .tpn-feature-grid,
  .tpn-ticket-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px;
  }

  .tpn-category-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }

  .tpn-category-tile{
    height:95px;
  }

  .tpn-section-heading{
    flex-wrap:wrap;
  }

  .tpn-section-heading h2,
  .tpn-widget-title{
    font-size:17px;
    min-width:0;
  }

  .tpn-card-content h3{
    font-size:14px;
  }

  .tpn-meta{
    font-size:10px;
    gap:7px;
  }

}

/* SMALL MOBILE */

@media(max-width:420px){

  .tpn-layout{
    padding-left:11px;
    padding-right:11px;
  }

  .tpn-hero-inner{
    padding:22px 15px;
  }

  .tpn-hero h1{
    font-size:28px;
  }

  .tpn-feature-grid,
  .tpn-ticket-grid{
    grid-template-columns:1fr;
  }

  .tpn-feature-grid .tpn-thumb,
  .tpn-ticket-grid .tpn-thumb{
    aspect-ratio:1.8;
  }

  .tpn-category-tile{
    height:86px;
  }

  .tpn-category-tile strong{
    font-size:11px;
  }

  .tpn-category-icon{
    font-size:27px;
  }

  .tpn-compact{
    grid-template-columns:75px minmax(0,1fr);
    gap:8px;
  }

}

/* EXTRA SMALL SCREENS */

@media(max-width:350px){

  .tpn-category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .tpn-section-heading h2{
    font-size:15px;
  }

  .tpn-hero h1{
    font-size:25px;
  }

}
