/*
Theme Name: GeneratePress Child - GuidebyPeter
Template: generatepress
Version: 2.1.0
Text Domain: generatepress-child
*/

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy:      #0d1b2e;
  --navy-dark: #0a1520;
  --navy-mid:  #122035;
  --blue:      #1a73e8;
  --blue-h:    #1557b0;
  --blue-l:    #e8f0fe;
  --accent:    #f59e0b;
  --green:     #16a34a;
  --red:       #dc2626;
  --g50:       #f8fafc;
  --g100:      #f1f5f9;
  --g200:      #e2e8f0;
  --g500:      #64748b;
  --g700:      #334155;
  --g900:      #0f172a;
  --text:      #1e293b;
  --r:         6px;
  --rm:        10px;
  --rl:        14px;
  --rf:        9999px;
  --sh:        0 1px 3px rgba(0,0,0,.08);
  --shm:       0 4px 12px rgba(0,0,0,.10);
  --shl:       0 10px 30px rgba(0,0,0,.13);
  --tr:        .2s ease;
  --trs:       .35s ease;
  /* Aliases for template compatibility */
  --color-navy-mid:  #122035;
  --color-accent:    #f59e0b;
  --color-gray-100:  #f1f5f9;
  --color-gray-600:  #475569;
  --radius-lg:       14px;
  --container-max:   1200px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--g50); -webkit-font-smoothing: antialiased; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--blue-h); }

/* ============ GENERATEPRESS HEADER OVERRIDES ============ */
#site-header,
.site-header { background: var(--navy) !important; box-shadow: none !important; border-bottom: 1px solid rgba(255,255,255,.07) !important; }

.site-header .inside-header { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Logo / Site Title */
.main-title a,
.site-title a,
#site-header .site-title a {
  font-family: 'Sora', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-title a::before,
.site-title a::before {
  content: 'GP';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--blue);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  border-radius: var(--r);
  flex-shrink: 0;
  letter-spacing: 0;
}

/* Nav links */
.main-navigation,
#site-navigation { background: transparent !important; }

.main-navigation .main-nav ul li a,
nav.main-navigation ul li a {
  font-family: 'Inter', sans-serif !important;
  font-size: .87rem !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.82) !important;
  padding: 6px 12px !important;
  border-radius: var(--r) !important;
  transition: all var(--tr) !important;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
  color: #fff !important;
  background: rgba(255,255,255,.1) !important;
}

/* Mobile toggle */
button.menu-toggle {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: var(--r) !important;
  padding: 6px 10px !important;
}
button.menu-toggle:hover { background: rgba(255,255,255,.15) !important; }

/* ============ CATEGORY NAV BAR ============ */
.gbp-cat-nav {
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.gbp-cat-nav-inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 5px 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.gbp-cat-nav-inner::-webkit-scrollbar { display: none; }
.gbp-cat-nav-link {
  font-size: .79rem;
  font-weight: 500;
  color: rgba(255,255,255,.62) !important;
  padding: 5px 12px;
  border-radius: var(--rf);
  white-space: nowrap;
  transition: all var(--tr);
}
.gbp-cat-nav-link:hover,
.gbp-cat-nav-link.current { color: #fff !important; background: rgba(255,255,255,.11); }

/* ============ GENERATEPRESS CONTENT AREA ============ */
.site-content { background: transparent !important; padding: 0 !important; }
.content-area { background: transparent !important; }
.site-content .inside-article,
.entry-content-wrap { padding: 0 !important; margin: 0 !important; background: transparent !important; }

/* Hide GP default post header */
.single .entry-header,
.page .entry-header { display: none !important; }

/* ============ HERO SECTION ============ */
.gbp-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 28px 0 32px;
}
.gbp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  align-items: start;
}
/* === FEATURED POST (Hero) === */
.gbp-featured-post {
  position: relative;
  border-radius: var(--rl);
  overflow: hidden;
  display: block;
  height: 340px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-mid);
  text-decoration: none !important;
  transition: transform var(--trs);
}
.gbp-featured-post:hover { transform: scale(1.01); }

/* Image — GP thumbnail কে background এর মতো করা */
.gbp-featured-post img.gbp-featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trs);
  display: block;
}
.gbp-featured-post:hover img.gbp-featured-img { transform: scale(1.04); }

