/*
Theme Name: HESS Hello Elementor Child
Theme URI: https://hesspk.com/
Description: HESS child theme for Hello Elementor with custom Author and Category archives.
Author: HESS
Template: hello-elementor
Version: 2.0.0
Text Domain: hess-hello-child
*/

/* =========================
   GLOBAL ARCHIVE CONTAINER
========================= */
.hess-archive-page,
.hess-author-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 80px;
}

.hess-archive-title,
.hess-articles-heading {
    color: #223a66;
    font-weight: 700;
    line-height: 1.2;
}

.hess-archive-title {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 44px);
}

.hess-archive-subheading,
.hess-articles-heading {
    position: relative;
    margin: 0 0 30px;
    padding-bottom: 13px;
    font-size: clamp(26px, 3vw, 32px);
}

.hess-archive-subheading::after,
.hess-articles-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58px;
    height: 3px;
    background: #f28c00;
}

/* =========================
   BLOG GRID
========================= */
.hess-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.hess-blog-card {
    overflow: hidden;
    margin: 0;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hess-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.hess-blog-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
}

.hess-blog-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hess-blog-card-content {
    padding: 20px 20px 22px;
}

.hess-blog-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.hess-blog-title a {
    color: #223a66;
    text-decoration: none;
}

.hess-blog-title a:hover,
.hess-blog-title a:focus {
    color: #f28c00;
}

.hess-blog-excerpt {
    margin-bottom: 16px;
    color: #62666d;
    font-size: 14px;
    line-height: 1.65;
}

.hess-read-more {
    color: #f28c00;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.hess-read-more:hover,
.hess-read-more:focus {
    color: #223a66;
}

/* =========================
   AJAX PAGINATION
========================= */
.hess-ajax-area {
    position: relative;
}

.hess-ajax-area.is-loading {
    opacity: .55;
    pointer-events: none;
}

.hess-ajax-area.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 35px;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border: 3px solid rgba(34,58,102,.2);
    border-top-color: #f28c00;
    border-radius: 50%;
    animation: hess-spin .7s linear infinite;
    z-index: 3;
}

@keyframes hess-spin {
    to { transform: rotate(360deg); }
}

.hess-pagination {
    margin-top: 42px;
}

.hess-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hess-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9dde4;
    border-radius: 6px;
    background: #fff;
    color: #223a66;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.hess-pagination .page-numbers.current,
.hess-pagination .page-numbers:hover,
.hess-pagination .page-numbers:focus {
    color: #fff;
    background: #f28c00;
    border-color: #f28c00;
}

.hess-pagination .page-numbers.current {
    pointer-events: none;
}

.hess-pagination-status {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* =========================
   CATEGORY DESCRIPTION
   Appears AFTER blog list/pagination
========================= */
.hess-category-description {
    margin-top: 55px;
    padding-top: 32px;
    border-top: 1px solid #e6e8ec;
    color: #4e535a;
    font-size: 16px;
    line-height: 1.8;
}

.hess-category-description > :first-child {
    margin-top: 0;
}

.hess-category-description > :last-child {
    margin-bottom: 0;
}

/* =========================
   AUTHOR PROFILE
========================= */
.hess-author-profile {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 32px;
    margin: 0 0 58px;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
}

.hess-author-image {
    position: relative;
    width: 240px;
    height: 240px;
    min-width: 240px;
    min-height: 240px;
    overflow: hidden;
    border-radius: 50%;
    background: #f3f3f3;
    justify-self: center;
}

.hess-author-image img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 0 !important;
    border-radius: 50% !important;
}

.hess-author-name {
    margin: 0 0 6px;
    color: #223a66;
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 700;
}

.hess-author-designation {
    margin: 0 0 18px;
    color: #f28c00;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
}

.hess-author-bio {
    max-width: 790px;
    color: #4f5359;
    font-size: 16px;
    line-height: 1.75;
}

.hess-author-bio p {
    margin: 0 0 12px;
}

.hess-author-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.hess-social-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 1px solid #223a66;
    border-radius: 50%;
    background: #223a66;
    color: #fff !important;
    text-decoration: none !important;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.hess-social-link:hover,
