/*
  Oslo-skolen / Kurssenteret – Power Pages CSS (UPDATED)
  - Basert på Oslo kommune's Punkt designsystem
  - Korrekt implementering av farger, typografi og stiler fra punkt.oslo.kommune.no
  - Oppdatert: November 2025
*/

/* ================================================
   1) FONT: Oslo Sans via CDN
   ================================================ */
@font-face {
  font-display: swap;
  font-family: "Oslo Sans";
  font-style: normal;
  font-weight: 300;
  src: url("https://punkt-cdn.oslo.kommune.no/latest/fonts/OsloSans-Light.woff2") format("woff2"),
       url("https://punkt-cdn.oslo.kommune.no/latest/fonts/OsloSans-Light.woff") format("woff");
}

@font-face {
  font-display: swap;
  font-family: "Oslo Sans";
  font-style: normal;
  font-weight: 400;
  src: url("https://punkt-cdn.oslo.kommune.no/latest/fonts/OsloSans-Regular.woff2") format("woff2"),
       url("https://punkt-cdn.oslo.kommune.no/latest/fonts/OsloSans-Regular.woff") format("woff");
}

@font-face {
  font-display: swap;
  font-family: "Oslo Sans";
  font-style: italic;
  font-weight: 400;
  src: url("https://punkt-cdn.oslo.kommune.no/latest/fonts/OsloSans-RegularItalic.woff2") format("woff2"),
       url("https://punkt-cdn.oslo.kommune.no/latest/fonts/OsloSans-RegularItalic.woff") format("woff");
}

@font-face {
  font-display: swap;
  font-family: "Oslo Sans";
  font-style: normal;
  font-weight: 500;
  src: url("https://punkt-cdn.oslo.kommune.no/latest/fonts/OsloSans-Medium.woff2") format("woff2"),
       url("https://punkt-cdn.oslo.kommune.no/latest/fonts/OsloSans-Medium.woff") format("woff");
}

@font-face {
  font-display: swap;
  font-family: "Oslo Sans";
  font-style: normal;
  font-weight: 700;
  src: url("https://punkt-cdn.oslo.kommune.no/latest/fonts/OsloSans-Bold.woff2") format("woff2"),
       url("https://punkt-cdn.oslo.kommune.no/latest/fonts/OsloSans-Bold.woff") format("woff");
}

/* ================================================
   2) PUNKT COLOR SYSTEM - CSS VARIABLES
   Reference: https://punkt.oslo.kommune.no/latest/grunnleggende/ressurser/colors/
   ================================================ */
