/* ========================================
   GRUNNINNSTILLINGER
======================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f7e5d0;
  color: #562a3e;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ========================================
   FORSIDE - TOPP
======================================== */

.top {
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 70px;
}

.header-logo {
  width: 405px;
  height: auto;
  display: block;
}

/* ========================================
   FORSIDE - SKILLELINJE
======================================== */

.divider {
  width: 75%;
  height: 1px;
  background-color: #b36585;
  margin: 0 auto;
}

/* ========================================
   FORSIDE - OM TERAPIAKADEMIET
======================================== */

.about {
  width: 100%;
  margin: 0 auto;
  padding: 38px 20px 48px;
  text-align: center;
}

.about h1 {
  margin: 0 0 28px;
  font-size: 46px;
  line-height: 1.2;
  font-weight: 500;
  color: #562a3e;
}

.about p {
  max-width: 1800px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.55;
  font-weight: 300;
  color: #754e5a;
}

/* ========================================
   FORSIDE - AKTUELLE PROGRAMMER
======================================== */

.courses {
  background-color: #f1dac1;
  padding: 55px 7% 65px;
}

.courses-inner {
  max-width: 1500px;
  margin: 0 auto;
}

.courses h2 {
  margin: 0 0 35px;
  text-align: center;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 500;
  color: #562a3e;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
}

/* ========================================
   FORSIDE - KURSKORT
======================================== */

.course-card {
  display: flex;
  flex-direction: column;
  background-color: #f7e5d0;
  text-decoration: none;
  color: #562a3e;
  overflow: hidden;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(86, 42, 62, 0.14);
}

.course-image {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.course-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 30px 34px 32px;
}

.course-city {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #8a334e;
}

.course-content h3 {
  margin: 0 0 18px;
  font-size: 29px;
  line-height: 1.28;
  font-weight: 500;
  color: #562a3e;
}

.course-start {
  margin: 0 0 22px;
  font-size: 19px;
  line-height: 1.45;
  color: #754e5a;
}

.course-link {
  margin: auto 0 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: #8a334e;
}

.course-card:hover .course-link {
  text-decoration: underline;
}

/* ========================================
   KURSSIDER - TOPP
======================================== */

.course-header {
  padding: 30px 7%;
  background-color: #f7e5d0;
}

.course-header-logo {
  width: 240px;
  height: auto;
  display: block;
}

/* ========================================
   KURSSIDER - HERO
======================================== */

.course-hero {
  background-color: #f7e5d0;
  padding: 35px 7% 55px;
}

.course-hero-inner {
  max-width: 1500px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.course-eyebrow {
  margin: 0 0 16px;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #92506a;
}

.course-hero h1 {
  margin: 0 0 24px;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 500;
  color: #562a3e;
}

.course-lead {
  max-width: 700px;
  margin: 0 0 28px;
  font-size: 20px;
  line-height: 1.5;
  color: #754e5a;
}

.course-hero-image img {
  width: 100%;
  height: 460px;
  display: block;
  object-fit: cover;
}

.course-hero-image img.hero-forside {
  height: auto !important;
  aspect-ratio: 1200 / 727;
}

/* ========================================
   KNAPPER
======================================== */

.approval-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 0;
  padding: 16px 20px;
  border-left: 4px solid #8a334e;
  background-color: rgba(255, 255, 255, 0.45);
  font-size: 17px;
  line-height: 1.45;
  color: #562a3e;
}

.approval-icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: #8a334e;
}

.course-button {
  display: inline-block;
  padding: 14px 25px;
  background-color: #562a3e;
  color: #f7e5d0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.course-button:hover {
  opacity: 0.88;
}

.disabled-button {
  cursor: default;
  pointer-events: none;
  opacity: 0.72;
}

/* ========================================
   PRAKTISK INFO
======================================== */

.practical {
  background-color: #562a3e;
  color: #f7e5d0;
  padding: 28px 7%;
}

.practical-grid {
  max-width: 1500px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

.practical-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.practical-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  opacity: 0.75;
}

.practical-item strong {
  font-size: 17px;
  font-weight: 500;
}

/* ========================================
   KURSSIDER - GENERELLE SEKSJONER
======================================== */

.course-section {
  padding: 55px 7%;
  background-color: #f7e5d0;
}

.course-section-alt {
  background-color: #f1dac1;
}

.text-container {
  max-width: 1100px;
  margin: 0 auto;
}

.wide-container {
  max-width: 1500px;
  margin: 0 auto;
}

.course-section h2 {
  margin: 0 0 24px;
  font-size: 37px;
  line-height: 1.2;
  font-weight: 500;
  color: #562a3e;
}

.course-section p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.55;
  color: #754e5a;
}

.course-section p:last-child {
  margin-bottom: 0;
}

.center-heading {
  margin-bottom: 32px !important;
  text-align: center;
}

/* ========================================
   SAMLINGER
======================================== */

.session-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.session-card {
  padding: 28px 30px;
  background-color: #f1dac1;
}

.session-number {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #92506a !important;
}

.session-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  color: #562a3e;
}

.session-date {
  margin: 0 0 14px !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 600;
  color: #562a3e !important;
}

.session-card p {
  font-size: 16px;
  line-height: 1.5;
}

.session-card p:last-child {
  margin-bottom: 0;
}

/* ========================================
   LISTER
======================================== */