.hess-social-link:focus-visible {
    background: #f28c00;
    border-color: #f28c00;
    color: #fff !important;
    transform: translateY(-2px);
    outline: none;
}

.hess-social-link svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: currentColor;
}

.hess-social-website svg,
.hess-social-instagram svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {
    .hess-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hess-author-profile {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 28px;
    }

    .hess-author-image {
        width: 190px;
        height: 190px;
        min-width: 190px;
        min-height: 190px;
    }
}

@media (max-width: 767px) {
    .hess-archive-page,
    .hess-author-page {
        width: min(100% - 28px, 1180px);
        padding: 35px 0 55px;
    }

    .hess-blog-grid {
        grid-template-columns: 1fr;
    }

    .hess-author-profile {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px;
        text-align: center;
    }

    .hess-author-image {
        width: 170px;
        height: 170px;
        min-width: 170px;
        min-height: 170px;
    }

    .hess-author-social {
        justify-content: center;
    }

    .hess-articles-heading {
        text-align: center;
    }

    .hess-articles-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}


/* =========================================================
   HESS SINGLE BLOG DETAIL — v2.0
   Adapted from the approved HESS blog detail mockup.
========================================================= */
body.single-post {
    --hess-navy: #223A66;
    --hess-orange: #F28C00;
    --hess-bg: #F7F9FC;
    --hess-text: #2F3540;
    --hess-muted: #6C7480;
    --hess-border: #E5E9F0;
    --hess-white: #FFFFFF;
    --hess-shadow: 0 12px 34px rgba(34,58,102,.08);
    background: var(--hess-bg);
    color: var(--hess-text);
}

body.single-post .hess-single-breadcrumb-wrap {
    background: var(--hess-white);
    border-bottom: 1px solid var(--hess-border);
}
body.single-post .hess-single-breadcrumbs {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 14px 0;
    color: var(--hess-muted);
    font-size: 13px;
}
body.single-post .hess-single-breadcrumbs a {
    color: var(--hess-navy);
    text-decoration: none;
}
body.single-post .hess-single-breadcrumbs a:hover { color: var(--hess-orange); }
body.single-post .hess-single-breadcrumbs .sep { margin: 0 8px; color: #9aa3ae; }

body.single-post .hess-single-hero {
    background: linear-gradient(180deg,#fff 0%,#f8fafc 100%);
    border-bottom: 1px solid var(--hess-border);
}
body.single-post .hess-single-hero-inner {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 44px;
    text-align: center;
}
body.single-post .hess-single-category {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border: 1px solid rgba(242,140,0,.22);
    border-radius: 999px;
    background: rgba(242,140,0,.1);
    color: #b76500;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    text-decoration: none;
}
body.single-post .hess-single-title {
    max-width: 920px;
    margin: 0 auto 18px;
    color: var(--hess-navy);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -1.1px;
}
body.single-post .hess-single-intro {
    max-width: 790px;
    margin: 0 auto 24px;
    color: var(--hess-muted);
    font-size: 18px;
    line-height: 1.7;
}
body.single-post .hess-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    color: var(--hess-muted);
    font-size: 14px;
}
body.single-post .hess-single-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--hess-navy);
    font-weight: 700;
    text-decoration: none;
}
body.single-post .hess-single-meta-author img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

body.single-post .hess-single-featured-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 34px auto 0;
}
body.single-post .hess-single-featured {
    overflow: hidden;
    border: 1px solid var(--hess-border);
    border-radius: 18px;
    background: #eef2f7;
    box-shadow: var(--hess-shadow);
}
body.single-post .hess-single-featured img {
    width: 100%;
    aspect-ratio: 16 / 8.25;
    max-height: 620px;
    object-fit: cover;
}