:root {
  /* Brand colors - Dark blue */
  --pkt-color-brand-dark-blue-1000: #2A2859;
  --pkt-color-brand-dark-blue-700: #6A698B;
  
  /* Brand colors - Blue */
  --pkt-color-brand-blue-1000: #6FE9FF;
  --pkt-color-brand-blue-500: #B3F5FF;
  --pkt-color-brand-blue-300: #D1F9FF;
  --pkt-color-brand-blue-200: #E5FCFF;
  --pkt-color-brand-blue-100: #F1FDFF;
  
  /* Brand colors - Warm blue */
  --pkt-color-brand-warm-blue-1000: #1F42AA;
  
  /* Brand colors - Green */
  --pkt-color-brand-green-1000: #43F8B6;
  --pkt-color-brand-green-400: #C7FDE9;
  
  /* Brand colors - Light green */
  --pkt-color-brand-light-green-1000: #C7F6C9;
  --pkt-color-brand-light-green-400: #E5FFE6;
  
  /* Brand colors - Dark green */
  --pkt-color-brand-dark-green-1000: #034B45;
  
  /* Brand colors - Yellow */
  --pkt-color-brand-yellow-1000: #F9C66B;
  --pkt-color-brand-yellow-500: #FFE7BC;
  
  /* Brand colors - Red */
  --pkt-color-brand-red-1000: #FF8274;
  --pkt-color-brand-red-600: #FFB4AC;
  --pkt-color-brand-red-400: #FFDFDC;
  --pkt-color-brand-red-100: #FFF2F1;
  
  /* Brand colors - Beige */
  --pkt-color-brand-light-beige-1000: #F8F0DD;
  --pkt-color-brand-dark-beige-1000: #D0BFAE;
  
  /* Brand colors - Purple */
  --pkt-color-brand-purple-1000: #E0ADFF;
  
  /* Brand colors - Neutrals */
  --pkt-color-brand-neutrals-black: #000000;
  --pkt-color-brand-neutrals-1000: #2C2C2C;
  --pkt-color-brand-neutrals-200: #F2F2F2;
  --pkt-color-brand-neutrals-100: #F9F9F9;
  --pkt-color-brand-neutrals-white: #FFFFFF;
  --pkt-color-brand-neutrals-transparent: transparent;
  
  /* Grays */
  --pkt-color-grays-gray-1000: #2C2C2C;
  --pkt-color-grays-gray-900: #1A1A1A;
  --pkt-color-grays-gray-800: #333333;
  --pkt-color-grays-gray-700: #4D4D4D;
  --pkt-color-grays-gray-600: #666666;
  --pkt-color-grays-gray-500: #808080;
  --pkt-color-grays-gray-400: #9A9A9A;
  --pkt-color-grays-gray-300: #B3B3B3;
  --pkt-color-grays-gray-200: #CCCCCC;
  --pkt-color-grays-gray-100: #E6E6E6;
  
  /* Semantic colors - Background */
  --pkt-color-background-default: #FFFFFF;
  --pkt-color-background-subtle: #F9F9F9;
  --pkt-color-background-card: #FFFFFF;
  --pkt-color-background-transparent: transparent;
  
  /* Semantic colors - Surface strong */
  --pkt-color-surface-strong-dark-blue: #2A2859;
  --pkt-color-surface-strong-blue: #6FE9FF;
  --pkt-color-surface-strong-dark-green: #034B45;
  --pkt-color-surface-strong-green: #43F8B6;
  --pkt-color-surface-strong-light-green: #C7F6C9;
  --pkt-color-surface-strong-red: #FF8274;
  --pkt-color-surface-strong-yellow: #F9C66B;
  --pkt-color-surface-strong-beige: #D0BFAE;
  --pkt-color-surface-strong-gray: #CCCCCC;
  
  /* Semantic colors - Surface default */
  --pkt-color-surface-default-light-blue: #D1F9FF;
  --pkt-color-surface-default-light-green: #C7FDE9;
  --pkt-color-surface-default-faded-green: #F9C66B;
  --pkt-color-surface-default-faded-red: #FFDFDC;
  --pkt-color-surface-default-red: #FFB4AC;
  --pkt-color-surface-default-light-beige: #F8F0DD;
  --pkt-color-surface-default-yellow: #FFE7BC;
  --pkt-color-surface-default-gray: #F9F9F9;
  
  /* Semantic colors - Surface subtle */
  --pkt-color-surface-subtle-light-blue: #E5FCFF;
  --pkt-color-surface-subtle-pale-blue: #F1FDFF;
  --pkt-color-surface-subtle-white: #FFFFFF;
  --pkt-color-surface-subtle-light-red: #FFF2F1;
  
  /* Semantic colors - Border */
  --pkt-color-border-subtle: #F9F9F9;
  --pkt-color-border-default: #2A2859;
  --pkt-color-border-red: #FF8274;
  --pkt-color-border-blue: #6FE9FF;
  --pkt-color-border-green: #43F8B6;
  --pkt-color-border-beige: #D0BFAE;
  --pkt-color-border-light-beige: #F8F0DD;
  --pkt-color-border-yellow: #F9C66B;
  
  /* Semantic colors - Border states */
  --pkt-color-border-states-active: #1F42AA;
  --pkt-color-border-states-hover: #1F42AA;
  --pkt-color-border-states-focus: #E0ADFF;
  --pkt-color-border-states-disabled: #B3B3B3;
  
  /* Semantic colors - Text */
  --pkt-color-text-body-default: #2A2859;
  --pkt-color-text-body-light: #FFFFFF;
  --pkt-color-text-body-dark: #2A2859;
  --pkt-color-text-placeholder: #666666;
  
  /* Semantic colors - Text action */
  --pkt-color-text-action-normal: #2A2859;
  --pkt-color-text-action-active: #1F42AA;
  --pkt-color-text-action-hover: #1F42AA;
  --pkt-color-text-action-disabled: #666666;
  
  /* Design tokens */
  --pkt-radius: 10px;
  --pkt-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --pkt-font-family: "Oslo Sans", Arial, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, sans-serif;
  --pkt-font-size: 16px;
  --pkt-line-height: 1.5;
}

