/*
 Theme Name:   Gitribe Astra Child
 Theme URI:    https://gitribe.com
 Description:  Astra Child Theme for Gitribe - professional software company blog
 Author:       Gitribe
 Author URI:   https://gitribe.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  gitribe-child
 Tags:         blog, technology, software, astra-child
*/

/* =============================================================
   GOOGLE FONTS
   Note: Also set Inter in Astra Customizer > Global > Typography
============================================================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");


/* =============================================================
   CSS VARIABLES
============================================================= */
:root {
    --gc-green:      #1EB854;
    --gc-green-d:    #17963F;
    --gc-dark:       #212121;
    --gc-text:       #1A1A1A;
    --gc-text-2:     #4B5563;
    --gc-text-3:     #9CA3AF;
    --gc-text-4:     #B8BEC6;
    --gc-text-5:     #FFFFFF;
    --gc-border:     #E5E7EB;
    --gc-border-2:   #D9D9D9;
    --gc-bg-soft:    #F4FBF6;
    --gc-bg-page:    rgba(238, 241, 243, 0.4);
    --gc-font:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --gc-r:          10px;
    --gc-r-pill:     100px;
    --gc-shadow:     0 4px 16px rgba(0, 0, 0, .09);
    --gc-t:          .2s ease;
}


/* =============================================================
   GLOBAL FONT (works alongside Astra)
============================================================= */
body,
.ast-single-post .entry-content,
.ast-article-single .entry-content {
    font-family: var(--gc-font);
}

/* Single post page — header: color bg fading out at bottom to blend into article */
.gc-single-header {
    background: linear-gradient(to bottom, var(--gc-bg-page) 70%, rgba(238, 241, 243, 0) 100%);
}

/* Article + author: green softly bleeds in from the right, fades out at bottom */
.gc-article-section {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 1) 100%),
        linear-gradient(to right, #ffffff 40%, rgba(30, 184, 84, 0.04) 65%, rgba(30, 184, 84, 0.10) 100%);
}

/* Related posts: green softly bleeds in from the left, fades in at top */
.gc-related-section {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 25%),
        linear-gradient(to right, rgba(30, 184, 84, 0.10) 0%, rgba(30, 184, 84, 0.04) 35%, #ffffff 60%);
}


/* =============================================================
   ASTRA HEADER — Brand Color Only (no layout overrides)
   Set font/size in Astra Customizer instead
============================================================= */

/* Active nav item highlight */
.main-header-menu .current-menu-item > a,
.main-header-menu .current_page_item > a {
    color: var(--gc-green) !important;
}

.main-header-menu .menu-item > a:hover {
    color: var(--gc-green) !important;
}

/* GET STARTED button in header */
.gc-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gc-green);
    color: #fff !important;
    padding: 9px 20px;
    border-radius: var(--gc-r-pill);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all var(--gc-t);
    white-space: nowrap;
    font-family: var(--gc-font);
}

.gc-header-cta:hover {
    background: var(--gc-green-d) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.gc-header-cta svg {
    transition: transform var(--gc-t);
}

.gc-header-cta:hover svg {
    transform: translateX(3px);
}

/* Admin bar pushes sticky header down */
.admin-bar .site-header.ast-sticky-active,
.admin-bar #masthead.ast-sticky-active {
    top: 32px !important;
}

@media (max-width: 782px) {
    .admin-bar .site-header.ast-sticky-active,
    .admin-bar #masthead.ast-sticky-active {
        top: 46px !important;
    }
}


/* =============================================================
   ASTRA LINK COLOR OVERRIDE
============================================================= */
a {
    color: var(--gc-green);
}

a:hover {
    color: var(--gc-green-d);
}

.entry-content a {
    color: var(--gc-green);
}


/* =============================================================
   HERO SECTION
============================================================= */
.gc-hero {
    background: var(--gc-dark);
    overflow: visible;
}

.gc-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 440px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: center;
    padding-bottom: 0;
}

.gc-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px 56px 0;
}

.gc-hero-illustration {
    position: absolute;
    top: -20px;
    right: -60px;
    display: block;
}

.gc-hero-illustration svg {
    display: block;
}

.gc-hero-h1 {
    width: fit-content;
    position: relative;
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    margin-bottom: 18px !important;
    font-family: var(--gc-font) !important;
}

.gc-hero-h1 em {
    color: var(--gc-green) !important;
    font-style: normal !important;
    font-weight: 700 !important;
}

