/* Single post hero — card layout */
.al-post-hero {
    --al-green: #0F8A4B;
    --al-green-soft: #E8F7EF;
    --al-green-text: #0B6B3A;
    --al-ink: #0F172A;
    --al-muted: #64748B;
    --al-line: #E2E8F0;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 12px 16px 8px;
    box-sizing: border-box;
    font-family: 'Cairo', Tahoma, sans-serif;
}

.al-post-hero__media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1E293B;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.al-post-hero__media .al-post-hero__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
}

.al-post-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.05) 0%,
        rgba(15, 23, 42, 0.12) 55%,
        rgba(15, 23, 42, 0.45) 100%
    );
    pointer-events: none;
}

.al-post-hero__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    background: var(--al-green);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    line-height: 1.2;
    box-shadow: 0 6px 16px rgba(15, 138, 75, 0.35);
}

.al-post-hero[dir="ltr"] .al-post-hero__badge {
    right: auto;
    left: 14px;
}

.al-post-hero__body {
    padding: 18px 4px 6px;
    text-align: right;
}

.al-post-hero[dir="ltr"] .al-post-hero__body {
    text-align: left;
}

.al-post-hero__title {
    margin: 0 0 14px;
    color: var(--al-ink);
    font-size: clamp(1.35rem, 4.2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.45;
}

.al-post-hero__tag {
    display: inline-flex;
    align-items: center;
    background: var(--al-green-soft);
    color: var(--al-green-text);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: background 0.2s, color 0.2s;
}

.al-post-hero__tag:hover {
    background: #d5f0e2;
    color: var(--al-green);
}

.al-post-hero__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px solid transparent;
}

.al-post-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--al-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.al-post-hero__meta-item i {
    font-size: 0.95rem;
    color: #94A3B8;
}

/* Elementor shortcode widget spacing reset */
.elementor-location-single .elementor-element-0b4bfbd {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
}

.elementor-location-single .elementor-element-0b4bfbd .elementor-widget-shortcode,
.elementor-location-single .elementor-element-0b4bfbd .elementor-widget-container,
.elementor-location-single .elementor-element-0b4bfbd .elementor-shortcode {
    margin: 0;
    padding: 0;
}

/* Sidebar account CTA (before related posts) */
.al-account-cta {
    --al-green: #10B981;
    --al-green-dark: #0F8A4B;
    --al-ink: #0F172A;
    --al-muted: #64748B;
    --al-blue: #1877F2;
    width: 100%;
    margin: 0 0 18px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(145deg, #EFF6FF 0%, #F0FDF4 55%, #ECFDF5 100%);
    border: 1px solid rgba(24, 119, 242, 0.22);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    font-family: 'Cairo', Tahoma, sans-serif;
    box-sizing: border-box;
}

.al-account-cta__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.al-account-cta__verified {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    line-height: 0;
    filter: drop-shadow(0 2px 4px rgba(24, 119, 242, 0.35));
}

.al-account-cta__verified svg {
    display: block;
}

.al-account-cta__body {
    min-width: 0;
    flex: 1;
}

.al-account-cta__title {
    display: block;
    margin: 0 0 4px;
    color: var(--al-ink);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
}

.al-account-cta__text {
    margin: 0 !important;
    color: var(--al-muted);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
}

.al-account-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.al-account-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.al-account-cta__btn--primary {
    background: linear-gradient(145deg, #12C48A 0%, var(--al-green-dark) 100%);
    color: #fff !important;
    border: 1px solid transparent;
    box-shadow: 0 6px 16px rgba(15, 138, 75, 0.28);
}

.al-account-cta__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 138, 75, 0.34);
    color: #fff !important;
}

.al-account-cta__btn--secondary {
    background: #fff;
    color: var(--al-ink) !important;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.al-account-cta__btn--secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(24, 119, 242, 0.35);
    color: var(--al-blue) !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

/* Related posts sidebar */
.al-related {
    --al-green: #0F8A4B;
    --al-ink: #0F172A;
    --al-muted: #64748B;
    width: 100%;
    font-family: 'Cairo', Tahoma, sans-serif;
}

.al-related__heading {
    margin: 0 0 14px;
    color: var(--al-ink);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.al-related__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.al-related__card {
    display: block;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s;
}

.al-related__card:hover {
    transform: translateY(-2px);
}

.al-related__media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #1E293B;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.al-related__media .al-related__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
}

.al-related__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.05) 0%,
        rgba(15, 23, 42, 0.2) 60%,
        rgba(15, 23, 42, 0.55) 100%
    );
    pointer-events: none;
}

.al-related__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    background: var(--al-green);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    line-height: 1.2;
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.al-related[dir="ltr"] .al-related__badge {
    right: auto;
    left: 8px;
}

.al-related__title {
    margin: 8px 2px 0;
    color: var(--al-ink);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.al-related__card:hover .al-related__title {
    color: var(--al-green);
}

/* Single content + related layout helpers */
.elementor-location-single .elementor-element-06ddad1 {
    --content-width: 1200px;
}

.elementor-location-single .elementor-element-alrel01,
.elementor-location-single .elementor-element-alrel01 .elementor-widget-container,
.elementor-location-single .elementor-element-alrel01 .elementor-shortcode {
    margin: 0;
    padding: 0;
}

@media (max-width: 640px) {
    .al-post-hero {
        padding: 10px 12px 4px;
    }

    .al-post-hero__media {
        border-radius: 18px;
        aspect-ratio: 16 / 9;
    }

    .al-post-hero__badge {
        top: 12px;
        right: 12px;
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .al-post-hero__body {
        padding: 16px 2px 4px;
    }

    .al-post-hero__title {
        font-size: 1.28rem;
        margin-bottom: 12px;
    }

    .al-post-hero__meta-item {
        font-size: 0.82rem;
    }

    .al-related__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .al-related__title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
}