/* Overlay — নিচ থেকে উপরে gradient */
.gbp-featured-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top,
    rgba(8,16,28,.97) 0%,
    rgba(8,16,28,.75) 45%,
    rgba(8,16,28,.1)  75%,
    transparent 100%);
  padding: 32px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Badge row */
.gbp-featured-badge-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.gbp-featured-editors-pick {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  padding: 3px 9px;
  border-radius: var(--rf);
}

/* Title */
.gbp-featured-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.28;
  margin: 0 0 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  max-width: 560px;
}

/* Meta row */
.gbp-featured-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: .76rem;
  color: rgba(255,255,255,.65);
}
.gbp-featured-author {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.82);
  font-weight: 500;
}
.gbp-featured-author img {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.3);
  flex-shrink: 0;
  position: static !important;
  inset: auto !important;
}
.gbp-featured-sep { color: rgba(255,255,255,.3); }
.gbp-featured-score { color: var(--accent); font-weight: 600; }

.gbp-hero-sidebar { display: flex; flex-direction: column; gap: 10px; }
.gbp-hero-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--rm);
  transition: all var(--tr);
}
.gbp-hero-card:hover { background: rgba(255,255,255,.12); transform: translateX(2px); }
.gbp-hero-card-thumb {
  width: 68px; height: 56px;
  border-radius: var(--r);
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
}
.gbp-hero-card-title { font-size: .81rem; font-weight: 600; color: #fff; line-height: 1.35; margin-bottom: 3px; }
.gbp-hero-card-meta { font-size: .71rem; color: rgba(255,255,255,.48); }

/* ============ BADGE ============ */
.gbp-badge {
  display: inline-flex;
  align-items: center;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 9px;
  border-radius: var(--rf);
  margin-bottom: 5px;
}
.gbp-badge.review     { background: var(--blue);  color: #fff; }
.gbp-badge.guide      { background: #7c3aed;       color: #fff; }
.gbp-badge.comparison { background: #0891b2;       color: #fff; }
.gbp-badge.news       { background: #ea580c;       color: #fff; }
.gbp-badge.howto      { background: var(--green);  color: #fff; }

/* ============ SECTION TITLE ============ */
.gbp-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--g900);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--g200);
}
.gbp-section-title::before {
  content: '';
  display: block;
  width: 4px; height: 18px;
  background: var(--blue);
  border-radius: var(--rf);
  flex-shrink: 0;
}
.gbp-section-title a { margin-left: auto; font-size: .76rem; font-weight: 500; color: var(--blue); }

/* ============ CATEGORIES SECTION ============ */
.gbp-cat-section {
  background: #fff;
  padding: 36px 0;
  border-bottom: 1px solid var(--g200);
}
/* Support both .gbp-inner and .site-container inside cat section */
.gbp-cat-section .gbp-inner,
.gbp-cat-section .site-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.gbp-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.gbp-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px 10px;
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  text-decoration: none !important;
  transition: all var(--tr);
  text-align: center;
}
.gbp-cat-card:hover { border-color: var(--blue); background: var(--blue-l); transform: translateY(-2px); box-shadow: var(--shm); }
.gbp-cat-card .icon { font-size: 1.6rem; }
.gbp-cat-card .label { font-size: .78rem; font-weight: 600; color: var(--g700); line-height: 1.2; }
.gbp-cat-card .count { font-size: .68rem; color: var(--g500); }
.gbp-cat-card:hover .label { color: var(--blue); }

/* ============ MAIN LAYOUT ============ */
/* Support both class names */
.gbp-main-wrap,
.gbp-main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

/* ============ ARTICLE CARDS ============ */
.gbp-articles-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }

.gbp-article-card {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh);
  transition: all var(--tr);
}
.gbp-article-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shl); }

/* Support both class names for image wrapper */
.gbp-card-img-wrap,
.gbp-article-card-img { height: 170px; overflow: hidden; background: var(--g100); flex-shrink: 0; display: block; }
.gbp-card-img-wrap img,
.gbp-article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--trs); }
.gbp-article-card:hover .gbp-card-img-wrap img,
.gbp-article-card:hover .gbp-article-card-img img { transform: scale(1.04); }
.gbp-card-img-placeholder { width: 100%; height: 170px; background: var(--g100); }

/* Support both class names for card body */
.gbp-card-body,
.gbp-article-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }

/* Support both class names for card title */
.gbp-card-title,
.gbp-article-card-title {
  font-family: 'Sora', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--g900);
  line-height: 1.35;
  margin: 6px 0 7px;
  transition: color var(--tr);
}
.gbp-article-card-title a { color: var(--g900); }
.gbp-article-card:hover .gbp-card-title,
.gbp-article-card:hover .gbp-article-card-title,
.gbp-article-card:hover .gbp-article-card-title a { color: var(--blue); }

/* Support both excerpt class names */
.gbp-card-excerpt,
.gbp-article-card-excerpt { font-size: .82rem; color: var(--g500); line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Support both footer class names */
.gbp-card-footer,
.gbp-article-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--g100); }

/* Support both meta class names */
.gbp-card-meta,
.gbp-article-meta { font-size: .71rem; color: var(--g500); }

/* Support both rating class names */
.gbp-rating,
.gbp-rating-badge { display: inline-flex; align-items: center; gap: 3px; background: var(--blue-l); color: var(--blue); font-size: .74rem; font-weight: 700; padding: 2px 7px; border-radius: var(--rf); }
.gbp-rating::before { content: '★'; color: var(--accent); }

/* ============ POPULAR LIST ============ */
.gbp-popular-section { margin-top: 40px; }
.gbp-popular-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--g200); border-radius: var(--rl); overflow: hidden; box-shadow: var(--sh); }
.gbp-popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--g100);
  text-decoration: none !important;
  transition: background var(--tr);
}
.gbp-popular-item:last-child { border-bottom: none; }
.gbp-popular-item:hover { background: var(--g50); }
/* Support both number class names */
.gbp-popular-num,
.gbp-popular-number { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--g200); min-width: 30px; text-align: center; flex-shrink: 0; }
.gbp-popular-thumb { width: 56px; height: 46px; border-radius: var(--r); object-fit: cover; flex-shrink: 0; background: var(--g100); }
.gbp-popular-title { font-size: .83rem; font-weight: 600; color: var(--g900); line-height: 1.35; }
.gbp-popular-item:hover .gbp-popular-title { color: var(--blue); }
.gbp-popular-meta { font-size: .7rem; color: var(--g500); margin-top: 2px; }

/* ============ SIDEBAR ============ */
.gbp-sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; }

.gbp-widget {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: var(--sh);
}
/* Support both header class names */
.gbp-widget-hd,
.gbp-widget-header {
  font-family: 'Sora', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--g900);
  padding: 11px 16px;
  border-bottom: 1px solid var(--g100);
}