.gc-hero-desc {
    color: rgba(255, 255, 255, .55);
    font-size: .9rem;
    line-height: 1.75;
    margin-bottom: 8px;
    font-family: var(--gc-font);
}

.gc-hero-right {
    position: relative;
    background: #132228;
    margin: 120px 0 -60px 4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 2;
    min-height: 98%;
    max-width: 368px;
    border-radius: 12px;
}

.gc-hero-right > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

/* Featured post card at bottom of hero image */
.gc-hero-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px 24px;
    border-radius: 0 0 12px 12px;
}

.gc-hero-card-date {
    font-size: .72rem;
    color: var(--gc-text-3);
    font-weight: 500;
    margin-bottom: 8px;
    font-family: var(--gc-font);
}

.gc-hero-card-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--gc-dark) !important;
    line-height: 1.4 !important;
    margin: 0 0 10px !important;
    font-family: var(--gc-font) !important;
}

.gc-hero-card-title a {
    color: var(--gc-dark) !important;
    text-decoration: none !important;
}

.gc-hero-card-title a:hover {
    color: var(--gc-green) !important;
}

.gc-hero-card-excerpt {
    font-size: .82rem;
    color: var(--gc-text-3);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--gc-font);
}

.gc-hero-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gc-green);
    color: #fff !important;
    padding: 9px 20px;
    border-radius: var(--gc-r-pill);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all var(--gc-t);
    font-family: var(--gc-font);
}

.gc-hero-card-btn:hover {
    background: var(--gc-green-d);
    color: #fff !important;
}

.gc-hero-card-btn svg {
    transition: transform var(--gc-t);
}

.gc-hero-card-btn:hover svg {
    transform: translateX(3px);
}


/* =============================================================
   SEARCH BAR
============================================================= */
.gc-search-wrap {
    padding: 130px 0 0;
    position: relative;
    z-index: 1;
}

.gc-search-outer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gc-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.gc-search-row input {
    padding: 12px 8px !important;
}

.gc-search-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gc-dark);
    flex-shrink: 0;
    font-family: var(--gc-font);
    margin-left: 8px;
}

.gc-search-field {
    flex: 1;
    padding: 11px 20px;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1.5px solid var(--gc-border) !important;
    border-radius: 0 !important;
    font-size: .9rem;
    font-family: var(--gc-font);
    color: var(--gc-text);
    outline: none !important;
    box-shadow: none !important;
    transition: border-color var(--gc-t);
    background: transparent !important;
    -webkit-appearance: none;
}

.gc-search-field:focus {
    border-color: var(--gc-green) !important;
    box-shadow: none !important;
    outline: none !important;
}

.gc-search-field::placeholder {
    color: #bbb;
}

input[type=search]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.gc-search-field.gc-search-error {
    border-color: #e53e3e !important;
    animation: gc-shake .3s ease;
}

@keyframes gc-shake {
    0%,
    100% { transform: translateX(0); }
    25%   { transform: translateX(-6px); }
    75%   { transform: translateX(6px); }
}

.gc-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gc-green);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: var(--gc-r-pill);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--gc-t);
    white-space: nowrap;
    font-family: var(--gc-font);
}

.gc-search-btn:hover {
    background: var(--gc-green-d);
}

/* Tags */
.gc-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
}

.gc-tags-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--gc-text-3);
    font-family: var(--gc-font);
}

.gc-tag {
    display: inline-block;
    padding: 5px 15px;
    border: 1.5px solid var(--gc-border);
    border-radius: var(--gc-r-pill);
    font-size: .8rem;
    font-weight: 500;
    color: var(--gc-text-2);
    background: #fff;
    text-decoration: none !important;
    transition: all var(--gc-t);
    font-family: var(--gc-font);
}

.gc-tag:hover,
.gc-tag.active {
    background: var(--gc-green);
    border-color: var(--gc-green);
    color: #fff !important;
}


/* =============================================================
   SECTION TITLES
============================================================= */
.gc-section-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--gc-dark) !important;
    margin-bottom: 24px !important;
    font-family: var(--gc-font) !important;
}


/* =============================================================
   POST CARDS GRID
============================================================= */
.gc-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.gc-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--gc-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--gc-t), transform var(--gc-t);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
    position: relative;
}

.gc-card:hover {
    box-shadow: var(--gc-shadow);
    transform: translateY(-4px);
}

.gc-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
    flex-shrink: 0;
    text-decoration: none !important;
}

.gc-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
    border-radius: 0;
}

