/* Single Post Styles */
.gh-single {
    padding: 4rem 0;
}

.gh-single__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: start;
}

.gh-single--no-sidebar .gh-single__grid {
    grid-template-columns: 1fr;
}

/* Breadcrumbs */
.gh-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gh-breadcrumb a {
    color: var(--gh-link);
    text-decoration: none;
}

.gh-breadcrumb__sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* Header */
.gh-single__header {
    margin-bottom: 3rem;
}

.gh-single__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: 0 0 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gh-single__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gh-author-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gh-author-meta__img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.gh-author-meta__info {
    display: flex;
    flex-direction: column;
}

.gh-author-meta__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gh-author-meta__name {
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.gh-author-meta__row .gh-author-socials {
    margin: 0;
    gap: 0.5rem;
}

.gh-author-meta__row .gh-author-social svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.gh-author-meta__row .gh-author-social:hover svg {
    opacity: 1;
}

.gh-author-meta__follow {
    font-size: 0.8rem;
    color: var(--gh-link);
    font-weight: 600;
    margin-left: 0.5rem;
}

.gh-author-meta__date {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
}

.gh-single__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gh-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: none;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gh-action-btn:hover {
    background: #f9f9f9;
    border-color: rgba(0, 0, 0, 0.15);
}

.gh-action-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* Featured Image */
.gh-single__featured {
    margin-bottom: 3rem;
    border-radius: var(--gh-radius, 20px);
    overflow: hidden;
}

.gh-single__featured img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
.gh-single__content {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
}

.gh-single__content p {
    margin-bottom: 1.75rem;
}

.gh-single__content h2,
.gh-single__content h3 {
    margin: 3rem 0 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.gh-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--gh-radius, 20px);
    margin: 2.5rem 0;
}

