/* =========================================================
   HIWORK ORIGINAL – Dinprogrammerare (enda design)
   Referens: hiwork-original.zip
   + front-modules (statistik, kategorier, Senaste uppdrag)
   ========================================================= */

:root {
    --color-bg-start: #3b314a;
    --color-bg-end: #4a3d5f;
    --color-accent: #ff8f8f;
    --color-text-main: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-card-bg: #ffffff;
    --color-bg: #f5f5f5;
    --border-radius-pill: 999px;
    --container-width: 1200px;
    --container-padding: 24px;
    --radius-sm: 12px;
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg);
    color: #222;
    line-height: 1.5;
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* =========================================================
   HEADER (Hiwork original)
   ========================================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    padding-bottom: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.01em;
    text-decoration: none;
}

.logo img,
.logo .brand-icon,
.logo .logo-swoosh {
    display: block;
    max-height: 40px;
    width: auto;
}

.logo .logo-swoosh {
    flex-shrink: 0;
}

.logo .brand-name {
    white-space: nowrap;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 220px;
    margin: 0 16px;
}
.header-search input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--color-text-main);
    font-size: 14px;
}
.header-search input::placeholder {
    color: rgba(255,255,255,0.6);
}
.header-search-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.nav {
    display: flex;
    align-items: center;
}

.nav a {
    position: relative;
    margin-left: 12px;
    margin-right: 12px;
    font-size: 14px;
    text-decoration: none;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--color-text-main);
}

.nav a.active {
    color: var(--color-text-main);
}

.nav a.active::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 16px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
    transform: translateX(-50%);
}

.auth {
    display: flex;
    align-items: center;
}

.auth a {
    font-size: 14px;
    text-decoration: none;
}

.sign-in {
    color: var(--color-text-muted);
    margin-right: 16px;
}

.sign-in:hover {
    color: var(--color-text-main);
}

.sign-up {
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.sign-up:hover,
.nav-cta:hover {
    background-color: #ff7b7b;
}

.nav-cta {
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

/* Sidor utan hero: header med mörk bakgrund */
body:not(.homepage) .header {
    position: relative;
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
}

/* =========================================================
   HERO (Hiwork original)
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
    padding-top: 160px;
    padding-bottom: 90px;
    color: var(--color-text-main);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.035),
        rgba(255, 255, 255, 0.035) 1px,
        transparent 1px,
        transparent 14px
    );
    opacity: 0.6;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    column-gap: 48px;
}

.hero-content {
    max-width: 560px;
}

.hero-content h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.hero-content p {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 480px;
    margin-bottom: 36px;
}

/* CTA-knapp (Registrera dig) */
.hero .cta {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: var(--border-radius-pill);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.hero .cta:hover {
    background-color: #ff7b7b;
}

/* Search bar (om använd) */
.search-box {
    display: flex;
    align-items: center;
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius-pill);
    padding: 12px;
    margin-bottom: 56px;
}

.search-item {
    padding: 14px 26px;
    font-size: 15px;
    color: #666666;
    border-right: 1px solid #eeeeee;
    white-space: nowrap;
}

.search-item:last-of-type {
    border-right: none;
}

.search-btn {
    margin-left: 8px;
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-pill);
    padding: 16px 36px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #ff7b7b;
}

/* Search-box som klickbar länk till annonser */
.search-box-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin-bottom: 24px;
}

.search-box-link .search-btn {
    margin-left: 8px;
}

/* Hero search form (funktionell sökning) */
.hero-search-form {
    margin-bottom: 24px;
}

.hero-search-form .search-select,
.hero-search-form .search-plats-input {
    background: transparent;
    border: none;
    font-size: 15px;
    color: #666666;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.hero-search-form .search-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 28px;
}

.hero-search-form .search-plats-input::placeholder {
    color: #999;
}

.hero-search-form .search-plats-wrapper {
    display: flex;
    align-items: center;
    min-width: 120px;
}

.hero-search-form .search-plats-input {
    width: 100%;
}

/* Hero quick section (Så fungerar det + Populära sökningar) */
.hero-quick-section {
    background: var(--color-card-bg);
    padding: 48px 0;
    margin-top: -24px;
}