.gc-card:hover .gc-card-thumb img {
    transform: scale(1.05);
}

/* Placeholder when no image */
.gc-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gc-card-cat {
    display: inline-block;
    font-size: .7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gc-green) !important;
    margin-bottom: 9px;
    text-decoration: none !important;
    font-family: var(--gc-font);
    transition: color var(--gc-t);
}

.gc-card-cat:hover {
    color: var(--gc-green-d) !important;
}

.gc-card-title {
    font-size: .97rem !important;
    font-weight: 600 !important;
    color: var(--gc-dark) !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--gc-font) !important;
}

.gc-card-title a {
    color: var(--gc-dark) !important;
    text-decoration: none !important;
    transition: color var(--gc-t) !important;
}

.gc-card-title a:hover {
    color: var(--gc-green) !important;
}

.gc-card-excerpt {
    font-size: .83rem;
    color: var(--gc-text-2);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--gc-font);
}

.gc-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .77rem;
    color: var(--gc-text-3);
    font-family: var(--gc-font);
}

.gc-card-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gc-text-3);
    flex-shrink: 0;
}

/* Edit link on cards (logged in only) */
.gc-card-edit-link {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(30, 184, 84, .9);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    z-index: 10;
    transition: background var(--gc-t);
}

.gc-card-edit-link:hover {
    background: var(--gc-green-d);
}

.logged-in .gc-card:hover .gc-card-edit-link {
    display: flex;
}


/* =============================================================
   SECTIONS WRAP
============================================================= */
.gc-latest-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}


/* =============================================================
   BLOG BY CATEGORIES (green bg section)
============================================================= */
.gc-cats-section {
    background: var(--gc-bg-soft);
    padding: 44px 0 52px;
}

.gc-cats-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gc-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.gc-cat-tab {
    padding: 7px 17px;
    border: 1.5px solid var(--gc-border);
    border-radius: var(--gc-r-pill);
    font-size: .82rem;
    font-weight: 500;
    color: var(--gc-text-2);
    background: #fff;
    text-decoration: none !important;
    transition: all var(--gc-t);
    font-family: var(--gc-font);
}

.gc-cat-tab:hover,
.gc-cat-tab.active {
    background: var(--gc-green);
    border-color: var(--gc-green);
    color: #fff !important;
}


/* =============================================================
   PAGINATION
============================================================= */
.gc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 36px 0 8px;
}

.gc-pg-num,
.gc-pg-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--gc-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gc-text-3) !important;
    text-decoration: none !important;
    transition: all var(--gc-t);
    background: #fff;
    font-family: var(--gc-font);
}

.gc-pg-num.current,
.gc-pg-num:hover,
.gc-pg-arrow:hover {
    background: var(--gc-green) !important;
    border-color: var(--gc-green) !important;
    color: #fff !important;
}

/* Also style Astra's native pagination */
.ast-pagination .page-numbers,
.navigation .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--gc-border) !important;
    margin: 0 3px !important;
    font-size: .85rem !important;
    font-weight: 600 !important;
    color: var(--gc-text-3) !important;
    text-decoration: none !important;
    transition: all var(--gc-t) !important;
    background: #fff !important;
}

.ast-pagination .page-numbers:hover,
.ast-pagination .page-numbers.current,
.navigation .page-numbers:hover,
.navigation .page-numbers.current {
    background: var(--gc-green) !important;
    border-color: var(--gc-green) !important;
    color: #fff !important;
}

.ast-pagination,
.navigation.pagination {
    display: flex !important;
    justify-content: center !important;
    padding: 36px 0 !important;
    gap: 4px !important;
}


/* =============================================================
   VIEW ALL / BUTTONS
============================================================= */
.gc-view-all {
    text-align: center;
    margin-top: 32px;
}

.gc-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid var(--gc-green);
    border-radius: var(--gc-r-pill);
    font-size: .875rem;
    font-weight: 600;
    color: var(--gc-green) !important;
    text-decoration: none !important;
    transition: all var(--gc-t);
    background: transparent;
    font-family: var(--gc-font);
}

.gc-btn-outline:hover {
    background: var(--gc-green);
    color: #fff !important;
}

.gc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--gc-green);
    border: 2px solid var(--gc-green);
    border-radius: var(--gc-r-pill);
    font-size: .875rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    transition: all var(--gc-t);
    font-family: var(--gc-font);
}