.course-list {
  margin: 0;
  padding-left: 22px;
}

.course-list li {
  margin-bottom: 10px;
  padding-left: 5px;
  font-size: 17px;
  line-height: 1.5;
  color: #754e5a;
}

.course-list li:last-child {
  margin-bottom: 0;
}

/* ========================================
   FORELESERE
======================================== */

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.teacher-card {
  padding: 28px 32px 30px;
  background-color: #f7e5d0;
  text-align: center;
}

/* Runde profilbilder */

.teacher-photo {
  width: 110px !important;
  height: 110px !important;

  display: block !important;
  margin: 0 auto 16px !important;

  object-fit: cover !important;
  object-position: center 25% !important;

  border-radius: 50% !important;
}

/* Navn */

.teacher-card h3 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  color: #562a3e;
}

/* Lenker til IPR sine presentasjonssider */

.teacher-card h3 a,
.supervisor-name a {
  color: inherit;
  text-decoration: none;
}

.teacher-card h3 a:hover,
.supervisor-name a:hover {
  text-decoration: underline;
}

/* Rolle */

.teacher-role {
  margin: 0 0 14px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 600;
  color: #92506a !important;
}

/* Biografitekst */

.teacher-card p:not(.teacher-role) {
  margin-bottom: 11px;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}

.teacher-card p:last-child {
  margin-bottom: 0;
}

/* ========================================
   PÅMELDINGSFELT
======================================== */

.signup {
  padding: 60px 7%;
  background-color: #7d3a52;
  color: #f7e5d0;
  text-align: center;
}

.signup-inner {
  max-width: 900px;
  margin: 0 auto;
}

.signup-small {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 1.7px;
  font-weight: 600;
}

.signup h2 {
  margin: 0 0 16px;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 500;
}

.signup p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.signup-button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 27px;

  background-color: #f7e5d0;
  color: #562a3e;

  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

/* ========================================
   FOOTER
======================================== */

footer {
  min-height: 245px;
  background-color: #562a3e;
  color: #f7e5d0;
  padding: 58px 47px 36px;
  font-size: 16px;
}

.footer-logo {
  display: block;
  width: 225px;
  height: auto;
  margin-bottom: 14px;
}

footer p {
  margin: 7px 0;
}

footer a {
  color: #f1bb89;
}

/* ========================================
   NETTBRETT / MOBIL
======================================== */

@media (max-width: 900px) {
  .top {
    height: 190px;
    padding-top: 55px;
  }

  .header-logo {
    width: 300px;
    max-width: 80%;
  }

  .divider {
    width: 86%;
  }

  .about {
    padding: 32px 25px 42px;
  }

  .about h1 {
    margin-bottom: 22px;
    font-size: 34px;
  }

  .about p {
    font-size: 17px;
    line-height: 1.55;
  }

  /* Forside kurs */

  .courses {
    padding: 45px 25px 55px;
  }

  .courses h2 {
    margin-bottom: 28px;
    font-size: 31px;
  }

  .course-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .course-image {
    height: 290px;
  }

  .course-content {
    padding: 27px;
  }

  .course-content h3 {
    font-size: 24px;
  }

  .course-start {
    font-size: 17px;
  }

  .course-link {
    font-size: 16px;
  }

  /* Kurssider */

  .course-header {
    padding: 25px;
  }

  .course-header-logo {
    width: 210px;
  }

  .course-hero {
    padding: 28px 25px 42px;
  }

  .course-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .course-hero h1 {
    font-size: 38px;
  }

  .course-lead {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .course-hero-image img {
    height: 310px;
  }

  .practical {
    padding: 25px;
  }

  .practical-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .course-section {
    padding: 42px 25px;
  }

  .course-section h2 {
    margin-bottom: 20px;
    font-size: 31px;
  }

  .course-section p {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.5;
  }

  .session-grid {
    grid-template-columns: 1fr;
  }

  .session-card {
    padding: 26px;
  }

  /* Forelesere */

  .teacher-grid {
    grid-template-columns: 1fr;
  }

  .teacher-photo {
    width: 100px !important;
    height: 100px !important;
  }

  /* Påmelding */

  .signup {
    padding: 48px 25px;
  }

  .signup h2 {
    font-size: 31px;
  }

  /* Footer */

  footer {
    min-height: 200px;
    padding: 45px 25px;
  }

  .footer-logo {
    width: 190px;
  }
}

/* ========================================
   LITEN MOBIL
======================================== */

@media (max-width: 550px) {
  .practical-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .course-hero h1 {
    font-size: 33px;
  }

  .course-hero-image img {
    height: 250px;
  }

  .course-section {
    padding: 36px 22px;
  }

  .course-section h2 {
    font-size: 29px;
  }

  .session-card {
    padding: 24px;
  }

  .teacher-card {
    padding: 26px 24px;
  }

  .teacher-photo {
    width: 92px !important;
    height: 92px !important;
  }

  .signup {
    padding: 42px 22px;
  }

  .mobile-center-heading {
    text-align: center !important;
  }

  .oslo-course-image,
  .bergen-course-image {
    object-position: left top !important;
  }
}

/* ========================================
   KURSBILDER PÅ FORSIDEN
======================================== */

.oslo-course-image,
.bergen-course-image {
  height: auto;
  aspect-ratio: 1600 / 970;
  object-fit: cover;
  object-position: center top;
}