/* ================================================
   3) BASE STYLES
   ================================================ */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  background: var(--pkt-color-background-default);
  color: var(--pkt-color-text-body-default);
  font-family: var(--pkt-font-family);
  font-size: var(--pkt-font-size);
  font-weight: 300;
  line-height: var(--pkt-line-height);
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   4) TYPOGRAPHY
   ================================================ */
h1,
.h1,
h1 p {
  font-family: var(--pkt-font-family) !important;
  color: var(--pkt-color-text-body-default) !important;
  font-weight: 500;
  font-size: clamp(2rem, 1.3rem + 2vw, 3rem);
  letter-spacing: 0.2px;
  margin: 0 0 0.5em;
}

h2,
.h2,
.section-landing .row > div .section-landing-sub-heading,
.page_section h2,
.color-inverse h2,
h2 p {
  font-family: var(--pkt-font-family) !important;
  color: var(--pkt-color-text-body-default) !important;
  font-weight: 500 !important;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem) !important;
  margin: 0 0 0.5em;
}

h3,
.h3,
.page_section h3,
.color-inverse h3,
.sidebar-home h3 {
  font-family: var(--pkt-font-family) !important;
  color: var(--pkt-color-text-body-default) !important;
  font-weight: 500 !important;
  font-size: 1.375rem;
  margin: 0 0 0.5em;
}

h4,
.h4,
.poll .poll-header h4,
.poll .poll-tags h4 {
  font-family: var(--pkt-font-family) !important;
  color: var(--pkt-color-text-body-default) !important;
  font-weight: 500;
  margin: 0 0 0.5em;
}

h5,
.h5 {
  font-family: var(--pkt-font-family) !important;
  color: var(--pkt-color-text-body-default) !important;
  font-weight: 500;
  margin: 0 0 0.5em;
}

h6 {
  font-family: var(--pkt-font-family) !important;
  color: var(--pkt-color-text-body-default) !important;
  font-weight: 500;
  margin: 0 0 0.5em;
}

p,
.p,
.page_section p,
.section-diagonal-left p,
.section-diagonal-right p,
p.form-text span {
  font-family: var(--pkt-font-family) !important;
  color: var(--pkt-color-text-body-default) !important;
  margin: 0 0 1rem;
}

.p2 {
  font-family: var(--pkt-font-family) !important;
  color: var(--pkt-color-text-body-default) !important;
}

small,
.text-muted {
  color: var(--pkt-color-text-placeholder);
}

/* ================================================
   5) LINKS
   ================================================ */