.gc-btn-primary:hover {
    background: var(--gc-green-d);
    border-color: var(--gc-green-d);
    color: #fff !important;
    transform: translateY(-1px);
}

.gc-btn-sm {
    padding: 8px 16px !important;
    font-size: .8rem !important;
}

.gc-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid rgba(255, 255, 255, .22);
    border-radius: var(--gc-r-pill);
    font-size: .8rem;
    font-weight: 600;
    color: var(--gc-text-4) !important;
    background: transparent;
    transition: all var(--gc-t);
    cursor: pointer;
    text-decoration: none !important;
    font-family: var(--gc-font);
}

.gc-btn-ghost:hover {
    border-color: var(--gc-green);
    color: var(--gc-green) !important;
}

/* No posts message */
.gc-no-posts {
    text-align: center;
    padding: 48px 24px;
    color: var(--gc-text-3);
    font-size: .95rem;
    font-family: var(--gc-font);
}


/* =============================================================
   CTA BANNER
============================================================= */
.gc-cta {
    background: var(--gc-dark);
    padding: 56px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #505050;
}

.gc-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 96px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.gc-cta-text h2 {
    letter-spacing: -0.5px;
    color: #fff !important;
    font-size: clamp(1.4rem, 2.8vw, 2.1rem) !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    margin-bottom: 24px !important;
    font-family: var(--gc-font) !important;
}

.gc-cta-text h2 strong {
    color: var(--gc-green) !important;
}

.gc-cta-img img {
    width: 260px;
    border-radius: 14px;
    opacity: .85;
    display: block;
}


/* =============================================================
   FOOTER
   Astra footer bg is overridden via Customize > Footer > Colors
   These styles handle our 4-column custom layout inside it
============================================================= */
#colophon {
    background: var(--gc-dark) !important;
    padding-top: 0 !important;
}

.gc-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 44px;
    display: grid;
    grid-template-columns: 1.2fr 1.5fr .8fr 1.4fr;
    gap: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.gc-footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.gc-footer-logo img {
    height: 32px;
    width: auto;
}

.gc-footer-logo a {
    text-decoration: none !important;
}

.gc-footer-tagline {
    font-size: .82rem;
    color: var(--gc-text-4);
    line-height: 1.6;
    margin-bottom: 6px;
    font-family: var(--gc-font);
}

.gc-footer-year {
    font-size: .76rem;
    color: var(--gc-text-4);
    font-family: var(--gc-font);
}

/* Newsletter */
.gc-footer-nl-heading {
    font-size: .88rem;
    font-weight: 600;
    color: var(--gc-text-5);
    line-height: 1.5;
    margin-bottom: 16px;
    font-family: var(--gc-font);
}

.gc-nl-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gc-nl-row {
    display: flex;
}

.gc-nl-input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: var(--gc-r-pill) 0 0 var(--gc-r-pill) !important;
    color: var(--gc-text-4);
    font-size: 14px !important;
    font-weight: 300 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color var(--gc-t);
    font-family: var(--gc-font);
}

.gc-nl-input::placeholder {
    color: var(--gc-text-3);
}

.gc-nl-input:focus {
    border-color: var(--gc-green) !important;
}

.gc-nl-btn {
    padding: 10px 18px;
    background: var(--gc-green);
    color: #fff;
    border: none;
    border-radius: 0 var(--gc-r-pill) var(--gc-r-pill) 0;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--gc-t);
    white-space: nowrap;
    font-family: var(--gc-font);
}

.gc-nl-btn:hover {
    background: var(--gc-green-d);
}

.gc-nl-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .73rem;
    color: var(--gc-text-4);
    line-height: 1.5;
    font-family: var(--gc-font);
}

.gc-nl-consent input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--gc-green);
    flex-shrink: 0;
}

.gc-nl-consent a {
    color: var(--gc-green) !important;
}

.gc-nl-msg {
    font-size: .78rem;
    min-height: 14px;
}

/* Footer links */
.gc-footer-col-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--gc-text-5) !important;
    margin-bottom: 16px;
    font-family: var(--gc-font);
}

.gc-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gc-footer-links a {
    font-size: .84rem;
    color: var(--gc-text-4) !important;
    text-decoration: none !important;
    transition: color var(--gc-t);
    font-family: var(--gc-font);
}

.gc-footer-links a:hover {
    color: var(--gc-green) !important;
}

/* Footer contact */
.gc-footer-contact-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.gc-footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.gc-footer-contact-items a {
    font-size: .82rem;
    color: var(--gc-text-4) !important;
    text-decoration: none !important;
    transition: color var(--gc-t);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--gc-font);
}