/* Author Card Single Refined */
.gh-author-card-single {
    margin: 5rem 0;
    padding: 2.5rem;
    background: #fff;
    border-radius: 32px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gh-author-card-single__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.gh-author-card-single__main-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.gh-author-card-single__avatar {
    flex-shrink: 0;
}

.gh-author-card-single__img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.gh-author-card-single__details {
    display: flex;
    flex-direction: column;
}

.gh-author-card-single__label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #5c7cfa;
    /* Vibrant blue from screenshot */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.gh-author-card-single__name {
    font-size: 1.85rem;
    font-weight: 900;
    margin: 0;
    color: #000;
    line-height: 1.1;
}

/* Button Styling */
.gh-btn-view-articles {
    display: inline-block;
    background: #000;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gh-btn-view-articles:hover {
    background: #333;
}

/* Social Buttons Minimal Style */
.gh-author-socials {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

.gh-author-social {
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.gh-author-social svg {
    width: 20px;
    height: 20px;
}

.gh-author-social--facebook:hover {
    color: #1877f2;
}

.gh-author-social--twitter:hover {
    color: #000;
}

.gh-author-social--linkedin {
    color: #0a66c2;
}

/* Static style like screenshot */
.gh-author-social--instagram:hover {
    color: #e4405f;
}

/* Bottom Section */
.gh-author-card-single__bottom {
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.gh-author-card-single__bio {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

@media (max-width: 768px) {
    .gh-author-card-single {
        padding: 2rem 1.5rem;
    }

    .gh-author-card-single__top {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .gh-author-card-single__actions {
        width: 100%;
    }

    .gh-btn-view-articles {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .gh-author-card-single {
        padding: 1.5rem;
    }

    .gh-author-card-single__top {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .gh-author-card-single .gh-author-socials {
        justify-content: center;
    }
}

/* Related */
.gh-related {
    padding: 5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.gh-related__title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.gh-single--no-sidebar .gh-single__grid {
    grid-template-columns: 1fr;
}

.gh-post-nav__next {
    display: flex;
    justify-content: flex-end;
}

.gh-post-nav__next .gh-post-nav__link {
    text-align: right;
    align-items: flex-end;
    width: 100%;
}

/* Share Dropdown */
.gh-share-dropdown {
    position: relative;
    display: inline-block;
}

.gh-share-dropdown__menu {
    position: absolute;
    top: calc(100% + 12px);
    /* Slide up instead of down */
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.gh-share-dropdown.is-active .gh-share-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.gh-share-dropdown__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f8f9fa;
    color: #444;
    transition: all 0.2s ease;
}

.gh-share-dropdown__item svg {
    width: 18px;
    height: 18px;
}

.gh-share-dropdown__item:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gh-share-dropdown__item--twitter:hover {
    color: #000;
}

.gh-share-dropdown__item--facebook:hover {
    color: #1877f2;
}

.gh-share-dropdown__item--whatsapp:hover {
    color: #25d366;
}

.gh-share-dropdown__item--linkedin:hover {
    color: #0a66c2;
}

.gh-share-dropdown__item--pinterest:hover {
    color: #bd081c;
}


/* Navigation */
.gh-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    overflow: hidden;
    margin: 4rem 0;
}

.gh-post-nav__link {
    background: #fff;
    padding: 2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

.gh-post-nav__link:hover {
    background: #fcfcfc;
}

.gh-post-nav__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gh-post-nav__title {
    font-weight: 800;
    color: #111;
    font-size: 1.1rem;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 1024px) {
    .gh-single__grid {
/*         grid-template-columns: 1fr;
        gap: 3rem; */
		display:block;
    }
}

@media (max-width: 768px) {
    .gh-single {
        padding: 2rem 0;
    }

    .gh-related__grid {
        grid-template-columns: 1fr;
    }

    .gh-single__meta {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1.5rem;
    }

    .gh-single__actions {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 10px;
        position: static;
        /* Help with absolute child if overflow exists */
    }

    /* Ensure dropdown doesn't go off-screen on mobile */
    .gh-share-dropdown__menu {
        bottom: auto;
        top: calc(100% + 10px);
        right: auto;
        left: 0;
        padding: 6px;
        gap: 6px;
        max-width: 280px;
        flex-direction: row;
    }

    .gh-share-dropdown__item {
        width: 36px;
        height: 36px;
    }

    .gh-share-dropdown__item svg {
        width: 16px;
        height: 16px;
    }

    .gh-post-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .gh-single__grid {
        display: block;
/*         flex-direction: column; */
    }

    .sidebar.gh-single__sidebar {
        width: 100%;
    }
}

/* Author Archive Styles */
.gh-author-archive {
    padding-top: 4rem;
}

.gh-author-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 4rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gh-author-card__bg {
    height: 120px;
    background: linear-gradient(135deg, var(--gh-primary, #0b57d0) 0%, #1a73e8 100%);
    opacity: 0.1;
}

.gh-author-card__content {
    padding: 0 3rem 3rem;
    margin-top: -60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gh-author-card__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.gh-author-card__avatar img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gh-author-card__name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #111;
}

.gh-author-card__bio {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.gh-author-card__meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 2rem;
    width: 100%;
    justify-content: center;
}

.gh-author-card__count {
    font-size: 0.95rem;
    color: #888;
}

.gh-author-card__count strong {
    color: #111;
    font-size: 1.25rem;
}

.gh-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--gh-primary, #0b57d0);
    padding-left: 1.5rem;
}

.gh-author-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .gh-author-card__content {
        padding: 0 1.5rem 2rem;
    }

    .gh-author-card__name {
        font-size: 2rem;
    }

    .gh-author-card__meta {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Generic Archive and Search Styles */
.gh-archive-page,
.gh-search-page {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.gh-archive-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.gh-archive-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gh-primary, #0b57d0);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.gh-archive-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #111;
    line-height: 1.1;
}

.gh-archive-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #666;
    margin-top: 1rem;
    max-width: 700px;
}

.gh-archive-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem 2.5rem;
    margin-bottom: 4rem;
}

.gh-no-results {
    text-align: center;
    padding: 6rem 2rem;
    background: #f8f9fa;
    border-radius: 32px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.gh-no-results p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.gh-no-results .search-form {
    max-width: 450px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .gh-archive-title {
        font-size: 2.25rem;
    }

    .gh-archive-posts {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* 404 Error Page Styles */
.gh-error-page {
    padding: 8rem 0;
    text-align: center;
}

.gh-error-content {
    max-width: 800px;
    margin: 0 auto;
}

.gh-error-visual {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.gh-error-code {
    font-size: 10rem;
    font-weight: 900;
    color: #111;
    line-height: 1;
    letter-spacing: -0.05em;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #111 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gh-error-decoration {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, var(--gh-primary, #0b57d0) 0%, transparent 70%);
    opacity: 0.08;
    z-index: 1;
    border-radius: 50%;
}

.gh-error-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #111;
}

.gh-error-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gh-error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.gh-error-search {
    width: 100%;
    max-width: 450px;
}

.gh-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gh-primary, #0b57d0);
    color: #fff !important;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(11, 87, 208, 0.2);
}

.gh-btn-primary:hover {
    box-shadow: 0 10px 30px rgba(11, 87, 208, 0.3);
}

@media (max-width: 768px) {
    .gh-error-page {
        padding: 5rem 0;
    }

    .gh-error-code {
        font-size: 7rem;
    }

    .gh-error-title {
        font-size: 2.25rem;
    }

    .gh-error-text {
        font-size: 1.1rem;
    }
}