a {
  color: var(--pkt-color-text-action-normal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: var(--pkt-color-text-action-hover);
  text-decoration-thickness: 2px;
}

/* ================================================
   6) FOCUS STYLES
   ================================================ */
:focus {
  outline: none;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Focus styles for accessibility - only show on keyboard navigation */
:focus-visible {
  outline: 2px solid var(--pkt-color-border-states-focus);
  outline-offset: 2px;
}

/* ================================================
   7) BUTTONS
   ================================================ */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.button,
.button-primary,
.button-secondary {
  border-radius: 0px;
  border-width: 1px;
  border-style: solid;
  font-weight: 600;
  font-family: var(--pkt-font-family);
  padding: 0.625rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn,
.btn-primary,
.button-primary {
  background: var(--pkt-color-border-states-active);
  border-color: var(--pkt-color-border-states-active);
  color: var(--pkt-color-text-body-light);
}

.btn:hover,
.btn:focus,
.btn-primary:hover,
.btn-primary:focus,
.button-primary:hover,
.button-primary:focus {
  background: var(--pkt-color-border-states-hover);
  border-color: var(--pkt-color-border-states-hover);
  color: var(--pkt-color-text-body-light);
  text-decoration: none;
}

.btn-secondary,
.button-secondary {
  background: var(--pkt-color-background-default);
  border-color: var(--pkt-color-border-default);
  color: var(--pkt-color-text-body-default);
}

.btn-secondary:hover,
.btn-secondary:focus,
.button-secondary:hover,
.button-secondary:focus {
  border-color: var(--pkt-color-border-states-hover);
  color: var(--pkt-color-text-action-hover);
  background: var(--pkt-color-background-default);
}

.btn-outline,
.btn-outline-primary {
  background: transparent;
  border-color: var(--pkt-color-border-states-active);
  color: var(--pkt-color-border-states-active);
}

.btn-outline:hover,
.btn-outline:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--pkt-color-border-states-active);
  color: var(--pkt-color-text-body-light);
}

/* ================================================
   8) FORMS
   ================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea,
.form-control {
  background: var(--pkt-color-background-default);
  padding: 0.625rem 0.75rem;
  color: var(--pkt-color-text-body-default);
  font-family: var(--pkt-font-family);
  font-size: var(--pkt-font-size);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--pkt-color-border-states-active);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pkt-color-border-states-active) 20%, transparent);
  outline: none;
}

label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--pkt-color-text-body-default);
  font-family: var(--pkt-font-family);
}

.help-block,
.form-text {
  color: var(--pkt-color-text-placeholder);
}

/* ================================================
   9) CARDS & PANELS
   ================================================ */
.section,
.pp-section,
.ok-panel,
.card,
.panel,
.container-card {
  background: var(--pkt-color-background-card);
  border: 1px solid var(--pkt-color-border-subtle);
  border-radius: var(--pkt-radius);
  box-shadow: var(--pkt-shadow);
  padding: 1.25rem;
}

.card-title {
  font-weight: 700;
  color: var(--pkt-color-text-body-default);
  font-family: var(--pkt-font-family);
}

.card-header {
  background: var(--pkt-color-background-subtle);
  border-bottom: 1px solid var(--pkt-color-border-subtle);
}

.card-footer {
  background: var(--pkt-color-background-subtle);
  border-top: 1px solid var(--pkt-color-border-subtle);
}

/* ================================================
   10) ALERTS
   ================================================ */
.alert {
  border-radius: 0px;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-family: var(--pkt-font-family);
}

.alert-success {
  background: var(--pkt-color-surface-default-light-green);
  border-left: .25rem solid var(--pkt-color-border-green);
  color: var(--pkt-color-surface-strong-dark-green);
}

.alert-warning {
  background: var(--pkt-color-surface-default-yellow);
  border-left: .25rem solid var(--pkt-color-border-yellow);
  color: var(--pkt-color-text-body-default);
}

.alert-danger,
.alert-error {
  background: var(--pkt-color-surface-default-faded-red);
  border-left: .25rem solid var(--pkt-color-border-red);
  color: var(--pkt-color-text-body-default);
}

.alert-info {
  background: var(--pkt-color-surface-subtle-light-blue);
  border-left: .25rem solid var(--pkt-color-border-blue);
  color: var(--pkt-color-text-body-default);
}

.crmEntityFormView .cell div.table-info.required label:after {
    content: 'Må fylles ut';
    color: var(--pkt-color-tag-text-normal);
    letter-spacing: -.2px;
    font-weight: 300;
    font-size: .875rem;
    padding: 0 .25rem;
    line-height: 1.375rem;
    background: var(--pkt-color-surface-default-light-beige);
    margin-left: 8px;
}

/* ================================================
   11) NAVIGATION
   ================================================ */
.navbar,
.navbar-default,
header.site-header,
.ok-navbar {
  background: var(--pkt-color-background-default);
  border-bottom: 1px solid var(--pkt-color-border-subtle);
}

.navbar .navbar-brand,
.navbar-brand,
header.site-header .brand a,
.ok-brand-text {
  color: var(--pkt-color-text-body-default);
  font-weight: 700;
  text-decoration: none;
  font-family: var(--pkt-font-family);
}

.navbar .nav-link,
.navbar-nav .nav-link,
.navbar a {
  color: var(--pkt-color-text-body-default);
  font-family: var(--pkt-font-family);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--pkt-color-text-action-hover);
}