.gc-footer-contact-items a:hover {
    color: var(--gc-green) !important;
}

.gc-footer-contact-items svg {
    opacity: .55;
    flex-shrink: 0;
}

.gc-follow-label {
    font-size: .74rem;
    color: var(--gc-text-5);
    margin-bottom: 10px;
    font-family: var(--gc-font);
}

/* Social icons */
.gc-social-row {
    display: flex;
    gap: 8px;
}

.gc-social-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all var(--gc-t);
    flex-shrink: 0;
}

.gc-social-ico:hover {
    background: var(--gc-green);
    border-color: var(--gc-green);
    color: #fff !important;
}

.gc-social-ico svg {
    width: 34px;
    height: 34px;
}

/* Footer bottom bar */
.gc-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.gc-footer-copy {
    font-size: .78rem;
    color: rgba(255, 255, 255, .28);
    font-family: var(--gc-font);
    margin: 0;
}

/* Hide Astra's default footer copyright (we have our own) */
.ast-footer-copyright {
    display: none;
}

.gc-footer-bottom-links {
    display: flex;
    gap: 18px;
}

.gc-footer-bottom-links a {
    font-size: .78rem;
    color: rgba(255, 255, 255, .28) !important;
    text-decoration: none !important;
    transition: color var(--gc-t);
    font-family: var(--gc-font);
}

.gc-footer-bottom-links a:hover {
    color: var(--gc-green) !important;
}


/* =============================================================
   SINGLE POST PAGE
============================================================= */
.gc-single-cats {
    margin-bottom: 14px;
}

.gc-single-cat {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gc-green) !important;
    text-decoration: none !important;
    font-family: var(--gc-font);
}

.gc-single-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
    font-weight: 700 !important;
    color: var(--gc-dark) !important;
    line-height: 1.25 !important;
    margin-bottom: 20px !important;
    font-family: var(--gc-font) !important;
}

.gc-heading-divider {
    border: none;
    border-top: 1px solid var(--gc-border);
    margin: 0 0 16px;
}

hr.gc-single-heading-divider {
    border: none;
    border-top: 1px solid var(--gc-border-2);
    margin: 0 0 16px;
    background: none;
}

.gc-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: .8rem;
    color: var(--gc-text-3);
    font-family: var(--gc-font);
}

.gc-single-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gc-single-meta-author img {
    width: 36px;
    height: 36px;
    border-radius: 20%;
    object-fit: cover;
}

.gc-single-meta-author a {
    font-weight: 600;
    color: var(--gc-text) !important;
    text-decoration: none !important;
}

.gc-meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gc-border);
    flex-shrink: 0;
}

.gc-single-hero-img {
    width: 100%;
    object-fit: cover;
    border-radius: 14px !important;
    display: block;
    max-height: 340px;
}

.gc-divider {
    border: none;
    border-top: 1px solid var(--gc-border);
    margin: 0;
}

/* Article content typography */
.gc-article {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gc-text);
    font-family: var(--gc-font);
}

.gc-article h2 {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    color: var(--gc-dark) !important;
    margin: 36px 0 14px !important;
    font-family: var(--gc-font) !important;
}

.gc-article h3 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--gc-dark) !important;
    margin: 28px 0 10px !important;
    font-family: var(--gc-font) !important;
}

.gc-article p {
    margin-bottom: 1.2rem;
}

.gc-article ul,
.gc-article ol {
    margin: 0 0 1.2rem 1.5rem;
}

.gc-article li {
    margin-bottom: 5px;
}