body.single-post .hess-single-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 40px auto 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 42px;
    align-items: start;
}
body.single-post .hess-single-article {
    min-width: 0;
    padding: 42px 46px;
    background: var(--hess-white);
    border: 1px solid var(--hess-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(34,58,102,.04);
}
body.single-post .hess-single-content {
    font-size: 16px;
    line-height: 1.78;
}
body.single-post .hess-single-content > *:first-child { margin-top: 0; }
body.single-post .hess-single-content p { margin: 0 0 20px; }
body.single-post .hess-single-content h2 {
    margin: 42px 0 14px;
    color: var(--hess-navy);
    font-size: 30px;
    line-height: 1.25;
}
body.single-post .hess-single-content h3 {
    margin: 30px 0 10px;
    color: var(--hess-navy);
    font-size: 22px;
    line-height: 1.3;
}
body.single-post .hess-single-content h4 {
    margin: 24px 0 9px;
    color: var(--hess-navy);
    font-size: 18px;
}
body.single-post .hess-single-content ul,
body.single-post .hess-single-content ol {
    margin: 0 0 22px;
    padding-left: 24px;
}
body.single-post .hess-single-content li { margin: 8px 0; }
body.single-post .hess-single-content a {
    color: var(--hess-orange);
    font-weight: 650;
}
body.single-post .hess-single-content img {
    height: auto;
    border-radius: 10px;
}
body.single-post .hess-single-content blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--hess-orange);
    border-radius: 0 8px 8px 0;
    background: #FFF8EE;
    color: #4d5560;
}
body.single-post .hess-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 30px;
    border: 1px solid var(--hess-border);
}
body.single-post .hess-single-content th,
body.single-post .hess-single-content td {
    padding: 14px 16px;
    border: 1px solid var(--hess-border);
    text-align: left;
}
body.single-post .hess-single-content th {
    background: #F3F6FA;
    color: var(--hess-navy);
}

/* Sticky sidebar */
body.single-post .hess-single-sidebar {
    position: sticky;
    top: 24px;
}
body.admin-bar.single-post .hess-single-sidebar { top: 56px; }
body.single-post .hess-single-toc,
body.single-post .hess-single-share {
    margin-bottom: 18px;
    padding: 22px;
    background: var(--hess-white);
    border: 1px solid var(--hess-border);
    border-radius: 14px;
}
body.single-post .hess-single-side-title {
    margin: 0 0 14px;
    color: var(--hess-navy);
    font-size: 17px;
}
body.single-post .hess-single-toc-links a {
    display: block;
    padding: 7px 0;
    color: #536070;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
}
body.single-post .hess-single-toc-links a.hess-toc-h3 {
    padding-left: 14px;
    font-size: 13px;
}
body.single-post .hess-single-toc-links a:hover,
body.single-post .hess-single-toc-links a.is-active { color: var(--hess-orange); }
body.single-post .hess-single-toc.is-empty { display: none; }
body.single-post .hess-single-share-row {
    display: flex;
    gap: 10px;
}
body.single-post .hess-single-share-link {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hess-navy);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}
body.single-post .hess-single-share-link:hover { background: var(--hess-orange); }

/* Author box */
body.single-post .hess-single-author-box {
    margin-top: 42px;
    padding: 28px;
    display: grid;
    grid-template-columns: 110px minmax(0,1fr);
    gap: 24px;
    align-items: center;
    background: #F8FAFD;
    border: 1px solid var(--hess-border);
    border-radius: 14px;
}
body.single-post .hess-single-author-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background: #e4e9ef;
}
body.single-post .hess-single-author-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}
body.single-post .hess-single-author-box h3 {
    margin: 0 0 5px;
    font-size: 22px;
    color: var(--hess-navy);
}
body.single-post .hess-single-author-box h3 a { color: inherit; text-decoration: none; }
body.single-post .hess-single-author-role {
    margin-bottom: 8px;
    color: var(--hess-orange);
    font-size: 14px;
    font-weight: 700;
}
body.single-post .hess-single-author-bio {
    margin: 0 0 10px;
    color: var(--hess-muted);
    font-size: 14px;
    line-height: 1.65;
}
body.single-post .hess-single-author-more {
    color: var(--hess-navy);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}
body.single-post .hess-single-author-more:hover { color: var(--hess-orange); }