/* Author widget — support both class names */
.gbp-author-widget,
.gbp-widget-author { text-align: center; padding: 20px 16px; }
.gbp-author-avatar,
.gbp-widget-author-avatar { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--blue); margin: 0 auto 9px; object-fit: cover; background: var(--g100); display: block; }
.gbp-author-name,
.gbp-widget-author-name { font-family: 'Sora', sans-serif; font-size: .92rem; font-weight: 700; color: var(--g900); }
.gbp-author-role,
.gbp-widget-author-role { font-size: .75rem; color: var(--g500); margin-bottom: 11px; }
.gbp-author-btn,
.gbp-widget-author-btn { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--blue); border: 1px solid var(--blue); padding: 5px 13px; border-radius: var(--rf); transition: all var(--tr); }
.gbp-author-btn:hover,
.gbp-widget-author-btn:hover { background: var(--blue); color: #fff !important; }

/* Sidebar post list — support both class names */
.gbp-slist,
.gbp-sidebar-posts { padding: 4px 0; }
.gbp-slist-item,
.gbp-sidebar-post-item { display: flex; gap: 9px; padding: 9px 14px; text-decoration: none !important; transition: background var(--tr); }
.gbp-slist-item:hover,
.gbp-sidebar-post-item:hover { background: var(--g50); }
.gbp-slist-thumb,
.gbp-sidebar-post-thumb { width: 52px; height: 42px; border-radius: var(--r); object-fit: cover; flex-shrink: 0; background: var(--g100); }
.gbp-slist-title,
.gbp-sidebar-post-title { font-size: .79rem; font-weight: 600; color: var(--g900); line-height: 1.33; }
.gbp-slist-item:hover .gbp-slist-title,
.gbp-sidebar-post-item:hover .gbp-sidebar-post-title { color: var(--blue); }
.gbp-slist-meta,
.gbp-sidebar-post-meta { font-size: .69rem; color: var(--g500); margin-top: 2px; }

/* Topics — support both class names */
.gbp-topics { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.gbp-topic,
.gbp-topic-tag { display: inline-block; padding: 4px 10px; background: var(--g100); border: 1px solid var(--g200); border-radius: var(--rf); font-size: .74rem; font-weight: 500; color: var(--g700); text-decoration: none !important; transition: all var(--tr); }
.gbp-topic:hover,
.gbp-topic-tag:hover { background: var(--blue); border-color: var(--blue); color: #fff !important; }

/* Newsletter widget — support both class names */
.gbp-nl-widget,
.gbp-newsletter-widget {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  border-radius: var(--rl);
  padding: 20px 16px;
}
.gbp-nl-widget h4,
.gbp-newsletter-widget h4 { font-family: 'Sora', sans-serif; font-size: .92rem; font-weight: 700; color: #fff; margin: 0 0 5px; }
.gbp-nl-widget p,
.gbp-newsletter-widget p { font-size: .78rem; color: rgba(255,255,255,.68); margin: 0 0 12px; }
.gbp-nl-widget input,
.gbp-newsletter-widget input { width: 100%; padding: 8px 12px; border-radius: var(--rm); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.09); color: #fff; font-size: .82rem; margin-bottom: 7px; font-family: inherit; }
.gbp-nl-widget input::placeholder,
.gbp-newsletter-widget input::placeholder { color: rgba(255,255,255,.42); }
.gbp-nl-widget input:focus,
.gbp-newsletter-widget input:focus { outline: none; background: rgba(255,255,255,.14); }
.gbp-nl-btn,
.gbp-newsletter-widget button { width: 100%; background: var(--blue); color: #fff; border: none; padding: 9px; border-radius: var(--rm); font-weight: 700; font-size: .83rem; cursor: pointer; font-family: inherit; transition: all var(--tr); }
.gbp-nl-btn:hover,
.gbp-newsletter-widget button:hover { background: var(--blue-h); }

/* ============ CATEGORY PAGE HERO ============ */
.gbp-cat-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 36px 0 28px;
}
.gbp-cat-hero .gbp-inner,
.gbp-cat-hero .site-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.gbp-cat-hero h1 { font-family: 'Sora', sans-serif; font-size: 1.9rem; font-weight: 800; color: #fff; margin: 8px 0 8px; line-height: 1.2; }
.gbp-cat-hero p { font-size: .92rem; color: rgba(255,255,255,.68); max-width: 480px; margin-bottom: 12px; }
.gbp-cat-hero-icon { font-size: 2rem; }
.gbp-cat-count { display: inline-flex; align-items: center; background: rgba(255,255,255,.1); color: rgba(255,255,255,.82); font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: var(--rf); border: 1px solid rgba(255,255,255,.14); }
.gbp-breadcrumb { display: flex; align-items: center; gap: 5px; font-size: .73rem; color: rgba(255,255,255,.48); margin-bottom: 12px; }
.gbp-breadcrumb a { color: rgba(255,255,255,.62) !important; }
.gbp-breadcrumb a:hover { color: #fff !important; }

/* Category layout — support both class names */
.gbp-cat-wrap,
.gbp-cat-layout { max-width: 1200px; margin: 0 auto; padding: 28px 16px; display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }

/* Category article grid — support both class names */
.gbp-cat-articles,
.gbp-cat-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }

/* ============ PAGINATION ============ */
.gbp-pagination { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 28px 0 8px; flex-wrap: wrap; }
.gbp-pagination a,
.gbp-pagination span,
.gbp-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: var(--rm); font-size: .83rem; font-weight: 600;
  border: 1px solid var(--g200); background: #fff; color: var(--g700);
  transition: all var(--tr);
}
.gbp-pagination a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }
.gbp-pagination .current,
.gbp-pagination span.current { background: var(--blue); color: #fff; border-color: var(--blue); }
/* paginate_links with type=list outputs ul>li>a */
.gbp-pagination ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 7px; flex-wrap: wrap; }
.gbp-pagination ul li { display: flex; }

/* ============ SINGLE POST HERO ============ */
.gbp-single-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 32px 0 24px;
}
.gbp-single-hero .gbp-inner,
.gbp-single-hero .site-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.gbp-single-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 12px 0 14px;
  max-width: 760px;
}
.gbp-single-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.gbp-single-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gbp-single-author { display: flex; align-items: center; gap: 7px; text-decoration: none !important; }
.gbp-single-author img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.28); object-fit: cover; background: var(--g200); }
.gbp-single-author span { font-size: .81rem; font-weight: 600; color: #fff; }
.gbp-single-meta-item { font-size: .76rem; color: rgba(255,255,255,.58); display: flex; align-items: center; gap: 3px; }
.gbp-stars { color: var(--accent); font-size: .83rem; }

/* ============ SINGLE POST LAYOUT ============ */
/* Support both class names */
.gbp-single-wrap,
.gbp-single-layout { max-width: 1200px; margin: 0 auto; padding: 28px 16px; display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }

/* Single main content area */
.gbp-single-content-area { min-width: 0; }

/* Score box */
.gbp-score-box {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--sh);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
}
.gbp-score-main { text-align: center; }
.gbp-score-num { font-family: 'Sora', sans-serif; font-size: 3rem; font-weight: 800; color: var(--blue); line-height: 1; }
.gbp-score-denom { font-size: 1rem; color: var(--g500); font-weight: 400; }
.gbp-score-stars { color: var(--accent); font-size: 1rem; margin: 7px 0; letter-spacing: 1px; }
.gbp-score-lbl { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--g500); }
.gbp-score-bars { display: flex; flex-direction: column; gap: 9px; }
.gbp-bar-row { display: grid; grid-template-columns: 95px 1fr 34px; gap: 8px; align-items: center; }
.gbp-bar-label { font-size: .78rem; color: var(--g700); }
.gbp-bar-track { height: 6px; background: var(--g100); border-radius: var(--rf); overflow: hidden; }
.gbp-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), #60a5fa); border-radius: var(--rf); transition: width 1s ease; }
.gbp-bar-val { font-size: .78rem; font-weight: 700; color: var(--g700); text-align: right; }

