﻿/* ═══════════════════════════════════════
   USE GUIDE — NEW LAYOUT STYLES
═══════════════════════════════════════ */

/* ─── Hero ─── */
.ug-main { background: #eef2f7; }

.ug-hero {
    background: linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.70)),
                url('../images/illustrations/user guide  hero section.webp') center/cover no-repeat;
    padding: 70px 20px 60px;
    text-align: center;
    border-bottom: 3px solid #2563eb;
}
.ug-hero-inner { max-width: 760px; margin: 0 auto; }
.ug-hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border: 1px solid #2563eb;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; padding: 6px 18px;
    border-radius: 50px; margin-bottom: 22px;
    text-transform: uppercase;
}
.ug-hero-title { font-size: 38px; font-weight: 800; color: #ffffff; line-height: 1.2; margin-bottom: 16px; }
.ug-hero-sub { font-size: 15px; color: rgba(255,255,255,0.90); line-height: 1.8; margin-bottom: 36px; }
.ug-hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.ug-stat span { display: block; font-size: 28px; font-weight: 800; color: #2563eb; }
.ug-stat small { display: block; font-size: 12px; color: rgba(255,255,255,0.80); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ─── Body: Sidebar + Content ─── */
.ug-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    align-items: start;
}

/* ─── Sidebar ─── */
.ug-sidebar { position: sticky; top: 80px; }
.ug-toc {
    background: #fff; border-radius: 10px;
    padding: 24px; margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.ug-toc-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #64748b; margin-bottom: 16px; }
.ug-toc ul { list-style: none; padding: 0; margin: 0; }
.ug-toc ul li { margin-bottom: 4px; }
.ug-toc ul li a {
    display: block; padding: 9px 12px; border-radius: 6px;
    font-size: 14px; font-weight: 500; color: #334155;
    text-decoration: none; transition: all 0.2s;
}
.ug-toc ul li a:hover, .ug-toc ul li a.active {
    background: #e0f2fe; color: #2563eb; font-weight: 700;
    border-left: 3px solid #2563eb;
}
.ug-sidebar-box {
    background: #f8fafc; border-radius: 10px;
    padding: 22px; margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.ug-sidebar-box h4 { font-size: 13px; font-weight: 700; color: #2563eb; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.ug-sidebar-box p { font-size: 13px; color: #64748b; margin-bottom: 10px; line-height: 1.5; }
.ug-sidebar-cta {
    display: block; text-align: center;
    background: #2563eb; color: #ffffff;
    font-weight: 700; font-size: 14px;
    padding: 12px; border-radius: 8px;
    text-decoration: none; transition: background 0.2s;
}
.ug-sidebar-cta:hover { background: #1d4ed8; }

/* ─── Sections ─── */
.ug-content { display: flex; flex-direction: column; gap: 30px; }
.ug-section {
    background: #fff; border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.ug-section-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 30px; }
.ug-section-num {
    font-size: 52px; font-weight: 800; line-height: 1;
    color: #475569; flex-shrink: 0; margin-top: -4px;
}
.ug-section-title { font-size: 22px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.ug-section-sub { font-size: 14px; color: #64748b; line-height: 1.7; }

/* ─── Photo Grid ─── */
.ug-photo-layout { display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: start; }
.ug-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ug-photo-card {
    background: #ffffff; border: 1px solid #dbe4ef;
    border-radius: 10px; padding: 16px 14px;
    text-align: center; transition: box-shadow 0.2s;
}
.ug-photo-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.ug-photo-icon { font-size: 26px; display: block; margin-bottom: 8px; }
.ug-photo-card p { font-size: 12px; color: #334155; line-height: 1.5; margin: 0; }
.ug-photo-example { display: flex; flex-direction: column; align-items: center; }
.ug-photo-example img { width: 100%; border-radius: 8px 8px 0 0; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.ug-photo-label { background: #f59e0b; color: #ffffff; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 0 0 8px 8px; width: 100%; text-align: center; }

/* ─── Timeline ─── */
.ug-timeline { position: relative; padding-left: 20px; }
.ug-timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: #dbe4ef; }
.ug-step { display: flex; gap: 20px; margin-bottom: 28px; position: relative; }
.ug-step-last { margin-bottom: 0; }
.ug-step-dot {
    width: 38px; height: 38px; border-radius: 50%;
    background: #f8fafc; color: #2563eb;
    font-size: 14px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative; z-index: 1;
    box-shadow: 0 0 0 4px #fff;
}
.ug-step-content { padding-top: 6px; }
.ug-step-content h4 { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.ug-step-content p { font-size: 14px; color: #475569; line-height: 1.7; margin: 0; }
.ug-step-content a { color: #0f172a; font-weight: 600; }

/* ─── Payment Tabs ─── */
.ug-payment-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.ug-tab {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 8px;
    border: 2px solid #cbd5e1; background: #ffffff;
    font-size: 14px; font-weight: 600; color: #475569;
    cursor: pointer; transition: all 0.2s;
}
.ug-tab img { height: 24px; width: auto; border-radius: 4px; object-fit: contain; }
.ug-tab:hover { border-color: #2563eb; color: #0f172a; background: #e0f2fe; }
.ug-tab.active { border-color: #0f172a; background: #f8fafc; color: #2563eb; }
.ug-panel { display: none; }
.ug-panel.active { display: block; }
.ug-pay-steps { list-style: none; padding: 0; margin: 0; counter-reset: pay; }
.ug-pay-steps li {
    counter-increment: pay;
    padding: 12px 16px 12px 52px;
    position: relative; font-size: 14px;
    color: #334155; line-height: 1.7;
    border-bottom: 1px solid #e2e8f0;
}
.ug-pay-steps li:last-child { border-bottom: none; }
.ug-pay-steps li::before {
    content: counter(pay);
    position: absolute; left: 14px; top: 12px;
    width: 26px; height: 26px; border-radius: 50%;
    background: #f8fafc; color: #2563eb;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ─── Contact Banner ─── */
.ug-contact-banner {
    background: linear-gradient(135deg, #f8fafc, #eef6ff);
    border-radius: 12px; padding: 48px 40px;
    text-align: center; border: 1px solid #222;
}
.ug-contact-inner h2 { font-size: 26px; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.ug-contact-inner p { font-size: 15px; color: #64748b; line-height: 1.7; margin-bottom: 30px; max-width: 560px; margin-left: auto; margin-right: auto; }
.ug-contact-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ug-contact-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 50px;
    font-size: 15px; font-weight: 700;
    text-decoration: none; transition: transform 0.2s, opacity 0.2s;
}
.ug-contact-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.ug-telegram { background: #0ea5e9; color: #ffffff; }
.ug-email { background: #2563eb; color: #ffffff; }

/* Footer */
.footer {
    background-color: #f8fafc;
    color: #0f172a;
    padding: 50px 20px 25px;
    border-top: 1px solid #ffffff;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(100, 116, 139, 0.53);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #2563eb;
}

.footer-column p {
    color: rgba(100, 116, 139, 0.53);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ffffff;
}

.footer-bottom p {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .ug-body { grid-template-columns: 220px 1fr; }
}
@media (max-width: 860px) {
    .ug-body { grid-template-columns: 1fr; }
    .ug-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .ug-sidebar-cta { grid-column: span 2; }
    .ug-photo-layout { grid-template-columns: 1fr; }
    .ug-photo-example { flex-direction: row; gap: 16px; max-width: 300px; }
    .ug-hero-title { font-size: 28px; }
}
@media (max-width: 640px) {
    .ug-hero { padding: 52px 16px 44px; min-height: 270px; background-position: center top; }
    .ug-hero-title { font-size: 22px; }
    .ug-hero-stats { gap: 20px; }
    .ug-body { padding: 20px 14px 40px; }
    .ug-section { padding: 24px 20px; }
    .ug-photo-grid { grid-template-columns: repeat(2, 1fr); }
    .ug-sidebar { grid-template-columns: 1fr; }
    .ug-sidebar-cta { grid-column: 1; }
    .ug-contact-banner { padding: 32px 20px; }
    .ug-contact-inner h2 { font-size: 20px; }
    .ug-section-num { font-size: 36px; }
}
@media (max-width: 400px) {
    .ug-photo-grid { grid-template-columns: 1fr 1fr; }
    .ug-payment-tabs { flex-direction: column; }
    .ug-contact-btns { flex-direction: column; align-items: stretch; }
    .ug-contact-btn { justify-content: center; }
}