/* Related Articles — full page width */
body.single-post .hess-single-related {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 58px;
}
body.single-post .hess-single-section-heading {
    margin: 0 0 24px;
    color: var(--hess-navy);
    font-size: 30px;
}
body.single-post .hess-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 24px;
}
body.single-post .hess-single-related-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hess-border);
    border-radius: 12px;
}
body.single-post .hess-single-related-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg,#dfe6ef,#edf1f6);
}
body.single-post .hess-single-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.single-post .hess-single-related-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #718096;
    font-weight: 700;
}
body.single-post .hess-single-related-body { padding: 18px; }
body.single-post .hess-single-related-body h3 {
    margin: 0 0 9px;
    color: var(--hess-navy);
    font-size: 18px;
    line-height: 1.35;
}
body.single-post .hess-single-related-body h3 a { color: inherit; text-decoration: none; }
body.single-post .hess-single-related-body p {
    margin: 0 0 12px;
    color: var(--hess-muted);
    font-size: 14px;
    line-height: 1.55;
}
body.single-post .hess-single-related-readmore {
    color: var(--hess-orange);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

/* Modern WordPress comments */
body.single-post .hess-comments-wrap {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto 80px;
}
body.single-post .hess-comments-card {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--hess-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(34,58,102,.04);
}
body.single-post .hess-comments-title,
body.single-post .comment-reply-title {
    margin: 0 0 7px;
    color: var(--hess-navy);
    font-size: 26px;
    line-height: 1.25;
}
body.single-post .hess-comments-note {
    margin: 0 0 20px;
    color: var(--hess-muted);
    font-size: 13px;
}
body.single-post .hess-comment-list {
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}
body.single-post .hess-comment-list .comment {
    margin: 0 0 15px;
    padding: 18px;
    background: #F8FAFD;
    border: 1px solid var(--hess-border);
    border-radius: 12px;
}
body.single-post .hess-comment-list .children {
    margin: 15px 0 0 24px;
    padding: 0;
    list-style: none;
}
body.single-post .hess-comment-list .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hess-navy);
    font-weight: 700;
}
body.single-post .hess-comment-list .avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
}
body.single-post .hess-comment-list .comment-metadata {
    margin: 4px 0 8px 52px;
    color: var(--hess-muted);
    font-size: 12px;
}
body.single-post .hess-comment-list .comment-content p { margin: 0 0 8px; }
body.single-post .hess-comment-list .reply a {
    color: var(--hess-orange);
    font-size: 12px;
    font-weight: 700;
}
body.single-post .comment-form {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--hess-border);
    border-radius: 14px;
}
body.single-post .hess-comment-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
body.single-post .comment-form p { margin: 0 0 16px; }
body.single-post .comment-form label {
    display: block;
    margin: 0 0 7px;
    color: var(--hess-navy);
    font-size: 13px;
    font-weight: 700;
}
body.single-post .comment-form input[type="text"],
body.single-post .comment-form input[type="email"],
body.single-post .comment-form input[type="url"],
body.single-post .comment-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d5dbe3;
    border-radius: 9px;
    background: #fbfcfe;
    color: var(--hess-text);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
body.single-post .comment-form textarea {
    min-height: 155px;
    resize: vertical;
}
body.single-post .comment-form input:focus,
body.single-post .comment-form textarea:focus {
    outline: none;
    border-color: var(--hess-orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(242,140,0,.12);
}
body.single-post .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--hess-muted);
    font-size: 12px;
}
body.single-post .comment-form-cookies-consent label {
    margin: 0;
    color: inherit;
    font-weight: 400;
}
body.single-post .comment-form .form-submit { margin-bottom: 0; }
body.single-post .comment-form .submit {
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--hess-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
body.single-post .comment-form .submit:hover { background: var(--hess-navy); }
body.single-post .comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 18px 0;
}

