/* ======================================================
   Website Builder Templates Page — external stylesheet
   All custom styles for /website-builder/templates
   ====================================================== */

/* ── Hero ── */
.wb-hero {
    text-align: center;
    padding: 60px 0 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}
.wb-hero h1 {
    font-size: 46px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.15;
    margin-bottom: 16px;
}
.wb-hero .wb-hero-sub {
    font-size: 17px;
    color: #666;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.wb-hero-free {
    color: #27ae60;
    font-weight: 600;
}
.wb-hero-deco {
    position: absolute;
    border-radius: 50%;
    opacity: .12;
    pointer-events: none;
}
.wb-hero-deco-1 { width:300px;height:300px;background:var(--main-color,#e74c3c);top:-80px;right:-80px; }
.wb-hero-deco-2 { width:200px;height:200px;background:var(--main-color,#e74c3c);bottom:-60px;left:-60px; }

/* ── How To Setup — card style matching Businessso ── */
.wb-setup-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    transition: box-shadow .3s, transform .3s;
    height: 100%;
}
.wb-setup-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    transform: translateY(-5px);
}
.wb-setup-card-icon {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 32px 24px 20px;
    display: flex;
    align-items: flex-end;
    min-height: 130px;
}
.wb-setup-card-icon img,
.wb-setup-card-icon svg {
    width: 80px;
    height: 80px;
}
.wb-setup-card-body {
    padding: 20px 24px 28px;
}
.wb-setup-card-body h5 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.wb-setup-card-body p {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
    margin: 0;
}

/* ── Template gallery cards ── */
.wb-tpl-card {
    margin-bottom: 36px;
    cursor: pointer;
}
.wb-tpl-image {
    position: relative;
    overflow: hidden;
    max-height: 420px;
    border-radius: 10px;
    filter: drop-shadow(0 8px 40px rgba(43,43,43,.1));
}
.wb-tpl-image img {
    width: 100%;
    display: block;
    transition: transform 10s ease-out;
}
.wb-tpl-card:hover .wb-tpl-image img {
    transform: translateY(calc(-100% + 420px));
}
.wb-tpl-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0,0,0,.4);
    z-index: 4;
}
.wb-tpl-card:hover .wb-tpl-overlay { opacity: 1; }
.wb-tpl-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    background: #fff;
    border: 2px solid var(--main-color,#e74c3c);
    border-radius: 50%;
    color: var(--main-color,#e74c3c);
    font-size: 18px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.wb-tpl-icon-btn:hover { background: var(--main-color,#e74c3c); color: #fff; }
.wb-tpl-empty {
    height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    background: #f0f2f5;
    border-radius: 10px;
}
.wb-tpl-info { margin-top: 18px; }
.wb-tpl-info h4 {
    font-size: 19px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.wb-tpl-info h4 a { color: inherit; text-decoration: none; }
.wb-tpl-card:hover .wb-tpl-info h4 a { color: var(--main-color,#e74c3c); }
.wb-badge-trial {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 6px;
}
.wb-tpl-price { font-size: 13px; color: #888; }
.wb-tpl-start {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 8px;
    transition: color .2s;
}
.wb-tpl-start:hover { color: var(--main-color,#e74c3c); }

/* ── Feature cards ── */
.wb-feature-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 30px 24px;
    margin-bottom: 24px;
    transition: box-shadow .3s, transform .3s;
}
.wb-feature-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
    transform: translateY(-4px);
}
.wb-feature-icon {
    width: 58px; height: 58px;
    border-radius: 12px;
    background: #fff3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 24px;
    color: var(--main-color,#e74c3c);
}
.wb-feature-card h5 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.wb-feature-card p {
    font-size: 13px;
    color: #888;
    line-height: 1.75;
    margin: 0;
}

/* ── Testimonial cards ── */
.wb-testi-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 30px 26px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.wb-testi-stars { color: #f39c12; font-size: 14px; margin-bottom: 14px; }
.wb-testi-text {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}
.wb-testi-author { display: flex; align-items: center; gap: 14px; }
.wb-testi-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--main-color,#e74c3c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    flex-shrink: 0;
}
.wb-testi-name { font-weight: 700; font-size: 14px; color: #1a1a1a; }
.wb-testi-role { font-size: 12px; color: #aaa; }

/* ── CTA box ── */
.wb-cta-box {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg,#fff5f5,#ffe8e8);
    border-radius: 16px;
    border: 1px solid #f5d5d5;
    margin-top: 50px;
}
.wb-cta-box h4 { font-weight: 800; font-size: 22px; margin-bottom: 10px; color: #1a1a1a; }
.wb-cta-box p { color: #888; margin-bottom: 24px; }

/* ── Pagination ── */
.wb-pagination { display:flex; justify-content:center; align-items:center; gap:6px; margin-top:48px; flex-wrap:wrap; }
.wb-pagination .page-item .page-link {
    display:inline-flex; align-items:center; justify-content:center;
    width:40px; height:40px; border-radius:8px;
    border:2px solid #f0f0f0; background:#fff;
    font-size:14px; font-weight:600; color:#555;
    text-decoration:none; transition:all .2s;
}
.wb-pagination .page-item .page-link:hover,
.wb-pagination .page-item.active .page-link {
    background:var(--main-color,#e74c3c);
    border-color:var(--main-color,#e74c3c);
    color:#fff;
}
.wb-pagination .page-item.disabled .page-link { opacity:.4; pointer-events:none; }

/* ── Utility ── */
.wb-subtitle-tag {
    display: inline-block;
    color: var(--main-color,#e74c3c);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