.navbar-toggle .icon-bar {
  background-color: var(--pkt-color-text-body-default);
}

/* Dropdowns */
.navbar-nav > li > .dropdown-menu {
  border-radius: var(--pkt-radius);
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-default .navbar-nav > .open > a:hover {
  background: var(--pkt-color-background-subtle);
}

.static-top.navbar-dark {
  box-shadow: none !important;
  border: 1px solid var(--pkt-color-brand-neutrals-100) !important;
}

/* ================================================
   12) FOOTER
   ================================================ */
footer,
.site-footer {
  color: var(--pkt-color-text-body-light) !important;
  font-family: var(--pkt-font-family) !important;
  background: var(--pkt-color-background-subtle);
  border-top: 1px solid var(--pkt-color-border-subtle);
}

footer .footer-bottom {
  background-color: var(--pkt-color-surface-strong-dark-blue) !important;
  color: var(--pkt-color-text-body-light) !important;
}

/* ================================================
   13) TABS
   ================================================ */
.nav-tabs .nav-link {
  border: none;
  color: var(--pkt-color-text-body-default);
  font-family: var(--pkt-font-family);
}

.nav-tabs .nav-link.active {
  border-bottom: 3px solid var(--pkt-color-border-states-active);
  font-weight: 700;
  color: var(--pkt-color-text-action-active);
}

/* ================================================
   14) TABLES
   ================================================ */
.table {
  border-collapse: collapse;
  width: 100%;
}

.table th,
.table td {
  border-bottom: 1px solid var(--pkt-color-border-subtle);
  padding: 0.75rem;
  font-family: var(--pkt-font-family);
}

.table thead th {
  border-bottom: 2px solid var(--pkt-color-border-default);
  font-weight: 700;
}

.table-striped tbody tr:nth-child(odd) {
  background: var(--pkt-color-background-subtle);
}

/* ================================================
   15) BADGES & TAGS
   ================================================ */
.badge,
.tag {
  border-radius: 0;
  padding: 0.25rem 0.6rem;
  font-weight: 600;
  font-family: var(--pkt-font-family);
}

.badge-primary {
  background: var(--pkt-color-surface-strong-blue);
  color: var(--pkt-color-text-body-default);
}

.badge-success {
  background: var(--pkt-color-surface-strong-green);
  color: var(--pkt-color-surface-strong-dark-green);
}

.badge-warning {
  background: var(--pkt-color-surface-strong-yellow);
  color: var(--pkt-color-text-body-default);
}

.badge-danger {
  background: var(--pkt-color-surface-strong-red);
  color: var(--pkt-color-text-body-default);
}

/* ================================================
   16) BREADCRUMBS
   ================================================ */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: var(--pkt-color-text-placeholder);
}

/* ================================================
   17) PAGINATION
   ================================================ */
