/* Starglow Blog Tabs Styles */
*,
::after,
::before {
  box-sizing: border-box;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body.wp-singular {
  background-color: #f6f9ff;
}

/* Search Section Styling Bulletproof */
.gb-blog-search-container {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.gb-search-box {
  position: relative;
  width: 100%;
  max-width: 650px;
  display: flex;
  align-items: center;
  background: #ffffff !important;
  border-radius: 50px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 4px 6px 4px 22px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box !important;
}

.gb-search-box:focus-within {
  border-color: #184898 !important;
  box-shadow: 0 6px 20px rgba(24, 72, 152, 0.15) !important;
}

.gb-search-box input#gb-blog-search {
  flex: 1;
  width: 100% !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 15px !important;
  color: #1e293b !important;
  padding: 10px 10px 10px 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.gb-search-box button#gb-blog-search-submit {
  background: #184898 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 10px 28px !important;
  border-radius: 50px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(24, 72, 152, 0.3) !important;
  white-space: nowrap !important;
  margin: 0 !important;
  position: static !important;
  transform: none !important;
}

.gb-search-box button#gb-blog-search-submit:hover {
  background: #103474 !important;
  transform: scale(1.02) !important;
}


/* Grid */
/* Grid */
.gb-posts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gb-blog-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.gb-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.gb-card-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}

.gb-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.gb-card-image-wrap img,
.gb-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  background: #e2e8f0;
}

.gb-blog-card:hover .gb-card-image-wrap img {
  transform: scale(1.05);
}

