:root {
    --primary: #2952e3;
    --primary-dark: #1d3aa8;
    --accent: #ff7a00;
    --dark: #101828;
    --gray: #667085;
    --light-bg: #f7f8fb;
    --border: #e6e8ee;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--dark);
    background: #fff;
    margin: 0;
}

a { text-decoration: none; color: inherit; }

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

/* ---------- Header ---------- */
.site-header {
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}
.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo img { height: 38px; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #e56d00; color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; text-align: center; }

/* ---------- Banner / Hero ---------- */
.hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(16,24,40,.82) 20%, rgba(16,24,40,.45));
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 40px; max-width: 640px; margin: 0 0 14px; }
.hero p { font-size: 17px; max-width: 560px; margin: 0 0 26px; opacity: .95; }
.hero-slides { position: relative; }
.hero-slide { display: none; }
.hero-slide.active { display: flex; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots span.active { background: #fff; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.section-title h2 { font-size: 28px; margin: 0 0 6px; }
.section-title p { color: var(--gray); margin: 0; }
.section-title .view-all { font-weight: 600; color: var(--primary); font-size: 14px; }
.bg-light { background: var(--light-bg); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: .2s;
}
.card:hover { box-shadow: 0 10px 26px rgba(16,24,40,.08); transform: translateY(-2px); }

.job-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.job-card .job-top { display: flex; justify-content: space-between; align-items: flex-start; }
.job-card h3 { margin: 0; font-size: 18px; }
.job-card .company { color: var(--primary); font-weight: 600; font-size: 14px; }
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 700; background: #e8edff; color: var(--primary);
}
.job-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--gray); }
.job-meta span { display: flex; align-items: center; gap: 5px; }

.blog-card img, .service-card img { width: 100%; height: 170px; object-fit: cover; }
.blog-card .body, .service-card .body { padding: 18px; }
.blog-card h3 { font-size: 17px; margin: 0 0 8px; }
.blog-card .meta { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.blog-card p { color: var(--gray); font-size: 14px; margin: 0 0 14px; }

.service-card { text-align: left; }
.service-card .price { font-size: 22px; font-weight: 800; color: var(--primary); }
.service-card .price .old { font-size: 15px; color: var(--gray); text-decoration: line-through; font-weight: 500; margin-left: 8px; }
.service-card ul { padding-left: 18px; margin: 12px 0; color: var(--gray); font-size: 14px; }
.service-card ul li { margin-bottom: 5px; }

/* ---------- Stats strip ---------- */
.stats { display: flex; justify-content: space-around; text-align: center; padding: 40px 0; background: var(--primary); color: #fff; }
.stats div strong { display: block; font-size: 30px; }
.stats div span { font-size: 13px; opacity: .85; }

/* ---------- Filters ---------- */
.filters { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 26px; }
.filters form { display: flex; flex-wrap: wrap; gap: 12px; }
.filters input, .filters select {
    flex: 1; min-width: 160px; padding: 11px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px;
}

/* ---------- Detail pages ---------- */
.detail-header { background: var(--light-bg); padding: 40px 0; border-bottom: 1px solid var(--border); }
.detail-header h1 { margin: 0 0 10px; font-size: 30px; }
.detail-body { padding: 40px 0; }
.detail-body .content { line-height: 1.8; color: #344054; }
.detail-body .content img { max-width: 100%; border-radius: 10px; }
.sidebar-box { border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.sidebar-box h4 { margin-top: 0; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #e8f8ec; color: #146c2e; border: 1px solid #b7e4c3; }
.alert-error { background: #fdeceb; color: #a4292b; border: 1px solid #f4c2c1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cfd4dc; padding: 50px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.site-footer a { color: #cfd4dc; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; text-align: center; font-size: 13px; color: #98a2b3; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
    .main-nav.open {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 14px;
    }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .stats { flex-wrap: wrap; gap: 20px; }
}
