/*
Theme Name: TaxInfo.pk Child
Template: generatepress
Version: 2.3
Description: TaxInfo.pk homepage with functional HTML hero over background image.
*/

/* GeneratePress homepage reset */
.home .site.grid-container,
.home .site-content,
.home .content-area,
.home main#main,
.home article.page,
.home .inside-article,
.home .entry-content{
    max-width:none!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
}
.home .entry-header,
.home .page-header,
.home .entry-title{display:none!important;}
.home .container.grid-container{max-width:none!important;}
.home .site-content{display:block!important;}
body.home{background:#fff!important;}

:root{
  --tx-blue:#0A5EA8;
  --tx-blue2:#0A3E72;
  --tx-green:#00A76A;
  --tx-green2:#00755A;
  --tx-navy:#092F52;
  --tx-text:#193A55;
  --tx-muted:#667C8D;
  --tx-bg:#F6FAFD;
  --tx-line:#DCE8F0;
  --tx-white:#fff;
}

.taxinfo-fixed,.taxinfo-fixed *{box-sizing:border-box}
.taxinfo-fixed{font-family:inherit;color:var(--tx-text);overflow:hidden;background:#fff}
.taxinfo-fixed a{text-decoration:none}
.tx-container{width:min(1180px,calc(100% - 36px));margin:0 auto}

/* Functional hero */
.tx-hero-live{
    position:relative;
    min-height:500px;
    background:
      url('assets/images/taxinfo-hero-bg.png')
      center center / cover no-repeat;
    overflow:hidden;
    color:#fff;
}

.tx-hero-shade{
    position:absolute;
    inset:0;
    background:
      linear-gradient(
        90deg,
        rgba(3,30,52,.70) 0%,
        rgba(3,40,70,.55) 34%,
        rgba(3,40,70,.20) 63%,
        rgba(3,40,70,.06) 100%
      );
}

.tx-hero-live-inner{
    position:relative;
    z-index:2;
    min-height:500px;
    display:flex;
    align-items:center;
}

.tx-hero-live-copy{
    width:min(690px,62%);
    padding:58px 0;
}

.tx-kicker{
    display:block;
    color:var(--tx-green2);
    font-size:11px;
    font-weight:900;
    letter-spacing:.12em;
    margin-bottom:8px;
}

.tx-kicker-light{
    color:#9EE9CD;
}

.tx-hero-live h1{
    margin:0 0 8px;
    color:#fff;
    font-size:clamp(44px,4.6vw,66px);
    line-height:1.02;
    letter-spacing:-.035em;
    font-weight:800;
}

.tx-hero-live h1 span{
    color:#35E083;
}

.tx-hero-live h2{
    margin:0 0 16px;
    color:#fff;
    font-size:30px;
    line-height:1.2;
    font-weight:500;
}

.tx-hero-live p{
    max-width:650px;
    margin:0 0 24px;
    color:rgba(255,255,255,.92);
    font-size:17px;
    line-height:1.7;
}

.tx-live-search{
    display:flex;
    align-items:center;
    max-width:660px;
    background:#fff;
    border-radius:34px;
    padding:6px;
    box-shadow:0 14px 32px rgba(0,0,0,.20);
}

.tx-live-search-icon{
    color:var(--tx-blue);
    font-size:26px;
    padding:0 8px 0 12px;
}

.tx-live-search input{
    flex:1;
    min-width:0;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    padding:12px 4px!important;
    font-size:15px!important;
    color:#4F667A!important;
}

.tx-live-search button{
    border:0;
    border-radius:28px;
    background:var(--tx-green);
    color:#fff;
    padding:13px 31px;
    font-size:15px;
    font-weight:800;
    cursor:pointer;
}

.tx-live-search button:hover{
    background:#008F5A;
}

.tx-live-links{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:26px;
    margin-top:20px;
}

.tx-live-links a{
    display:flex;
    align-items:center;
    gap:8px;
    color:#fff;
    font-size:14px;
    font-weight:800;
}

.tx-live-links a span{
    color:#35E083;
    font-size:24px;
    line-height:1;
}

.tx-live-links a:hover{
    color:#9EE9CD;
}

/* Topic cards */
.tx-topics{background:#fff;padding:24px 0 30px}
.tx-topic-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.tx-topic-card{border:1px solid var(--tx-line);border-radius:12px;background:#fff;padding:20px 14px;text-align:center;box-shadow:0 4px 16px rgba(9,47,82,.06);transition:.2s}
.tx-topic-card:hover{transform:translateY(-4px);box-shadow:0 10px 25px rgba(9,47,82,.1)}
.tx-topic-icon{width:58px;height:58px;border-radius:50%;background:#EDF6FD;display:grid;place-items:center;margin:0 auto 10px}
.tx-topic-icon img{width:35px;height:35px}
.tx-topic-card h3{font-size:18px;color:var(--tx-navy);margin:0 0 7px}
.tx-topic-card p{font-size:15px;line-height:1.55;color:var(--tx-muted);margin:0 0 12px;min-height:66px}
.tx-topic-card strong{font-size:14px;color:var(--tx-blue)}

/* Content */
.tx-section{padding:56px 0}
.tx-content-grid{display:grid;grid-template-columns:1.35fr .75fr;gap:28px}
.tx-heading-row{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}
.tx-heading-row h2{font-size:29px;line-height:1.2;color:var(--tx-navy);margin:0}
.tx-heading-row p{color:var(--tx-muted);font-size:16px;margin:5px 0 0}
.tx-heading-row>a{font-size:15px;font-weight:800;color:var(--tx-blue);white-space:nowrap}
.tx-post-list{border-top:1px solid var(--tx-line)}
.tx-post-row{display:grid;grid-template-columns:60px 1fr 24px;gap:13px;align-items:center;padding:13px 0;border-bottom:1px solid var(--tx-line)}
.tx-post-row time{background:#F0F7FB;border-radius:8px;text-align:center;padding:7px 3px;color:var(--tx-blue2)}
.tx-post-row time b,.tx-post-row time span,.tx-post-row time small{display:block}
.tx-post-row time b{font-size:16px;line-height:1}
.tx-post-row time span{font-size:9px;text-transform:uppercase;margin-top:2px}
.tx-post-row time small{font-size:8px}
.tx-badge{display:inline-block;background:#E8F4FD;border-radius:10px;padding:4px 9px;font-size:11px;font-weight:800;color:var(--tx-blue)}
.tx-post-row h3{font-size:17px;line-height:1.35;margin:5px 0}
.tx-post-row h3 a{color:var(--tx-navy)}
.tx-post-row p{font-size:15px;line-height:1.55;color:var(--tx-muted);margin:0}
.tx-arrow{font-size:20px;color:var(--tx-blue)}
.tx-guides-panel{background:#F2F8FC;border:1px solid #D8E7F0;border-radius:12px;padding:22px}
.tx-panel-title{display:flex;align-items:center;gap:9px;margin-bottom:8px}
.tx-panel-title img{width:28px;height:28px}
.tx-panel-title h2{font-size:21px;color:var(--tx-navy);margin:0}
.tx-guide-link{display:grid;grid-template-columns:13px 1fr 12px;gap:8px;align-items:center;padding:13px 0;border-bottom:1px solid #D9E6EE;color:var(--tx-navy);font-size:15px}
.tx-guide-link span,.tx-guide-link b{color:var(--tx-blue)}
.tx-outline{display:block;text-align:center;border:1px solid #8ABBE0;border-radius:7px;color:var(--tx-blue);font-size:14px;font-weight:800;padding:9px;margin-top:13px}

/* Tools */
.tx-tools{background:#F4FBF9;padding:56px 0}
.tx-tool-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.tx-tool-card{background:#fff;border:1px solid #DCECE7;border-radius:12px;padding:24px;text-align:center;transition:.2s}
.tx-tool-card:hover{transform:translateY(-3px);box-shadow:0 9px 22px rgba(9,47,82,.08)}
.tx-tool-card img{width:43px;height:43px;margin-bottom:8px}
.tx-tool-card h3{font-size:18px;color:var(--tx-navy);margin:0 0 6px}
.tx-tool-card p{font-size:15px;line-height:1.55;color:var(--tx-muted);min-height:38px;margin:0 0 9px}
.tx-tool-card strong{font-size:14px;color:var(--tx-blue)}

/* Trust */
.tx-trust{background:#EEF7FC;border-top:1px solid var(--tx-line);border-bottom:1px solid var(--tx-line);padding:21px 0}
.tx-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.tx-trust-grid>div{display:flex;align-items:center;gap:11px;padding:0 14px;border-right:1px solid #CBDEE9}
.tx-trust-grid>div:last-child{border-right:0}
.tx-trust-grid img{width:34px;height:34px}
.tx-trust-grid strong{display:block;color:var(--tx-navy);font-size:14px}
.tx-trust-grid small{display:block;color:var(--tx-muted);font-size:12px;margin-top:2px}

/* CTA */
.tx-cta{background:linear-gradient(100deg,#07569A,#0A3E72);padding:28px 0;color:#fff}
.tx-cta-inner{display:flex;justify-content:space-between;align-items:center;gap:30px}
.tx-cta h2{color:#fff;font-size:24px;margin:0}
.tx-cta p{color:rgba(255,255,255,.82);font-size:15px;margin:4px 0 0}
.tx-btn-light{display:inline-block;background:#fff;color:var(--tx-navy)!important;font-size:14px;font-weight:800;border-radius:22px;padding:11px 18px}
.tx-empty{padding:20px;background:#F7FAFC;border:1px dashed var(--tx-line);border-radius:10px;color:var(--tx-muted);font-size:15px}

/* Responsive */
@media(max-width:1050px){
  .tx-hero-live-copy{width:70%}
  .tx-topic-grid{grid-template-columns:repeat(3,1fr)}
  .tx-content-grid{grid-template-columns:1fr}
  .tx-tool-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:760px){
  .tx-hero-live{min-height:500px;background-position:58% center}
  .tx-hero-live-inner{min-height:500px}
  .tx-hero-live-copy{width:100%;padding:42px 0}
  .tx-hero-shade{
      background:linear-gradient(90deg,rgba(3,30,52,.82),rgba(3,40,70,.62),rgba(3,40,70,.35));
  }
  .tx-hero-live h1{font-size:42px}
  .tx-hero-live h2{font-size:23px}
  .tx-live-search{max-width:100%}
  .tx-topic-grid{grid-template-columns:repeat(2,1fr)}
  .tx-trust-grid{grid-template-columns:repeat(2,1fr)}
  .tx-trust-grid>div{border-right:0;border-bottom:1px solid #CBDEE9;padding:10px}
  .tx-cta-inner{display:block}
  .tx-btn-light{margin-top:15px}
}

@media(max-width:520px){
  .tx-container{width:calc(100% - 24px)}
  .tx-hero-live{background-position:55% center}
  .tx-hero-live h1{font-size:36px}
  .tx-hero-live h2{font-size:21px}
  .tx-hero-live p{font-size:15px}
  .tx-live-search{
      display:grid;
      grid-template-columns:26px 1fr;
      border-radius:14px;
  }
  .tx-live-search button{
      grid-column:1/3;
      width:100%;
      margin-top:5px;
      border-radius:10px;
  }
  .tx-live-links{gap:13px}
  .tx-live-links a{font-size:13px}
  .tx-topic-grid,.tx-tool-grid,.tx-trust-grid{grid-template-columns:1fr}
  .tx-topic-card{display:grid;grid-template-columns:58px 1fr;text-align:left;column-gap:12px;align-items:center}
  .tx-topic-icon{grid-row:1/4;margin:0}
  .tx-topic-card p{min-height:0}
  .tx-post-row{grid-template-columns:52px 1fr 20px}
  .tx-post-row p{display:none}
  .tx-heading-row{align-items:flex-start;flex-direction:column}
}