.pagination .page-link {
  color: var(--pkt-color-text-body-default);
  border: 1px solid var(--pkt-color-border-subtle);
  font-family: var(--pkt-font-family);
}

.pagination .page-item.active .page-link {
  background: var(--pkt-color-border-states-active);
  border-color: var(--pkt-color-border-states-active);
  color: var(--pkt-color-text-body-light);
}

/* ================================================
   18) UTILITY CLASSES
   ================================================ */
.bg-oslo-blue {
  background: var(--pkt-color-brand-warm-blue-1000) !important;
  color: var(--pkt-color-text-body-light) !important;
}

.bg-oslo-dark {
  background: var(--pkt-color-brand-dark-blue-1000) !important;
  color: var(--pkt-color-text-body-light) !important;
}

.bg-oslo-subtle {
  background: var(--pkt-color-background-subtle) !important;
}

.text-oslo {
  color: var(--pkt-color-brand-dark-blue-1000) !important;
}

.text-link {
  color: var(--pkt-color-text-action-active) !important;
}

.border-oslo {
  border-color: var(--pkt-color-border-default) !important;
}

/* ================================================
   19) HERO SECTION
   ================================================ */
.ok-hero {
  background: linear-gradient(180deg, var(--ok-neutral-white), var(--ok-brand-blue-1000));
  border: 1px solid var(--pkt-color-border-subtle);
  border-radius: var(--pkt-radius);
  padding: clamp(1rem, 2vw, 2rem);
}

.ok-hero h1 {
  text-transform: uppercase;
}

/* ================================================
   20) LINK CARDS
   ================================================ */
.ok-link-card {
  display: block;
  background: var(--pkt-color-background-card);
  border: 1px solid var(--pkt-color-border-subtle);
  border-radius: var(--pkt-radius);
  padding: 1rem;
  text-decoration: none;
  color: var(--pkt-color-text-body-default);
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.ok-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pkt-shadow);
  border-color: var(--pkt-color-border-states-hover);
}

.ok-link-card .ok-link {
  color: var(--pkt-color-text-action-active);
  text-decoration: underline;
}

/* ================================================
   21) LOGO
   ================================================ */
.ok-brand-logo {
  height: 28px;
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.navbar-brand img {
  height: 80px !important; 
  width: auto !important;
}   

/* ================================================
   22) SPACING UTILITIES
   ================================================ */
:root {
  --ok-space-1: 0.25rem;
  --ok-space-2: 0.5rem;
  --ok-space-3: 0.75rem;
  --ok-space-4: 1rem;
  --ok-space-6: 1.5rem;
  --ok-space-8: 2rem;
}

.m-0 {
  margin: 0 !important;
}

.mt-4 {
  margin-top: var(--ok-space-4) !important;
}

.mb-4 {
  margin-bottom: var(--ok-space-4) !important;
}

.p-4 {
  padding: var(--ok-space-4) !important;
}

.p-6 {
  padding: var(--ok-space-6) !important;
}

/* ================================================
   23) VALIDATION & HIDDEN ELEMENTS
   ================================================ */
.validation-summary-valid {
  display: none;
}

/* ================================================
   24) ACCESSIBILITY
   ================================================ */
@media (prefers-contrast: more) {
  .btn,
  .btn-primary {
    box-shadow: inset 0 0 0 2px var(--pkt-color-background-default);
  }
  
  :focus {
    outline-width: 4px;
  }
}

/* ================================================
   25) PRINT STYLES
   ================================================ */
@media print {
  a {
    text-decoration: none;
  }
  
  .btn,
  .navbar,
  .site-footer {
    display: none !important;
  }
}
/* ==========================================
   Oslo Kommune Course Grid Styles
   ========================================== */

/* Hero Section */
.oslo-hero {
  background: var(--pkt-color-brand-blue-200);
  /* background: linear-gradient(to bottom right, #F1FDFF, #E8F5F1); */
  padding: 3rem 1rem;
}

.oslo-hero-container {
  max-width: 1280px;
  margin: 0 auto;
}

.oslo-hero-content {
  max-width: 48rem;
}

.oslo-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #2A2859;
  margin-bottom: 0.75rem;
}