@media (max-width: 900px) {
    body.single-post .hess-single-shell { grid-template-columns: 1fr; }
    body.single-post .hess-single-sidebar { position: static; }
    body.single-post .hess-single-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.single-post .hess-single-featured img { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
    body.single-post .hess-single-breadcrumbs,
    body.single-post .hess-single-hero-inner,
    body.single-post .hess-single-featured-wrap,
    body.single-post .hess-single-shell,
    body.single-post .hess-single-related,
    body.single-post .hess-comments-wrap {
        width: calc(100% - 28px);
    }
    body.single-post .hess-single-hero-inner { padding: 38px 0 32px; }
    body.single-post .hess-single-title { font-size: 36px; letter-spacing: -.5px; }
    body.single-post .hess-single-intro { font-size: 16px; }
    body.single-post .hess-single-featured-wrap { margin-top: 22px; }
    body.single-post .hess-single-featured { border-radius: 12px; }
    body.single-post .hess-single-shell { margin-top: 26px; gap: 24px; }
    body.single-post .hess-single-article { padding: 28px 22px; }
    body.single-post .hess-single-content h2 { font-size: 26px; }
    body.single-post .hess-single-content h3 { font-size: 21px; }
    body.single-post .hess-single-author-box { grid-template-columns: 1fr; text-align: center; }
    body.single-post .hess-single-author-photo { margin: 0 auto; }
    body.single-post .hess-single-related-grid { grid-template-columns: 1fr; }
    body.single-post .hess-comments-card { padding: 22px 18px; }
    body.single-post .comment-form { padding: 18px; }
    body.single-post .hess-comment-fields-row { grid-template-columns: 1fr; gap: 0; }
}


/**
 * HESS Website Schema Markup
 * Outputs LocalBusiness, Organization, and WebSite Schema
 * site-wide in the <head>.
 */
function hess_website_schema() {

    $schema = array(
        "@context" => "https://schema.org",
        "@graph" => array(

            // Local Business Schema
            array(
                "@type" => "LocalBusiness",
                "@id" => "https://hesspk.com/#localbusiness",
                "name" => "HESS",
                "alternateName" => "Hand Elbow Shoulder Solutions",
                "image" => "https://hesspk.com/wp-content/uploads/2025/07/Hess-Logo-1024x711.png",
                "url" => "https://hesspk.com/",
                "telephone" => "+92 306 0221167",

                "address" => array(
                    "@type" => "PostalAddress",
                    "streetAddress" => "2nd floor, Farooq Hospital DHA Lahore, Ghazi Rd, DHA",
                    "addressLocality" => "Lahore",
                    "postalCode" => "54000",
                    "addressCountry" => "PK"
                ),

                "geo" => array(
                    "@type" => "GeoCoordinates",
                    "latitude" => "31.4698877",
                    "longitude" => "74.3879415"
                ),

                "sameAs" => array(
                    "https://www.facebook.com/hess.pak/",
                    "https://www.instagram.com/hess_pak/",
                    "https://www.youtube.com/channel/UClXuNa10q_cStVFpIJYqKMw",
                    "https://www.linkedin.com/company/hand-elbow-shoulder-solutions"
                )
            ),

            // Organization Schema
            array(
                "@type" => "Organization",
                "@id" => "https://hesspk.com/#organization",
                "name" => "HESS",
                "alternateName" => "Hand Elbow Shoulder Solutions",
                "url" => "https://hesspk.com/",
                "logo" => "https://hesspk.com/wp-content/uploads/2025/07/Hess-Logo-1024x711.png",

                "sameAs" => array(
                    "https://www.facebook.com/hess.pak/",
                    "https://www.instagram.com/hess_pak/",
                    "https://www.youtube.com/channel/UClXuNa10q_cStVFpIJYqKMw",
                    "https://www.linkedin.com/company/hand-elbow-shoulder-solutions"
                )
            ),

            // WebSite Schema
            array(
                "@type" => "WebSite",
                "@id" => "https://hesspk.com/#website",
                "name" => "HESS",
                "url" => "https://hesspk.com/",
                "publisher" => array(
                    "@id" => "https://hesspk.com/#organization"
                ),
                "potentialAction" => array(
                    "@type" => "SearchAction",
                    "target" => array(
                        "@type" => "EntryPoint",
                        "urlTemplate" => "https://hesspk.com/?s={search_term_string}"
                    ),
                    "query-input" => "required name=search_term_string"
                )
            )

        )
    );

    echo '<script type="application/ld+json">' .
        wp_json_encode(
            $schema,
            JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE
        ) .
        '</script>' . "\n";
}

add_action('wp_head', 'hess_website_schema', 10);
