/* =========================================
   SINGLE POST HERO (Screenshot Style)
========================================= */

body.single-post{
  --hero-overlay: rgba(39, 104, 116, 0.78); /* teal overlay jaisa screenshot */
  --container: 1200px;
  --pad: 20px;
}

/* HERO edge-to-edge */
body.single-post .tq-hero{
  position: relative;
  min-height: 40px;
  padding: 24px 0 24px;
  overflow: hidden;
  color: #fff;
}


body.single-post .tq-hero-bg-fallback{
  background: #2a7684;
  filter: none;
  transform: none;
  opacity: 1;
}

/* Content center */
body.single-post .tq-hero-inner{
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}

/* Breadcrumb top left-ish (optional) */
body.single-post .tq-hero-breadcrumb{
  text-align: left;
  font-size: 13px;
  opacity: .95;
  margin-bottom: 22px;
}

body.single-post .tq-hero-breadcrumb a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}
body.single-post .tq-hero-breadcrumb a:hover{
  text-decoration: underline;
}

/* Category (center, underline) */
body.single-post .tq-hero-cat{
  display: inline-block;
  color: #fff;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
  margin-bottom: 18px;
}

/* Title big centered */
body.single-post .tq-hero-title{
  margin: 0 auto 18px;
  font-size: 40px;
  color:white;
  line-height: 1.10;
  font-weight: 700;
  max-width: 1200px;
}

/* Meta under title (simple) */
body.single-post .tq-hero-meta{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  opacity: .95;
}

body.single-post .tq-meta-sep{
  opacity: .85;
}

/* Responsive */
@media (max-width: 1024px){
  body.single-post .tq-hero-title{ font-size: 52px; }
}

@media (max-width: 768px){
  body.single-post .tq-hero{
    padding: 26px 0 42px;
    min-height: 280px;
  }
  body.single-post .tq-hero-title{ font-size: 36px; }
  body.single-post .tq-hero-cat{ font-size: 16px; }
  body.single-post .tq-hero-breadcrumb{ font-size: 12px; }
}

/* Top block spacing */
.tq-single-top{
	margin: 18px 0 22px;
}

/* Category */
.tq-single-cat{
	display:inline-block;
	margin-bottom: 10px;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .4px;
	text-decoration: none;
}

/* Title */
.tq-single-title{
	margin: 0 0 14px;
	font-size: 34px;
	line-height: 1.18;
	font-weight: 800;
}