.gc-article a {
    color: var(--gc-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gc-article img {
    border-radius: 8px;
    margin: 24px 0;
    max-width: 100%;
    height: auto;
}

.gc-article blockquote {
    border-left: 4px solid var(--gc-green);
    padding: 16px 22px;
    margin: 28px 0;
    background: var(--gc-bg-soft);
    border-radius: 0 8px 8px 0;
}

.gc-article blockquote p {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: var(--gc-dark) !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

.gc-article pre {
    background: var(--gc-dark);
    color: #d4f7c5;
    border-radius: 8px;
    padding: 20px 24px;
    overflow-x: auto;
    font-size: .875rem;
    margin: 22px 0;
    line-height: 1.6;
}

.gc-article code {
    background: rgba(30, 184, 84, .1);
    color: #0e7a34;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .875em;
    font-family: "Fira Code", "Courier New", monospace;
}

.gc-article pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Sidebar */
.gc-sidebar {
    position: sticky;
    top: 80px;
}

.admin-bar .gc-sidebar {
    top: 112px;
}

/* Author box */
.gc-author-box {
    display: block;
    background: var(--gc-text-5);
    border: 1px solid var(--gc-border);
    border-radius: 14px;
    padding: 24px 28px 28px;
    margin: 44px 0 0;
}

.gc-author-inner {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 12px;
}

.gc-author-img {
    width: 60px;
    height: 60px;
    border-radius: 20%;
    object-fit: cover;
    flex-shrink: 0;
}

.gc-author-badge {
    font-size: .68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gc-text-3);
    margin-bottom: 8px;
    font-family: var(--gc-font);
}

.gc-author-name {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--gc-dark) !important;
    margin: 0 0 8px !important;
    font-family: var(--gc-font) !important;
}

.gc-author-name a {
    color: var(--gc-dark) !important;
    text-decoration: none !important;
}

.gc-author-bio {
    font-size: .875rem;
    color: var(--gc-text-2);
    line-height: 1.6;
    margin: 0;
    font-family: var(--gc-font);
}


/* =============================================================
   ARCHIVE / SEARCH PAGES
============================================================= */
.gc-archive-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gc-green);
    margin-bottom: 8px;
    font-family: var(--gc-font);
}


/* =============================================================
   READING PROGRESS BAR
============================================================= */
#gc-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gc-green), #00e65b);
    z-index: 99999;
    transition: width .1s linear;
    pointer-events: none;
}


/* =============================================================
   BACK TO TOP
============================================================= */
#ast-scroll-top {
    background: var(--gc-green) !important;
    border-radius: 50% !important;
}

#ast-scroll-top:hover {
    background: var(--gc-green-d);
}


/* =============================================================
   ASTRA SIDEBAR WIDGETS STYLING
============================================================= */
#secondary .widget,
.ast-sidebar .widget {
    margin-bottom: 28px;
}

#secondary .widgettitle,
#secondary .widget-title,
.ast-sidebar .widget-title {
    font-size: .75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: var(--gc-text-3) !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--gc-border) !important;
    margin-bottom: 14px !important;
    font-family: var(--gc-font) !important;
}

#secondary .widget_recent_entries ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#secondary .widget_recent_entries li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gc-border);
}

#secondary .widget_recent_entries li a {
    font-size: .875rem;
    color: var(--gc-text) !important;
    font-weight: 500;
    text-decoration: none !important;
    line-height: 1.4;
    transition: color var(--gc-t);
    font-family: var(--gc-font);
}

#secondary .widget_recent_entries li a:hover {
    color: var(--gc-green) !important;
}

#secondary .widget_categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#secondary .widget_categories li {
    padding: 6px 0;
    border-bottom: 1px solid var(--gc-border);
    display: flex;
    justify-content: space-between;
}

#secondary .widget_categories li a {
    font-size: .85rem;
    color: var(--gc-text-2) !important;
    text-decoration: none !important;
    transition: color var(--gc-t);
    font-family: var(--gc-font);
}

#secondary .widget_categories li a:hover {
    color: var(--gc-green) !important;
}

#secondary .widget_tag_cloud .tag-cloud-link {
    display: inline-block !important;
    padding: 4px 12px !important;
    border: 1.5px solid var(--gc-border) !important;
    border-radius: var(--gc-r-pill) !important;
    font-size: .78rem !important;
    font-weight: 500 !important;
    color: var(--gc-text-2) !important;
    text-decoration: none !important;
    transition: all var(--gc-t) !important;
    margin: 3px !important;
}

#secondary .widget_tag_cloud .tag-cloud-link:hover {
    background: var(--gc-green) !important;
    border-color: var(--gc-green) !important;
    color: #fff !important;
}

.widget_search .search-field {
    border: 1.5px solid var(--gc-border) !important;
    border-radius: var(--gc-r-pill) !important;
    padding: 10px 16px !important;
    width: 100% !important;
    outline: none !important;
    font-family: var(--gc-font) !important;
    box-shadow: none !important;
}

.widget_search .search-field:focus {
    border-color: var(--gc-green) !important;
}

.widget_search .search-submit {
    background: var(--gc-green) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--gc-r-pill) !important;
    padding: 10px 20px !important;
    font-size: .875rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 8px !important;
    width: 100% !important;
    font-family: var(--gc-font) !important;
}