/* Category Badge Pill on top-right of image */
.gb-card-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #184898;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* Card Body */
.gb-card-body {
  padding: 22px 20px 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gb-card-title {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.gb-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gb-card-title a:hover {
  color: #1a4f9c;
}

.gb-card-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Read More Link */
.gb-card-readmore {
  font-size: 12px;
  font-weight: 800;
  color: #f28200;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
  margin-top: auto;
}

.gb-card-readmore:hover {
  color: #e65c00;
  transform: translateX(3px);
}

/* Infinite Loader & Messages */
.gb-infinite-loader {
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.gb-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #132091;
    border-radius: 50%;
    animation: gb-spin 0.8s linear infinite;
}

.gb-no-more-msg, .gb-no-results {
    text-align: center;
    padding: 30px;
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
}


/* Single Post Page Premium Styling (3-Column Layout, Banner & Sticky Sidebars) */
.gb-single-page-wrapper {
  background: #ffffff;
  min-height: 100vh;
}

/* Banner Header Styling */
.gb-single-banner {
  background: linear-gradient(135deg, #103474 0%, #1a4f9c 100%);
  padding: 60px 20px 45px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.05);
}

.gb-single-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.gb-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.gb-single-banner .gb-banner-title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
  font-family: inherit;
}

.gb-banner-meta-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.gb-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.gb-pill-cat {
  color: #ffb834;
}

.gb-pill-icon {
  display: inline-block;
  flex-shrink: 0;
}

/* 3-Column Grid Container */
.gb-main-body-cols-3 {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 35px;
  padding: 40px 20px 80px;
  max-width: 1380px;
  margin: 0 auto;
  align-items: start;
}

/* Sticky Sidebars Base */
.gb-sidebar-sticky {
  position: sticky;
  top: 25px;
  height: fit-content;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Right Sidebar - Non-sticky so widgets never get cut off or hidden */
.gb-post-sidebar-right .gb-sidebar-sticky {
  position: static !important;
  max-height: none !important;
  overflow-y: visible !important;
}

.gb-sidebar-sticky::-webkit-scrollbar {
  width: 4px;
}
.gb-sidebar-sticky::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Left Sidebar - Table of Contents Card */
.gb-toc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.gb-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  background: #fafbfc;
  cursor: pointer;
  user-select: none;
}

.gb-toc-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.gb-toc-chevron {
  display: flex;
  align-items: center;
  color: #64748b;
  transition: transform 0.3s ease;
}

.gb-toc-card.collapsed .gb-toc-chevron {
  transform: rotate(180deg);
}

.gb-toc-card.collapsed .gb-toc-body {
  display: none;
}

.gb-toc-body {
  padding: 14px 16px;
}

.gb-toc-tree {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gb-toc-item {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.gb-toc-item:last-child {
  margin-bottom: 0;
}

.gb-toc-level-h3 {
  padding-left: 14px;
}

.gb-toc-link {
  display: flex;
  gap: 6px;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.gb-toc-num {
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
}

.gb-toc-text {
  color: #334155;
}

.gb-toc-link:hover,
.gb-toc-link.active {
  color: #1a4f9c;
}

.gb-toc-link.active .gb-toc-text,
.gb-toc-link.active .gb-toc-num {
  color: #1a4f9c;
  font-weight: 700;
}

.gb-toc-empty {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* Center Column - Article */
.gb-post-content-column {
  width: 100%;
  min-width: 0;
}

.gb-content-feature-image {
  margin-bottom: 25px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.gb-content-feature-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Article Meta Row */
.gb-article-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
  flex-wrap: wrap;
}

.gb-art-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gb-art-meta-item svg {
  color: #f28200;
}

/* Content Typography & Tables */
.gb-entry-content {
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
}

.gb-entry-content h1,
.gb-entry-content h2,
.gb-entry-content h3,
.gb-entry-content h4 {
  color: #1a4f9c;
  font-weight: 700;
  line-height: 1.3;
}

.gb-entry-content h2 {
  font-size: 24px;
  margin: 35px 0 16px;
}

.gb-entry-content h3 {
  font-size: 19px;
  margin: 28px 0 14px;
}

.gb-entry-content p {
  margin-bottom: 22px;
}

.gb-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 13px;
  background: #ffffff;
}

.gb-entry-content table th,
.gb-entry-content table td {
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  text-align: left;
}

.gb-entry-content table th {
  background-color: #f8fafc;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.gb-entry-content table tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Right Sidebar - Widgets */
.gb-quote-widget {
  background: #184898;
  border-radius: 12px;
  padding: 22px;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(24, 72, 152, 0.2);
  margin-bottom: 30px;
}

.gb-quote-header h3 {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 18px 0;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.gb-quote-form .gb-form-field {
  margin-bottom: 12px;
}

.gb-quote-form input[type="text"],
.gb-quote-form input[type="number"],
.gb-quote-form input[type="email"],
.gb-quote-form input[type="tel"],
.gb-quote-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13px;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.gb-quote-form input:focus,
.gb-quote-form textarea:focus {
  border-color: #f28200;
  box-shadow: 0 0 0 2px rgba(242, 130, 0, 0.2);
}

.gb-quote-form textarea {
  resize: vertical;
  min-height: 70px;
}

.gb-file-field input[type="file"] {
  font-size: 12px;
  background: #ffffff;
  color: #475569;
  padding: 6px 10px;
  border-radius: 4px;
  width: 100%;
  border: 1px solid #cbd5e1;
}

.gb-quote-submit {
  width: 100%;
  background: linear-gradient(180deg, #f7931e 0%, #e65c00 100%);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(230, 92, 0, 0.3);
}

.gb-quote-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 92, 0, 0.45);
}

/* Sidebar Widgets (Categories & Recent Posts) */
.gb-sidebar-widget {
  margin-bottom: 30px;
  background: #ffffff;
  border-radius: 8px;
}

.gb-widget-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.gb-title-bar {
  color: #f28200;
  font-weight: 900;
  font-size: 16px;
}

.gb-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gb-cat-list li {
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 0;
  font-size: 13px;
}

.gb-cat-list li:last-child {
  border-bottom: none;
}

.gb-cat-list li a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: block;
}

.gb-cat-list li a:hover {
  color: #1a4f9c;
  padding-left: 4px;
}

/* Recent Posts List */
.gb-recent-post-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.gb-recent-post-item:last-child {
  margin-bottom: 0;
}

.gb-recent-post-thumb {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  display: block;
}

.gb-recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gb-recent-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #cbd5e1;
}

.gb-recent-post-info {
  flex: 1;
  min-width: 0;
}

.gb-recent-post-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 5px 0;
}

.gb-recent-post-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gb-recent-post-title a:hover {
  color: #1a4f9c;
}

.gb-recent-post-meta {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
}

/* Responsive Media Queries */
@media (max-width: 1150px) {
  .gb-main-body-cols-3 {
    grid-template-columns: 240px minmax(0, 1fr) 270px;
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .gb-main-body-cols-3 {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 15px 60px;
  }

  .gb-sidebar-sticky {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .gb-post-sidebar-left,
  .gb-post-sidebar-right {
    width: 100%;
  }

  .gb-single-banner .gb-banner-title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .gb-single-banner {
    padding: 40px 15px 30px;
  }

  .gb-single-banner .gb-banner-title {
    font-size: 20px;
  }

  .gb-entry-content h2 {
    font-size: 20px;
  }

  .gb-entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}


@keyframes gb-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .gb-modal-inner {
    padding: 40px 20px;
  }
  .gb-single-title {
    font-size: 28px;
  }
}

@media (max-width: 992px) {
  .gb-posts-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gb-posts-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .gb-tabs-list {
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .gb-banner-title {
    font-size: 22px !important;
    line-height: 1.25;
  }
  .gb-content-feature-image {
    border-radius: 10px;
  }
  .gb-content-feature-image img {
    max-height: 280px;
  }
  .gb-entry-content h2 {
    font-size: 19px !important;
    margin: 30px 0 15px !important;
  }
  .gb-entry-content {
    font-size: 16px;
    width: 100%;
  }

  .gb-single-page-wrapper,
  .gb-blog-tabs-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .gb-entry-content p,
  .gb-entry-content ul,
  .gb-entry-content li {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .gb-entry-content ul {
    padding-left: 15px;
  }
  .gb-entry-content li {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .gb-banner-title {
    font-size: 20px !important;
  }
  .gb-content-feature-image {
    border-radius: 8px;
  }
  .gb-content-feature-image img {
    max-height: 200px;
  }
  .gb-entry-content h2 {
    font-size: 19px !important;
  }
  .gb-banner-cta p {
    font-size: 15px;
    margin-bottom: 5px;
  }
}

/* Category Archive Styles */
.gb-archive-wrapper {
    background: #fff;
}

.gb-archive-banner {
    padding-bottom: 80px;
}

.gb-back-link {
    text-decoration: none;
    color: #132091;
    transition: opacity 0.3s ease;
}

.gb-back-link:hover {
    opacity: 0.7;
}

.gb-sep {
    margin: 0 10px;
    color: #cbd5e1;
}

.gb-archive-desc {
    max-width: 700px;
    margin: 20px auto 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

.gb-archive-content-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gb-no-posts-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
}

.gb-no-posts-found p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 25px;
}

/* Pagination Styles */
.gb-pagination-wrapper {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.gb-pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.gb-pagination-wrapper .page-numbers:hover {
  border-color: #184898;
  color: #184898;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 72, 152, 0.15);
}

.gb-pagination-wrapper .page-numbers.current {
  background: #184898;
  border-color: #184898;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(24, 72, 152, 0.3);
}
.gb-pagination-wrapper .page-numbers.dots {
  border: none;
  background: transparent;
  box-shadow: none;
}
.gb-category-section-wrapper {
    margin-bottom: 80px;
}

.gb-category-section-wrapper:last-child {
    margin-bottom: 0;
}

.gb-category-header.gb-header-link-only {
    justify-content: flex-end;
}

@media (max-width: 768px) {
  .gb-posts-row {
    grid-template-columns: 1fr;
  }
}