/* Meta row: left meta + right follow */
.tq-single-meta-row{
	display:flex;
	align-items:center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

/* Meta group */
.tq-single-meta{
	display:flex;
	flex-wrap: wrap;
	align-items:center;
	gap: 12px;
	font-size: 14px;
	opacity: .95;
}

.tq-meta-item{
	display:inline-flex;
	align-items:center;
	gap: 6px;
	white-space: nowrap;
}

.tq-meta-icon{
	width:16px;
	height:16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	opacity:.85;
}

/* Soft divider */
.tq-meta-divider{
	width: 1px;
	height: 16px;
	background: rgba(0,0,0,0.18);
}

/* Google News Follow button */
.tq-gn-follow{
	display:inline-flex;
	align-items:center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid rgba(0,0,0,0.10);
	text-decoration:none;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.tq-gn-icon{
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	opacity: .85;
}

/* Featured image */
.tq-single-featured{
	margin: 0 0 10px;
	border-radius: 14px;
	overflow: hidden;
}

.tq-single-featured img{
	width: 100%;
	height: auto;
	display: block;
}

/* Share */
.tq-share{
	margin: 24px 0;
	display:flex;
	gap: 10px;
	flex-wrap: wrap;
}

.tq-share-btn{
	display:inline-flex;
	align-items:center;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid rgba(0,0,0,0.12);
	text-decoration:none;
	font-size: 13px;
	font-weight: 600;
}

/* Mobile */
@media (max-width: 768px){
	.tq-single-title{ font-size: 28px; }
	.tq-single-meta-row{ justify-content: flex-start; }
	.tq-meta-divider{ display:none; }
}

/* -------------------------
   AUTHOR
-------------------------- */
body.single-post .tq-author{
  margin: 60px 0 20px;
  padding: 22px;
  border-radius: 16px;
  background: #373737;
  color: #fff;
  display: flex;
  gap: 18px;
  align-items: center;
}

body.single-post .tq-author__avatar img{
  border-radius: 50%;
  border: 4px solid #fff;
  width: 96px;
  height: 96px;
}

body.single-post .tq-author__name{
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

body.single-post .tq-author__bio{
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
}

/* -------------------------
   RELATED
-------------------------- */
body.single-post .tq-related{
  margin: 48px 0;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

body.single-post .tq-related__title{
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 22px;
  color: #111827;
}

body.single-post .tq-related__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

body.single-post .tq-related__item{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

body.single-post .tq-related__item:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

body.single-post .tq-related__thumb img{
  width: 100%;
  height: auto;
  display: block;
}

body.single-post .tq-related__post{
  margin: 0;
  padding: 12px 12px 16px;
  font-size: 15px;
  line-height: 1.4;
}
body.single-post .tq-related__post a{
  color: #111;
  text-decoration: none;
}
body.single-post .tq-related__post a:hover{ color:#209cee; }

/* -------------------------
   RESPONSIVE
-------------------------- */
@media (max-width: 1024px){
  body.single-post .tq-related__grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px){
  body.single-post{
    --tq-pad: 18px;
    --tq-gap: 0px;
  }

  body.single-post .tq-hero{
    padding: 60px 0 55px;
  }

  body.single-post .tq-hero__content{
    max-width: 100%;
  }

  body.single-post .tq-hero__title{
    font-size: 30px;
  }

  body.single-post .content-sidebar-wrap{
    flex-direction: column;
    gap: 40px;
  }

  body.single-post .tq-author{
    flex-direction: column;
    text-align: center;
  }
}



/* Breadcrumb bar (edge-to-edge, inner 1200px) */
.tq-breadcrumb-bar{
	width: 100%;
	background: #f8fafc;
	border-bottom: 1px solid #e5e7eb;
}

.tq-breadcrumb-inner{
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 20px;
	font-size: 13px;
}

.tq-breadcrumb-inner a{
	color: #209CEE;
	text-decoration: none;
}
.tq-breadcrumb-inner a:hover{
	text-decoration: underline;
}

/* Hero meta soft dividers */
.tq-hero-meta{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.tq-meta-divider{
	width: 1px;
	height: 16px;
	background: rgba(255,255,255,0.35);
	border-radius: 2px;
}


/* Hero meta layout */
.tq-hero-meta{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 10px;
}

/* Meta item */
.tq-meta-item{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}

/* Icons */
.tq-meta-icon{
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	opacity: .9;
}

/* Soft divider */
.tq-meta-divider{
	width: 1px;
	height: 16px;
	background: rgba(255,255,255,0.35);
}






/* ==================================================
   SINGLE POST – MOBILE RESPONSIVE FIX (ADD AT END)
================================================== */

/* Prevent overflow issues */
.single-post .content,
.single-post .entry-content,
.single-post .sidebar-primary {
  min-width: 0;
}

/* Title scaling */
@media (max-width: 900px) {
  .tq-single-title {
    font-size: 30px;
    line-height: 1.2;
  }
}

@media (max-width: 600px) {
  .tq-single-title {
    font-size: 26px;
    line-height: 1.22;
  }
}

/* Meta row responsive */
@media (max-width: 768px) {

  /* Put follow button under meta */
  .tq-single-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Meta wraps nicely */
  .tq-single-meta {
    width: 100%;
    row-gap: 10px;
    column-gap: 10px;
    flex-wrap: wrap;
  }

  /* Dividers off on mobile (clean look) */
  .tq-meta-divider {
    display: none;
  }

  /* Meta items: allow wrap */
  .tq-meta-item {
    white-space: normal;
    flex-wrap: wrap;
  }

  /* Category link inside meta not breaking line */
  .tq-meta-item a {
    word-break: break-word;
  }

  /* Follow button full width */
  .tq-gn-follow {
    width: 100%;
    justify-content: center;
  }
}

/* Featured image responsive */
@media (max-width: 768px) {
  .tq-single-featured {
    border-radius: 12px;
  }

  .tq-single-featured img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* Share buttons responsive */
@media (max-width: 768px) {
  .tq-share {
    gap: 10px;
  }

  .tq-share-btn {
    flex: 1 1 calc(50% - 10px); /* 2 per row */
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .tq-share-btn {
    flex: 1 1 100%; /* 1 per row */
  }
}

/* Sidebar stack on mobile (Genesis layouts) */
@media (max-width: 900px) {

  .single-post .content-sidebar-wrap {
    flex-direction: column;
    gap: 34px;
  }

  .single-post .content-sidebar-wrap > .content,
  .single-post .content-sidebar-wrap > .sidebar-primary {
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }
}

/* Typography on mobile for readability */
@media (max-width: 600px) {
  .single-post .entry-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .single-post .entry-content h2 {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .single-post .entry-content h3 {
    font-size: 1.15rem;
    line-height: 1.3;
  }
}



/* ==================================================
   MOBILE META: Category | Date (ONE ROW FIXED) - FIXED
================================================== */
@media (max-width: 768px){

  .tq-single-meta-row{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* one row only */
  .tq-single-meta{
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    flex-wrap: nowrap !important;
    overflow: hidden;
  }

  /* hide everything first */
  .tq-single-meta > *{
    display: none !important;
  }

  /* ✅ show ONLY category (3rd child) */
  .tq-single-meta > :nth-child(3){
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
  }

  /* ✅ show ONLY date (5th child) */
  .tq-single-meta > :nth-child(5){
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
  }

  /* ✅ divider between them (add via category item) */
  .tq-single-meta > :nth-child(3)::after{
    content: "";
    width: 1px;
    height: 14px;
    background: rgba(0,0,0,0.18);
    margin: 0 8px;
    display: inline-block;
  }

  /* icon size small */
  .tq-meta-icon{
    width: 13px;
    height: 13px;
  }

  /* long category name safe */
  .tq-single-meta > :nth-child(3) a{
    display: inline-block;
    max-width: 120px;   /* adjust if needed */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }

  /* follow button */
  .tq-gn-follow{
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 9px 12px;
    white-space: nowrap;
  }
}



/* ==================================================
   DESKTOP: Meta + Google News Follow = ONE ROW
================================================== */
@media (min-width: 769px){

  /* keep meta and follow in same row */
  .tq-single-meta-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;           /* ✅ force one row */
  }

  /* meta stays one line */
  .tq-single-meta{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;           /* ✅ no wrapping */
    overflow: hidden;
    min-width: 0;
  }

  /* keep each item in one line */
  .tq-meta-item{
    white-space: nowrap;
  }

  /* soft divider */
  .tq-meta-divider{
    display: inline-block;
    width: 1px;
    height: 16px;
    background: rgba(0,0,0,0.18);
  }

  /* Follow button: logo then text */
  .tq-gn-follow{
    display: inline-flex;
    align-items: center;
    gap: 8px;                    /* ✅ logo-text gap */
    white-space: nowrap;         /* ✅ keep in one line */
    flex: 0 0 auto;              /* ✅ don't shrink */
  }

  /* icon first */
  .tq-gn-icon{
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
  }
}

.single-post .site-inner {
    padding-top: 20px !important;
}

/* =========================
   REMOVE EXTRA TOP GAP
========================= */

.single-post .content-sidebar-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.single-post .entry-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.single-post .tq-single-top {
    margin-top: 0 !important;
    padding-top: 10px; /* halka breathing space */
}




/* =========================================
   AUTHOR BOX (Screenshot Style) - Responsive
========================================= */

.tq-author{
  position: relative;
  margin: 70px 0 26px;
  padding-top: 46px;          /* avatar space */
  text-align: center;
}

/* Dark rounded card */
.tq-author__info{
  background: #3b3b3b;
  border-radius: 22px;
  padding: 44px 18px 22px;    /* top padding for avatar overlap */
  max-width: 100%;
}

/* Avatar overlap */
.tq-author__avatar{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.tq-author__avatar img{
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  object-fit: cover;
  display: block;
  background: #fff;
}

/* Name */
.tq-author__name{
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

/* Bio (optional) */
.tq-author__bio{
  margin-top: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.6;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Make the box not too wide on big screens */
@media (min-width: 900px){
  .tq-author__info{
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* Mobile */
@media (max-width: 600px){
  .tq-author{
    margin: 58px 0 22px;
    padding-top: 42px;
  }

  .tq-author__avatar img{
    width: 78px;
    height: 78px;
  }

  .tq-author__info{
    border-radius: 18px;
    padding: 40px 14px 18px;
  }

  .tq-author__name{
    font-size: 18px;
  }

  .tq-author__bio{
    font-size: 13px;
  }
}

/* ==================================================
   AUTHOR BOX – FINAL FIX (Single Card + Center)
================================================== */

.single-post .tq-author{
  position: relative;
  margin: 70px 0 28px;
  padding-top: 48px;          /* avatar overlap space */
  text-align: center;
}

/* Avatar */
.single-post .tq-author__avatar{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.single-post .tq-author__avatar img{
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid #fff;
  display: block;
  object-fit: cover;
  background: #fff;
}

/* ✅ ONLY ONE CARD */
.single-post .tq-author__info{
  background: #3b3b3b !important;
  border-radius: 22px !important;
  padding: 50px 26px 26px !important;
  margin: 0 !important;

  display: flex;
  flex-direction: column;
  align-items: center;        /* ✅ center lock */
  justify-content: center;
  text-align: center;         /* ✅ center lock */

  box-shadow: none !important;
  border: none !important;
}

/* ✅ REMOVE ANY INNER PANEL BACKGROUND FROM THEME */
.single-post .tq-author__info *{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Name center */
.single-post .tq-author__name{
  margin: 0 !important;
  padding: 0 !important;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-align: center;
}

/* Bio center */
.single-post .tq-author__bio{
  margin: 12px auto 0 !important;
  padding: 0 !important;
  max-width: 760px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

/* Some themes wrap bio in <p> with background/padding */
.single-post .tq-author__bio p{
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Mobile */
@media (max-width: 600px){
  .single-post .tq-author{
    margin: 60px 0 24px;
    padding-top: 44px;
  }

  .single-post .tq-author__avatar img{
    width: 78px;
    height: 78px;
  }

  .single-post .tq-author__info{
    border-radius: 18px !important;
    padding: 44px 16px 18px !important;
  }

  .single-post .tq-author__name{
    font-size: 18px;
  }

  .single-post .tq-author__bio{
    font-size: 13px;
  }
}