/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 1024px) {
    .gc-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .gc-hero-inner {
        grid-template-columns: 1fr;
    }

    .gc-hero-right {
        display: none;
    }

    .gc-hero-left {
        padding: 44px 0;
    }

    .gc-posts-grid {
        grid-template-columns: 1fr;
    }

    .gc-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gc-cta-inner {
        grid-template-columns: 1fr;
    }

    .gc-cta-img {
        display: none;
    }

    .gc-cta::before {
        display: none;
    }

    .gc-search-row {
        flex-wrap: wrap;
    }

    .gc-search-label {
        width: 100%;
    }

    .gc-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .gc-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =============================================================
   REAL ASTRA LAYOUT RESET FOR FULL-WIDTH HOMEPAGE SECTIONS
   These override Astra's content area constraints so our custom
   sections (hero, CTA) can go full-width
============================================================= */

/* Remove Astra's content area max-width/padding on homepage */
.gc-home #primary,
.gc-home .content-area,
.gc-home .ast-content-layout-wrap,
.gc-home #content > .ast-container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Remove sidebar on homepage */
.gc-home #secondary,
.gc-home .widget-area,
.gc-home .ast-sidebar-wrap {
    display: none !important;
}

/* Reset flex on homepage content area */
.gc-home .ast-content-layout-wrap {
    display: block !important;
}

/* Remove Astra's default article padding on homepage */
.gc-home .ast-article-inner-wrap,
.gc-home .ast-article-post,
.gc-home .site-content > .ast-container {
    padding: 0 !important;
    max-width: none !important;
}

/* Single post - remove Astra's sidebar flex layout */
.gc-single #content,
.gc-single .ast-content-layout-wrap {
    display: block !important;
    max-width: none !important;
    padding: 0 !important;
}

.gc-single #secondary,
.gc-single .widget-area {
    display: none !important;
}

/* Also hide Astra's default post header (we have our own) */
.gc-single .entry-header,
.gc-single .entry-footer,
.gc-single .post-thumbnail,
.gc-single .ast-post-header-meta,
.gc-single .ast-author-bio,
.gc-single .ast-adjacent-posts {
    display: none !important;
}

/* Hide Astra's default entry-content wrapper (we use gc-article) */
.gc-single .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Archive/search - keep Astra layout but style our grid */
.gc-archive #content,
.search-results #content {
    max-width: none !important;
    padding: 0 !important;
}

.gc-archive .ast-content-layout-wrap,
.search-results .ast-content-layout-wrap {
    display: block !important;
    max-width: none !important;
    padding: 0 !important;
}

/* Astra adds padding to site-content - remove it for our pages */
.gc-home .site-content,
.gc-single .site-content {
    padding: 0 !important;
}


/* =============================================================
   STANDALONE HOMEPAGE HEADER
   Used only on homepage (index.php renders its own header)
============================================================= */
.gc-site-header {
    position: relative;
    top: 0;
    z-index: 1000;
    background: var(--gc-dark);
    border-bottom: 1px solid #505050;
    box-shadow: none;
    transition: box-shadow .2s ease;
}

.gc-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 72px;
}

/* Logo */
.gc-logo-wrap {
    flex-shrink: 0;
}

.gc-logo-wrap .custom-logo {
    height: 36px;
    width: auto;
}

.gc-logo-wrap img {
    height: 36px;
    width: auto;
}

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

/* Nav */
.gc-nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.gc-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gc-nav-list li {
    position: relative;
}

.gc-nav-list li a {
    display: block;
    padding: 7px 13px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--gc-text-5) !important;
    text-decoration: none !important;
    border-radius: 6px;
    transition: all var(--gc-t);
    font-family: var(--gc-font);
}

.gc-nav-list li a:hover,
.gc-nav-list .current-menu-item > a {
    color: var(--gc-green) !important;
    /* background: rgba(30,184,84,.08); */
}

/* Dropdown */
.gc-nav-list .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid var(--gc-border);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .11);
    min-width: 200px;
    padding: 6px;
    list-style: none;
    margin: 0;
    z-index: 999;
}

.gc-nav-list li:hover > .sub-menu {
    display: block;
}

.gc-nav-list .sub-menu li a {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: .84rem;
}

/* Header right */
.gc-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Mobile toggle */
.gc-mobile-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.gc-mobile-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gc-dark);
    border-radius: 2px;
    transition: all var(--gc-t);
}