.oslo-hero-description {
  font-size: 1.125rem;
  color: #1A1A1A;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* Search Container */
.oslo-search-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.oslo-search-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 3rem;
  font-size: 1rem;
  border: 2px solid #D1D5DB;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235C5C5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
  background-size: 1.25rem 1.25rem;
  outline: none;
  border-radius: 0;
}

.oslo-search-input:focus {
  border-color: #2A2859;
}

/* Category Navigation */
.oslo-category-nav {
  background-color: #FFFFFF;
  border-bottom: 2px solid #E5E5E5;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.oslo-category-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.oslo-category-buttons {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: thin;
}

.oslo-category-buttons::-webkit-scrollbar {
  height: 6px;
}

.oslo-category-buttons::-webkit-scrollbar-track {
  background: #F5F5F5;
}

.oslo-category-buttons::-webkit-scrollbar-thumb {
  background: #9CA3AF;
  border-radius: 3px;
}

.oslo-category-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 2px;
  transition: all 150ms;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #F5F5F5;
  color: #1A1A1A;
}

.oslo-category-btn.active {
  background-color: #2A2859;
  color: #FFFFFF;
}

.oslo-category-btn:hover {
  background-color: #E5E5E5;
}

.oslo-category-btn.active:hover {
  background-color: #464573;
}

/* Main Content */
.oslo-main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.oslo-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.oslo-content-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2A2859;
}

.oslo-course-count {
  font-size: 0.875rem;
  color: #5C5C5C;
  font-weight: 500;
}

/* Masonry Grid Layout */
.oslo-masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
  orphans: 1;
  widows: 1;
}

@media (max-width: 1024px) {
  .oslo-masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .oslo-masonry-grid {
    column-count: 1;
  }
  .oslo-hero-title {
    font-size: 1.75rem;
  }
}

/* Course Card */
.oslo-course-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
  transition: all 200ms ease;
  overflow: hidden;
}

.oslo-course-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.oslo-course-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.oslo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.oslo-card-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #F5F5F5;
}

.oslo-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2A2859;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.oslo-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.oslo-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
}

.oslo-tag-gray {
  background-color: #E5E5E5;
  color: #1A1A1A;
}

.oslo-tag-green {
  background-color: #D1F4E0;
  color: #00553E;
}

.oslo-card-body {
  padding: 1.5rem;
}

.oslo-card-footer {
  padding: 0 1.5rem 1.5rem;
}

.oslo-btn-register {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #2A2859;
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 2px;
  transition: background-color 150ms;
}

.oslo-course-card a:hover .oslo-btn-register {
  background-color: #464573;
}

.oslo-course-info {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #1A1A1A;
}

.oslo-course-info:last-child {
  margin-bottom: 0;
}

.oslo-info-icon {
  flex-shrink: 0;
  color: #2A2859;
  width: 20px;
  height: 20px;
}

/* Empty State */
.oslo-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  background-color: #F5F5F5;
  border-radius: 4px;
}

.oslo-empty-state svg {
  color: #9CA3AF;
  margin-bottom: 1rem;
}

.oslo-empty-state-text {
  color: #5C5C5C;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.oslo-empty-state-subtext {
  color: #5C5C5C;
  font-size: 0.875rem;
}


/* Remove the dotted/dashed borders from section/column blocks */
.sectionBlockLayout,
.columnBlockLayout {
    border: none !important;
}

/* If you also see dotted borders from the editable wrapper in edit mode: */
.xrm-editable-html,
.xrm-editable-html .xrm-attribute-value {
    border: none !important;
    outline: none !important;
}