/* Article content */
.gbp-article-content {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 28px;
  box-shadow: var(--sh);
}
.gbp-article-content h2 { font-family: 'Sora', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--g900); margin: 24px 0 12px; padding-top: 8px; border-top: 2px solid var(--g100); }
.gbp-article-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.gbp-article-content h3 { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: var(--g900); margin: 18px 0 9px; }
.gbp-article-content p { font-size: .92rem; line-height: 1.75; color: var(--text); margin-bottom: 13px; }
.gbp-article-content ul, .gbp-article-content ol { padding-left: 20px; margin-bottom: 13px; }
.gbp-article-content li { font-size: .92rem; line-height: 1.7; margin-bottom: 5px; }
.gbp-article-content a { color: var(--blue); text-decoration: underline; }

/* Specs table */
.gbp-specs-table { width: 100%; border-collapse: collapse; border-radius: var(--rm); overflow: hidden; border: 1px solid var(--g200); margin: 16px 0; font-size: .84rem; }
.gbp-specs-table tr:nth-child(even) { background: var(--g50); }
.gbp-specs-table td { padding: 9px 13px; border-bottom: 1px solid var(--g100); vertical-align: top; }
.gbp-specs-table td:first-child { font-weight: 600; color: var(--g700); width: 130px; }

/* Pros Cons */
.gbp-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.gbp-pros { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--rm); padding: 13px 16px; }
.gbp-cons { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--rm); padding: 13px 16px; }
.gbp-pros h4 { font-family: 'Sora', sans-serif; font-size: .84rem; font-weight: 700; color: var(--green); margin: 0 0 7px; }
.gbp-cons h4 { font-family: 'Sora', sans-serif; font-size: .84rem; font-weight: 700; color: var(--red); margin: 0 0 7px; }
.gbp-pros ul, .gbp-cons ul { list-style: none; padding: 0; margin: 0; }
.gbp-pros li, .gbp-cons li { font-size: .81rem; padding: 3px 0; display: flex; align-items: flex-start; gap: 5px; color: var(--g700); }
.gbp-pros li::before { content: '+'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.gbp-cons li::before { content: '−'; color: var(--red); font-weight: 700; flex-shrink: 0; }

/* Verdict */
.gbp-verdict { background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%); border-radius: var(--rl); padding: 24px; color: #fff; margin: 20px 0; }
.gbp-verdict h2 { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: #fff !important; border: none !important; margin: 0 0 10px !important; padding: 0 !important; }
.gbp-verdict p { color: rgba(255,255,255,.8); font-size: .88rem; margin-bottom: 10px; }
.gbp-verdict .who-buy { background: rgba(255,255,255,.1); border-radius: var(--rm); padding: 11px; font-size: .83rem; color: rgba(255,255,255,.85); }
.gbp-verdict .who-buy strong { color: #fff; }

/* Share */
.gbp-share { display: flex; align-items: center; gap: 7px; padding: 14px 0; border-top: 1px solid var(--g100); flex-wrap: wrap; }
.gbp-share-label { font-size: .78rem; font-weight: 600; color: var(--g500); }
.gbp-share-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: var(--rf); font-size: .76rem; font-weight: 600; color: #fff !important; transition: all var(--tr); }
.gbp-share-btn.fb { background: #1877f2; }
.gbp-share-btn.tw { background: #000; }
.gbp-share-btn.pt { background: #e60023; }
.gbp-share-btn:hover { opacity: .85; transform: translateY(-1px); }

/* Author box */
.gbp-author-box { background: var(--navy); border-radius: var(--rl); padding: 24px; margin: 20px 0; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.gbp-author-box img { width: 66px; height: 66px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); object-fit: cover; background: var(--g200); }
.gbp-author-box-lbl { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.42); margin-bottom: 2px; }
.gbp-author-box-name { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 7px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gbp-author-tag { font-size: .65rem; background: rgba(26,115,232,.32); color: #93c5fd; padding: 2px 7px; border-radius: var(--rf); font-weight: 600; }
.gbp-author-box-bio { font-size: .81rem; color: rgba(255,255,255,.68); line-height: 1.65; margin-bottom: 11px; }
.gbp-author-box-links { display: flex; gap: 7px; flex-wrap: wrap; }
.gbp-author-box-link { display: inline-flex; align-items: center; padding: 5px 10px; background: rgba(255,255,255,.09); color: rgba(255,255,255,.78) !important; border-radius: var(--rf); font-size: .74rem; font-weight: 600; text-decoration: none !important; border: 1px solid rgba(255,255,255,.13); transition: all var(--tr); }
.gbp-author-box-link:hover { background: rgba(255,255,255,.16); color: #fff !important; }

/* Related */
.gbp-related { padding: 24px 0 0; }
.gbp-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }

/* ============ AUTHOR SECTION ============ */
.gbp-author-section { background: var(--navy); padding: 48px 0; }
.gbp-author-section-inner { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; max-width: 780px; margin: 0 auto; padding: 0 16px; }
.gbp-author-section-inner img { width: 88px; height: 88px; border-radius: 50%; border: 4px solid rgba(255,255,255,.18); object-fit: cover; background: var(--g200); }
.gbp-author-section h2 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin: 0 0 3px; }
.gbp-author-section h3 { font-family: 'Sora', sans-serif; font-size: 1.55rem; font-weight: 800; color: #fff; margin: 0 0 7px; }
.gbp-author-section p { font-size: .86rem; color: rgba(255,255,255,.68); line-height: 1.65; margin: 0 0 12px; }
.gbp-author-stats { display: flex; gap: 28px; margin-bottom: 14px; }
.gbp-stat-val { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 800; color: #fff; }
.gbp-stat-lbl { font-size: .7rem; color: rgba(255,255,255,.48); }
.gbp-author-links { display: flex; gap: 7px; flex-wrap: wrap; }
.gbp-author-link { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.82) !important; border-radius: var(--rf); font-size: .79rem; font-weight: 600; text-decoration: none !important; transition: all var(--tr); }
.gbp-author-link:hover { background: rgba(255,255,255,.18); color: #fff !important; }
.gbp-author-link.primary { background: var(--blue); border-color: var(--blue); color: #fff !important; }
.gbp-author-link.primary:hover { background: var(--blue-h); }

/* ============ NEWSLETTER SECTION ============ */
/* Support both class names */
.gbp-nl-section,
.gbp-newsletter-section { background: var(--g50); padding: 48px 0; border-top: 1px solid var(--g200); text-align: center; }
.gbp-nl-section h2,
.gbp-newsletter-section h2 { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--g900); margin: 0 0 5px; }
.gbp-nl-section p,
.gbp-newsletter-section p { font-size: .9rem; color: var(--g500); margin: 0 0 20px; }
.gbp-nl-section .site-container,
.gbp-newsletter-section .site-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Support both form class names */
.gbp-nl-form,
.gbp-newsletter-inline { display: flex; gap: 7px; max-width: 440px; margin: 0 auto 7px; }
.gbp-nl-form input,
.gbp-newsletter-inline input { flex: 1; padding: 11px 14px; border: 1px solid var(--g200); border-radius: var(--rf); font-size: .86rem; background: #fff; color: var(--text); font-family: inherit; }
.gbp-nl-form input:focus,
.gbp-newsletter-inline input:focus { outline: none; border-color: var(--blue); }
.gbp-nl-form button,
.gbp-newsletter-inline button { background: var(--blue); color: #fff; border: none; padding: 11px 20px; border-radius: var(--rf); font-weight: 700; font-size: .83rem; cursor: pointer; white-space: nowrap; font-family: inherit; transition: all var(--tr); }
.gbp-nl-form button:hover,
.gbp-newsletter-inline button:hover { background: var(--blue-h); transform: translateY(-1px); }
.gbp-nl-note,
.gbp-newsletter-note { font-size: .71rem; color: var(--g500); }

/* ============ FOOTER ============ */
.site-footer,
#site-footer { background: var(--navy) !important; color: rgba(255,255,255,.58); border-top: none !important; }
.site-footer .inside-footer { display: none; }

.gbp-footer { background: var(--navy); padding: 44px 0 20px; border-top: 1px solid rgba(255,255,255,.07); }
.gbp-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.gbp-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 28px; }
.gbp-footer-brand-name { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.gbp-footer-brand-name::before { content: 'GP'; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--blue); color: #fff; font-size: .62rem; font-weight: 800; border-radius: var(--r); }
.gbp-footer-brand p { font-size: .78rem; color: rgba(255,255,255,.46); line-height: 1.65; margin: 0; }
.gbp-footer-col h4 { font-family: 'Sora', sans-serif; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.88); margin: 0 0 12px; }
.gbp-footer-col ul { list-style: none; padding: 0; margin: 0; }
.gbp-footer-col li { margin-bottom: 7px; }
.gbp-footer-col a { font-size: .79rem; color: rgba(255,255,255,.48) !important; text-decoration: none !important; transition: color var(--tr); }
.gbp-footer-col a:hover { color: rgba(255,255,255,.88) !important; }
.gbp-footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; }
.gbp-footer-bottom p { font-size: .73rem; color: rgba(255,255,255,.34); margin: 0; }
.gbp-footer-bottom a { font-size: .73rem; color: rgba(255,255,255,.4) !important; text-decoration: underline !important; }
.gbp-footer-bottom a:hover { color: rgba(255,255,255,.72) !important; }

/* Hide GP default footer bar */
.footer-bar { display: none !important; }

/* ============ RESPONSIVE TABLET ============ */
@media (max-width: 1024px) {
  .gbp-hero-inner { grid-template-columns: 1fr 240px; }
  .gbp-cat-grid { grid-template-columns: repeat(3,1fr); }
  .gbp-main-wrap, .gbp-main-layout,
  .gbp-cat-wrap, .gbp-cat-layout,
  .gbp-single-wrap, .gbp-single-layout { grid-template-columns: 1fr 260px; gap: 24px; }
  .gbp-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .gbp-related-grid { grid-template-columns: repeat(2,1fr); }
}

/* ============ RESPONSIVE MOBILE ============ */
@media (max-width: 768px) {
  .gbp-hero-inner { grid-template-columns: 1fr; }
  .gbp-hero-sidebar { display: none; }
  .gbp-featured-post { height: 220px; }
  .gbp-featured-title { font-size: 1.05rem; }

  .gbp-main-wrap, .gbp-main-layout,
  .gbp-cat-wrap, .gbp-cat-layout,
  .gbp-single-wrap, .gbp-single-layout { grid-template-columns: 1fr; padding: 20px 12px; }

  .gbp-articles-grid,
  .gbp-cat-articles,
  .gbp-cat-grid-2 { grid-template-columns: 1fr; }

  .gbp-sidebar { position: static; }
  .gbp-cat-hero h1 { font-size: 1.4rem; }
  .gbp-single-title { font-size: 1.3rem; }

  .gbp-score-box { grid-template-columns: 1fr; text-align: center; }
  .gbp-bar-row { grid-template-columns: 80px 1fr 30px; }
  .gbp-pros-cons { grid-template-columns: 1fr; }
  .gbp-author-box { grid-template-columns: 1fr; text-align: center; }
  .gbp-author-box-links { justify-content: center; }
  .gbp-related-grid { grid-template-columns: 1fr; }

  .gbp-cat-grid { grid-template-columns: repeat(3,1fr); }
  .gbp-author-section-inner { grid-template-columns: 1fr; text-align: center; }
  .gbp-author-stats { justify-content: center; }
  .gbp-author-links { justify-content: center; }
  .gbp-nl-form,
  .gbp-newsletter-inline { flex-direction: column; }
  .gbp-nl-form button,
  .gbp-newsletter-inline button { width: 100%; }
  .gbp-footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .gbp-footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gbp-cat-grid { grid-template-columns: repeat(2,1fr); }
  .gbp-single-title { font-size: 1.15rem; }
  .gbp-footer-grid { grid-template-columns: 1fr; }
  .gbp-card-img-wrap,
  .gbp-article-card-img { height: 150px; }
}

/* ============ GP CONTENT WRAPPER NEUTRALIZE ============ */
/* GP এর .site-content ও .content-area কে সম্পূর্ণ flatten করা */
.site-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}
.content-area {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
.site-content .inside-article {
  padding: 0 !important;
}
/* GP custom container override */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
/* Dummy divs hide করা */
.gbp-dummy {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}
/* Newsletter section inner */
.gbp-nl-section-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============ GP WRAPPER OVERRIDE ============ */
/* .gbp-page-wrap GP এর .content-area থেকে বের হয়ে full-width নেবে */
.site-content,
#content { padding-top: 0 !important; padding-bottom: 0 !important; }

/* content-area ও primary কে invisible container বানাও */
.content-area,
#primary {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* GP এর inside-article wrapper neutralize */
.inside-article,
.entry-header,
.entry-content,
.entry-summary,
.entry-footer {
  padding: 0 !important;
  margin: 0 !important;
}

/* GP এর archive/post title সরাও */
.page-header { display: none !important; }

/* .gbp-page-wrap কে viewport full-width করো */
.gbp-page-wrap {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  left: 0;
}

/* GP এর inside-footer hide করো — আমাদের custom footer আছে */
.inside-footer { display: none !important; }
.footer-bar { display: none !important; }

/* GP এর site-footer background ঠিক করা */
.site-footer,
#site-footer {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}

/* Site container helper */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Newsletter section inner */
.gbp-nl-section-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

/* ============ PAGE TEMPLATE ============ */

/* Page Hero — single hero এর মতো কিন্তু সহজ */
.gbp-page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 32px 0 28px;
}
.gbp-page-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 10px 0 12px;
  max-width: 760px;
}
.gbp-page-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page Layout — single wrap এর মতো grid */
.gbp-page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}
.gbp-page-content-area { min-width: 0; }

/* Page article content */
.gbp-page-article {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 32px;
  box-shadow: var(--sh);
}

/* Page এর headings */
.gbp-page-article h1,
.gbp-page-article h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--g900);
  margin: 28px 0 12px;
  padding-top: 10px;
  border-top: 2px solid var(--g100);
}
.gbp-page-article h1:first-child,
.gbp-page-article h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.gbp-page-article h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--g900);
  margin: 20px 0 10px;
}
.gbp-page-article h4 {
  font-family: 'Sora', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--g700);
  margin: 16px 0 8px;
}
.gbp-page-article p {
  font-size: .93rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}
