/* ============================================================
   GIGGRABBERS BLOG — SEO & LLMO OPTIMIZED STYLESHEET
   blog-seo.css  |  Include AFTER frontend.css
   ============================================================ */

/* ---- Reset helpers ---- */
.gb-blog *,
.gb-blog *::before,
.gb-blog *::after { box-sizing: border-box; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.gb-breadcrumb {
    background: #fff;
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
    padding: 7px 0;
    font-size: 12px;
    color: #999;
}
.gb-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.gb-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
    color: #aaa;
}
.gb-breadcrumb a {
    color: #3a66a5;
    text-decoration: none;
}
.gb-breadcrumb a:hover { text-decoration: underline; }
.gb-breadcrumb [aria-current="page"] { color: #333; font-weight: 500; }

/* ============================================================
   BLOG PAGE HERO HEADER
   ============================================================ */
.gb-blog-header {
    background: linear-gradient(135deg, #1a2a4a 0%, #2d4a8a 60%, #3a66a5 100%);
    color: #fff;
    padding: 64px 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.gb-blog-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 40px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.gb-blog-header h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
    line-height: 1.2;
}
.gb-blog-header p {
    font-size: 17px;
    opacity: 0.85;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* ---- Search bar ---- */
.gb-search-wrap {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.gb-search-wrap input[type="text"] {
    width: 100%;
    padding: 14px 52px 14px 20px;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    color: #333;
}
.gb-search-wrap button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #3a66a5;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.gb-search-wrap button:hover { background: #2d4a8a; }

/* ============================================================
   CATEGORY FILTER TABS
   ============================================================ */
.gb-cat-bar {
    background: #fff;
    border-bottom: 2px solid #f0f2f5;
    padding: 0;
    position: sticky;
    top: 58px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.gb-cat-bar__inner {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.gb-cat-bar__inner::-webkit-scrollbar { display: none; }
.gb-cat-btn {
    white-space: nowrap;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gb-cat-btn:hover { color: #3a66a5; }
.gb-cat-btn.active {
    color: #3a66a5;
    border-bottom-color: #3a66a5;
}

/* ============================================================
   FEATURED POST HERO
   ============================================================ */
.gb-featured {
    margin: 40px 0 32px;
}
.gb-featured__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    min-height: 360px;
    transition: box-shadow 0.25s;
}
.gb-featured__card:hover { box-shadow: 0 8px 36px rgba(0,0,0,0.16); }
.gb-featured__img {
    background: #dde4f0;
    overflow: hidden;
    position: relative;
}
.gb-featured__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.gb-featured__card:hover .gb-featured__img img { transform: scale(1.04); }
.gb-featured__body {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gb-badge {
    display: inline-block;
    background: #e8efff;
    color: #3a66a5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.gb-badge--featured {
    background: #fff3e0;
    color: #e57c00;
}
.gb-featured__title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: #1a2a4a;
    margin: 0 0 14px;
}
.gb-featured__title a {
    color: inherit;
    text-decoration: none;
}
.gb-featured__title a:hover { color: #3a66a5; }
.gb-featured__excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.65;
    margin: 0 0 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gb-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
}
.gb-meta__author {
    font-weight: 600;
    color: #444;
}
.gb-meta i { margin-right: 4px; }

/* ============================================================
   READ MORE BUTTON
   ============================================================ */
.gb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    border: none;
}
.gb-btn--primary {
    background: #3a66a5;
    color: #fff;
}
.gb-btn--primary:hover {
    background: #2d4a8a;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}
.gb-btn--outline {
    background: transparent;
    color: #3a66a5;
    border: 2px solid #3a66a5;
}
.gb-btn--outline:hover {
    background: #3a66a5;
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   BLOG POST GRID
   ============================================================ */
.gb-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #3a66a5;
    margin: 0 0 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8efff;
}
.gb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}
.gb-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.2s;
}
.gb-card:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}
.gb-card__img {
    background: #dde4f0;
    height: 190px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.gb-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.gb-card:hover .gb-card__img img { transform: scale(1.06); }
.gb-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dde4f0, #c5d3ea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #8fa7cc;
}
.gb-card__body {
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.gb-card__cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #3a66a5;
    margin-bottom: 8px;
}
.gb-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a2a4a;
    margin: 0 0 10px;
}
.gb-card__title a {
    color: inherit;
    text-decoration: none;
}
.gb-card__title a:hover { color: #3a66a5; }
.gb-card__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}
.gb-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
    font-size: 12px;
    color: #999;
    gap: 8px;
    flex-wrap: wrap;
}
.gb-card__author {
    font-weight: 600;
    color: #555;
}
.gb-card__readmore {
    color: #3a66a5;
    font-weight: 700;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gb-card__readmore:hover { color: #2d4a8a; text-decoration: underline; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.gb-empty {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}
.gb-empty i { font-size: 48px; margin-bottom: 16px; display: block; color: #c5d3ea; }
.gb-empty h3 { color: #444; margin-bottom: 8px; }

/* ============================================================
   NEWSLETTER CTA BAND
   ============================================================ */
.gb-newsletter {
    background: linear-gradient(135deg, #1a2a4a 0%, #3a66a5 100%);
    border-radius: 16px;
    padding: 44px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 16px 0 48px;
    flex-wrap: wrap;
}
.gb-newsletter__text h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
}
.gb-newsletter__text p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}
.gb-newsletter__form {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.gb-newsletter__form input[type="email"] {
    padding: 12px 20px;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    outline: none;
    min-width: 240px;
    color: #333;
}
.gb-newsletter__form button {
    padding: 12px 28px;
    background: #fff;
    color: #3a66a5;
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.gb-newsletter__form button:hover {
    background: #e8efff;
}

/* ============================================================
   BLOG DETAIL PAGE — READING PROGRESS BAR
   ============================================================ */
.gb-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3a66a5, #5b8fe8);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================================
   BLOG DETAIL PAGE — ARTICLE LAYOUT
   ============================================================ */
.gb-article-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    margin: 40px 0 60px;
    align-items: start;
}
.gb-article-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
}
.gb-article-meta-bar .gb-badge { margin-bottom: 0; }
.gb-article-meta-bar strong { color: #444; }

/* Table of Contents */
.gb-toc {
    background: #f7f8fa;
    border-left: 4px solid #3a66a5;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 0 0 32px;
}
.gb-toc__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3a66a5;
    margin: 0 0 12px;
}
.gb-toc ol {
    margin: 0;
    padding-left: 20px;
}
.gb-toc li {
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}
.gb-toc a {
    color: #3a66a5;
    text-decoration: none;
}
.gb-toc a:hover { text-decoration: underline; }

/* Sidebar */
.gb-sidebar {}
.gb-sidebar__widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 24px;
    margin-bottom: 28px;
}
.gb-sidebar__widget h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3a66a5;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8efff;
}

/* Author bio */
.gb-author {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.gb-author__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #dde4f0;
    overflow: hidden;
    flex-shrink: 0;
}
.gb-author__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gb-author__name {
    font-weight: 700;
    font-size: 15px;
    color: #1a2a4a;
    margin-bottom: 4px;
}
.gb-author__title {
    font-size: 12px;
    color: #3a66a5;
    font-weight: 600;
    margin-bottom: 6px;
}
.gb-author__bio {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
}

/* Related posts in sidebar */
.gb-related-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0f2f5;
}
.gb-related-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.gb-related-item__img {
    width: 60px;
    height: 50px;
    border-radius: 6px;
    background: #dde4f0;
    overflow: hidden;
    flex-shrink: 0;
}
.gb-related-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gb-related-item__title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    display: block;
}
.gb-related-item__title:hover { color: #3a66a5; }
.gb-related-item__meta {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

/* CTA sidebar widget */
.gb-cta-widget {
    background: linear-gradient(135deg, #1a2a4a, #3a66a5) !important;
    color: #fff;
}
.gb-cta-widget h3 { color: rgba(255,255,255,0.75) !important; border-color: rgba(255,255,255,0.15) !important; }
.gb-cta-widget p { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 16px; }
.gb-cta-widget .gb-btn--primary { background: #fff; color: #3a66a5; }
.gb-cta-widget .gb-btn--primary:hover { background: #e8efff; }

/* Social share */
.gb-share {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.gb-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    color: #fff;
}
.gb-share-link:hover { transform: scale(1.12); opacity: 0.9; color: #fff; text-decoration: none; }
.gb-share-link--fb   { background: #1877f2; }
.gb-share-link--tw   { background: #000; }
.gb-share-link--li   { background: #0a66c2; }
.gb-share-link--pin  { background: #e60023; }

/* FAQ section */
.gb-faq { margin: 40px 0; }
.gb-faq h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1a2a4a;
    margin-bottom: 20px;
}
.gb-faq__item {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.gb-faq__question {
    width: 100%;
    background: #fff;
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #1a2a4a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}
.gb-faq__question:hover { background: #f7f8fa; }
.gb-faq__question i { font-size: 13px; color: #3a66a5; transition: transform 0.25s; }
.gb-faq__item.open .gb-faq__question i { transform: rotate(180deg); }
.gb-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    padding: 0 20px;
    background: #fafbff;
}
.gb-faq__item.open .gb-faq__answer {
    max-height: 400px;
    padding: 14px 20px 18px;
}

/* ============================================================
   COMMENT SECTION
   ============================================================ */
.gb-comments { margin-top: 48px; }
.gb-comments__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.gb-comment-form { margin-top: 32px; }
.gb-comment-form h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 18px;
}
.gb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.gb-form-group { margin-bottom: 16px; }
.gb-form-group input,
.gb-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dde4f0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    background: #fafbff;
}
.gb-form-group input:focus,
.gb-form-group textarea:focus { border-color: #3a66a5; background: #fff; }
.gb-form-group textarea { height: 120px; resize: vertical; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .gb-grid { grid-template-columns: repeat(2, 1fr); }
    .gb-article-wrap { grid-template-columns: 1fr; }
    .gb-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
    .gb-blog-header h1 { font-size: 26px; }
    .gb-blog-header p { font-size: 15px; }
    .gb-featured__card { grid-template-columns: 1fr; min-height: auto; }
    .gb-featured__img { height: 220px; }
    .gb-featured__body { padding: 24px; }
    .gb-featured__title { font-size: 20px; }
    .gb-grid { grid-template-columns: 1fr; gap: 20px; }
    .gb-newsletter { flex-direction: column; text-align: center; padding: 28px 24px; }
    .gb-newsletter__form { width: 100%; flex-direction: column; }
    .gb-newsletter__form input[type="email"] { min-width: auto; width: 100%; }
    .gb-newsletter__form button { width: 100%; }
    .gb-sidebar { grid-template-columns: 1fr; }
    .gb-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .gb-cat-btn { padding: 12px 12px; font-size: 12px; }
    .gb-card__body { padding: 18px; }
}
