
/*
Theme Name: TopicPass
Theme URI: https://topicpass.com
Author: TopicPass
Description: Chandigarh Clerk Exam Preparation Theme
Version: 1.0
*/




/* style.css */

:root{
  --primary:#FF5A36;
  --secondary:#E63E21;
  --soft:#fff5f2;
  --border:#ffd9d1;
  --text:#222;
  --muted:#777;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  background:#fff;
  color:var(--text);
}

a{
  text-decoration:none;
}

/* HEADER */

.tp-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:60px;
  background:#fff;
  border-bottom:1px solid var(--border);
  z-index:3000;
}

.tp-header-inner{
  height:100%;
  display:flex;
  align-items:center;
  padding:0 15px;
}

.tp-logo{
  display:flex;
  align-items:center;
  gap:10px;height: 10px;
}

.tp-logo-icon{
  width:40px;
  height:40px;
  border-radius:50%;
  background:linear-gradient(180deg,var(--primary),var(--secondary));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:bold;
}

.tp-logo-text h2{
  color:var(--secondary);
  font-size:20px;
}

.tp-logo-text span{
  font-size:11px;
  color:#777;
}

.tp-header-right{
  margin-left:auto;
  display:flex;
  gap:18px;
}

.tp-icon-stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  font-size:11px;
}

.tp-icon-stack i{
  font-size:18px;
  margin-bottom:4px;
}

/* TOOLBAR */

.tp-top-strip{
  position:fixed;
  top:60px;
  left:0;
  right:240px;
  background:#fff;
  border-bottom:1px solid var(--border);
  z-index:2000;
  padding:12px;
}

.tp-toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.tp-chips{
  display:flex;
  gap:8px;
}

.tp-chip{
  border:1px solid #ddd;
  background:#fff;
  padding:9px 14px;
  border-radius:8px;
  cursor:pointer;
}

.tp-chip.active{
  background:#fff1ed;
  border-color:var(--primary);
  color:var(--secondary);
}

/* SEARCH */

.tp-search-box{
  display:flex;
  gap:8px;
}

.tp-search-box input{
  width:260px;
  padding:10px;
  border:1px solid #ddd;
  border-radius:8px;
}

.tp-search-box button{
  border:none;
  background:var(--primary);
  color:#fff;
  padding:0 16px;
  border-radius:8px;
}

/* FILTERS */

.tp-filters{
  position:fixed;
  right:0;
  top:60px;
  width:240px;
  height:calc(100vh - 60px);
  background:#fff;
  border-left:1px solid var(--border);
  overflow:auto;
  padding:15px;
}

.tp-filter-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.tp-filter-top button{
  width:34px;
  height:34px;
  border:none;
  border-radius:50%;
  background:#fff1ed;
  color:var(--secondary);
  font-size:20px;
}

.tp-filters h4{
  margin:18px 0 10px;
}

.tp-filter-group{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.tp-filter-btn{
  border:1px solid #ddd;
  background:#fff;
  padding:9px;
  border-radius:8px;
}

.tp-filter-btn.active{
  background:#fff1ed;
  border-color:var(--primary);
  color:var(--secondary);
}

/* MAIN */

.tp-main{
  margin-top:130px;
  margin-right:240px;
  padding:15px;
}

/* GRID */

.tp-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
}

/* CARD */

.tp-card{
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
}

.tp-thumb{
  height:180px;
  background:var(--soft);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.tp-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.tp-thumb i{
  font-size:55px;
  color:var(--primary);
}

.tp-bookmark{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tp-content{
  padding:14px;
}

.tp-badge{
  display:inline-block;
  background:#fff1ed;
  color:var(--secondary);
  padding:5px 10px;
  border-radius:30px;
  font-size:11px;
  margin-bottom:10px;
}

.tp-content h3{
  font-size:15px;
  line-height:1.5;
}

.tp-content h3 a{
  color:#222;
}

.tp-card-info{
  margin-top:12px;
  display:flex;
  justify-content:space-between;
}

.tp-questions{
  color:var(--secondary);
  font-weight:bold;
}

.tp-date{
  font-size:11px;
  color:#777;
}

/* MOBILE */

.tp-mobile-top{
  display:none;
}

@media(max-width:1200px){

  .tp-grid{
    grid-template-columns:repeat(3,1fr);
  }

}

@media(max-width:900px){

  .tp-grid{
    grid-template-columns:repeat(2,1fr);
  }

}

@media(max-width:768px){

  .tp-mobile-top{
    display:block;
    position:fixed;
    top:60px;
    left:0;
    right:0;
    background:#fff;
    border-bottom:1px solid var(--border);
    padding:10px;
    z-index:2500;
  }

  .tp-mobile-buttons{
    display:flex;
    gap:8px;
  }

  .tp-mobile-btn{
    flex:1;
    border:1px solid #ffd9d1;
    border-radius:8px;
    padding:11px;
    text-align:center;
    font-weight:bold;
    color:var(--secondary);
    background:#fff;
  }

  .tp-top-strip{
    top:120px;
    right:0;
  }

  .tp-main{
    margin-right:0;
    margin-top:190px;
  }

  .tp-filters{
    display:none;
    width:100%;
    left:0;
    right:0;
    top:120px;
    height:calc(100vh - 120px);
    z-index:4000;
    border:none;
  }

  .tp-filters.active{
    display:block;
  }

  .tp-grid{
    grid-template-columns:1fr;
  }

}
.tp-post-page{
    padding-top:100px;
    padding-bottom:50px;
    background:#f8fafc;
}

.tp-post-container{
    max-width:1200px;
    margin:auto;
    padding:20px;
}

.tp-post-content{
    width:100%;
}

.tp-post-content img{
    max-width:100%;
    height:auto;
}
/* REPLACE OLD LOGO CSS */

.custom-logo-link{
    display:flex;
    align-items:center;
}

.custom-logo{
    object-fit:contain;
    transition:0.3s ease;width: 150px;
}