.hero-quick-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.hero-quick-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.hero-quick-steps {
    list-style: none;
    counter-reset: step;
}

.hero-quick-steps li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
}

.hero-quick-steps .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

.hero-quick-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin-bottom: 16px;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-tag {
    display: inline-block;
    padding: 8px 18px;
    background: #f0f0f0;
    color: #333;
    border-radius: var(--border-radius-pill);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.popular-tag:hover {
    background: var(--color-accent);
    color: #fff;
}

.categories {
    margin-top: 8px;
}

.categories h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 28px;
}

.category-list {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
}

/* Hero höger: bild eller testimonials */
.hero-image {
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 520px;
    width: 100%;
    transform: translateX(40px);
    filter: drop-shadow(0px 40px 60px rgba(0, 0, 0, 0.25));
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-right h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.review-slider {
    position: relative;
}

.review-card {
    color: var(--color-text-main);
}

.review-card p {
    color: var(--color-text-muted);
    font-size: 14px;
}

.review-card .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.review-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

/* =========================================================
   HOME MODULES – Tvåkolumns: Moduler (vänster) + Kundomdömen (höger)
   ========================================================= */

.home-modules-section {
    padding: 48px 0 64px;
    background: var(--color-bg);
}

.home-modules-inner {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

.home-modules-left {
    min-width: 0;
}

.home-testimonials {
    position: sticky;
    top: 24px;
}

.home-testimonials .testimonials-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.home-testimonials .review-slider {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-testimonials .review-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--color-card-bg);
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    color: #222;
}

.home-testimonials .review-card .avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.home-testimonials .review-card-body {
    flex: 1;
    min-width: 0;
}

.home-testimonials .review-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.home-testimonials .review-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.home-testimonials .review-card .stars {
    width: 80px;
    height: auto;
}

/* =========================================================
   FRONT MODULES (tabs + panels)
   ========================================================= */

.home-modules-left .front-modules-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.home-modules-left .front-modules-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.home-modules-left .front-modules-tab:hover {
    color: #333;
}

.home-modules-left .front-modules-tab.is-active {
    color: var(--color-accent, #ff8f8f);
    border-bottom-color: var(--color-accent, #ff8f8f);
}

.front-modules-panel[hidden] {
    display: none !important;
}

.front-modules-panel:not([hidden]) {
    display: block;
}

.module-grid.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.module-grid.stats .module {
    background: var(--color-card-bg);
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.module-grid.stats .module .label {
    font-size: 13px;
    color: #666;
}

.module-grid.stats .module strong {
    font-size: 28px;
    font-weight: 700;
    color: #222;
}

.module-grid.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.module-grid.categories .chip {
    display: inline-block;
    background: var(--color-card-bg);
    color: #333;
    padding: 12px 20px;
    border-radius: var(--border-radius-pill);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: background 0.2s, color 0.2s;
}

.module-grid.categories .chip:hover {
    background: var(--color-accent);
    color: #fff;
}

.module-list {
    background: var(--color-card-bg);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    box-shadow: var(--shadow-soft);
}

.module-list h3 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.live-jobs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.live-jobs li {
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}

.live-jobs li:last-child {
    border-bottom: none;
}

.live-jobs .title {
    font-weight: 600;
    color: #222;
}

.live-jobs .meta {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.live-job-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.live-job-link:hover {
    background: rgba(0, 0, 0, 0.03);
}

.live-job-link .title {
    display: block;
}

.live-jobs-empty {
    color: #666;
    font-size: 14px;
}

.live-jobs-empty a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Trusted by */
.trusted-by-section {
    padding: 32px 0;
    background: rgba(255, 255, 255, 0.06);
}

.trusted-by-inner {
    text-align: center;
}

.trusted-by-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.trusted-by-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 48px;
}

.trusted-by-item {
    font-size: 15px;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-image {
        justify-content: center;
    }
    .home-modules-inner {
        grid-template-columns: 1fr;
    }
    .home-testimonials {
        position: static;
    }
    .module-grid.stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .module-grid.stats {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ANNONS GUEST MODAL (popup för gäster – premium design)
   ========================================================= */

.annons-guest-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.annons-guest-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.annons-guest-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.annons-guest-modal-content {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 36px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.annons-guest-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
}

.annons-guest-modal-text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0 0 28px 0;
}

.annons-guest-modal-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.annons-guest-modal-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent, #2f80ed);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(47, 128, 237, 0.35);
    transition: background 0.2s ease, transform 0.12s ease;
}

.annons-guest-modal-actions .btn-primary:hover {
    background: #256bd8;
    transform: translateY(-1px);
}

.annons-guest-modal-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    color: var(--accent, #2f80ed);
    border: 2px solid var(--accent, #2f80ed);
    transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.annons-guest-modal-actions .btn-secondary:hover {
    background: rgba(47, 128, 237, 0.08);
    color: #1d6ad4;
    transform: translateY(-1px);
}

.annons-guest-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.2s ease, color 0.2s ease;
}

.annons-guest-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Home: wizard, audience cards, cases, matches */
.home-wizard-section {
    padding: 2rem 0;
    background: #fff;
}
.home-wizard-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}
.home-wizard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
.home-wizard-card {
    display: block;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.home-wizard-card:hover {
    border-color: #0f766e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.home-wizard-card__label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.35rem;
}
.home-wizard-card__desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}
.home-audience-section {
    padding: 2rem 0;
    background: #f9fafb;
}
.home-audience-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}
.home-audience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.home-audience-card {
    display: block;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.home-audience-card:hover {
    border-color: #0f766e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.home-audience-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}
.home-audience-card p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #4b5563;
}
.home-audience-card__cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f766e;
}
.home-cases-section {
    padding: 1.5rem 0;
    background: #fff;
}
.home-cases-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.home-cases-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.home-cases-list li {
    position: relative;
    padding-left: 1rem;
}
.home-cases-list li::before {
    content: "·";
    position: absolute;
    left: 0;
}
.home-matches-section {
    padding: 1.5rem 0;
    background: #f0fdf4;
}
.home-matches-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.home-matches-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.home-matches-item {
    padding: 0.35rem 0;
    font-size: 0.95rem;
}

/* Varför välja oss */
.home-why-section {
    padding: 2rem 0;
    background: #fff;
}
.home-why-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.home-why-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem 1.5rem;
}
.home-why-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}
.home-why-check {
    color: #0f766e;
    font-weight: 700;
}

/* Live statistik */
.home-live-stats-section {
    padding: 2rem 0;
    background: #f0fdf4;
}
.home-live-stats-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}
.home-live-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) {
    .home-live-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.home-live-stat {
    text-align: center;
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}
.home-live-stat__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f766e;
}
.home-live-stat__label {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Featured developers */
.home-featured-devs-section {
    padding: 2rem 0;
    background: #f9fafb;
}
.home-featured-devs-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.home-featured-devs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.home-featured-dev-card {
    display: block;
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.home-featured-dev-card:hover {
    border-color: #0f766e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.home-featured-dev__name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.home-featured-dev__role {
    display: block;
    font-size: 0.85rem;
    color: #0f766e;
    margin-bottom: 0.25rem;
}
.home-featured-dev__meta {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Live-widgets rad */
.home-live-widgets-section {
    padding: 1.25rem 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}
.home-live-widgets-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}
.home-live-widget {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.home-live-widget__value {
    font-weight: 700;
    color: #0f766e;
}
.home-live-widget__label {
    color: #6b7280;
}
.home-live-widget--tags {
    flex-wrap: wrap;
}
.home-live-widget__tag {
    font-size: 0.85rem;
    color: #0f766e;
    text-decoration: none;
}
.home-live-widget__tag:hover {
    text-decoration: underline;
}

/* Slut-CTA */
.home-cta-section {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
    color: var(--color-text-main);
}
.home-cta-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    text-align: center;
}
.home-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.home-cta-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.home-cta-btn--primary {
    background: var(--color-accent);
    color: #fff;
}
.home-cta-btn--secondary {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
}
.home-cta-btn:hover {
    opacity: 0.9;
}

/* Omdömen – förbättrade kort */
.review-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.review-card--enhanced {
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid #e5e7eb;
}
.review-card-stars {
    margin-bottom: 0.5rem;
}
.review-star {
    color: #d1d5db;
    font-size: 1rem;
}
.review-star.is-filled {
    color: #f59e0b;
}
.review-card-attribution {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-style: normal;
    color: #6b7280;
}

/* Global sök (sok.php) */
.sok-page {
    padding: 2rem 0 4rem;
}
.sok-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 1.5rem 0 2rem;
}
.sok-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
}
.sok-hint {
    color: #6b7280;
    margin-top: 1rem;
}
.sok-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.sok-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #374151;
}
.sok-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sok-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}
.sok-list a {
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
}
.sok-list a:hover {
    text-decoration: underline;
}
.sok-meta {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 2px;
}
.sok-empty {
    color: #6b7280;
    font-size: 0.95rem;
}
.sok-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}
.sok-more:hover {
    text-decoration: underline;
}
.sok-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sok-tags a {
    display: inline-block;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
}
.sok-tags a:hover {
    background: #e5e7eb;
}