.gbp-page-article ul,
.gbp-page-article ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
.gbp-page-article li {
  font-size: .93rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 6px;
}
.gbp-page-article a { color: var(--blue); text-decoration: underline; }
.gbp-page-article a:hover { color: var(--blue-h); }
.gbp-page-article strong { font-weight: 600; color: var(--g900); }

/* Page links (multi-page) */
.gbp-page-links {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--g100);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: .83rem;
  color: var(--g500);
}
.gbp-page-links span a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--rm);
  background: var(--blue);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
}

/* Comments section */
.gbp-page-comments {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 28px;
  box-shadow: var(--sh);
}

/* GP এর is_page() তে gbp_is_custom_page() false হয়
   তাই page এর জন্য আলাদা করে content-area full করতে হবে */
.page-template-default .content-area,
.page .content-area { width: 100% !important; max-width: 100% !important; float: none !important; }

/* Responsive */
@media (max-width: 1024px) {
  .gbp-page-layout { grid-template-columns: 1fr 260px; gap: 24px; }
}
@media (max-width: 768px) {
  .gbp-page-layout { grid-template-columns: 1fr; padding: 20px 12px; }
  .gbp-page-title { font-size: 1.35rem; }
  .gbp-page-article { padding: 20px 16px; }
  .gbp-sidebar { position: static; }
}
@media (max-width: 480px) {
  .gbp-page-title { font-size: 1.15rem; }
}
