/*
Theme Name: Hero By He
Theme URI: https://by-we.com
Author: by-we.com
Description: تم اختصاصی سبک و بدون وابستگی به پلاگین/لایسنس، جایگزین Bricks Builder. سکشن‌ها با بلاک‌های بومی وردپرس (Gutenberg) ساخته و در ترتیب دلخواه چیده می‌شوند.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hero-by-he
*/

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
}

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: inherit; }

/* ===== Hero Section ===== */
.hbh-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    min-height: 320px;
}
.hbh-hero h1 { font-size: 2.4rem; margin: 0 0 10px; }
.hbh-hero p { font-size: 1.1rem; margin: 0 0 20px; opacity: .9; }
.hbh-hero-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background .2s;
}
.hbh-hero-btn:hover { background: #333; }

/* ===== Slider Section ===== */
.hbh-slider { position: relative; overflow: hidden; }
.hbh-slider-track { display: flex; transition: transform .4s ease; }
.hbh-slide { flex: 0 0 100%; position: relative; }
.hbh-slide img { width: 100%; height: 420px; object-fit: cover; }
.hbh-slide-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff; padding: 30px 20px 20px;
}
.hbh-slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.4); color: #fff; border: none;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px;
}
.hbh-slider-prev { left: 15px; }
.hbh-slider-next { right: 15px; }

/* ===== Grid Section ===== */
.hbh-grid {
    display: grid;
    gap: 24px;
    padding: 40px 0;
}
.hbh-grid-item {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.hbh-grid-item img { width: 100%; height: 200px; object-fit: cover; }
.hbh-grid-item-body { padding: 16px; }
.hbh-grid-item-body h3 { margin: 0 0 8px; font-size: 1.1rem; }
.hbh-grid-item-body p { margin: 0 0 12px; font-size: .9rem; color: #555; }
.hbh-grid-item-link { font-weight: bold; text-decoration: none; }
