/* =============================================
   SAMPLES MAIN PAGE — manual styles (do not overwrite in build)
   Sub-category styles live in samples-category.css
   ============================================= */

/* ===== HERO ===== */
.samples-hero {
    position: relative;
    padding: var(--hero-y) var(--section-x) clamp(80px, 6vw, 130px);
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 45%, #e8f4fd 100%);
    overflow: hidden;
}

.samples-hero-bg {
    position: absolute;
    top: -120px;
    right: -180px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 119, 182, 0.07) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.samples-hero-bg-2 {
    position: absolute;
    bottom: -200px;
    left: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.samples-hero > .breadcrumb {
    position: absolute;
    top: 24px;
    left: var(--section-x);
    margin: 0;
    z-index: 2;
    font-size: 0.9rem;
    color: var(--text-muted);
}

html[dir="rtl"] .samples-hero > .breadcrumb {
    left: auto;
    right: var(--section-x);
}

.samples-hero > .breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.samples-hero > .breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.samples-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--page-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(48px, 4vw, 96px);
    width: 100%;
    padding-top: 8px;
}

.samples-hero-text {
    flex: 1;
    min-width: 0;
}

.samples-hero-text h1 {
    font-size: clamp(2.2rem, 4vw, 5rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.samples-hero-text > p {
    font-size: clamp(1.05rem, 1vw, 1.24rem);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0;
    max-width: var(--readable-max);
}

.samples-hero-visual {
    flex: 0 0 42%;
    max-width: clamp(520px, 34vw, 720px);
}

/* ===== HERO STATS ===== */
.hero-quick-specs {
    display: flex;
    gap: 14px;
    margin: 28px 0;
    flex-wrap: wrap;
}

.qs-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 110px;
    box-shadow: var(--shadow-sm);
}

.qs-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.qs-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
    font-weight: 600;
}

/* ===== HERO MOSAIC ===== */
.hero-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
}

.hero-mosaic-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.hero-mosaic-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
}

.hero-mosaic-item:not(:first-child) {
    aspect-ratio: 4 / 3;
}

.hero-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mosaic-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary);
}

html[dir="rtl"] .mosaic-label {
    left: auto;
    right: 12px;
}

/* ===== CATEGORY CARDS ===== */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--grid-gap);
    max-width: var(--page-max);
    margin: 0 auto;
}

.cat-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.cat-card-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.cat-card-count {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
}

.cat-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.cat-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.cat-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.cat-card:hover .cat-card-link i {
    transform: translateX(4px);
}

html[dir="rtl"] .cat-card:hover .cat-card-link i {
    transform: translateX(-4px);
}

.cat-card-link i {
    transition: transform 0.2s ease;
}

/* ===== VALUE CARDS ===== */
.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--grid-gap);
    max-width: var(--page-max);
    margin: 0 auto;
}

.value-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== PROCESS FLOW ===== */
.process-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    max-width: var(--content-max);
    margin: 0 auto;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.process-step h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===== CTA (shared look with sub-pages) ===== */
.sample-cta-section {
    background: linear-gradient(135deg, #0a2a43, #0d3b5e);
    padding: 80px 8%;
    text-align: center;
    color: #fff;
}

.sample-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.sample-cta-content h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: #fff;
}

.sample-cta-content p {
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .samples-hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .samples-hero-visual {
        flex: none;
        width: 100%;
        max-width: 480px;
    }

    .process-flow {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .samples-hero {
        padding: 68px 5% 60px;
    }

    .samples-hero > .breadcrumb {
        top: 20px;
        left: 5%;
    }

    html[dir="rtl"] .samples-hero > .breadcrumb {
        left: auto;
        right: 5%;
    }

    .hero-quick-specs {
        gap: 10px;
    }

    .qs-item {
        flex: 1;
        min-width: calc(50% - 10px);
        padding: 14px 16px;
    }

    .process-flow {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
    }

    .cta-group .btn {
        width: 100%;
        justify-content: center;
    }
}