.gc-mobile-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.gc-mobile-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.gc-mobile-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
    .gc-mobile-btn {
        display: flex !important;
    }

    .gc-header-actions .gc-header-cta {
        display: none;
    }

    .gc-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--gc-border);
        padding: 12px 16px 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: all .25s ease;
        z-index: 999;
        justify-content: flex-start;
    }

    .gc-nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .gc-nav-list {
        flex-direction: column;
        width: 100%;
        gap: 2px;
    }

    .gc-nav-list .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: var(--gc-bg-soft);
        border-radius: 8px;
        margin-top: 4px;
    }

    .admin-bar .gc-nav {
        top: 110px;
    }
}


/* =============================================================
   STANDALONE FOOTER (homepage)
============================================================= */
#gc-footer {
    background: var(--gc-dark);
    padding-top: 0;
}


/* =============================================================
   SINGLE POST — OVERRIDE ASTRA FLEX WRAPPER
============================================================= */

/* Force Astra's content wrapper to be block on single posts */
.single .ast-content-layout-wrap,
.single #content,
.single .site-content,
.single #primary,
.single .content-area {
    display: block !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    flex: none !important;
}

/* Hide Astra's sidebar on single posts */
.single #secondary,
.single .ast-sidebar-wrap,
.single .widget-area {
    display: none !important;
}

/* Hide Astra's default post elements — we render our own */
.single .entry-header,
.single .entry-footer,
.single .post-thumbnail,
.single .ast-post-header-meta,
.single .ast-author-bio,
.single .ast-adjacent-posts,
.single .entry-content {
    display: none !important;
}

/* Our single post wrapper */
.gc-single-page {
    width: 100%;
}

/* Post header */
.gc-single-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 0;
}

.gc-single-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 36px;
}

.gc-single-header-left {
    display: flex;
    flex-direction: column;
}

/* Body: article + sidebar */
.gc-single-body {
    display: grid !important;
    grid-template-columns: 1fr 240px !important;
    gap: 48px !important;
    align-items: start !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 24px 60px 24px !important;
    width: auto !important;
}

/* Author wrap */
.gc-single-author-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 84px 24px;
}

/* Related posts */
.gc-related {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 24px 56px;
    margin-top: 0;
}

/* Gitribe brand icon in post header */
.gc-post-brand-icon {
    margin-bottom: 18px;
    display: block;
}

/* Sidebar — clean sections (no card box) */
.gc-sidebar-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gc-border);
}

.gc-sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gc-sidebar-label {
    font-size: .68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: var(--gc-text-3) !important;
    margin-bottom: 12px !important;
    font-family: var(--gc-font) !important;
}

/* TOC as plain links (no bullet list) */
.gc-post-toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gc-post-toc-link {
    font-size: .83rem;
    color: var(--gc-text-3) !important;
    padding: 3px 0 3px 10px;
    border-left: 2px solid var(--gc-border);
    display: block;
    line-height: 1.4;
    transition: all var(--gc-t);
    text-decoration: none !important;
    font-family: var(--gc-font);
}

.gc-post-toc-link:hover {
    color: var(--gc-green) !important;
    border-left-color: var(--gc-green);
}

.gc-post-toc-link.is-active {
    color: var(--gc-green) !important;
    border-left-color: var(--gc-green);
    font-weight: 600;
}

.gc-post-toc-h3 {
    padding-left: 20px;
    font-size: .79rem;
}

/* Sidebar share icons — icon-only circular buttons */
.gc-sidebar-share-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gc-share-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--gc-border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gc-text-2);
    text-decoration: none !important;
    transition: all var(--gc-t);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.gc-share-ico:hover {
    border-color: var(--gc-green);
    color: var(--gc-green);
    background: var(--gc-bg-soft);
}

.gc-share-ico:focus {
    border-color: var(--gc-green);
    color: var(--gc-green);
    background: var(--gc-bg-soft);
}

.gc-share-ico svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Read time in post meta */
.gc-single-meta-rt {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .gc-single-header-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gc-single-body {
        grid-template-columns: 1fr 210px !important;
        gap: 32px !important;
    }
}

@media (max-width: 768px) {
    .gc-single-body {
        grid-template-columns: 1fr !important;
    }

    .gc-sidebar {
        display: none !important;
    }
}


/* =============================================================
   COPY LINK TOAST
============================================================= */
#gc-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--gc-dark);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--gc-r);
    font-size: .85rem;
    font-family: var(--gc-font);
    font-weight: 500;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}

#gc-toast.gc-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