/* Rapportera-sida */
.report-page {
    padding: 2rem 0 4rem;
}
.report-box {
    max-width: 520px;
    margin: 0 auto;
}
.report-box h1 {
    margin-bottom: 0.5rem;
}
.report-lead {
    color: #6b7280;
    margin-bottom: 1.5rem;
}
.report-error {
    padding: 12px;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.report-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
.report-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 1rem;
    font: inherit;
}
.report-actions {
    display: flex;
    gap: 12px;
}

/* =========================================================
   PARTNERS, RECOMMENDED TOOLS, NYA UPPDRAG, SUCCESS STORIES
   ========================================================= */

.home-nya-uppdrag-section {
  padding: 16px 0;
}
.home-nya-uppdrag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff3e0;
  border-radius: var(--border-radius-pill);
  color: #e65100;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.home-nya-uppdrag-pill:hover {
  background: #ffe0b2;
  transform: scale(1.02);
}
.home-nya-uppdrag-icon {
  font-size: 1.2rem;
}
.home-nya-uppdrag-value {
  color: #e65100;
}

.home-partners-section {
  padding: 48px 0;
  background: #fff;
}
.home-partners-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: #1f2937;
}
.home-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
}
.home-partners-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 12px;
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  color: #374151;
}
.home-partners-item:hover {
  box-shadow: var(--shadow-soft);
  transform: scale(1.05);
}
.home-partners-logo {
  max-width: 100px;
  max-height: 48px;
  object-fit: contain;
}
.home-partners-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.home-recommended-tools-section {
  padding: 48px 0;
  background: #f9fafb;
}
.home-recommended-tools-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: #1f2937;
}
.home-recommended-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.home-tool-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s, transform 0.15s;
}
.home-tool-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.home-tool-card__logo {
  max-width: 64px;
  max-height: 32px;
  margin-bottom: 12px;
  object-fit: contain;
}
.home-tool-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f2937;
}
.home-tool-card__desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.5;
}
.home-tool-card__cta {
  display: inline-block;
  padding: 8px 16px;
  background: #3b314a;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.home-tool-card__cta:hover {
  background: #4a3d5f;
}

.home-live-widget--skills {
  flex-wrap: wrap;
}
.home-live-widget--developers-online {
  flex-direction: row;
  gap: 8px;
}

.home-project-ideas-section {
  padding: 40px 0;
  background: #fff;
}
.home-project-ideas-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: #1f2937;
}
.home-project-ideas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.home-project-ideas-link {
  display: inline-block;
  padding: 10px 18px;
  background: #f3f4f6;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.home-project-ideas-link:hover {
  background: #e5e7eb;
}

.home-success-stories-section {
  padding: 40px 0;
  background: #f9fafb;
}
.home-success-stories-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: #1f2937;
}
.home-success-stories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 640px;
  margin: 0 auto;
}
.home-success-stories-item {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1rem;
  color: #374151;
}
.home-success-stories-item:last-child {
  border-bottom: none;
}
.home-success-stories-company {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Footer: se Index/assets/css/footer.css */
