/* =============================================================
   Single Post — Enterprise Uganda child theme
   ============================================================= */

/* ---------------------------------------------------------------
   1. Category Banner
--------------------------------------------------------------- */
.rh-category-banner {
    position: relative;
    background-color: #0D2B82;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0;
    width: 100%;
}

.rh-category-banner .hero-pattern-wrapper {
    height: 300px;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-28%, -50%);
    width: 100px;
    z-index: 0;
}

.rh-category-banner-inner {
    max-width: 80rem;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.rh-category-banner__title {
    color: #ffffff;
    font-size: 62px;
    font-weight: 400;
    letter-spacing: 0%;
    line-height: 100%;
    margin: 0;
}

.rh-category-banner__desc {
    color: rgba(239, 246, 255, 0.9);
    font-size: 1rem;
    text-align: left;
    line-height: 1.625;
    font-weight: 400;
    margin: 0;
}

@media (min-width: 768px) {
    .rh-category-banner {
        padding: 0 1.5rem;
    }

    .rh-category-banner-inner {
        flex-direction: row;
        align-items: flex-end;
        gap: 3rem;
    }

    .rh-category-banner__title {
        font-size: 5.5rem;
    }

    .rh-category-banner__desc {
        max-width: 462px;
        text-align: left;
        font-weight: 400;
        font-size: 20px;
        line-height: 30px;
        letter-spacing: 0%;
        font-family: 'Urbanist';
    }
}

@media (min-width: 1024px) {
    .rh-category-banner {
        padding: 0 3rem;
    }
}

/* ---------------------------------------------------------------
   2. Published Date
--------------------------------------------------------------- */
.rh-publish-date {
    color: #2563EB;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0%;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .rh-publish-date {
        font-size: 1rem;
    }
}

/* ---------------------------------------------------------------
   3. Hero Section (type-2) — title + excerpt
--------------------------------------------------------------- */
.hero-section[data-type="type-2"] {
    background: #ffffff;
    padding: 0;
}

.hero-section[data-type="type-2"] .entry-header {
    max-width: 64rem;
    margin: 0 auto;
    padding: 4rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-section[data-type="type-2"] .entry-header {
        padding: 6rem 1.5rem 0;
    }
}

.hero-section[data-type="type-2"] .page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    margin: 0 auto 2rem auto;
    max-width: 56rem;
    letter-spacing: -0.025em;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-section[data-type="type-2"] .page-title {
        font-size: 3.75rem;
        line-height: 1.15;
    }
}

@media (min-width: 1024px) {
    .hero-section[data-type="type-2"] .page-title {
        font-size: 4rem;
    }
}

.hero-section[data-type="type-2"] .page-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto 4rem auto;
    line-height: 1.625;
    font-weight: 400;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-section[data-type="type-2"] .page-description {
        font-size: 1.25rem;
    }
}

/* ---------------------------------------------------------------
   4. Featured Image Card (below hero)
--------------------------------------------------------------- */
.rh-featured-image-wrapper {
    max-width: 1216px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    width: 100%;
    box-sizing: border-box;
}

.rh-hero-image-card {
    width: 100%;
    overflow: hidden;
    background-color: #f3f4f6;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.rh-hero-img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    object-position: top;
    transition: transform 700ms ease-in-out;
    display: block;
}

.rh-hero-img:hover {
    transform: scale(1.05);
}

/* =============================================================
   4. Single Post
   ============================================================= */

article.post.type-post.hentry .entry-content.is-layout-constrained,
.rh-author-share-row.is-width-constrained {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}   

/* =============================================================
   5. Author + Share Row
   ============================================================= */

.rh-author-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* --- Author info --- */
.rh-post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rh-author-avatar-link {
    flex-shrink: 0;
    display: block;
}

.rh-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.rh-author-info {
    display: flex;
    flex-direction: column;
}

.rh-author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    display: block;
}

.rh-author-bio {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
    display: block;
}

/* --- Share buttons wrapper --- */
.rh-share-buttons {
    display: flex;
    align-items: center;
}

/* Strip all Blocksy box chrome off the share box inside our row */
.rh-share-buttons .ct-share-box {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide the "Share your love" module title */
.rh-share-buttons .ct-share-box .ct-module-title {
    display: none;
}

/* Hide tooltips */
.rh-share-buttons .ct-share-box .ct-tooltip {
    display: none !important;
}

/* Links wrapper — horizontal flex */
.rh-share-buttons .ct-share-box > div[data-icons-type] {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Each share link — circle outline by default */
.rh-share-buttons .ct-share-box > div[data-icons-type] > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 1px solid #d1d5db !important;
    border-radius: 9999px !important;
    background: transparent !important;
    color: #374151 !important;
    padding: 0.5rem !important;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    transition: background-color 150ms ease, border-color 150ms ease;
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
}

.rh-share-buttons .ct-share-box > div[data-icons-type] > a:hover {
    background-color: #f9fafb !important;
    border-color: #9ca3af !important;
}

/* Icon sizing */
.rh-share-buttons .ct-share-box > div[data-icons-type] > a .ct-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.rh-share-buttons .ct-share-box > div[data-icons-type] > a .ct-icon-container svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

/* Hide labels on all links (icon-only circles) */
.rh-share-buttons .ct-share-box > div[data-icons-type] > a .ct-label {
    display: none;
}

/* "Copy link" — pill with visible label */
.rh-share-buttons .ct-share-box > div[data-icons-type] > a[data-network="clipboard"] {
    padding: 0.5rem 0.875rem !important;
}

.rh-share-buttons .ct-share-box > div[data-icons-type] > a[data-network="clipboard"] .ct-label {
    display: inline;
}
