/**
 * Pulse Builder Frontend Styles
 * Premium, responsive editorial layout system.
 * Arabic RTL — Medical UX
 */

/* شريط الثقة الطبي في التذييل */
.pulse-footer__trust-bar {
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding-block: 18px;
    margin-bottom: 0;
}
.pulse-footer__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.pulse-footer__trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Cairo', system-ui, sans-serif;
    color: rgba(255,255,255,.65);
    transition: color 0.2s ease;
}
.pulse-footer__trust-badge:hover {
    color: rgba(255,255,255,.9);
}
@media (max-width: 640px) {
    .pulse-footer__trust {
        gap: 16px;
    }
    .pulse-footer__trust-badge {
        font-size: 11px;
    }
}

/* ── Section Wrapper ────────────────────────────────────────────────────────── */
.pulse-builder-section {
    padding: 60px 0;
    position: relative;
    background-size: cover;
    background-position: center;
}

.pulse-section-width-full .pulse-container {
    max-width: 100%;
    padding: 0;
}

.pulse-section-layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.pulse-section-main {
    flex: 1;
    min-width: 0;
}

.pulse-section-sidebar {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .pulse-section-sidebar {
        width: 100%;
    }
}

.pulse-sticky-sidebar {
    position: sticky;
    top: 20px;
}

/* ── Dark Skin ───────────────────────────────────────────────────────────────── */
.pulse-dark-skin {
    background-color: #1a202c;
    color: #f7fafc;
}

.pulse-dark-skin .pulse-section-title,
.pulse-dark-skin .pulse-block-title {
    color: #fff;
}

/* ── Block General ───────────────────────────────────────────────────────────── */
.pulse-builder-block {
    margin-bottom: 40px;
}

.pulse-block-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.pulse-block-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    padding-bottom: 10px;
    position: relative;
}

.pulse-block-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--pulse-primary, #3b82f6);
}

/* ── Slider Block ────────────────────────────────────────────────────────────── */
.pulse-slider {
    position: relative;
    overflow: hidden;
}

.pulse-slider__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 15px;
}

.pulse-slider__track::-webkit-scrollbar {
    height: 4px;
}

.pulse-slider__track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.pulse-slider__slide {
    flex: 0 0 80%;
    scroll-snap-align: center;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .pulse-slider__slide {
        flex: 0 0 60%;
    }
}

.pulse-slider__slide-bg {
    position: absolute;
    inset: 0;
}

.pulse-slider__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pulse-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.pulse-slider__slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: #fff;
}

.pulse-slider__slide-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 10px 0;
}

.pulse-slider__slide-title a {
    color: #fff;
    text-decoration: none;
}

.pulse-slider__slide-title a:hover {
    text-decoration: underline;
}

/* ── Grid/Layout Adjustments ────────────────────────────────────────────────── */
.pulse-grid-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

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