.pkt-section {
    margin: 0 !important;
}
.pkt-tag--orange {
  background-color: #ffe7bc !important;
  color: #2A2859;
}

.pkt-tag--red {
  background-color: #ffdfdc !important;
  color: #2A2859;
}


/* Ekstra luft under "Oppdater informasjon"-knappen på profil-siden */
#mainContent .actions {
    margin-bottom: 50px;
}

/* ==========================================
   SignIn styling
   ========================================== */
 body[data-pageurl*="/SignIn"] {
  background-color: #f5f5f5;
}

/* Selve innloggingsboksen */
body[data-pageurl*="/SignIn"] .signin-panel,
body[data-pageurl*="/SignIn"] .entity-form,
body[data-pageurl*="/SignIn"] .page-copy {
  max-width: 32rem;
  margin: 2rem auto 4rem;
  padding: 2rem 2.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Skjemafelter */
body[data-pageurl*="/SignIn"] input[type="text"],
body[data-pageurl*="/SignIn"] input[type="email"],
body[data-pageurl*="/SignIn"] input[type="password"] {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #d4d4d8;
  font: inherit;
  box-sizing: border-box;
}

/* Primær-knapp (logg på) */
body[data-pageurl*="/SignIn"] button[type="submit"],
body[data-pageurl*="/SignIn"] .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background-color: #005aa4;
  color: #ffffff;
}

body[data-pageurl*="/SignIn"] button[type="submit"]:hover,
body[data-pageurl*="/SignIn"] .btn-primary:hover {
  background-color: #004277;
} 

/* Punkt-lignende tabs for innloggingsfanene (.nav-account) */
.nav-tabs .nav-link {
  border-radius: 0;
} 

.nav.nav-tabs.nav-account .nav-link,
.nav.nav-tabs.nav-account .nav-link:hover,
.nav.nav-tabs.nav-account .nav-link:focus {
  border: none;
  text-decoration: none;
}

/* Grunnstil for faner */
.nav.nav-tabs.nav-account .nav-link {

  background: transparent;
  color: var(--pkt-color-text-action-disabled);
  text-decoration: none;
}

/* Hover på fane */
.nav.nav-tabs.nav-account .nav-link:hover {
  color: #111827; 
  text-decoration: none !important;         
  border-bottom: .25rem solid var( --pkt-color-brand-warm-blue-1000);
}

/* Aktiv fane */
.nav.nav-tabs.nav-account .nav-link.active,
.nav.nav-tabs.nav-account .nav-link[aria-selected="true"] {
  color: var(--pkt-color-text-action-normal);
  border-bottom: .25rem solid var(--pkt-color-border-blue);
}
/* Sørg for at vi kan plassere fokus-rammen relativt til linken */
.nav.nav-tabs.nav-account .nav-link {
  position: relative;
}

/* Fjern tynn blå standardkant ved klikk (mus) */
.nav.nav-tabs.nav-account .nav-link:focus {
  outline: none;
}

/* Egen fokusmarkering for tastatur (ikke rundt bunn) */
.nav.nav-tabs.nav-account .nav-link:focus-visible {
  outline: none;
  box-shadow: none;
  background-color: var(--pkt-tabs-bg);
}

/* Lag fokusramme med pseudo-element – topp + sider, ingen bunn */
.nav.nav-tabs.nav-account .nav-link:focus-visible::before {
  content: "";
  position: absolute;
  left: -0.25rem;
  right: -0.25rem;
  top: -0.25rem;
  bottom: 0;                    /* stopper ved bunnen av fanen */
  border-radius: 0.25rem 0.25rem 0 0;
  border: 0.25rem solid var(--pkt-color-border-states-focus);
  border-bottom: none;          /* ingen fokuslinje i bunn */
  pointer-events: none;         /* ikke klikkbar, bare visuell */
}


/* Juster Font Awesome-ikonet i første fane */
.nav.nav-tabs.nav-account .nav-link .fa {
  font-size: 0.9em;
}
