/* Font-face declarations are in /assets/css/style.css (shared) */

/* ========================================
     CSS Reset & Base Styles (matching original)
     ======================================== */
html {
  font-family: sans-serif;
  font-size: 62.5%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  font-family: inherit;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Webkit Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* Selection Styles */
::selection {
  color: #fff;
  background: #333;
  text-shadow: none;
}

*:not(#cv-preview):not(#cv-preview *) {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-size: 14px;
  line-height: 1.8;
  color: #4a4a4a;
  background-color: #f5f5f7;
  min-height: 100vh;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a,
a:hover,
a:focus {
  text-decoration: none;
  transition: all 0.3s ease;
  color: #333;
  background-color: transparent;
  box-shadow: none;
}

.sb-front-page {
  min-height: 100vh;
  width: 100%;
  background-color: #f5f5f7;
}

/* Shared sidebar/layout styles are in /assets/css/style.css */

/* ========================================
    Front Page CSS Starts Here
    ======================================== */

/* Frontpage overrides for .sb-main */
.sb-main {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #666666;
  line-height: 1.5;
  padding: 0 0 15px 25px;
}

/* ── Hero / Welcome Section ── */
.jobhelp-hero {
  display: flex;
  align-items: center;
}

.jobhelp-hero-text {
  flex: 1;
  padding-right: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jobhelp-hero-text h1 {
  font-size: 26px;
  font-weight: 700;
  color: #666666;
  margin: 0 0 10px;
}

.jobhelp-hero-text h2 {
  font-size: 17px;
  font-weight: 700;
  color: #666666;
}

.jobhelp-hero-text .hero-desc {
  font-size: 17px;
  color: #666666;
  margin: 0 0 20px;
}

.jobhelp-hero-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: #666666;
}

.jobhelp-hero-text .ai-note {
  font-size: 17px;
  color: #666666;
}

.jobhelp-hero-image {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
}

.jobhelp-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: left top;
}

/* ── Feature Cards ── */
.jobhelp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  margin-top: 60px;
  padding-right: 20px;
}

body.plan-basic .jobhelp-cards {
  grid-template-columns: repeat(2, 1fr);
}

.jobhelp-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 48px 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.jobhelp-card-icon {
  width: 64px;
  height: 64px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
}

.jobhelp-card-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.jobhelp-card-icon svg {
  flex-shrink: 0;
}

.jobhelp-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #666666;
  margin-bottom: 10px;
}

.jobhelp-card p {
  font-size: 17px;
  color: #666666;
  margin-bottom: 18px;
  flex: 1;
}

.jobhelp-btn {
  display: inline-block;
  background: #5c9b9e;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.jobhelp-btn:hover,
.jobhelp-btn:focus,
.jobhelp-btn:active {
  background: rgb(74, 133, 136);
  color: #fff !important;
  text-decoration: none;
}

/* ── Bottom Bar ── */
.jobhelp-bottom-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 100px;
  padding-right: 20px;
}

.jobhelp-bottom-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 24px;
  color: #666666 !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.jobhelp-bottom-action-btn svg {
  flex-shrink: 0;
  color: #666666;
  transition: color 0.3s;
}

.jobhelp-bottom-action-btn:hover,
.jobhelp-bottom-action-btn:focus {
  background: #fdfdfd;
  border-color: #d0d0d0;
  color: #666666 !important;
}

.jobhelp-bottom-action-btn:hover svg,
.jobhelp-bottom-action-btn:focus svg {
  color: #666666;
}

/* ── Responsive: iPad / Tablet ── */
@media (max-width: 1024px) {
  .jobhelp-hero-image {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .jobhelp-cards {
    gap: 16px;
  }

  .jobhelp-btn {
    padding: 10px 16px;
    font-size: 17px;
  }
}

/* ── Responsive: Small Tablet / Large Phone ── */
@media (max-width: 768px) {
  .jobhelp-hero {
    flex-direction: column;
  }

  .jobhelp-hero-text {
    padding-right: 0;
    padding-bottom: 20px;
  }

  .jobhelp-hero-image {
    flex: none;
    max-width: 100%;
    order: -1;
  }

  .jobhelp-hero-image img {
    max-height: 300px;
    object-position: center top;
    border-radius: 12px;
  }

  .jobhelp-cards {
    grid-template-columns: 1fr;
    padding-right: 0;
    margin-top: 32px;
  }

  body.plan-basic .jobhelp-cards {
  grid-template-columns: 1fr;
}

  .jobhelp-card {
    margin-top: 31px;
  }

  .jobhelp-card:first-child {
    margin-top: 0;
  }

  .jobhelp-bottom-bar {
    flex-direction: column;
    align-items: center;
    padding-right: 0;
    max-width: 100%;
  }

  .jobhelp-bottom-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Responsive: Mobile ── */
@media (max-width: 480px) {
  .jobhelp-hero-text h1 {
    font-size: 22px;
  }

  .jobhelp-hero-text h2,
  .jobhelp-hero-text .hero-desc,
  .jobhelp-hero-text h3,
  .jobhelp-hero-text .ai-note {
    font-size: 15px;
  }

  .jobhelp-hero-image img {
    max-height: 220px;
  }

  .jobhelp-card {
    padding: 44px 16px 20px;
  }

  .jobhelp-card h4 {
    font-size: 15px;
  }

  .jobhelp-card p {
    font-size: 15px;
  }

  .jobhelp-btn {
    padding: 10px 18px;
    font-size: 15px;
    width: 100%;
    text-align: center;
  }

  .jobhelp-bottom-action-btn {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* Hide AI-assistent and Weekplan cards for basic plan (only show CV and Ansogning) */
body.plan-basic .jobhelp-card:has([href*="jobhelp-assistent"]),
body.plan-basic .jobhelp-card:has([href*="ugeplan"]) {
  display: none !important;
}

/* Premium plan: show the combined CV+Ansogning card, hide the separate ones */
body:not(.plan-basic) .jobhelp-card.is-basic {
  display: none !important;
}

/* Basic plan: hide the combined CV+Ansogning card (show the separate ones instead) */
body.plan-basic .jobhelp-card.is-combined {
  display: none !important;
}

/* Hide video guide button for basic plan */
body.plan-basic a.open-video-popup {
  display: none !important;
}

/* Hide hero subtitle for basic plan */
body.plan-basic #frontpage-subtitle {
  display: none !important;
}

/* Hero description: show one variant per plan */
body.plan-basic .hero-desc.is-premium {
  display: none !important;
}
body:not(.plan-basic) .hero-desc.is-basic {
  display: none !important;
}

/* AI note: show one variant per plan */
body.plan-basic .ai-note.is-premium {
  display: none !important;
}
body:not(.plan-basic) .ai-note.is-basic {
  display: none !important;
}

/* Basic plan: center bottom bar under 2 visible cards */
body.plan-basic .jobhelp-bottom-bar {
  width: 100%;
}