* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f9fc;
    color: #1a1a1a;
    line-height: 1.6;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    color: #111827;
}

.main-nav {
    display: flex;
    gap: 18px;
}

.main-nav a {
    color: #374151;
    font-weight: 500;
}

.hero {
    padding: 72px 0;
    background: linear-gradient(135deg, #eef4ff, #f8fbff);
    text-align: center;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 24px;
    font-size: 18px;
    color: #4b5563;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.section {
    padding: 48px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.card,
.detail-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.card-body,
.detail-card {
    padding: 22px;
}

.card-category {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e0ecff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #4b5563;
    font-size: 14px;
    margin: 16px 0;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #1d4ed8;
    color: #ffffff;
}

.btn-secondary {
    background: #eef2ff;
    color: #1d4ed8;
}

.filter-form {
    background: #ffffff;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    margin: 20px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr auto;
    gap: 12px;
}

input,
select {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    width: 100%;
}

.results-text {
    color: #4b5563;
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #d1d5db;
}

.pagination a.active {
    background: #1d4ed8;
    color: #ffffff;
}

.detail-page .lead {
    color: #4b5563;
    font-size: 18px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.steps-list,
.risk-list,
.facts-list {
    padding-left: 18px;
}

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    margin-top: 40px;
    padding: 24px 0;
    color: #6b7280;
}

.empty-state {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
}

textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
}

.lead {
    color: #4b5563;
    font-size: 17px;
}

.detail-card h2,
.detail-card h3 {
    margin-top: 0;
}

.icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
}

.icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.hero-split {
    padding: 72px 0;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 32px;
    align-items: center;
}

.hero-visual img,
.card-image,
.detail-header-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.hero-visual img {
    border-radius: 24px;
    min-height: 320px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

.opportunity-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e8edf5;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.opportunity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.card-image-wrap {
    position: relative;
    display: block;
    text-decoration: none;
}

.card-image {
    height: 210px;
    background: #eef2f7;
}

.floating-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border: 1px solid #dbe6f5;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.meta-grid.compact {
    margin-top: 10px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e5eaf1;
    color: #334155;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
}

.card-actions {
    margin-top: 18px;
}

.detail-header-enhanced {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 28px;
}

.detail-header-image img {
    min-height: 320px;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

.detail-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.facts-list-icons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.facts-list-icons li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.facts-list-icons li:last-child {
    border-bottom: 0;
}

.enhanced-steps,
.enhanced-risks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enhanced-steps li,
.enhanced-risks li {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f7;
}

.enhanced-steps li:last-child,
.enhanced-risks li:last-child {
    border-bottom: 0;
}

.step-icon,
.risk-icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: #2563eb;
    flex-shrink: 0;
}

.risk-icon {
    color: #ea580c;
}

.match-score {
    margin-top: 14px;
}

.match-score-label {
    margin-bottom: 8px;
    color: #334155;
}

.progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #eaf0f7;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
}

.insight-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid;
}

.insight-box.positive {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.insight-box.caution {
    background: #fff7ed;
    border-color: #fed7aa;
}

.fit-badge {
    background: rgba(37, 99, 235, 0.95);
    color: #fff;
    border-color: transparent;
}

@media (max-width: 900px) {
    .hero-grid,
    .detail-header-enhanced {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 190px;
    }

    .detail-header-image img,
    .hero-visual img {
        min-height: 240px;
    }
}
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .hero h1 {
        font-size: 30px;
    }
}